1 2002-09-24 Pavel Roskin <proski@gnu.org>
3 * editmenu.c (edit_drop_menu_cmd): Don't use edit_dlg variable.
5 * edit.c: Remove all references to CR_LF_TRANSLATION.
8 2002-09-23 Pavel Roskin <proski@gnu.org>
10 * editwidget.c (edit): Install handler for DLG_RESIZE.
12 * editwidget.c (edit): Set edit_dlg to NULL after it's
15 * edit.h: Move style definitions ...
16 * editdraw.c: ... here. Multiply them by 256. Remove unused
18 (print_to_widget): Don't divide style by 256. Simplify logic
19 since we only have 4 styles now.
21 * edit.c (edit_move_forward3): Use caret notation for code 127
23 * editdraw.c (edit_draw_this_line): Likewise. Print '.' for
24 other non-printable characters and remove this code from ...
25 (print_to_widget): ... here.
27 * edit.c (edit_move_forward3): Show '\r' as ^M.
28 * editdraw.c (edit_draw_this_line): Likewise. Use MOD_ABNORMAL
30 From Alexander Varakin <avarakin00@hotmail.com>
32 * edit.h: Remove all references to O_TEXT, USE_O_TEXT and
35 * edit.c: Use O_BINARY when opening files.
36 * editcmd.c: Likewise.
37 From Alexander Varakin <avarakin00@hotmail.com>
39 2002-09-20 Pavel Roskin <proski@gnu.org>
41 * editwidget.c (edit_event): Add support for mouse wheel events.
42 * edit.h: Add missing declarations for edit_move_up() and
45 2002-09-20 Andrew V. Samoilov <sav@bcs.zp.ua>
47 * edit.c: Don't initialize static selection and selection_history.
48 * editdraw.c (status_string): Remove font_width argument.
49 (edit_status): Fix calculation to use last column in the
52 2002-09-04 Pavel Roskin <proski@gnu.org>
54 * edit.c (edit_filters): Use gzip, not compress for *.Z files
55 for consistency with other parts of the code (viewer, mc.ext).
57 2002-09-03 Pavel Roskin <proski@gnu.org>
59 * editcmd.c: Recheck and fix all calls to create_dlg().
60 * editwidget.c: Likewise.
62 2002-09-02 Pavel Roskin <proski@gnu.org>
64 * editcmd.c (edit_raw_key_query): Eliminate
67 2002-09-01 Pavel Roskin <proski@gnu.org>
69 * editcmd.c (edit_block_process_cmd): Restore third argument
70 (but make it /dev/null) for compatibility with old scripts.
71 Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
73 2002-08-31 Pavel Roskin <proski@gnu.org>
75 * editwidget.c (edit): Avoid passing an uninitialized color
76 array to create_dlg() - pass NULL instead.
78 2002-08-27 Andrew V. Samoilov <sav@bcs.zp.ua>
80 * editcmd.c (edit_printf): Use g_vsnprintf() instead of sprintf().
82 2002-08-24 Pavel Roskin <proski@gnu.org>
84 * edit-widget.h: Eliminate ERROR_FILE.
85 * edit.c: Remove all references to ERROR_FILE.
86 * editcmd.c (edit_block_process_cmd): Revert to using catstrs(),
87 those strings are freed now. Use system(), not execute() to
88 execute commands. Use open_error_pipe() and close_error_pipe()
89 to keep track of errors.
91 2002-08-22 Pavel Roskin <proski@gnu.org>
93 * editcmd.c: Clean up global variables in the completion code.
95 * editwidget.c: Use new dialog flags.
96 * editcmd.c: Likewise.
97 (edit_completion_dialog): Set DLG_COMPACT for the dialog.
99 * editcmd.c (compl_callback): Use common_dialog_repaint().
101 * editcmd.c (raw_callback): Use standard common_dialog_repaint()
104 2002-08-21 Pavel Roskin <proski@gnu.org>
106 * editwidget.c (edit): Make edit_bar a local variable.
108 2002-08-20 Pavel Roskin <proski@gnu.org>
110 * editcmd.c (freestrs): Set freed strings to NULL.
111 (catstrs): Use g_malloc() and g_free().
113 * editcmd.c (freestrs): New function to clean temporary strings.
114 * edit.c (edit_clean): Call freestrs().
116 2002-08-20 David Martin <dmartina@excite.com>
118 * editmenu.c: Use new create_menu() interface.
120 2002-08-18 Pavel Roskin <proski@gnu.org>
122 * editoptions.c: Make some variables static.
123 * edit.h: Take extern declaratrions from all C files.
125 * editcmd.c (edit_block_process_cmd): Plug memory leak.
126 Simplify logic, reformat.
128 2002-08-02 Paul Sheer <psheer@icon.co.za>
130 * edit.c (edit_push_action): Fix access to uninitialized memory.
133 2002-08-01 Pavel Roskin <proski@gnu.org>
135 * syntax.c: Remove all references to MAD.
137 * edit.h: Don't include mad.h.
139 2002-07-29 Andrew V. Samoilov <kai@cmail.ru>
141 * edit.h (edit_get_load_file): Mark message for translation.
142 (edit_get_save_file): Ditto.
144 2002-07-20 Pavel Roskin <proski@gnu.org>
146 * syntax.c (apply_rules_going_right): Recheck keyword rules when
147 a keyword is found on the left border of a context.
149 2002-07-14 Pavel Roskin <proski@gnu.org>
151 * syntax.c (edit_get_syntax_color): Return colorpair index, not
152 attribute, when syntax highlighting is disabled. Handle black
153 and white mode separately.
155 * syntax.c (edit_load_syntax): Do nothing in black and white
158 * edit.h [!HAVE_SLANG]: Enable syntax highlighting.
159 * editdraw.c [!HAVE_SLANG]: Respect attributes for color pairs
160 by using MY_COLOR_PAIR macro.
162 * edit.h (struct key_word): Remove unused "bg" field, rename
163 "fg" to "color", since it keeps all color information.
164 * syntax.c (edit_get_syntax_color): Replace "fg" and "bg"
165 arguments with a single argument "color".
166 Adjust all dependencies.
168 * editdraw.c (edit_draw_this_line): Fix setting MOD_ABNORMAL
170 (print_to_widget): Fix displaying non-printable characters with
171 ncurses. Set color for every character even if syntax
172 highlighting is not compiled - it's needed to reset color after
173 non-printable characters.
175 * editdraw.c (edit_status): Use EDITOR_NORMAL_COLOR instead of
177 * syntax.c (edit_get_syntax_color) [!HAVE_SYNTAXH]: Likewise.
179 2002-06-24 Pavel Roskin <proski@gnu.org>
181 * edit.c (check_file_access): Return 1 on all errors, document
182 this behavior. Set edit->delete_file to 1 for newly created
184 (edit_open_file): Don't set edit->delete_file, it's now done in
186 Reported by Saso <saso@bojler.dhs.org>
188 2002-05-13 Andrew V. Samoilov <kai@cmail.ru>
190 * editcmd.c (edit_save_file): Call mc_chown() and mc_chmod()
191 before mc_open() to prevent hangs over ftpfs.
193 * edit.h: Remove open, close, write, read and mkdir definitions.
194 * edit.c: Use mc_open, mc_close, mc_write, mc_read, mc_rename,
195 mc_chmod and mc_chown. Don't cast (char *) to (unsigned long)
196 in pointer arithmetics.
197 * editcmd.c: Likewise.
199 2002-03-25 Andrew V. Samoilov <kai@cmail.ru>
201 * syntax.c (edit_read_syntax_file): Use system wide Syntax
202 Highlighting definitions' file if there is no users one.
204 2002-03-18 Pavel Roskin <proski@gnu.org>
206 * edit.h: Use eregex.h, not regex.h.
207 From Alexander Varakin <avarakin00@hotmail.com>
209 2002-02-27 Andrew V. Samoilov <kai@cmail.ru>
211 * editcmd.c (edit_replace_cmd): Eliminate fin_string
212 and use message() to fix possible buffer overflow.
213 (edit_search_cmd): Likewise.
215 2002-02-18 Andrew V. Samoilov <kai@cmail.ru>
217 * syntax.c (convert): Fix buffer overflow for ".*\" cases.
219 2002-01-22 Pavel Roskin <proski@gnu.org>
221 * editdraw.c (edit_scroll_screen_over_cursor): Do nothing if the
222 edit widget has zero width or height.
224 2002-01-21 Pavel Roskin <proski@gnu.org>
226 * edit.c: Rename DELETE to DELCHAR to avoid macro redefinition
230 2002-01-21 Matthias Urban <murban@cs.uni-magdeburg.de>
232 * edit.c: Add support for CK_Complete_Word event.
233 * editcmddef.h: Likewise.
234 * edit_key_translator.c (cooledit_key_map): Bind Alt-Tab to
236 (emacs_key_map): Likewise.
237 * editcmd.c: Implement word completion.
239 2002-01-21 Pavel Roskin <proski@gnu.org>
241 * editmenu.c (CmdMenuEmacs): Add mail command without shortcut.
242 Users of emacs keys should be able to send mail too.
244 2002-01-15 Andrew V. Samoilov <kai@cmail.ru>
246 * syntax.c (syntax_g_free): New macro to release and NULLify
247 glib allocated memory area(s).
248 (strdup_convert): Rename to ...
249 (convert): ... this. Don't strdup() passed string.
250 (get_args): Use convert() instead of strdup_convert().
251 (free_args): Make it do notning macro.
252 (open_include_file): Eliminate p array. Use glib function to
253 construct error_file_name. Use PATH_SEP instead of '/';
254 (edit_read_syntax_file): Use PATH_SEP_STR.
255 (edit_load_syntax): Use syntax_g_free to release error_file_name.
256 (edit_read_syntax_rules): Likewise.
257 Eliminate c->single_char. It's only written but never read.
259 * edit.h (struct context_rule): Comment out single_char field.
260 It is written once but never read.
262 * edit-widget.h: Use PATH_SEP_STR.
264 2001-12-22 Andrew V. Samoilov <kai@cmail.ru>
266 * editcmd.c (edit_goto_cmd): Use g_free() to release f.
267 (edit_save_file): Use PATH_SEP instead of '/'.
268 Undefine "close" before closing file created by mc_mkstemps.
269 Define close to mc_close() after it - temporary fix.
271 (sprintf_p): Don't cast (char *) to (unsigned long).
273 * syntax.c (read_one_line): Undo last patch - errno is a
274 function on some systems. Check ferror() status before
275 everything else if fgetc() returns EOF.
276 Accept last line without trailing newline.
278 (compare_word_to_right): Don't cast p and q to unsigned long.
279 (apply_rules_going_right): Likewise.
281 2001-12-21 Pavel Roskin <proski@gnu.org>
283 * edit.c (user_menu): Don't move the cursor before and after
285 Reported by Matthias Urban <murban@cs.uni-magdeburg.de>
287 * syntax.c (read_one_line): Clear errno before using it. Don't
288 use the result of fgetc() if errno is EINTR.
290 2001-11-28 Andrew V. Samoilov <kai@cmail.ru>
292 * syntax.c (apply_rules_going_right): Fix crash for lines like
293 \s+ \n lightgray/13 red
295 (read_one_line): Use EOF instead of -1.
296 (get_args): Fix buffer overflow for l without trailing
298 (break_a): New macro.
299 (edit_read_syntax_rules): Use break_a to fix memory leaks.
300 (edit_load_syntax): Eliminate s and use message to prevent
303 * editdraw.c (edit_render): Eliminate f. It's only written
306 2001-11-27 Andrew V. Samoilov <kai@cmail.ru>
308 * editmenu.c (edit_wrap_cmd): Use g_free() on the result
311 2001-11-22 Andrew V. Samoilov <kai@cmail.ru>
313 * editcmd.c (edit_save_file): Use g_free() on the result of
315 (edit_replace_cmd): Fix rare memory leaks.
317 2001-11-19 Andrew V. Samoilov <kai@cmail.ru>
319 * edit.c (edit_renew): Release dir after use.
321 * editcmd.c (edit_replace_dialog): Eliminate tsearch_text,
322 treplace_text and targ_order.
323 (edit_replace_cmd): edit_replace_dialog gives g_malloced
324 strings, so g_strdup/g_free have to be used. Accept only
325 positive pattern number in Scanf search and replace.
326 (edit_save_file): Enable safe save and backups on remote VFS.
328 2001-11-16 Andrew V. Samoilov <kai@cmail.ru>
330 * edit_key_translator.c (cooledit_key_map):
331 Add C-k, CK_Delete_To_Line_End.
333 * edit.c (user_menu): Don't assign block_file twice.
335 2001-11-07 Andrew V. Samoilov <kai@cmail.ru>
337 * edit.c (edit_reload): destroy_dlg g_free()s widget(s), so
338 g_malloc/g_free have to be used.
339 (edit_init): Ditto. Eliminate st.
341 2001-11-05 Andrew V. Samoilov <kai@cmail.ru>
343 * edit.h (edit_execute_cmd): Declare it here.
345 * edit.c: Remove edit_execute_cmd declaration.
346 (edit_execute_cmd): Use edit_print_string instead of edit_printf.
348 * editcmd.c: Remove edit_execute_cmd declaration.
349 (edit_search_dialog): Eliminate tsearch_text.
350 (edit_search_cmd): edit_search_dialog gives g_malloc()ed exp.
351 Use g_strdup/g_free instead of strdup/free.
352 (edit_mail_dialog): quick_dialog use g_strdup, so g_free
354 (edit_load_cmd): input_dialog returns g_malloc(ed) string,
355 so g_free has to be used.
356 (edit_save_block_cmd): Likewise.
357 (edit_insert_file_cmd): Likewise.
358 (edit_sort_cmd): Likewise.
359 (edit_save_as_cmd): Likewise. Memory leak fixed.
361 * bookmark.c (book_mark_clear): Eliminate rend.
362 It's only written but never read.
363 (book_mark_flush): Likewise.
364 (book_mark_inc): Likewise.
365 (book_mark_dec): Likewise.
367 2001-10-23 Pavel Roskin <proski@gnu.org>
369 * edit.c (user_menu): If the error file is missing, treat it as
370 success. Truncate block file unconditionally.
372 2001-10-22 Pavel Roskin <proski@gnu.org>
374 * edit.c: Stop using _EDIT_C definition. Move variable
375 declarations from edit.h, make static or eliminate if possible.
376 Report errors immediately.
378 * editwidget.c (edit): Don't report errors from edit_init(),
379 they are reported in place.
381 2001-10-20 Pavel Roskin <proski@gnu.org>
383 * editcmd.c (sprintf_p): Declare with the printf attribute.
386 * edit.h: Declare edit_printf() with the printf attribute.
388 2001-10-18 Pavel Roskin <proski@gnu.org>
390 * edit.c (check_file_access): Only allow to edit regular files.
391 Use stat() before open() to prevent hangs on pipes, use fstat()
392 afterwards if stat() was unsuccessful.
394 2001-09-17 Pavel Roskin <proski@gnu.org>
396 * edit.h: Don't use macro `stat' - it's already a macro on
397 Solaris 8 with large file support.
398 * editcmd.c: Replace stat() with mc_stat().
401 2001-09-11 Pavel Roskin <proski@gnu.org>
403 * syntax.c (syntax_text): Remove, it's a separate file now.
404 (upgrade_syntax_file): Remove.
405 (edit_read_syntax_file): Use check_for_default().
407 2001-09-08 Pavel Roskin <proski@gnu.org>
409 * edit.h: Remove some useless definitions.
411 2001-09-07 Pavel Roskin <proski@gnu.org>
413 * Makefile.am: Don't define "MIDNIGHT" - it's unused now.
415 * edit.c: Eliminate all code disabled for the text edition.
416 * editcmddef.h: Likewise.
417 * editmenu.c: Likewise.
418 * editwidget.c: Likewise.
419 * syntax.c: Likewise.
420 * wordproc.c: Likewise.
422 * edit-widget.h: Change ~/.cedit to ~/.mc/cedit to keep mcedit
423 files separate from cooledit.
425 * bookmark.c: Eliminate all code disabled for the text edition.
426 * edit-widget.h: Likewise.
427 * editcmd.c: Likewise.
428 * editdraw.c: Likewise.
429 * editoptions.c: Likewise.
431 * edit.h: Eliminate all code disabled for the text edition.
432 Reorder and simplify includes.
435 2001-09-06 Pavel Roskin <proski@gnu.org>
437 * syntax.c (syntax_text): Add PHP support from Cooledit.
439 2001-09-04 Pavel Roskin <proski@gnu.org>
441 * Makefile.am (AM_CFLAGS): Remove CFLAGS, don't use substituted
444 * syntax.c (syntax_text): Remove useless ']' in the Perl and
445 Python rules. Change shell script rule to use more portable
448 * editcmd.c (edit_block_process_cmd): Prepend space to the
449 command to avoid polluting bash history. Document arguments.
450 Fix crash if block is 0 - not used currently.
452 2001-08-26 Pavel Roskin <proski@gnu.org>
454 * Makefile.am: Don't install libedit.a.
456 * Makefile.in: Converted to ...
457 * Makefile.am: ... this.
459 2001-08-24 Pavel Roskin <proski@gnu.org>
461 * Makefile.in (EDITSRC): Add headers.
462 (CPPFLAGS): Remove reference to gtkedit.
464 Copy all necessary files from gtkedit.
465 * Makefile.in (EDITLINKS): Merge with EDITSRC, remove all
468 2001-08-24 Pavel Roskin <proski@gnu.org>
470 * syntax.c (syntax_text): Fix recognizing pdksh and zsh scripts.
472 2001-08-23 Pavel Roskin <proski@gnu.org>
474 * editcmd.c (edit_block_process_cmd): Use execute(), not
475 my_system() to relieve interactive scripts, such as spell
476 checker, from saving and restoring the terminal.
478 2001-08-19 Pavel Roskin <proski@gnu.org>
480 * gtkedit.c: Include <sys/param.h> if present - it should always
481 be included before <glib.h> to avoid redefining MIN and MAX.
482 * editcmd.c [!MIDNIGHT]: Undefine B_ENTER and B_CANCEL before
485 * edit.h: Include <sys/param.h> if present. Include Gtk+
486 headers as system headers.
487 * gtkedit.c: Include Gtk+ headers as system headers.
489 2001-08-18 Pavel Roskin <proski@gnu.org>
491 * syntax.c (syntax_text): Highlight *.pot as PO files.
493 * edit.h [GTK]: Fix definition of edit_message_dialog().
494 * gtkedit.c (gtk_edit_dialog_message): Use "OK" button, not
495 "Cancel", for consistency with the text edition.
497 2001-08-17 Pavel Roskin <proski@gnu.org>
499 * syntax.c (syntax_text): Add support for PO files.
501 2001-08-12 Pavel Roskin <proski@gnu.org>
503 * edit.c: Handle CK_Shell.
504 * editcmddef.h: Define CK_Shell.
505 * editmenu.c (FileMenu): Remove C-o from the "Open file..."
507 (FileMenuEmacs): Likewise.
509 2001-08-06 Andrew V. Samoilov <kai@cmail.ru>
511 * editcmd.c (edit_replace_prompt): Fix menu location calculation.
513 2001-08-01 Pavel Roskin <proski@gnu.org>
515 * editcmd.c (edit_save_file): Temporarily disable safe save
516 and backups on remote VFS because it doesn't work. Use
517 mc_mkstemps() instead of tempnam().
519 2001-07-29 Pavel Roskin <proski@gnu.org>
521 * syntax.c (syntax_text): Add support for S-Lang.
523 2001-07-28 Pavel Roskin <proski@gnu.org>
525 * editcmd.c (menu_save_mode_cmd): Resurrect i18n code lost in
526 the last resync with Cooledit.
527 Reported by David Martin <dmartina@excite.es>
529 * gtkedit.c (gtk_edit_delete_cb): Handler for "delete_event".
532 2001-07-27 Pavel Roskin <proski@gnu.org>
534 * edit.c: Fix include.
536 2001-07-20 Pavel Roskin <proski@gnu.org>
538 * syntax.c (open_include_file) [GTK]: Use mc_home instead of
541 2001-07-19 Pavel Roskin <proski@gnu.org>
543 * editcmd.c (edit_canonicalize_pathname): Don't ever use
544 getwd(), use g_get_current_dir() instead.
546 * editoptions.c (edit_options_dialog): Call edit_load_syntax()
547 if user turned syntax highlighting off to unload the rules.
549 2001-07-17 Pavel Roskin <proski@gnu.org>
551 * edit.h [MIDNIGHT]: Declare wedit.
552 * editmenu.c: Remove wedit declaration.
553 * editoptions.c (edit_options_dialog): Load syntax rules if user
554 turned syntax highlighting on.
555 * syntax.c (edit_load_syntax): Don't load rules if syntax
556 highlighting is disabled.
558 2001-07-13 Pavel Roskin <proski@gnu.org>
560 * editoptions.c (edit_options_dialog): Allow numbers for tab
561 spacing. Reported by mharris@redhat.com.
562 http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=34852
564 * editcmd.c (menu_save_mode_cmd): Give meaningful names to the
565 input fields instead of "i" so that they have separate history.
566 * editoptions.c (edit_options_dialog): Likewise.
568 2001-07-11 Pavel Roskin <proski@gnu.org>
570 * editdraw.c (status_string): Use g_snprintf() instead of
572 From Libor Motyèka <l_motycka@ortex.cz>
574 2001-07-10 Pavel Roskin <proski@gnu.org>
576 * gtkeditkey.c (edit_translate_key): When processing bindings
577 with Alt check that Shift is not pressed - it's handled later.
579 2001-07-05 Pavel Roskin <proski@gnu.org>
581 * editdraw.c: Comment fixes.
583 2001-06-26 Pavel Roskin <proski@gnu.org>
585 * edit-widget.h (editor_widget): Rename `stat' to `stat1' to
586 avoid problems on Solaris with 64-bit file access, when `stat'
587 is a macro. All users adjusted.
588 Reported by Maksym Polyakov <polyama@yahoo.com>.
590 2001-06-25 Pavel Roskin <proski@gnu.org>
592 * gtkedit.c: Remove home_dir - it's declared in main.c.
594 2001-06-15 Pavel Roskin <proski@gnu.org>
596 * editcmd.c (canonicalize_pathname) [GTK]: Rename to ...
597 (edit_canonicalize_pathname): ... this to avoid namespace clash.
598 * edit.h [MIDNIGHT]: Include "src/cmd.h" and "src/user.h".
599 Remove declarations duplicating "src/user.h".
600 [GTK]: Include "src/dialog.h" and "src/util.h".
602 * editmenu.c (edit_wrap_cmd): Fix declaration.
603 (edit_about_cmd): Likewise.
604 * editwidget.c (get_key_state): Likewise.
606 * editcmd.c (edit_quit_cmd): Don't use strcmp on the result of
607 gtk_dialog_cauldron() since it's NULL if the dialog has been
608 closed without using buttons.
610 * edit.c (edit_execute_cmd): Put time format to a variable to
611 avoid gcc warning about Y2K issues with %c in strftime().
613 2001-06-14 Pavel Roskin <proski@gnu.org>
615 * edit.c: Declare cmd_F* static. Comment out cmd_F9.
617 * edit.c: Use indented #error for compatibility with old C
620 2001-06-13 Pavel Roskin <proski@gnu.org>
622 * edit.c (edit_execute_cmd) [GTK]: Disable user menu - it
624 (user_menu) [GTK]: Disable.
625 * gtkedit.c (tb_items): Use complete words. Disable pull-down
628 2001-06-09 Pavel Roskin <proski@gnu.org>
630 * editcmd.c (catstrs): Use interactive_display() without
631 specifying the help file.
632 From Andrew V. Samoilov.
634 2001-06-08 Andrew V. Samoilov <sav@bcs.zp.ua>
636 * editcmd.c [HAVE_CHARSET]: Really include charset.h.
637 * editmenu.c (edit_wrap_cmd): Memory leaking fixed.
639 2001-06-05 Pavel Roskin <proski@gnu.org>
641 * edit.c [HAVE_CHARSET]: Include charsets.h and selcodepage.h.
642 * editcmd.c [HAVE_CHARSET]: Add charset conversion support.
643 * editdraw.c [HAVE_CHARSET]: Likewise.
644 From Andrew V. Samoilov <sav@bcs.zp.ua>
645 and Walery Studennikov <hqsoftware@mail.ru>.
647 2001-06-01 Pavel Roskin <proski@gnu.org>
649 * gtkedit.h: Warning fix - use stricter declarations for
650 destroy_me and destroy_me_user_data.
652 2001-05-31 Pavel Roskin <proski@gnu.org>
654 * Makefile.in: Define HAVE_X and HAVE_GNOME, not just GTK -
655 header files are using them.
657 * editdraw.c (edit_render) [GTK]: Revert previous patch, it
660 2001-05-31 Andrew V. Samoilov <sav@bcs.zp.ua>
662 * editdraw.c (edit_status): Use strcpy (s, ) instead of
665 (set_color) [MIDNIGHT]: Became a macro.
666 (render_edit_text) [defined(MIDNIGHT) || defined(GTK)]: Warning fix.
667 (edit_render) [GTK]: Eliminate win variable.
668 (key_pending) [!GTK]: Warning fix.
670 2001-05-30 Pavel Roskin <proski@gnu.org>
672 * editdraw.c (status_string): Use is_printable(). Declare
673 static. Eliminate intermediate buffer. Use memset() for filling.
674 Print byte as unsigned. Use C notation for hex numbers.
676 * editdraw.c (status_string): Don't print non-printable chars.
677 Better formatting. Print "<EOF>" at the end of file instead of
678 -1. Use snprintf instead of sprintf.
680 2001-05-30 Andrew V. Samoilov <sav@bcs.zp.ua>
682 * syntax.c (open_include_file) [MIDNIGHT]: Don't hardcode location
683 of syntax file(s) with LIBDIR, use mc_home instead.
684 From Ludovic Drolez <ludovic.drolez@freealter.com>.
686 (syntax_text): Use perl.syntax to highlight perl modules (.pm).
688 2001-05-18 Pavel Roskin <proski@gnu.org>
690 * editcmd.c (edit_replace_prompt): Warning fix.
692 2001-02-26 Pavel Roskin <proski@gnu.org>
694 * editcmd.c (edit_delete_macro_cmd) [MIDNIGHT]: Don't use
695 CK_Macro on the argument to edit_delete_macro().
697 * edit.c (edit_init_file): Remove, it's useless. All the
698 necessary files should be created when needed.
699 * edit.h: Remove declaration of edit_init_file().
701 2000-11-01 Andrew V. Samoilov <sav@bcs.zp.ua>
703 * editcmd.c (canonicalize_pathname) [GTK]: memory leaking fixed
705 2000-10-30 Pavel Roskin <proski@gnu.org>
707 * editcmd.c (canonicalize_pathname) [GTK]: Make the argument
709 (edit_split_filename) [GTK]: Make the second argument constant
710 to match the declaration.
712 2000-10-30 Andrew V. Samoilov <sav@bcs.zp.ua>
714 * editcmd.c (edit_save_file): better error handling on writting
716 (edit_sort_cmd): saved sort options proposed in dialog
718 edit.h, editcmd.c: declaration for edit_save_block () added
720 (edit_split_filename): f constified
722 * edit.c (edit_init) [ENABLE_NLS]: option_whole_chars_search
723 expanded by national letters using current locale on first call
725 (edit_file_is_open) [MIDNIGHT]: all occurences and related code
728 (edit_execute_cmd): typo in error message fixed
730 2000-09-30 Pavel Roskin <proski@gnu.org>
732 * libgettext.h: Removed, shouldn't be here.
733 * Makefile.in: Adjusted to remove libgettext.h
735 2000-09-15 Andrew V. Samoilov <sav@bcs.zp.ua>
737 * editcmd.c (edit_delete_macro, edit_(load|save)_macro_cmd): don't
738 translate keywords written to macro file or macro don't work, at least
739 for Cyrillic. Made this as separate commit, so, if it seriously breaks
740 compatibility it's easy to revert it.
742 2000-09-15 Andrew V. Samoilov <sav@bcs.zp.ua>
744 * editcmd.c (edit_save_file): fopen()+fwrite()+fclose() replaced
745 by open()+write()+close() to restore possibility to edit files
746 over Midnight Commander's VFSes
748 (edit_replace_cmd) [MIDNIGHT]: some more right algorithm to calculate
749 menu coordinates used. I don't like if menu hides replaced text.
751 (edit_goto_cmd): Memory leaking fixed when f is empty string
753 2000-09-07 Andrew V. Samoilov <sav@bcs.zp.ua>
755 * edit.c (check_file_access) [MIDNIGHT,GTK]: error message localized;
756 some cosmetics changes to avoid annoying warnings
758 * editcmd.c (edit_save_file): pclose returns 0 on success,
759 file fclose()d when fwrite fails
761 (pipe_mail): malloc () + sprintf () replaced by g_strdup_printf ()
763 * syntax.c (syntax_text): Makefile replaced by [Mm]akefile to cover
764 makefile and GNUmakefile
765 (upgrade_syntax_file): infinitive loop fixed when rule file
766 is outdated but it cannot be unlinked/overwritten
768 2000-08-30 Pavel Roskin <proski@gnu.org>
770 * editwidget.c [!MIDNIGHT]: include xdnd.h
771 * Makefile.in: distribute xdnd.h
773 2000-08-18 Pavel Roskin <proski@gnu.org>
775 * Makefile.in: adjusted list of distributed files.
776 Added rule for rebuilding Makefile
778 2000-08-08 Pavel Roskin <proski@gnu.org>
780 * gtkedit.c [GTK]: don't include mousemark.h
781 * gtkedit.h [GTK]: likewise
783 2000-08-03 Pavel Roskin <proski@gnu.org>
785 * mousemark.c, mousemark.h: removed
786 * Makefile.in: don't distribute mousemark.h
787 * gtkedit.c [MIDNIGHT]: don't include mousemark.h
788 * gtkedit.h [MIDNIGHT]: likewise
790 2000-07-20 Andrew V. Samoilov <sav@bcs.zp.ua>
792 * gtkedit/editcmd.c (edit_save_file): check fclose()s return value
793 to prevent loss of data
794 (edit_block_process_cmd): don't translate empty string
796 * gtkedit/edit.h (edit_get_write_filter, edit_write_stream,
797 edit_init_file): added declarations
799 * edit.c (edit_filters): constified
800 (edit_get_write_filter): filename constified
801 (user_menu): don't translate empty string
803 * syntax.c (syntax_text): constified
804 (upgrade_syntax_file): syntax_line constified, f closed after use