Commit Graph

120 Commits

Author SHA1 Message Date
Pavel Roskin
2383b3f7c1 * editcmd.c (canonicalize_pathname) [GTK]: Rename to ...
(edit_canonicalize_pathname): ... this to avoid namespace clash.
* edit.h [MIDNIGHT]: Include "src/cmd.h" and "src/user.h".
Remove declarations duplicating "src/user.h".
[GTK]: Include "src/dialog.h" and "src/util.h".
2001-06-15 23:43:21 +00:00
Pavel Roskin
ed77566cf2 * editmenu.c (edit_wrap_cmd): Fix declaration.
(edit_about_cmd): Likewise.
* editwidget.c (get_key_state): Likewise.
2001-06-15 22:06:11 +00:00
Pavel Roskin
e81a25e50f * editcmd.c (edit_quit_cmd): Don't use strcmp on the result of
gtk_dialog_cauldron() since it's NULL if the dialog has been
closed without using buttons.
2001-06-15 07:35:59 +00:00
Pavel Roskin
0a2a50de04 * edit.c (edit_execute_cmd): Put time format to a variable to
avoid gcc warning about Y2K issues with %c in strftime().
2001-06-15 06:21:35 +00:00
Pavel Roskin
6abe9e7249 * edit.c: Declare cmd_F* static. Comment out cmd_F9. 2001-06-14 21:07:58 +00:00
Pavel Roskin
b341c86ca4 * edit.c: Use indented #error for compatibility with old C
compilers.
2001-06-14 15:33:24 +00:00
Pavel Roskin
6d83120d2f * edit.c (edit_execute_cmd) [GTK]: Disable user menu - it
doesn't work.
(user_menu) [GTK]: Disable.
* gtkedit.c (tb_items): Use complete words. Disable pull-down
menu.
2001-06-13 07:49:39 +00:00
Pavel Roskin
97b1ab977f * editcmd.c (catstrs): Use interactive_display() without
specifying the help file.
From Andrew V. Samoilov.
2001-06-09 07:24:04 +00:00
Andrew V. Samoilov
fbd1a3f367 * editcmd.c [HAVE_CHARSET]: Really include charset.h.
* editmenu.c (edit_wrap_cmd): Memory leaking fixed.
2001-06-08 07:22:28 +00:00
Pavel Roskin
c645d780c7 * edit.c [HAVE_CHARSET]: Include charsets.h and selcodepage.h.
* editcmd.c [HAVE_CHARSET]: Add charset conversion support.
* editdraw.c [HAVE_CHARSET]: Likewise.
From Walery Studennikov <hqsoftware@mail.ru>.
2001-06-05 23:02:08 +00:00
Pavel Roskin
5386a6375f * gtkedit.h: Warning fix - use stricter declarations for
destroy_me and destroy_me_user_data.
2001-06-02 01:37:23 +00:00
Pavel Roskin
91eba7d5ca * Makefile.in: Define HAVE_X and HAVE_GNOME, not just GTK -
header files are using them.
2001-06-01 00:17:03 +00:00
Andrew V. Samoilov
daa8e84176 (key_pending) [!GTK]: Warning fix. 2001-05-31 00:43:04 +00:00
Pavel Roskin
cd8d6460bd * editdraw.c (edit_render) [GTK]: Revert previous patch, it
broke compilation.
2001-05-31 00:06:22 +00:00
Andrew V. Samoilov
b5210e40f6 * editdraw.c (edit_status): Use strcpy (s, ) instead of
sprintf (s, "%s", ).

(set_color) [MIDNIGHT]: Became a macro.
(render_edit_text) [!defined(MIDNIGHT) && !defined(GTK)]: Warning fix.
(edit_render) [GTK]: Eliminate win variable.
2001-05-30 23:32:41 +00:00
Pavel Roskin
6c7bd41428 * editdraw.c (status_string): Use is_printable(). Declare
static. Eliminate intermediate buffer. Use memset() for filling.
Print byte as unsigned. Use C notation for hex numbers.
2001-05-30 17:18:28 +00:00
Pavel Roskin
c9b27ea6eb * editdraw.c (status_string): Don't print non-printable chars.
Better formatting. Print "<EOF>" at the end of file instead of
-1. Use snprintf instead of sprintf.
2001-05-30 15:48:26 +00:00
Andrew V. Samoilov
733c2dd05e * syntax.c (open_include_file) [MIDNIGHT]: Don't hardcode location
of syntax file(s) with LIBDIR, use mc_home instead.
From Ludovic Drolez <ludovic.drolez@freealter.com>.

(syntax_text): Use perl.syntax to highlight perl modules (.pm).
2001-05-30 12:35:16 +00:00
Pavel Roskin
b0593ec1e2 * Make.common.in: Remove obsolete dependency tracking system.
* configure.in: Likewise.
* edit/Makefile.in: Likewise.
* gnome/Makefile.in: Likewise.
* gtkedit/Makefile.in: Likewise.
* slang/Makefile.in: Likewise.
* src/Makefile.in: Likewise.
* vfs/Make-mc.in: Likewise.
* src/depend.awk: Remove.
2001-05-27 04:34:12 +00:00
Pavel Roskin
59d332e0d9 * gtkedit/syntax.c (syntax_text): Add support for Octave files.
* syntax/octave.syntax: New file. From Walery Studennikov.
* syntax/Makefile.am: Add octave.syntax.
2001-05-26 22:40:09 +00:00
Pavel Roskin
8841b6cc5f * editcmd.c (edit_replace_prompt): Warning fix. 2001-05-18 19:25:23 +00:00
Pavel Roskin
bb912def1a * gtkedit/editcmd.c: Remove support for XView layout attributes.
* gtkedit/editoptions.c: Likewise.
* pc/chmod.c: Likewise.
* pc/drive.c: Likewise.
* src/boxes.c: Likewise.
* src/chmod.c: Likewise.
* src/dlg.c: Likewise.
* src/dlg.h: Likewise.
* src/filegui.c: Likewise.
* src/find.c: Likewise.
* src/hotlist.c: Likewise.
* src/layout.c: Likewise.
* src/listmode.c: Likewise.
* src/main.c: Likewise.
* src/option.c: Likewise.
* src/panelize.c: Likewise.
* src/wtools.c: Likewise.
* src/wtools.h: Likewise.
* vfs/smbfs.c: Likewise.
2001-04-06 21:48:11 +00:00
Pavel Roskin
a5dde470ec * editcmd.c (edit_delete_macro_cmd) [MIDNIGHT]: Don't use
CK_Macro on the argument to edit_delete_macro().
2001-02-26 19:51:56 +00:00
Pavel Roskin
2b8b56ddb2 * edit.c (edit_init_file): Remove, it's useless. All the
necessary files should be created when needed.
* edit.h: Remove declaration of edit_init_file().
2001-02-26 16:59:42 +00:00
Pavel Roskin
1f6ffaab0a * gtkedit/edit.h: Only include malloc.h if STDC_HEADERS is not
defined to prevent warnings on OpenBSD 2.7.
* slang/jdmacros.h: Likewise.
* src/mad.h: Likewise.
* src/poptalloca.h: Likewise.
2001-02-20 17:57:23 +00:00
Pavel Roskin
7bee992ba2 * configure.in: Don't create a faked malloc.h.
* gtkedit/edit.h: Don't assume that malloc.h always exists.
* src/mad.h: Likewise.
2001-01-13 08:09:14 +00:00
Pavel Roskin
d1fcdbf64a * edit/Makefile.in: Don't install or uninstall mcedit -
it cannot be installed before mc on systems without symlinks.
* gtkedit/Makefile.in: Likewise.
* src/Makefile.in: Install mcedit (if enabled) and mcview.
Uninstall them.
2001-01-11 16:48:13 +00:00
Andras Timar
92bf5e249d 2001-01-08 Szabolcs Ban <shooby@gnome.hu>
* lib/mc.hlp.hu: Added Hungarian help file from
	  tothb1@freemail.hu, Janos.Zana@elfiz2.kee.hu,
	  maci@integrity.hu, mfh47@freemail.hu
	* lib/Makefile.am: Added LOCALIZED_HELP for further
	  mc.hlp l10ns
	* src/cmd.c, src/dlg.c, src/tree.c, src/view.c,
	  gtkedit/editcmd.c: I18n of mc.hlp
2001-01-08 18:21:33 +00:00
Andrew V. Samoilov
9959ac39fb * editcmd.c (canonicalize_pathname) [GTK]: memory leaking fixed 2000-11-02 12:03:56 +00:00
Andrew V. Samoilov
6e9fc426e3 * editcmd.c (canonicalize_pathname) [GTK]: memory leaking fixed 2000-11-01 19:53:30 +00:00
Pavel Roskin
739edc1780 * editcmd.c (canonicalize_pathname) [GTK]: Make the argument
constant.
        (edit_split_filename) [GTK]: Make the second argument constant
        to match the declaration.
2000-10-31 19:24:52 +00:00
Andrew V. Samoilov
2b8546dc21 2000-10-30 Andrew V. Samoilov <sav@bcs.zp.ua>
* editcmd.c (edit_save_file): better error handling on writting

	(edit_sort_cmd): saved sort options proposed in dialog

	edit.h, editcmd.c: declaration for edit_save_block () added

	(edit_split_filename): f constified

	* edit.c (edit_init) [ENABLE_NLS]: option_whole_chars_search
	expanded by national letters using current locale on first call

	(edit_file_is_open) [MIDNIGHT]: all occurences and related code
	are commented

	(edit_execute_cmd): typo in error message fixed
2000-10-30 18:07:19 +00:00
Andrew V. Samoilov
5aac944afe :) 2000-10-30 18:06:10 +00:00
Pavel Roskin
6dae85923b * libgettext.h: Removed, shouldn't be here.
* Makefile.in: Adjusted to remove libgettext.h
2000-09-30 14:31:31 +00:00
Pavel Roskin
c69627ffdd * configure: Always include Make.common as file, otherwise
"make distclean" breaks.
        * edit/Makefile.in, gnome/Makefile.in, gtkedit/Makefile.in,
        slang/Makefile.in, src/Makefile.in, vfs/Make-mc.in: $(RMF)
        replaced with "rm -f" - the stangard says that "rm" is portable.
        Ditto $(MV). Adjusted *clean targets to match those in
        Automake. Removed "cross" target.
2000-09-23 05:14:31 +00:00
Pavel Roskin
769b082e1b * Make.common.in: Added installcheck to placate "make distcheck"
* configure.in, Make.common.in, doc/Makefile.in,
        edit/Makefile.in, gnome/Makefile.in, gtkedit/Makefile.in,
        slang/Makefile.in, src/Makefile.in, vfs/Make-mc.in: Replacing
        variable MKINSTALLDIRS and builddir with Automake-compatible
        mkinstalldirs and top_builddir.
        * doc-gnome/C/Makefile.am: Only maintainers regenerate html
        files. Added uninstall-local target.
2000-09-18 04:57:29 +00:00
Andrew V. Samoilov
503485b453 2000-09-15 Andrew V. Samoilov <sav@bcs.zp.ua>
* editcmd.c (edit_delete_macro, edit_(load|save)_macro_cmd): don't
	translate keywords written to macro file or macro don't work, at least
	for Cyrillic. Made this as separate commit, so, if it seriously breaks
	compatibility it's easy to revert it.
2000-09-15 10:43:22 +00:00
Andrew V. Samoilov
bd90155537 2000-09-15 Andrew V. Samoilov <sav@bcs.zp.ua>
* editcmd.c (edit_save_file): fopen()+fwrite()+fclose() replaced
	by open()+write()+close() to restore possibility to edit files
	over Midnight Commander's VFSes

	(edit_replace_cmd) [MIDNIGHT]: some more right algorithm to calculate
	menu coordinates used. I don't like if menu hides replaced text.

	(edit_goto_cmd): Memory leaking fixed when f is empty string
2000-09-15 10:10:18 +00:00
Pavel Roskin
7b7cb9878d * doc/Makefile.in, edit/Makefile.in, gnome/Makefile.in,
gtkedit/Makefile.in, slang/Makefile.in, src/Makefile.in,
vfs/Make-mc.in: preserve timestamp on "make distdir", otherwise
mc.pot becomes out of date in the tarball.
2000-09-15 06:05:22 +00:00
Pavel Roskin
969d11e456 * configure.in: remove any manupulations with top_srcdir.
Don't change CPPGLAGS when the internal editor is enabled,
instead do it ...
* edit/Makefile.in, gtkedit/Makefile.in: ... here
2000-09-14 15:31:25 +00:00
Pavel Roskin
91e7526108 * configure.in, Make.common.in, doc/Makefile.in,
edit/Makefile.in, gnome/Makefile.in, gtkedit/Makefile.in,
slang/Makefile.in, src/Makefile.in, vfs/Make-mc.in: rootdir
changed to top_srcdir for Automake compatability
2000-09-14 15:12:00 +00:00
Andrew V. Samoilov
5eb58afa28 2000-09-07 Andrew V. Samoilov <sav@bcs.zp.ua>
* syntax.c (syntax_text): Makefile replaced by [Mm]akefile to cover
	makefile and GNUmakefile
	(upgrade_syntax_file): infinitive loop fixed when rule file
	is outdated but it cannot be unlinked/overwritten
2000-09-07 17:45:28 +00:00
Andrew V. Samoilov
2420cfe9dd 2000-09-07 Andrew V. Samoilov <sav@bcs.zp.ua>
* edit.c (check_file_access) [MIDNIGHT,GTK]: error message localized;
	some cosmetics changes to avoid annoying warnings

	* editcmd.c (edit_save_file): pclose returns 0 on success,
	file fclose()d when fwrite fails

	(pipe_mail): malloc () + sprintf () replaced by g_strdup_printf ()

	* syntax.c (syntax_text): Makefile replaced by [Mm]akefile to cover
	makefile and GNUmakefile
	(upgrade_syntax_file): infinitive loop fixed when rule file
	is outdated but it cannot be unlinked/overwritten
2000-09-07 17:18:32 +00:00
Pavel Roskin
ab6e6554f5 * editwidget.c [!MIDNIGHT]: include xdnd.h
* Makefile.in: distribute xdnd.h
2000-08-30 21:23:14 +00:00
Pavel Roskin
95b52b597c * Make.common.in: removed hack for "make distcopy"
* doc/Makefile.in, edit/Makefile.in, gnome/Makefile.in,
gtkedit/Makefile.in, slang/Makefile.in, src/Makefile.in,
vfs/Make-mc.in: added "distdir" target. Now "make dist" works
for external builds.
* edit/Makefile.in, slang/Makefile.in: added "Makefile" target
2000-08-28 18:51:22 +00:00
Pavel Roskin
e828211662 Updated address of Free Software Foundation 2000-08-22 22:50:00 +00:00
Pavel Roskin
5b11ed2900 Adjusted lists of distributed files
Fixed rules for rebuilding makefiles
2000-08-18 05:18:47 +00:00
Pavel Roskin
9ae68cd8bc * Makefile.in, */Makefile.in: Fail if $(RMF) fails - it may
indicate serious problems. Fixes for uninstall.
* doc/Makefile.in: Rebuild if it is out of date.
2000-08-15 16:56:33 +00:00
Pavel Roskin
6394819d21 gtkedit.c [GTK]: don't include mousemark.h
gtkedit.h [GTK]: likewise
2000-08-08 13:29:33 +00:00
Pavel Roskin
2fa49b7304 mousemark.c, mousemark.h: removed
Makefile.in: don't distribute mousemark.h
gtkedit.c [MIDNIGHT]: don't include mousemark.h
gtkedit.h [MIDNIGHT]: likewise
2000-08-03 21:53:01 +00:00