*** empty log message ***
[midnight-commander.git] / edit / ChangeLog
blobde40b47e59db69e097727d0a44fe8b6257e2b451
1 2002-09-04  Pavel Roskin  <proski@gnu.org>
3         * edit.c (edit_filters): Use gzip, not compress for *.Z files
4         for consistency with other parts of the code (viewer, mc.ext).
6 2002-09-03  Pavel Roskin  <proski@gnu.org>
8         * editcmd.c: Recheck and fix all calls to create_dlg().
9         * editwidget.c: Likewise.
11 2002-09-02  Pavel Roskin  <proski@gnu.org>
13         * editcmd.c (edit_raw_key_query): Eliminate
14         x_set_dialog_title().
16 2002-09-01  Pavel Roskin  <proski@gnu.org>
18         * editcmd.c (edit_block_process_cmd): Restore third argument
19         (but make it /dev/null) for compatibility with old scripts.
20         Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
22 2002-08-31  Pavel Roskin  <proski@gnu.org>
24         * editwidget.c (edit): Avoid passing an uninitialized color
25         array to create_dlg() - pass NULL instead.
27 2002-08-27  Andrew V. Samoilov  <sav@bcs.zp.ua>
29         * editcmd.c (edit_printf): Use g_vsnprintf() instead of sprintf().
31 2002-08-24  Pavel Roskin  <proski@gnu.org>
33         * edit-widget.h: Eliminate ERROR_FILE.
34         * edit.c: Remove all references to ERROR_FILE.
35         * editcmd.c (edit_block_process_cmd): Revert to using catstrs(),
36         those strings are freed now.  Use system(), not execute() to
37         execute commands.  Use open_error_pipe() and close_error_pipe()
38         to keep track of errors.
40 2002-08-22  Pavel Roskin  <proski@gnu.org>
42         * editcmd.c: Clean up global variables in the completion code.
44         * editwidget.c: Use new dialog flags.
45         * editcmd.c: Likewise.
46         (edit_completion_dialog): Set DLG_COMPACT for the dialog.
48         * editcmd.c (compl_callback): Use common_dialog_repaint().
50         * editcmd.c (raw_callback): Use standard common_dialog_repaint()
51         to handle DLG_DRAW.
53 2002-08-21  Pavel Roskin  <proski@gnu.org>
55         * editwidget.c (edit): Make edit_bar a local variable.
57 2002-08-20  Pavel Roskin  <proski@gnu.org>
59         * editcmd.c (freestrs): Set freed strings to NULL.
60         (catstrs): Use g_malloc() and g_free().
62         * editcmd.c (freestrs): New function to clean temporary strings.
63         * edit.c (edit_clean): Call freestrs().
65 2002-08-20  David Martin  <dmartina@excite.com>
67         * editmenu.c: Use new create_menu() interface.
69 2002-08-18  Pavel Roskin  <proski@gnu.org>
71         * editoptions.c: Make some variables static.
72         * edit.h: Take extern declaratrions from all C files.
74         * editcmd.c (edit_block_process_cmd): Plug memory leak.
75         Simplify logic, reformat.
77 2002-08-02  Paul Sheer  <psheer@icon.co.za>
79         * edit.c (edit_push_action): Fix access to uninitialized memory.
80         Found by Valgrind.
82 2002-08-01  Pavel Roskin  <proski@gnu.org>
84         * syntax.c: Remove all references to MAD.
86         * edit.h: Don't include mad.h.
88 2002-07-29  Andrew V. Samoilov  <kai@cmail.ru>
90         * edit.h (edit_get_load_file): Mark message for translation.
91         (edit_get_save_file): Ditto.
93 2002-07-20  Pavel Roskin  <proski@gnu.org>
95         * syntax.c (apply_rules_going_right): Recheck keyword rules when
96         a keyword is found on the left border of a context.
98 2002-07-14  Pavel Roskin  <proski@gnu.org>
100         * syntax.c (edit_get_syntax_color): Return colorpair index, not
101         attribute, when syntax highlighting is disabled.  Handle black
102         and white mode separately.
104         * syntax.c (edit_load_syntax): Do nothing in black and white
105         mode.
107         * edit.h [!HAVE_SLANG]: Enable syntax highlighting.
108         * editdraw.c [!HAVE_SLANG]: Respect attributes for color pairs
109         by using MY_COLOR_PAIR macro.
111         * edit.h (struct key_word): Remove unused "bg" field, rename
112         "fg" to "color", since it keeps all color information.
113         * syntax.c (edit_get_syntax_color): Replace "fg" and "bg"
114         arguments with a single argument "color".
115         Adjust all dependencies.
117         * editdraw.c (edit_draw_this_line): Fix setting MOD_ABNORMAL
118         attribute.
119         (print_to_widget): Fix displaying non-printable characters with
120         ncurses.  Set color for every character even if syntax
121         highlighting is not compiled - it's needed to reset color after
122         non-printable characters.
124         * editdraw.c (edit_status): Use EDITOR_NORMAL_COLOR instead of
125         NORMAL_COLOR.
126         * syntax.c (edit_get_syntax_color) [!HAVE_SYNTAXH]: Likewise.
128 2002-06-24  Pavel Roskin  <proski@gnu.org>
130         * edit.c (check_file_access): Return 1 on all errors, document
131         this behavior.  Set edit->delete_file to 1 for newly created
132         files.
133         (edit_open_file): Don't set edit->delete_file, it's now done in
134         check_file_access().
135         Reported by Saso <saso@bojler.dhs.org>
137 2002-05-13  Andrew V. Samoilov  <kai@cmail.ru>
139         * editcmd.c (edit_save_file): Call mc_chown() and mc_chmod()
140         before mc_open() to prevent hangs over ftpfs.
142         * edit.h: Remove open, close, write, read and mkdir definitions.
143         * edit.c: Use mc_open, mc_close, mc_write, mc_read, mc_rename,
144         mc_chmod and mc_chown. Don't cast (char *) to (unsigned long)
145         in pointer arithmetics.
146         * editcmd.c: Likewise.
148 2002-03-25  Andrew V. Samoilov  <kai@cmail.ru>
150         * syntax.c (edit_read_syntax_file): Use system wide Syntax
151         Highlighting definitions' file if there is no users one.
153 2002-03-18  Pavel Roskin  <proski@gnu.org>
155         * edit.h: Use eregex.h, not regex.h.
156         From Alexander Varakin <avarakin00@hotmail.com>
158 2002-02-27  Andrew V. Samoilov  <kai@cmail.ru>
160         * editcmd.c (edit_replace_cmd): Eliminate fin_string
161         and use message() to fix possible buffer overflow.
162         (edit_search_cmd): Likewise.
164 2002-02-18  Andrew V. Samoilov  <kai@cmail.ru>
166         * syntax.c (convert): Fix buffer overflow for ".*\" cases.
168 2002-01-22  Pavel Roskin  <proski@gnu.org>
170         * editdraw.c (edit_scroll_screen_over_cursor): Do nothing if the
171         edit widget has zero width or height.
173 2002-01-21  Pavel Roskin  <proski@gnu.org>
175         * edit.c: Rename DELETE to DELCHAR to avoid macro redefinition
176         on Win32.
177         * edit.h: Likewise.
179 2002-01-21  Matthias Urban  <murban@cs.uni-magdeburg.de>
181         * edit.c: Add support for CK_Complete_Word event.
182         * editcmddef.h: Likewise.
183         * edit_key_translator.c (cooledit_key_map): Bind Alt-Tab to
184         CK_Complete_Word.
185         (emacs_key_map): Likewise.
186         * editcmd.c: Implement word completion.
188 2002-01-21  Pavel Roskin  <proski@gnu.org>
190         * editmenu.c (CmdMenuEmacs): Add mail command without shortcut.
191         Users of emacs keys should be able to send mail too.
193 2002-01-15  Andrew V. Samoilov  <kai@cmail.ru>
195         * syntax.c (syntax_g_free): New macro to release and NULLify
196         glib allocated memory area(s).
197         (strdup_convert): Rename to ...
198         (convert): ... this.  Don't strdup() passed string.
199         (get_args): Use convert() instead of strdup_convert().
200         (free_args): Make it do notning macro.
201         (open_include_file): Eliminate p array. Use glib function to
202         construct error_file_name. Use PATH_SEP instead of '/';
203         (edit_read_syntax_file): Use PATH_SEP_STR.
204         (edit_load_syntax): Use syntax_g_free to release error_file_name.
205         (edit_read_syntax_rules): Likewise.
206         Eliminate c->single_char. It's only written but never read.
208         * edit.h (struct context_rule): Comment out single_char field.
209         It is written once but never read.
211         * edit-widget.h: Use PATH_SEP_STR.
213 2001-12-22  Andrew V. Samoilov  <kai@cmail.ru>
215         * editcmd.c (edit_goto_cmd): Use g_free() to release f.
216         (edit_save_file): Use PATH_SEP instead of '/'.
217         Undefine "close" before closing file created by mc_mkstemps.
218         Define close to mc_close() after it - temporary fix.
220         (sprintf_p): Don't cast (char *) to (unsigned long).
222         * syntax.c (read_one_line): Undo last patch - errno is a
223         function on some systems.  Check ferror() status before
224         everything else if fgetc() returns EOF.
225         Accept last line without trailing newline.
227         (compare_word_to_right): Don't cast p and q to unsigned long.
228         (apply_rules_going_right): Likewise.
230 2001-12-21  Pavel Roskin  <proski@gnu.org>
232         * edit.c (user_menu): Don't move the cursor before and after
233         inserting the block.
234         Reported by Matthias Urban <murban@cs.uni-magdeburg.de>
236         * syntax.c (read_one_line): Clear errno before using it.  Don't
237         use the result of fgetc() if errno is EINTR.
239 2001-11-28  Andrew V. Samoilov  <kai@cmail.ru>
241         * syntax.c (apply_rules_going_right): Fix crash for lines like
242         \s+ \n lightgray/13 red
243         in Syntax file.
244         (read_one_line): Use EOF instead of -1.
245         (get_args): Fix buffer overflow for l without trailing
246         whitespace(s).
247         (break_a): New macro.
248         (edit_read_syntax_rules): Use break_a to fix memory leaks.
249         (edit_load_syntax): Eliminate s and use message to prevent
250         buffer overflow.
252         * editdraw.c (edit_render): Eliminate f. It's only written
253         but never read.
255 2001-11-27  Andrew V. Samoilov  <kai@cmail.ru>
257         * editmenu.c (edit_wrap_cmd): Use g_free() on the result
258         of input_dialog().
260 2001-11-22  Andrew V. Samoilov  <kai@cmail.ru>
262         * editcmd.c (edit_save_file): Use g_free() on the result of
263         mc_mkstemps().
264         (edit_replace_cmd): Fix rare memory leaks.
266 2001-11-19  Andrew V. Samoilov  <kai@cmail.ru>
268         * edit.c (edit_renew): Release dir after use.
270         * editcmd.c (edit_replace_dialog): Eliminate tsearch_text,
271         treplace_text and targ_order.
272         (edit_replace_cmd): edit_replace_dialog gives g_malloced
273         strings, so g_strdup/g_free have to be used.  Accept only
274         positive pattern number in Scanf search and replace.
275         (edit_save_file): Enable safe save and backups on remote VFS.
277 2001-11-16  Andrew V. Samoilov  <kai@cmail.ru>
279         * edit_key_translator.c (cooledit_key_map):
280         Add C-k, CK_Delete_To_Line_End.
282         * edit.c (user_menu): Don't assign block_file twice.
284 2001-11-07  Andrew V. Samoilov  <kai@cmail.ru>
286         * edit.c (edit_reload): destroy_dlg g_free()s widget(s), so
287         g_malloc/g_free have to be used.
288         (edit_init): Ditto.  Eliminate st.
290 2001-11-05  Andrew V. Samoilov  <kai@cmail.ru>
292         * edit.h (edit_execute_cmd): Declare it here.
294         * edit.c: Remove edit_execute_cmd declaration.
295         (edit_execute_cmd): Use edit_print_string instead of edit_printf.
297         * editcmd.c: Remove edit_execute_cmd declaration.
298         (edit_search_dialog): Eliminate tsearch_text.
299         (edit_search_cmd): edit_search_dialog gives g_malloc()ed exp.
300         Use g_strdup/g_free instead of strdup/free.
301         (edit_mail_dialog): quick_dialog use g_strdup, so g_free
302         must be used.
303         (edit_load_cmd): input_dialog returns g_malloc(ed) string,
304         so g_free has to be used.
305         (edit_save_block_cmd): Likewise.
306         (edit_insert_file_cmd): Likewise.
307         (edit_sort_cmd): Likewise.
308         (edit_save_as_cmd): Likewise. Memory leak fixed.
310         * bookmark.c (book_mark_clear): Eliminate rend.
311         It's only written but never read.
312         (book_mark_flush): Likewise.
313         (book_mark_inc): Likewise.
314         (book_mark_dec): Likewise.
316 2001-10-23  Pavel Roskin  <proski@gnu.org>
318         * edit.c (user_menu): If the error file is missing, treat it as
319         success.  Truncate block file unconditionally.
321 2001-10-22  Pavel Roskin  <proski@gnu.org>
323         * edit.c: Stop using _EDIT_C definition.  Move variable
324         declarations from edit.h, make static or eliminate if possible.
325         Report errors immediately.
326         * edit.h: Likewise.
327         * editwidget.c (edit): Don't report errors from edit_init(),
328         they are reported in place.
330 2001-10-20  Pavel Roskin  <proski@gnu.org>
332         * editcmd.c (sprintf_p): Declare with the printf attribute.
333         Make static.
335         * edit.h: Declare edit_printf() with the printf attribute.
337 2001-10-18  Pavel Roskin  <proski@gnu.org>
339         * edit.c (check_file_access): Only allow to edit regular files.
340         Use stat() before open() to prevent hangs on pipes, use fstat()
341         afterwards if stat() was unsuccessful.
343 2001-09-17  Pavel Roskin  <proski@gnu.org>
345         * edit.h: Don't use macro `stat' - it's already a macro on
346         Solaris 8 with large file support.
347         * editcmd.c: Replace stat() with mc_stat().
348         * edit.c: Likewise.
350 2001-09-11  Pavel Roskin  <proski@gnu.org>
352         * syntax.c (syntax_text): Remove, it's a separate file now.
353         (upgrade_syntax_file): Remove.
354         (edit_read_syntax_file): Use check_for_default().
356 2001-09-08  Pavel Roskin  <proski@gnu.org>
358         * edit.h: Remove some useless definitions.
360 2001-09-07  Pavel Roskin  <proski@gnu.org>
362         * Makefile.am: Don't define "MIDNIGHT" - it's unused now.
364         * edit.c: Eliminate all code disabled for the text edition.
365         * editcmddef.h: Likewise.
366         * editmenu.c: Likewise.
367         * editwidget.c: Likewise.
368         * syntax.c: Likewise.
369         * wordproc.c: Likewise.
371         * edit-widget.h: Change ~/.cedit to ~/.mc/cedit to keep mcedit
372         files separate from cooledit.
374         * bookmark.c: Eliminate all code disabled for the text edition.
375         * edit-widget.h: Likewise.
376         * editcmd.c: Likewise.
377         * editdraw.c: Likewise.
378         * editoptions.c: Likewise.
380         * edit.h: Eliminate all code disabled for the text edition.
381         Reorder and simplify includes.
382         * edit.c: Likewise.
384 2001-09-06  Pavel Roskin  <proski@gnu.org>
386         * syntax.c (syntax_text): Add PHP support from Cooledit.
388 2001-09-04  Pavel Roskin  <proski@gnu.org>
390         * Makefile.am (AM_CFLAGS): Remove CFLAGS, don't use substituted
391         values directly.
393         * syntax.c (syntax_text): Remove useless ']' in the Perl and
394         Python rules.  Change shell script rule to use more portable
395         regular expression.
397         * editcmd.c (edit_block_process_cmd): Prepend space to the
398         command to avoid polluting bash history.  Document arguments.
399         Fix crash if block is 0 - not used currently.
401 2001-08-26  Pavel Roskin  <proski@gnu.org>
403         * Makefile.am: Don't install libedit.a.
405         * Makefile.in: Converted to ...
406         * Makefile.am: ... this.
408 2001-08-24  Pavel Roskin  <proski@gnu.org>
410         * Makefile.in (EDITSRC): Add headers.
411         (CPPFLAGS): Remove reference to gtkedit.
413         Copy all necessary files from gtkedit.
414         * Makefile.in (EDITLINKS): Merge with EDITSRC, remove all
415         references.
417 2001-08-24  Pavel Roskin  <proski@gnu.org>
419         * syntax.c (syntax_text): Fix recognizing pdksh and zsh scripts.
421 2001-08-23  Pavel Roskin  <proski@gnu.org>
423         * editcmd.c (edit_block_process_cmd): Use execute(), not
424         my_system() to relieve interactive scripts, such as spell
425         checker, from saving and restoring the terminal.
427 2001-08-19  Pavel Roskin  <proski@gnu.org>
429         * gtkedit.c: Include <sys/param.h> if present - it should always
430         be included before <glib.h> to avoid redefining MIN and MAX.
431         * editcmd.c [!MIDNIGHT]: Undefine B_ENTER and B_CANCEL before
432         redefining them.
434         * edit.h: Include <sys/param.h> if present.  Include Gtk+
435         headers as system headers.
436         * gtkedit.c: Include Gtk+ headers as system headers.
438 2001-08-18  Pavel Roskin  <proski@gnu.org>
440         * syntax.c (syntax_text): Highlight *.pot as PO files.
442         * edit.h [GTK]: Fix definition of edit_message_dialog().
443         * gtkedit.c (gtk_edit_dialog_message): Use "OK" button, not
444         "Cancel", for consistency with the text edition.
446 2001-08-17  Pavel Roskin  <proski@gnu.org>
448         * syntax.c (syntax_text): Add support for PO files.
450 2001-08-12  Pavel Roskin  <proski@gnu.org>
452         * edit.c: Handle CK_Shell.
453         * editcmddef.h: Define CK_Shell.
454         * editmenu.c (FileMenu): Remove C-o from the "Open file..."
455         item.
456         (FileMenuEmacs): Likewise.
458 2001-08-06  Andrew V. Samoilov  <kai@cmail.ru>
460         * editcmd.c (edit_replace_prompt): Fix menu location calculation.
462 2001-08-01  Pavel Roskin  <proski@gnu.org>
464         * editcmd.c (edit_save_file): Temporarily disable safe save
465         and backups on remote VFS because it doesn't work.  Use
466         mc_mkstemps() instead of tempnam().
468 2001-07-29  Pavel Roskin  <proski@gnu.org>
470         * syntax.c (syntax_text): Add support for S-Lang.
472 2001-07-28  Pavel Roskin  <proski@gnu.org>
474         * editcmd.c (menu_save_mode_cmd): Resurrect i18n code lost in
475         the last resync with Cooledit.
476         Reported by David Martin <dmartina@excite.es>
478         * gtkedit.c (gtk_edit_delete_cb): Handler for "delete_event".
479         (edit): Connect it.
481 2001-07-27  Pavel Roskin  <proski@gnu.org>
483         * edit.c: Fix include.
485 2001-07-20  Pavel Roskin  <proski@gnu.org>
487         * syntax.c (open_include_file) [GTK]: Use mc_home instead of
488         LIBDIR.
490 2001-07-19  Pavel Roskin  <proski@gnu.org>
492         * editcmd.c (edit_canonicalize_pathname): Don't ever use
493         getwd(), use g_get_current_dir() instead.
495         * editoptions.c (edit_options_dialog): Call edit_load_syntax()
496         if user turned syntax highlighting off to unload the rules.
498 2001-07-17  Pavel Roskin  <proski@gnu.org>
500         * edit.h [MIDNIGHT]: Declare wedit.
501         * editmenu.c: Remove wedit declaration.
502         * editoptions.c (edit_options_dialog): Load syntax rules if user
503         turned syntax highlighting on.
504         * syntax.c (edit_load_syntax): Don't load rules if syntax
505         highlighting is disabled.
507 2001-07-13  Pavel Roskin  <proski@gnu.org>
509         * editoptions.c (edit_options_dialog): Allow numbers for tab
510         spacing. Reported by mharris@redhat.com.
511         http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=34852
513         * editcmd.c (menu_save_mode_cmd): Give meaningful names to the
514         input fields instead of "i" so that they have separate history.
515         * editoptions.c (edit_options_dialog): Likewise.
517 2001-07-11  Pavel Roskin  <proski@gnu.org>
519         * editdraw.c (status_string): Use g_snprintf() instead of
520         snprintf().
521         From Libor Motyèka <l_motycka@ortex.cz>
523 2001-07-10  Pavel Roskin  <proski@gnu.org>
525         * gtkeditkey.c (edit_translate_key): When processing bindings
526         with Alt check that Shift is not pressed - it's handled later.
528 2001-07-05  Pavel Roskin  <proski@gnu.org>
530         * editdraw.c: Comment fixes.
532 2001-06-26  Pavel Roskin  <proski@gnu.org>
534         * edit-widget.h (editor_widget): Rename `stat' to `stat1' to
535         avoid problems on Solaris with 64-bit file access, when `stat'
536         is a macro. All users adjusted.
537         Reported by Maksym Polyakov <polyama@yahoo.com>.
539 2001-06-25  Pavel Roskin  <proski@gnu.org>
541         * gtkedit.c: Remove home_dir - it's declared in main.c.
543 2001-06-15  Pavel Roskin  <proski@gnu.org>
545         * editcmd.c (canonicalize_pathname) [GTK]: Rename to ...
546         (edit_canonicalize_pathname): ... this to avoid namespace clash.
547         * edit.h [MIDNIGHT]: Include "src/cmd.h" and "src/user.h".
548         Remove declarations duplicating "src/user.h".
549         [GTK]: Include "src/dialog.h" and "src/util.h".
551         * editmenu.c (edit_wrap_cmd): Fix declaration.
552         (edit_about_cmd): Likewise.
553         * editwidget.c (get_key_state): Likewise.
555         * editcmd.c (edit_quit_cmd): Don't use strcmp on the result of
556         gtk_dialog_cauldron() since it's NULL if the dialog has been
557         closed without using buttons.
559         * edit.c (edit_execute_cmd): Put time format to a variable to
560         avoid gcc warning about Y2K issues with %c in strftime().
562 2001-06-14  Pavel Roskin  <proski@gnu.org>
564         * edit.c: Declare cmd_F* static. Comment out cmd_F9.
566         * edit.c: Use indented #error for compatibility with old C
567         compilers.
569 2001-06-13  Pavel Roskin  <proski@gnu.org>
571         * edit.c (edit_execute_cmd) [GTK]: Disable user menu - it
572         doesn't work.
573         (user_menu) [GTK]: Disable.
574         * gtkedit.c (tb_items): Use complete words. Disable pull-down
575         menu.
577 2001-06-09  Pavel Roskin  <proski@gnu.org>
579         * editcmd.c (catstrs): Use interactive_display() without
580         specifying the help file.
581         From Andrew V. Samoilov.
583 2001-06-08  Andrew V. Samoilov  <sav@bcs.zp.ua>
585         * editcmd.c [HAVE_CHARSET]: Really include charset.h.
586         * editmenu.c (edit_wrap_cmd): Memory leaking fixed.
588 2001-06-05  Pavel Roskin  <proski@gnu.org>
590         * edit.c [HAVE_CHARSET]: Include charsets.h and selcodepage.h.
591         * editcmd.c [HAVE_CHARSET]: Add charset conversion support.
592         * editdraw.c [HAVE_CHARSET]: Likewise.
593         From Andrew V. Samoilov <sav@bcs.zp.ua>
594         and Walery Studennikov <hqsoftware@mail.ru>.
596 2001-06-01  Pavel Roskin  <proski@gnu.org>
598         * gtkedit.h: Warning fix - use stricter declarations for
599         destroy_me and destroy_me_user_data.
601 2001-05-31  Pavel Roskin  <proski@gnu.org>
603         * Makefile.in: Define HAVE_X and HAVE_GNOME, not just GTK -
604         header files are using them.
606         * editdraw.c (edit_render) [GTK]: Revert previous patch, it
607         broke compilation.
609 2001-05-31  Andrew V. Samoilov  <sav@bcs.zp.ua>
611         * editdraw.c (edit_status): Use strcpy (s, ) instead of
612         sprintf (s, "%s", ).
614         (set_color) [MIDNIGHT]: Became a macro.
615         (render_edit_text) [defined(MIDNIGHT) || defined(GTK)]: Warning fix.
616         (edit_render) [GTK]: Eliminate win variable.
617         (key_pending) [!GTK]: Warning fix.
619 2001-05-30  Pavel Roskin  <proski@gnu.org>
621         * editdraw.c (status_string): Use is_printable(). Declare
622         static. Eliminate intermediate buffer. Use memset() for filling.
623         Print byte as unsigned. Use C notation for hex numbers.
625         * editdraw.c (status_string): Don't print non-printable chars.
626         Better formatting. Print "<EOF>" at the end of file instead of
627         -1. Use snprintf instead of sprintf.
629 2001-05-30  Andrew V. Samoilov  <sav@bcs.zp.ua>
631         * syntax.c (open_include_file) [MIDNIGHT]: Don't hardcode location
632         of syntax file(s) with LIBDIR, use mc_home instead.
633         From Ludovic Drolez <ludovic.drolez@freealter.com>.
635         (syntax_text): Use perl.syntax to highlight perl modules (.pm).
637 2001-05-18  Pavel Roskin  <proski@gnu.org>
639         * editcmd.c (edit_replace_prompt): Warning fix.
641 2001-02-26  Pavel Roskin  <proski@gnu.org>
643         * editcmd.c (edit_delete_macro_cmd) [MIDNIGHT]: Don't use
644         CK_Macro on the argument to edit_delete_macro().
646         * edit.c (edit_init_file): Remove, it's useless. All the
647         necessary files should be created when needed.
648         * edit.h: Remove declaration of edit_init_file().
650 2000-11-01  Andrew V. Samoilov  <sav@bcs.zp.ua>
652         * editcmd.c (canonicalize_pathname) [GTK]: memory leaking fixed
654 2000-10-30  Pavel Roskin  <proski@gnu.org>
656         * editcmd.c (canonicalize_pathname) [GTK]: Make the argument
657         constant.
658         (edit_split_filename) [GTK]: Make the second argument constant
659         to match the declaration.
661 2000-10-30  Andrew V. Samoilov  <sav@bcs.zp.ua>
663         * editcmd.c (edit_save_file): better error handling on writting
665         (edit_sort_cmd): saved sort options proposed in dialog
667         edit.h, editcmd.c: declaration for edit_save_block () added
669         (edit_split_filename): f constified
671         * edit.c (edit_init) [ENABLE_NLS]: option_whole_chars_search
672         expanded by national letters using current locale on first call
674         (edit_file_is_open) [MIDNIGHT]: all occurences and related code
675         are commented
677         (edit_execute_cmd): typo in error message fixed
679 2000-09-30  Pavel Roskin  <proski@gnu.org>
681         * libgettext.h: Removed, shouldn't be here.
682         * Makefile.in: Adjusted to remove libgettext.h
684 2000-09-15  Andrew V. Samoilov  <sav@bcs.zp.ua>
686         * editcmd.c (edit_delete_macro, edit_(load|save)_macro_cmd): don't
687         translate keywords written to macro file or macro don't work, at least
688         for Cyrillic. Made this as separate commit, so, if it seriously breaks
689         compatibility it's easy to revert it.
691 2000-09-15  Andrew V. Samoilov  <sav@bcs.zp.ua>
693         * editcmd.c (edit_save_file): fopen()+fwrite()+fclose() replaced
694         by open()+write()+close() to restore possibility to edit files
695         over Midnight Commander's VFSes
697         (edit_replace_cmd) [MIDNIGHT]: some more right algorithm to calculate
698         menu coordinates used. I don't like if menu hides replaced text.
700         (edit_goto_cmd): Memory leaking fixed when f is empty string
702 2000-09-07  Andrew V. Samoilov  <sav@bcs.zp.ua>
704         * edit.c (check_file_access) [MIDNIGHT,GTK]: error message localized;
705         some cosmetics changes to avoid annoying warnings
707         * editcmd.c (edit_save_file): pclose returns 0 on success,
708         file fclose()d when fwrite fails
710         (pipe_mail): malloc () + sprintf () replaced by g_strdup_printf ()
712         * syntax.c (syntax_text): Makefile replaced by [Mm]akefile to cover
713         makefile and GNUmakefile
714         (upgrade_syntax_file): infinitive loop fixed when rule file
715         is outdated but it cannot be unlinked/overwritten
717 2000-08-30  Pavel Roskin  <proski@gnu.org>
719         * editwidget.c [!MIDNIGHT]: include xdnd.h
720         * Makefile.in: distribute xdnd.h
722 2000-08-18  Pavel Roskin  <proski@gnu.org>
724         * Makefile.in: adjusted list of distributed files.
725         Added rule for rebuilding Makefile
727 2000-08-08  Pavel Roskin  <proski@gnu.org>
729         * gtkedit.c [GTK]: don't include mousemark.h
730         * gtkedit.h [GTK]: likewise
732 2000-08-03  Pavel Roskin  <proski@gnu.org>
734         * mousemark.c, mousemark.h: removed
735         * Makefile.in: don't distribute mousemark.h
736         * gtkedit.c [MIDNIGHT]: don't include mousemark.h
737         * gtkedit.h [MIDNIGHT]: likewise
739 2000-07-20  Andrew V. Samoilov  <sav@bcs.zp.ua>
741         * gtkedit/editcmd.c (edit_save_file): check fclose()s return value
742         to prevent loss of data
743         (edit_block_process_cmd): don't translate empty string
745         * gtkedit/edit.h (edit_get_write_filter, edit_write_stream,
746         edit_init_file): added declarations
748         * edit.c (edit_filters): constified
749         (edit_get_write_filter): filename constified
750         (user_menu): don't translate empty string
752         * syntax.c (syntax_text): constified
753         (upgrade_syntax_file): syntax_line constified, f closed after use