1 2002-09-23 Pavel Roskin <proski@gnu.org>
3 * edit.c (edit_move_forward3): Show '\r' as ^M.
4 * editdraw.c (edit_draw_this_line): Likewise. Use MOD_ABNORMAL
6 From Alexander Varakin <avarakin00@hotmail.com>
8 * edit.h: Remove all references to O_TEXT, USE_O_TEXT and
11 * edit.c: Use O_BINARY when opening files.
12 * editcmd.c: Likewise.
13 From Alexander Varakin <avarakin00@hotmail.com>
15 2002-09-20 Pavel Roskin <proski@gnu.org>
17 * editwidget.c (edit_event): Add support for mouse wheel events.
18 * edit.h: Add missing declarations for edit_move_up() and
21 2002-09-20 Andrew V. Samoilov <sav@bcs.zp.ua>
23 * edit.c: Don't initialize static selection and selection_history.
24 * editdraw.c (status_string): Remove font_width argument.
25 (edit_status): Fix calculation to use last column in the
28 2002-09-04 Pavel Roskin <proski@gnu.org>
30 * edit.c (edit_filters): Use gzip, not compress for *.Z files
31 for consistency with other parts of the code (viewer, mc.ext).
33 2002-09-03 Pavel Roskin <proski@gnu.org>
35 * editcmd.c: Recheck and fix all calls to create_dlg().
36 * editwidget.c: Likewise.
38 2002-09-02 Pavel Roskin <proski@gnu.org>
40 * editcmd.c (edit_raw_key_query): Eliminate
43 2002-09-01 Pavel Roskin <proski@gnu.org>
45 * editcmd.c (edit_block_process_cmd): Restore third argument
46 (but make it /dev/null) for compatibility with old scripts.
47 Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
49 2002-08-31 Pavel Roskin <proski@gnu.org>
51 * editwidget.c (edit): Avoid passing an uninitialized color
52 array to create_dlg() - pass NULL instead.
54 2002-08-27 Andrew V. Samoilov <sav@bcs.zp.ua>
56 * editcmd.c (edit_printf): Use g_vsnprintf() instead of sprintf().
58 2002-08-24 Pavel Roskin <proski@gnu.org>
60 * edit-widget.h: Eliminate ERROR_FILE.
61 * edit.c: Remove all references to ERROR_FILE.
62 * editcmd.c (edit_block_process_cmd): Revert to using catstrs(),
63 those strings are freed now. Use system(), not execute() to
64 execute commands. Use open_error_pipe() and close_error_pipe()
65 to keep track of errors.
67 2002-08-22 Pavel Roskin <proski@gnu.org>
69 * editcmd.c: Clean up global variables in the completion code.
71 * editwidget.c: Use new dialog flags.
72 * editcmd.c: Likewise.
73 (edit_completion_dialog): Set DLG_COMPACT for the dialog.
75 * editcmd.c (compl_callback): Use common_dialog_repaint().
77 * editcmd.c (raw_callback): Use standard common_dialog_repaint()
80 2002-08-21 Pavel Roskin <proski@gnu.org>
82 * editwidget.c (edit): Make edit_bar a local variable.
84 2002-08-20 Pavel Roskin <proski@gnu.org>
86 * editcmd.c (freestrs): Set freed strings to NULL.
87 (catstrs): Use g_malloc() and g_free().
89 * editcmd.c (freestrs): New function to clean temporary strings.
90 * edit.c (edit_clean): Call freestrs().
92 2002-08-20 David Martin <dmartina@excite.com>
94 * editmenu.c: Use new create_menu() interface.
96 2002-08-18 Pavel Roskin <proski@gnu.org>
98 * editoptions.c: Make some variables static.
99 * edit.h: Take extern declaratrions from all C files.
101 * editcmd.c (edit_block_process_cmd): Plug memory leak.
102 Simplify logic, reformat.
104 2002-08-02 Paul Sheer <psheer@icon.co.za>
106 * edit.c (edit_push_action): Fix access to uninitialized memory.
109 2002-08-01 Pavel Roskin <proski@gnu.org>
111 * syntax.c: Remove all references to MAD.
113 * edit.h: Don't include mad.h.
115 2002-07-29 Andrew V. Samoilov <kai@cmail.ru>
117 * edit.h (edit_get_load_file): Mark message for translation.
118 (edit_get_save_file): Ditto.
120 2002-07-20 Pavel Roskin <proski@gnu.org>
122 * syntax.c (apply_rules_going_right): Recheck keyword rules when
123 a keyword is found on the left border of a context.
125 2002-07-14 Pavel Roskin <proski@gnu.org>
127 * syntax.c (edit_get_syntax_color): Return colorpair index, not
128 attribute, when syntax highlighting is disabled. Handle black
129 and white mode separately.
131 * syntax.c (edit_load_syntax): Do nothing in black and white
134 * edit.h [!HAVE_SLANG]: Enable syntax highlighting.
135 * editdraw.c [!HAVE_SLANG]: Respect attributes for color pairs
136 by using MY_COLOR_PAIR macro.
138 * edit.h (struct key_word): Remove unused "bg" field, rename
139 "fg" to "color", since it keeps all color information.
140 * syntax.c (edit_get_syntax_color): Replace "fg" and "bg"
141 arguments with a single argument "color".
142 Adjust all dependencies.
144 * editdraw.c (edit_draw_this_line): Fix setting MOD_ABNORMAL
146 (print_to_widget): Fix displaying non-printable characters with
147 ncurses. Set color for every character even if syntax
148 highlighting is not compiled - it's needed to reset color after
149 non-printable characters.
151 * editdraw.c (edit_status): Use EDITOR_NORMAL_COLOR instead of
153 * syntax.c (edit_get_syntax_color) [!HAVE_SYNTAXH]: Likewise.
155 2002-06-24 Pavel Roskin <proski@gnu.org>
157 * edit.c (check_file_access): Return 1 on all errors, document
158 this behavior. Set edit->delete_file to 1 for newly created
160 (edit_open_file): Don't set edit->delete_file, it's now done in
162 Reported by Saso <saso@bojler.dhs.org>
164 2002-05-13 Andrew V. Samoilov <kai@cmail.ru>
166 * editcmd.c (edit_save_file): Call mc_chown() and mc_chmod()
167 before mc_open() to prevent hangs over ftpfs.
169 * edit.h: Remove open, close, write, read and mkdir definitions.
170 * edit.c: Use mc_open, mc_close, mc_write, mc_read, mc_rename,
171 mc_chmod and mc_chown. Don't cast (char *) to (unsigned long)
172 in pointer arithmetics.
173 * editcmd.c: Likewise.
175 2002-03-25 Andrew V. Samoilov <kai@cmail.ru>
177 * syntax.c (edit_read_syntax_file): Use system wide Syntax
178 Highlighting definitions' file if there is no users one.
180 2002-03-18 Pavel Roskin <proski@gnu.org>
182 * edit.h: Use eregex.h, not regex.h.
183 From Alexander Varakin <avarakin00@hotmail.com>
185 2002-02-27 Andrew V. Samoilov <kai@cmail.ru>
187 * editcmd.c (edit_replace_cmd): Eliminate fin_string
188 and use message() to fix possible buffer overflow.
189 (edit_search_cmd): Likewise.
191 2002-02-18 Andrew V. Samoilov <kai@cmail.ru>
193 * syntax.c (convert): Fix buffer overflow for ".*\" cases.
195 2002-01-22 Pavel Roskin <proski@gnu.org>
197 * editdraw.c (edit_scroll_screen_over_cursor): Do nothing if the
198 edit widget has zero width or height.
200 2002-01-21 Pavel Roskin <proski@gnu.org>
202 * edit.c: Rename DELETE to DELCHAR to avoid macro redefinition
206 2002-01-21 Matthias Urban <murban@cs.uni-magdeburg.de>
208 * edit.c: Add support for CK_Complete_Word event.
209 * editcmddef.h: Likewise.
210 * edit_key_translator.c (cooledit_key_map): Bind Alt-Tab to
212 (emacs_key_map): Likewise.
213 * editcmd.c: Implement word completion.
215 2002-01-21 Pavel Roskin <proski@gnu.org>
217 * editmenu.c (CmdMenuEmacs): Add mail command without shortcut.
218 Users of emacs keys should be able to send mail too.
220 2002-01-15 Andrew V. Samoilov <kai@cmail.ru>
222 * syntax.c (syntax_g_free): New macro to release and NULLify
223 glib allocated memory area(s).
224 (strdup_convert): Rename to ...
225 (convert): ... this. Don't strdup() passed string.
226 (get_args): Use convert() instead of strdup_convert().
227 (free_args): Make it do notning macro.
228 (open_include_file): Eliminate p array. Use glib function to
229 construct error_file_name. Use PATH_SEP instead of '/';
230 (edit_read_syntax_file): Use PATH_SEP_STR.
231 (edit_load_syntax): Use syntax_g_free to release error_file_name.
232 (edit_read_syntax_rules): Likewise.
233 Eliminate c->single_char. It's only written but never read.
235 * edit.h (struct context_rule): Comment out single_char field.
236 It is written once but never read.
238 * edit-widget.h: Use PATH_SEP_STR.
240 2001-12-22 Andrew V. Samoilov <kai@cmail.ru>
242 * editcmd.c (edit_goto_cmd): Use g_free() to release f.
243 (edit_save_file): Use PATH_SEP instead of '/'.
244 Undefine "close" before closing file created by mc_mkstemps.
245 Define close to mc_close() after it - temporary fix.
247 (sprintf_p): Don't cast (char *) to (unsigned long).
249 * syntax.c (read_one_line): Undo last patch - errno is a
250 function on some systems. Check ferror() status before
251 everything else if fgetc() returns EOF.
252 Accept last line without trailing newline.
254 (compare_word_to_right): Don't cast p and q to unsigned long.
255 (apply_rules_going_right): Likewise.
257 2001-12-21 Pavel Roskin <proski@gnu.org>
259 * edit.c (user_menu): Don't move the cursor before and after
261 Reported by Matthias Urban <murban@cs.uni-magdeburg.de>
263 * syntax.c (read_one_line): Clear errno before using it. Don't
264 use the result of fgetc() if errno is EINTR.
266 2001-11-28 Andrew V. Samoilov <kai@cmail.ru>
268 * syntax.c (apply_rules_going_right): Fix crash for lines like
269 \s+ \n lightgray/13 red
271 (read_one_line): Use EOF instead of -1.
272 (get_args): Fix buffer overflow for l without trailing
274 (break_a): New macro.
275 (edit_read_syntax_rules): Use break_a to fix memory leaks.
276 (edit_load_syntax): Eliminate s and use message to prevent
279 * editdraw.c (edit_render): Eliminate f. It's only written
282 2001-11-27 Andrew V. Samoilov <kai@cmail.ru>
284 * editmenu.c (edit_wrap_cmd): Use g_free() on the result
287 2001-11-22 Andrew V. Samoilov <kai@cmail.ru>
289 * editcmd.c (edit_save_file): Use g_free() on the result of
291 (edit_replace_cmd): Fix rare memory leaks.
293 2001-11-19 Andrew V. Samoilov <kai@cmail.ru>
295 * edit.c (edit_renew): Release dir after use.
297 * editcmd.c (edit_replace_dialog): Eliminate tsearch_text,
298 treplace_text and targ_order.
299 (edit_replace_cmd): edit_replace_dialog gives g_malloced
300 strings, so g_strdup/g_free have to be used. Accept only
301 positive pattern number in Scanf search and replace.
302 (edit_save_file): Enable safe save and backups on remote VFS.
304 2001-11-16 Andrew V. Samoilov <kai@cmail.ru>
306 * edit_key_translator.c (cooledit_key_map):
307 Add C-k, CK_Delete_To_Line_End.
309 * edit.c (user_menu): Don't assign block_file twice.
311 2001-11-07 Andrew V. Samoilov <kai@cmail.ru>
313 * edit.c (edit_reload): destroy_dlg g_free()s widget(s), so
314 g_malloc/g_free have to be used.
315 (edit_init): Ditto. Eliminate st.
317 2001-11-05 Andrew V. Samoilov <kai@cmail.ru>
319 * edit.h (edit_execute_cmd): Declare it here.
321 * edit.c: Remove edit_execute_cmd declaration.
322 (edit_execute_cmd): Use edit_print_string instead of edit_printf.
324 * editcmd.c: Remove edit_execute_cmd declaration.
325 (edit_search_dialog): Eliminate tsearch_text.
326 (edit_search_cmd): edit_search_dialog gives g_malloc()ed exp.
327 Use g_strdup/g_free instead of strdup/free.
328 (edit_mail_dialog): quick_dialog use g_strdup, so g_free
330 (edit_load_cmd): input_dialog returns g_malloc(ed) string,
331 so g_free has to be used.
332 (edit_save_block_cmd): Likewise.
333 (edit_insert_file_cmd): Likewise.
334 (edit_sort_cmd): Likewise.
335 (edit_save_as_cmd): Likewise. Memory leak fixed.
337 * bookmark.c (book_mark_clear): Eliminate rend.
338 It's only written but never read.
339 (book_mark_flush): Likewise.
340 (book_mark_inc): Likewise.
341 (book_mark_dec): Likewise.
343 2001-10-23 Pavel Roskin <proski@gnu.org>
345 * edit.c (user_menu): If the error file is missing, treat it as
346 success. Truncate block file unconditionally.
348 2001-10-22 Pavel Roskin <proski@gnu.org>
350 * edit.c: Stop using _EDIT_C definition. Move variable
351 declarations from edit.h, make static or eliminate if possible.
352 Report errors immediately.
354 * editwidget.c (edit): Don't report errors from edit_init(),
355 they are reported in place.
357 2001-10-20 Pavel Roskin <proski@gnu.org>
359 * editcmd.c (sprintf_p): Declare with the printf attribute.
362 * edit.h: Declare edit_printf() with the printf attribute.
364 2001-10-18 Pavel Roskin <proski@gnu.org>
366 * edit.c (check_file_access): Only allow to edit regular files.
367 Use stat() before open() to prevent hangs on pipes, use fstat()
368 afterwards if stat() was unsuccessful.
370 2001-09-17 Pavel Roskin <proski@gnu.org>
372 * edit.h: Don't use macro `stat' - it's already a macro on
373 Solaris 8 with large file support.
374 * editcmd.c: Replace stat() with mc_stat().
377 2001-09-11 Pavel Roskin <proski@gnu.org>
379 * syntax.c (syntax_text): Remove, it's a separate file now.
380 (upgrade_syntax_file): Remove.
381 (edit_read_syntax_file): Use check_for_default().
383 2001-09-08 Pavel Roskin <proski@gnu.org>
385 * edit.h: Remove some useless definitions.
387 2001-09-07 Pavel Roskin <proski@gnu.org>
389 * Makefile.am: Don't define "MIDNIGHT" - it's unused now.
391 * edit.c: Eliminate all code disabled for the text edition.
392 * editcmddef.h: Likewise.
393 * editmenu.c: Likewise.
394 * editwidget.c: Likewise.
395 * syntax.c: Likewise.
396 * wordproc.c: Likewise.
398 * edit-widget.h: Change ~/.cedit to ~/.mc/cedit to keep mcedit
399 files separate from cooledit.
401 * bookmark.c: Eliminate all code disabled for the text edition.
402 * edit-widget.h: Likewise.
403 * editcmd.c: Likewise.
404 * editdraw.c: Likewise.
405 * editoptions.c: Likewise.
407 * edit.h: Eliminate all code disabled for the text edition.
408 Reorder and simplify includes.
411 2001-09-06 Pavel Roskin <proski@gnu.org>
413 * syntax.c (syntax_text): Add PHP support from Cooledit.
415 2001-09-04 Pavel Roskin <proski@gnu.org>
417 * Makefile.am (AM_CFLAGS): Remove CFLAGS, don't use substituted
420 * syntax.c (syntax_text): Remove useless ']' in the Perl and
421 Python rules. Change shell script rule to use more portable
424 * editcmd.c (edit_block_process_cmd): Prepend space to the
425 command to avoid polluting bash history. Document arguments.
426 Fix crash if block is 0 - not used currently.
428 2001-08-26 Pavel Roskin <proski@gnu.org>
430 * Makefile.am: Don't install libedit.a.
432 * Makefile.in: Converted to ...
433 * Makefile.am: ... this.
435 2001-08-24 Pavel Roskin <proski@gnu.org>
437 * Makefile.in (EDITSRC): Add headers.
438 (CPPFLAGS): Remove reference to gtkedit.
440 Copy all necessary files from gtkedit.
441 * Makefile.in (EDITLINKS): Merge with EDITSRC, remove all
444 2001-08-24 Pavel Roskin <proski@gnu.org>
446 * syntax.c (syntax_text): Fix recognizing pdksh and zsh scripts.
448 2001-08-23 Pavel Roskin <proski@gnu.org>
450 * editcmd.c (edit_block_process_cmd): Use execute(), not
451 my_system() to relieve interactive scripts, such as spell
452 checker, from saving and restoring the terminal.
454 2001-08-19 Pavel Roskin <proski@gnu.org>
456 * gtkedit.c: Include <sys/param.h> if present - it should always
457 be included before <glib.h> to avoid redefining MIN and MAX.
458 * editcmd.c [!MIDNIGHT]: Undefine B_ENTER and B_CANCEL before
461 * edit.h: Include <sys/param.h> if present. Include Gtk+
462 headers as system headers.
463 * gtkedit.c: Include Gtk+ headers as system headers.
465 2001-08-18 Pavel Roskin <proski@gnu.org>
467 * syntax.c (syntax_text): Highlight *.pot as PO files.
469 * edit.h [GTK]: Fix definition of edit_message_dialog().
470 * gtkedit.c (gtk_edit_dialog_message): Use "OK" button, not
471 "Cancel", for consistency with the text edition.
473 2001-08-17 Pavel Roskin <proski@gnu.org>
475 * syntax.c (syntax_text): Add support for PO files.
477 2001-08-12 Pavel Roskin <proski@gnu.org>
479 * edit.c: Handle CK_Shell.
480 * editcmddef.h: Define CK_Shell.
481 * editmenu.c (FileMenu): Remove C-o from the "Open file..."
483 (FileMenuEmacs): Likewise.
485 2001-08-06 Andrew V. Samoilov <kai@cmail.ru>
487 * editcmd.c (edit_replace_prompt): Fix menu location calculation.
489 2001-08-01 Pavel Roskin <proski@gnu.org>
491 * editcmd.c (edit_save_file): Temporarily disable safe save
492 and backups on remote VFS because it doesn't work. Use
493 mc_mkstemps() instead of tempnam().
495 2001-07-29 Pavel Roskin <proski@gnu.org>
497 * syntax.c (syntax_text): Add support for S-Lang.
499 2001-07-28 Pavel Roskin <proski@gnu.org>
501 * editcmd.c (menu_save_mode_cmd): Resurrect i18n code lost in
502 the last resync with Cooledit.
503 Reported by David Martin <dmartina@excite.es>
505 * gtkedit.c (gtk_edit_delete_cb): Handler for "delete_event".
508 2001-07-27 Pavel Roskin <proski@gnu.org>
510 * edit.c: Fix include.
512 2001-07-20 Pavel Roskin <proski@gnu.org>
514 * syntax.c (open_include_file) [GTK]: Use mc_home instead of
517 2001-07-19 Pavel Roskin <proski@gnu.org>
519 * editcmd.c (edit_canonicalize_pathname): Don't ever use
520 getwd(), use g_get_current_dir() instead.
522 * editoptions.c (edit_options_dialog): Call edit_load_syntax()
523 if user turned syntax highlighting off to unload the rules.
525 2001-07-17 Pavel Roskin <proski@gnu.org>
527 * edit.h [MIDNIGHT]: Declare wedit.
528 * editmenu.c: Remove wedit declaration.
529 * editoptions.c (edit_options_dialog): Load syntax rules if user
530 turned syntax highlighting on.
531 * syntax.c (edit_load_syntax): Don't load rules if syntax
532 highlighting is disabled.
534 2001-07-13 Pavel Roskin <proski@gnu.org>
536 * editoptions.c (edit_options_dialog): Allow numbers for tab
537 spacing. Reported by mharris@redhat.com.
538 http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=34852
540 * editcmd.c (menu_save_mode_cmd): Give meaningful names to the
541 input fields instead of "i" so that they have separate history.
542 * editoptions.c (edit_options_dialog): Likewise.
544 2001-07-11 Pavel Roskin <proski@gnu.org>
546 * editdraw.c (status_string): Use g_snprintf() instead of
548 From Libor Motyèka <l_motycka@ortex.cz>
550 2001-07-10 Pavel Roskin <proski@gnu.org>
552 * gtkeditkey.c (edit_translate_key): When processing bindings
553 with Alt check that Shift is not pressed - it's handled later.
555 2001-07-05 Pavel Roskin <proski@gnu.org>
557 * editdraw.c: Comment fixes.
559 2001-06-26 Pavel Roskin <proski@gnu.org>
561 * edit-widget.h (editor_widget): Rename `stat' to `stat1' to
562 avoid problems on Solaris with 64-bit file access, when `stat'
563 is a macro. All users adjusted.
564 Reported by Maksym Polyakov <polyama@yahoo.com>.
566 2001-06-25 Pavel Roskin <proski@gnu.org>
568 * gtkedit.c: Remove home_dir - it's declared in main.c.
570 2001-06-15 Pavel Roskin <proski@gnu.org>
572 * editcmd.c (canonicalize_pathname) [GTK]: Rename to ...
573 (edit_canonicalize_pathname): ... this to avoid namespace clash.
574 * edit.h [MIDNIGHT]: Include "src/cmd.h" and "src/user.h".
575 Remove declarations duplicating "src/user.h".
576 [GTK]: Include "src/dialog.h" and "src/util.h".
578 * editmenu.c (edit_wrap_cmd): Fix declaration.
579 (edit_about_cmd): Likewise.
580 * editwidget.c (get_key_state): Likewise.
582 * editcmd.c (edit_quit_cmd): Don't use strcmp on the result of
583 gtk_dialog_cauldron() since it's NULL if the dialog has been
584 closed without using buttons.
586 * edit.c (edit_execute_cmd): Put time format to a variable to
587 avoid gcc warning about Y2K issues with %c in strftime().
589 2001-06-14 Pavel Roskin <proski@gnu.org>
591 * edit.c: Declare cmd_F* static. Comment out cmd_F9.
593 * edit.c: Use indented #error for compatibility with old C
596 2001-06-13 Pavel Roskin <proski@gnu.org>
598 * edit.c (edit_execute_cmd) [GTK]: Disable user menu - it
600 (user_menu) [GTK]: Disable.
601 * gtkedit.c (tb_items): Use complete words. Disable pull-down
604 2001-06-09 Pavel Roskin <proski@gnu.org>
606 * editcmd.c (catstrs): Use interactive_display() without
607 specifying the help file.
608 From Andrew V. Samoilov.
610 2001-06-08 Andrew V. Samoilov <sav@bcs.zp.ua>
612 * editcmd.c [HAVE_CHARSET]: Really include charset.h.
613 * editmenu.c (edit_wrap_cmd): Memory leaking fixed.
615 2001-06-05 Pavel Roskin <proski@gnu.org>
617 * edit.c [HAVE_CHARSET]: Include charsets.h and selcodepage.h.
618 * editcmd.c [HAVE_CHARSET]: Add charset conversion support.
619 * editdraw.c [HAVE_CHARSET]: Likewise.
620 From Andrew V. Samoilov <sav@bcs.zp.ua>
621 and Walery Studennikov <hqsoftware@mail.ru>.
623 2001-06-01 Pavel Roskin <proski@gnu.org>
625 * gtkedit.h: Warning fix - use stricter declarations for
626 destroy_me and destroy_me_user_data.
628 2001-05-31 Pavel Roskin <proski@gnu.org>
630 * Makefile.in: Define HAVE_X and HAVE_GNOME, not just GTK -
631 header files are using them.
633 * editdraw.c (edit_render) [GTK]: Revert previous patch, it
636 2001-05-31 Andrew V. Samoilov <sav@bcs.zp.ua>
638 * editdraw.c (edit_status): Use strcpy (s, ) instead of
641 (set_color) [MIDNIGHT]: Became a macro.
642 (render_edit_text) [defined(MIDNIGHT) || defined(GTK)]: Warning fix.
643 (edit_render) [GTK]: Eliminate win variable.
644 (key_pending) [!GTK]: Warning fix.
646 2001-05-30 Pavel Roskin <proski@gnu.org>
648 * editdraw.c (status_string): Use is_printable(). Declare
649 static. Eliminate intermediate buffer. Use memset() for filling.
650 Print byte as unsigned. Use C notation for hex numbers.
652 * editdraw.c (status_string): Don't print non-printable chars.
653 Better formatting. Print "<EOF>" at the end of file instead of
654 -1. Use snprintf instead of sprintf.
656 2001-05-30 Andrew V. Samoilov <sav@bcs.zp.ua>
658 * syntax.c (open_include_file) [MIDNIGHT]: Don't hardcode location
659 of syntax file(s) with LIBDIR, use mc_home instead.
660 From Ludovic Drolez <ludovic.drolez@freealter.com>.
662 (syntax_text): Use perl.syntax to highlight perl modules (.pm).
664 2001-05-18 Pavel Roskin <proski@gnu.org>
666 * editcmd.c (edit_replace_prompt): Warning fix.
668 2001-02-26 Pavel Roskin <proski@gnu.org>
670 * editcmd.c (edit_delete_macro_cmd) [MIDNIGHT]: Don't use
671 CK_Macro on the argument to edit_delete_macro().
673 * edit.c (edit_init_file): Remove, it's useless. All the
674 necessary files should be created when needed.
675 * edit.h: Remove declaration of edit_init_file().
677 2000-11-01 Andrew V. Samoilov <sav@bcs.zp.ua>
679 * editcmd.c (canonicalize_pathname) [GTK]: memory leaking fixed
681 2000-10-30 Pavel Roskin <proski@gnu.org>
683 * editcmd.c (canonicalize_pathname) [GTK]: Make the argument
685 (edit_split_filename) [GTK]: Make the second argument constant
686 to match the declaration.
688 2000-10-30 Andrew V. Samoilov <sav@bcs.zp.ua>
690 * editcmd.c (edit_save_file): better error handling on writting
692 (edit_sort_cmd): saved sort options proposed in dialog
694 edit.h, editcmd.c: declaration for edit_save_block () added
696 (edit_split_filename): f constified
698 * edit.c (edit_init) [ENABLE_NLS]: option_whole_chars_search
699 expanded by national letters using current locale on first call
701 (edit_file_is_open) [MIDNIGHT]: all occurences and related code
704 (edit_execute_cmd): typo in error message fixed
706 2000-09-30 Pavel Roskin <proski@gnu.org>
708 * libgettext.h: Removed, shouldn't be here.
709 * Makefile.in: Adjusted to remove libgettext.h
711 2000-09-15 Andrew V. Samoilov <sav@bcs.zp.ua>
713 * editcmd.c (edit_delete_macro, edit_(load|save)_macro_cmd): don't
714 translate keywords written to macro file or macro don't work, at least
715 for Cyrillic. Made this as separate commit, so, if it seriously breaks
716 compatibility it's easy to revert it.
718 2000-09-15 Andrew V. Samoilov <sav@bcs.zp.ua>
720 * editcmd.c (edit_save_file): fopen()+fwrite()+fclose() replaced
721 by open()+write()+close() to restore possibility to edit files
722 over Midnight Commander's VFSes
724 (edit_replace_cmd) [MIDNIGHT]: some more right algorithm to calculate
725 menu coordinates used. I don't like if menu hides replaced text.
727 (edit_goto_cmd): Memory leaking fixed when f is empty string
729 2000-09-07 Andrew V. Samoilov <sav@bcs.zp.ua>
731 * edit.c (check_file_access) [MIDNIGHT,GTK]: error message localized;
732 some cosmetics changes to avoid annoying warnings
734 * editcmd.c (edit_save_file): pclose returns 0 on success,
735 file fclose()d when fwrite fails
737 (pipe_mail): malloc () + sprintf () replaced by g_strdup_printf ()
739 * syntax.c (syntax_text): Makefile replaced by [Mm]akefile to cover
740 makefile and GNUmakefile
741 (upgrade_syntax_file): infinitive loop fixed when rule file
742 is outdated but it cannot be unlinked/overwritten
744 2000-08-30 Pavel Roskin <proski@gnu.org>
746 * editwidget.c [!MIDNIGHT]: include xdnd.h
747 * Makefile.in: distribute xdnd.h
749 2000-08-18 Pavel Roskin <proski@gnu.org>
751 * Makefile.in: adjusted list of distributed files.
752 Added rule for rebuilding Makefile
754 2000-08-08 Pavel Roskin <proski@gnu.org>
756 * gtkedit.c [GTK]: don't include mousemark.h
757 * gtkedit.h [GTK]: likewise
759 2000-08-03 Pavel Roskin <proski@gnu.org>
761 * mousemark.c, mousemark.h: removed
762 * Makefile.in: don't distribute mousemark.h
763 * gtkedit.c [MIDNIGHT]: don't include mousemark.h
764 * gtkedit.h [MIDNIGHT]: likewise
766 2000-07-20 Andrew V. Samoilov <sav@bcs.zp.ua>
768 * gtkedit/editcmd.c (edit_save_file): check fclose()s return value
769 to prevent loss of data
770 (edit_block_process_cmd): don't translate empty string
772 * gtkedit/edit.h (edit_get_write_filter, edit_write_stream,
773 edit_init_file): added declarations
775 * edit.c (edit_filters): constified
776 (edit_get_write_filter): filename constified
777 (user_menu): don't translate empty string
779 * syntax.c (syntax_text): constified
780 (upgrade_syntax_file): syntax_line constified, f closed after use