1 2002-09-20 Pavel Roskin <proski@gnu.org>
3 * editwidget.c (edit_event): Add support for mouse wheel events.
4 * edit.h: Add missing declarations for edit_move_up() and
7 2002-09-20 Andrew V. Samoilov <sav@bcs.zp.ua>
9 * edit.c: Don't initialize static selection and selection_history.
10 * editdraw.c (status_string): Remove font_width argument.
11 (edit_status): Fix calculation to use last column in the
14 2002-09-04 Pavel Roskin <proski@gnu.org>
16 * edit.c (edit_filters): Use gzip, not compress for *.Z files
17 for consistency with other parts of the code (viewer, mc.ext).
19 2002-09-03 Pavel Roskin <proski@gnu.org>
21 * editcmd.c: Recheck and fix all calls to create_dlg().
22 * editwidget.c: Likewise.
24 2002-09-02 Pavel Roskin <proski@gnu.org>
26 * editcmd.c (edit_raw_key_query): Eliminate
29 2002-09-01 Pavel Roskin <proski@gnu.org>
31 * editcmd.c (edit_block_process_cmd): Restore third argument
32 (but make it /dev/null) for compatibility with old scripts.
33 Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
35 2002-08-31 Pavel Roskin <proski@gnu.org>
37 * editwidget.c (edit): Avoid passing an uninitialized color
38 array to create_dlg() - pass NULL instead.
40 2002-08-27 Andrew V. Samoilov <sav@bcs.zp.ua>
42 * editcmd.c (edit_printf): Use g_vsnprintf() instead of sprintf().
44 2002-08-24 Pavel Roskin <proski@gnu.org>
46 * edit-widget.h: Eliminate ERROR_FILE.
47 * edit.c: Remove all references to ERROR_FILE.
48 * editcmd.c (edit_block_process_cmd): Revert to using catstrs(),
49 those strings are freed now. Use system(), not execute() to
50 execute commands. Use open_error_pipe() and close_error_pipe()
51 to keep track of errors.
53 2002-08-22 Pavel Roskin <proski@gnu.org>
55 * editcmd.c: Clean up global variables in the completion code.
57 * editwidget.c: Use new dialog flags.
58 * editcmd.c: Likewise.
59 (edit_completion_dialog): Set DLG_COMPACT for the dialog.
61 * editcmd.c (compl_callback): Use common_dialog_repaint().
63 * editcmd.c (raw_callback): Use standard common_dialog_repaint()
66 2002-08-21 Pavel Roskin <proski@gnu.org>
68 * editwidget.c (edit): Make edit_bar a local variable.
70 2002-08-20 Pavel Roskin <proski@gnu.org>
72 * editcmd.c (freestrs): Set freed strings to NULL.
73 (catstrs): Use g_malloc() and g_free().
75 * editcmd.c (freestrs): New function to clean temporary strings.
76 * edit.c (edit_clean): Call freestrs().
78 2002-08-20 David Martin <dmartina@excite.com>
80 * editmenu.c: Use new create_menu() interface.
82 2002-08-18 Pavel Roskin <proski@gnu.org>
84 * editoptions.c: Make some variables static.
85 * edit.h: Take extern declaratrions from all C files.
87 * editcmd.c (edit_block_process_cmd): Plug memory leak.
88 Simplify logic, reformat.
90 2002-08-02 Paul Sheer <psheer@icon.co.za>
92 * edit.c (edit_push_action): Fix access to uninitialized memory.
95 2002-08-01 Pavel Roskin <proski@gnu.org>
97 * syntax.c: Remove all references to MAD.
99 * edit.h: Don't include mad.h.
101 2002-07-29 Andrew V. Samoilov <kai@cmail.ru>
103 * edit.h (edit_get_load_file): Mark message for translation.
104 (edit_get_save_file): Ditto.
106 2002-07-20 Pavel Roskin <proski@gnu.org>
108 * syntax.c (apply_rules_going_right): Recheck keyword rules when
109 a keyword is found on the left border of a context.
111 2002-07-14 Pavel Roskin <proski@gnu.org>
113 * syntax.c (edit_get_syntax_color): Return colorpair index, not
114 attribute, when syntax highlighting is disabled. Handle black
115 and white mode separately.
117 * syntax.c (edit_load_syntax): Do nothing in black and white
120 * edit.h [!HAVE_SLANG]: Enable syntax highlighting.
121 * editdraw.c [!HAVE_SLANG]: Respect attributes for color pairs
122 by using MY_COLOR_PAIR macro.
124 * edit.h (struct key_word): Remove unused "bg" field, rename
125 "fg" to "color", since it keeps all color information.
126 * syntax.c (edit_get_syntax_color): Replace "fg" and "bg"
127 arguments with a single argument "color".
128 Adjust all dependencies.
130 * editdraw.c (edit_draw_this_line): Fix setting MOD_ABNORMAL
132 (print_to_widget): Fix displaying non-printable characters with
133 ncurses. Set color for every character even if syntax
134 highlighting is not compiled - it's needed to reset color after
135 non-printable characters.
137 * editdraw.c (edit_status): Use EDITOR_NORMAL_COLOR instead of
139 * syntax.c (edit_get_syntax_color) [!HAVE_SYNTAXH]: Likewise.
141 2002-06-24 Pavel Roskin <proski@gnu.org>
143 * edit.c (check_file_access): Return 1 on all errors, document
144 this behavior. Set edit->delete_file to 1 for newly created
146 (edit_open_file): Don't set edit->delete_file, it's now done in
148 Reported by Saso <saso@bojler.dhs.org>
150 2002-05-13 Andrew V. Samoilov <kai@cmail.ru>
152 * editcmd.c (edit_save_file): Call mc_chown() and mc_chmod()
153 before mc_open() to prevent hangs over ftpfs.
155 * edit.h: Remove open, close, write, read and mkdir definitions.
156 * edit.c: Use mc_open, mc_close, mc_write, mc_read, mc_rename,
157 mc_chmod and mc_chown. Don't cast (char *) to (unsigned long)
158 in pointer arithmetics.
159 * editcmd.c: Likewise.
161 2002-03-25 Andrew V. Samoilov <kai@cmail.ru>
163 * syntax.c (edit_read_syntax_file): Use system wide Syntax
164 Highlighting definitions' file if there is no users one.
166 2002-03-18 Pavel Roskin <proski@gnu.org>
168 * edit.h: Use eregex.h, not regex.h.
169 From Alexander Varakin <avarakin00@hotmail.com>
171 2002-02-27 Andrew V. Samoilov <kai@cmail.ru>
173 * editcmd.c (edit_replace_cmd): Eliminate fin_string
174 and use message() to fix possible buffer overflow.
175 (edit_search_cmd): Likewise.
177 2002-02-18 Andrew V. Samoilov <kai@cmail.ru>
179 * syntax.c (convert): Fix buffer overflow for ".*\" cases.
181 2002-01-22 Pavel Roskin <proski@gnu.org>
183 * editdraw.c (edit_scroll_screen_over_cursor): Do nothing if the
184 edit widget has zero width or height.
186 2002-01-21 Pavel Roskin <proski@gnu.org>
188 * edit.c: Rename DELETE to DELCHAR to avoid macro redefinition
192 2002-01-21 Matthias Urban <murban@cs.uni-magdeburg.de>
194 * edit.c: Add support for CK_Complete_Word event.
195 * editcmddef.h: Likewise.
196 * edit_key_translator.c (cooledit_key_map): Bind Alt-Tab to
198 (emacs_key_map): Likewise.
199 * editcmd.c: Implement word completion.
201 2002-01-21 Pavel Roskin <proski@gnu.org>
203 * editmenu.c (CmdMenuEmacs): Add mail command without shortcut.
204 Users of emacs keys should be able to send mail too.
206 2002-01-15 Andrew V. Samoilov <kai@cmail.ru>
208 * syntax.c (syntax_g_free): New macro to release and NULLify
209 glib allocated memory area(s).
210 (strdup_convert): Rename to ...
211 (convert): ... this. Don't strdup() passed string.
212 (get_args): Use convert() instead of strdup_convert().
213 (free_args): Make it do notning macro.
214 (open_include_file): Eliminate p array. Use glib function to
215 construct error_file_name. Use PATH_SEP instead of '/';
216 (edit_read_syntax_file): Use PATH_SEP_STR.
217 (edit_load_syntax): Use syntax_g_free to release error_file_name.
218 (edit_read_syntax_rules): Likewise.
219 Eliminate c->single_char. It's only written but never read.
221 * edit.h (struct context_rule): Comment out single_char field.
222 It is written once but never read.
224 * edit-widget.h: Use PATH_SEP_STR.
226 2001-12-22 Andrew V. Samoilov <kai@cmail.ru>
228 * editcmd.c (edit_goto_cmd): Use g_free() to release f.
229 (edit_save_file): Use PATH_SEP instead of '/'.
230 Undefine "close" before closing file created by mc_mkstemps.
231 Define close to mc_close() after it - temporary fix.
233 (sprintf_p): Don't cast (char *) to (unsigned long).
235 * syntax.c (read_one_line): Undo last patch - errno is a
236 function on some systems. Check ferror() status before
237 everything else if fgetc() returns EOF.
238 Accept last line without trailing newline.
240 (compare_word_to_right): Don't cast p and q to unsigned long.
241 (apply_rules_going_right): Likewise.
243 2001-12-21 Pavel Roskin <proski@gnu.org>
245 * edit.c (user_menu): Don't move the cursor before and after
247 Reported by Matthias Urban <murban@cs.uni-magdeburg.de>
249 * syntax.c (read_one_line): Clear errno before using it. Don't
250 use the result of fgetc() if errno is EINTR.
252 2001-11-28 Andrew V. Samoilov <kai@cmail.ru>
254 * syntax.c (apply_rules_going_right): Fix crash for lines like
255 \s+ \n lightgray/13 red
257 (read_one_line): Use EOF instead of -1.
258 (get_args): Fix buffer overflow for l without trailing
260 (break_a): New macro.
261 (edit_read_syntax_rules): Use break_a to fix memory leaks.
262 (edit_load_syntax): Eliminate s and use message to prevent
265 * editdraw.c (edit_render): Eliminate f. It's only written
268 2001-11-27 Andrew V. Samoilov <kai@cmail.ru>
270 * editmenu.c (edit_wrap_cmd): Use g_free() on the result
273 2001-11-22 Andrew V. Samoilov <kai@cmail.ru>
275 * editcmd.c (edit_save_file): Use g_free() on the result of
277 (edit_replace_cmd): Fix rare memory leaks.
279 2001-11-19 Andrew V. Samoilov <kai@cmail.ru>
281 * edit.c (edit_renew): Release dir after use.
283 * editcmd.c (edit_replace_dialog): Eliminate tsearch_text,
284 treplace_text and targ_order.
285 (edit_replace_cmd): edit_replace_dialog gives g_malloced
286 strings, so g_strdup/g_free have to be used. Accept only
287 positive pattern number in Scanf search and replace.
288 (edit_save_file): Enable safe save and backups on remote VFS.
290 2001-11-16 Andrew V. Samoilov <kai@cmail.ru>
292 * edit_key_translator.c (cooledit_key_map):
293 Add C-k, CK_Delete_To_Line_End.
295 * edit.c (user_menu): Don't assign block_file twice.
297 2001-11-07 Andrew V. Samoilov <kai@cmail.ru>
299 * edit.c (edit_reload): destroy_dlg g_free()s widget(s), so
300 g_malloc/g_free have to be used.
301 (edit_init): Ditto. Eliminate st.
303 2001-11-05 Andrew V. Samoilov <kai@cmail.ru>
305 * edit.h (edit_execute_cmd): Declare it here.
307 * edit.c: Remove edit_execute_cmd declaration.
308 (edit_execute_cmd): Use edit_print_string instead of edit_printf.
310 * editcmd.c: Remove edit_execute_cmd declaration.
311 (edit_search_dialog): Eliminate tsearch_text.
312 (edit_search_cmd): edit_search_dialog gives g_malloc()ed exp.
313 Use g_strdup/g_free instead of strdup/free.
314 (edit_mail_dialog): quick_dialog use g_strdup, so g_free
316 (edit_load_cmd): input_dialog returns g_malloc(ed) string,
317 so g_free has to be used.
318 (edit_save_block_cmd): Likewise.
319 (edit_insert_file_cmd): Likewise.
320 (edit_sort_cmd): Likewise.
321 (edit_save_as_cmd): Likewise. Memory leak fixed.
323 * bookmark.c (book_mark_clear): Eliminate rend.
324 It's only written but never read.
325 (book_mark_flush): Likewise.
326 (book_mark_inc): Likewise.
327 (book_mark_dec): Likewise.
329 2001-10-23 Pavel Roskin <proski@gnu.org>
331 * edit.c (user_menu): If the error file is missing, treat it as
332 success. Truncate block file unconditionally.
334 2001-10-22 Pavel Roskin <proski@gnu.org>
336 * edit.c: Stop using _EDIT_C definition. Move variable
337 declarations from edit.h, make static or eliminate if possible.
338 Report errors immediately.
340 * editwidget.c (edit): Don't report errors from edit_init(),
341 they are reported in place.
343 2001-10-20 Pavel Roskin <proski@gnu.org>
345 * editcmd.c (sprintf_p): Declare with the printf attribute.
348 * edit.h: Declare edit_printf() with the printf attribute.
350 2001-10-18 Pavel Roskin <proski@gnu.org>
352 * edit.c (check_file_access): Only allow to edit regular files.
353 Use stat() before open() to prevent hangs on pipes, use fstat()
354 afterwards if stat() was unsuccessful.
356 2001-09-17 Pavel Roskin <proski@gnu.org>
358 * edit.h: Don't use macro `stat' - it's already a macro on
359 Solaris 8 with large file support.
360 * editcmd.c: Replace stat() with mc_stat().
363 2001-09-11 Pavel Roskin <proski@gnu.org>
365 * syntax.c (syntax_text): Remove, it's a separate file now.
366 (upgrade_syntax_file): Remove.
367 (edit_read_syntax_file): Use check_for_default().
369 2001-09-08 Pavel Roskin <proski@gnu.org>
371 * edit.h: Remove some useless definitions.
373 2001-09-07 Pavel Roskin <proski@gnu.org>
375 * Makefile.am: Don't define "MIDNIGHT" - it's unused now.
377 * edit.c: Eliminate all code disabled for the text edition.
378 * editcmddef.h: Likewise.
379 * editmenu.c: Likewise.
380 * editwidget.c: Likewise.
381 * syntax.c: Likewise.
382 * wordproc.c: Likewise.
384 * edit-widget.h: Change ~/.cedit to ~/.mc/cedit to keep mcedit
385 files separate from cooledit.
387 * bookmark.c: Eliminate all code disabled for the text edition.
388 * edit-widget.h: Likewise.
389 * editcmd.c: Likewise.
390 * editdraw.c: Likewise.
391 * editoptions.c: Likewise.
393 * edit.h: Eliminate all code disabled for the text edition.
394 Reorder and simplify includes.
397 2001-09-06 Pavel Roskin <proski@gnu.org>
399 * syntax.c (syntax_text): Add PHP support from Cooledit.
401 2001-09-04 Pavel Roskin <proski@gnu.org>
403 * Makefile.am (AM_CFLAGS): Remove CFLAGS, don't use substituted
406 * syntax.c (syntax_text): Remove useless ']' in the Perl and
407 Python rules. Change shell script rule to use more portable
410 * editcmd.c (edit_block_process_cmd): Prepend space to the
411 command to avoid polluting bash history. Document arguments.
412 Fix crash if block is 0 - not used currently.
414 2001-08-26 Pavel Roskin <proski@gnu.org>
416 * Makefile.am: Don't install libedit.a.
418 * Makefile.in: Converted to ...
419 * Makefile.am: ... this.
421 2001-08-24 Pavel Roskin <proski@gnu.org>
423 * Makefile.in (EDITSRC): Add headers.
424 (CPPFLAGS): Remove reference to gtkedit.
426 Copy all necessary files from gtkedit.
427 * Makefile.in (EDITLINKS): Merge with EDITSRC, remove all
430 2001-08-24 Pavel Roskin <proski@gnu.org>
432 * syntax.c (syntax_text): Fix recognizing pdksh and zsh scripts.
434 2001-08-23 Pavel Roskin <proski@gnu.org>
436 * editcmd.c (edit_block_process_cmd): Use execute(), not
437 my_system() to relieve interactive scripts, such as spell
438 checker, from saving and restoring the terminal.
440 2001-08-19 Pavel Roskin <proski@gnu.org>
442 * gtkedit.c: Include <sys/param.h> if present - it should always
443 be included before <glib.h> to avoid redefining MIN and MAX.
444 * editcmd.c [!MIDNIGHT]: Undefine B_ENTER and B_CANCEL before
447 * edit.h: Include <sys/param.h> if present. Include Gtk+
448 headers as system headers.
449 * gtkedit.c: Include Gtk+ headers as system headers.
451 2001-08-18 Pavel Roskin <proski@gnu.org>
453 * syntax.c (syntax_text): Highlight *.pot as PO files.
455 * edit.h [GTK]: Fix definition of edit_message_dialog().
456 * gtkedit.c (gtk_edit_dialog_message): Use "OK" button, not
457 "Cancel", for consistency with the text edition.
459 2001-08-17 Pavel Roskin <proski@gnu.org>
461 * syntax.c (syntax_text): Add support for PO files.
463 2001-08-12 Pavel Roskin <proski@gnu.org>
465 * edit.c: Handle CK_Shell.
466 * editcmddef.h: Define CK_Shell.
467 * editmenu.c (FileMenu): Remove C-o from the "Open file..."
469 (FileMenuEmacs): Likewise.
471 2001-08-06 Andrew V. Samoilov <kai@cmail.ru>
473 * editcmd.c (edit_replace_prompt): Fix menu location calculation.
475 2001-08-01 Pavel Roskin <proski@gnu.org>
477 * editcmd.c (edit_save_file): Temporarily disable safe save
478 and backups on remote VFS because it doesn't work. Use
479 mc_mkstemps() instead of tempnam().
481 2001-07-29 Pavel Roskin <proski@gnu.org>
483 * syntax.c (syntax_text): Add support for S-Lang.
485 2001-07-28 Pavel Roskin <proski@gnu.org>
487 * editcmd.c (menu_save_mode_cmd): Resurrect i18n code lost in
488 the last resync with Cooledit.
489 Reported by David Martin <dmartina@excite.es>
491 * gtkedit.c (gtk_edit_delete_cb): Handler for "delete_event".
494 2001-07-27 Pavel Roskin <proski@gnu.org>
496 * edit.c: Fix include.
498 2001-07-20 Pavel Roskin <proski@gnu.org>
500 * syntax.c (open_include_file) [GTK]: Use mc_home instead of
503 2001-07-19 Pavel Roskin <proski@gnu.org>
505 * editcmd.c (edit_canonicalize_pathname): Don't ever use
506 getwd(), use g_get_current_dir() instead.
508 * editoptions.c (edit_options_dialog): Call edit_load_syntax()
509 if user turned syntax highlighting off to unload the rules.
511 2001-07-17 Pavel Roskin <proski@gnu.org>
513 * edit.h [MIDNIGHT]: Declare wedit.
514 * editmenu.c: Remove wedit declaration.
515 * editoptions.c (edit_options_dialog): Load syntax rules if user
516 turned syntax highlighting on.
517 * syntax.c (edit_load_syntax): Don't load rules if syntax
518 highlighting is disabled.
520 2001-07-13 Pavel Roskin <proski@gnu.org>
522 * editoptions.c (edit_options_dialog): Allow numbers for tab
523 spacing. Reported by mharris@redhat.com.
524 http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=34852
526 * editcmd.c (menu_save_mode_cmd): Give meaningful names to the
527 input fields instead of "i" so that they have separate history.
528 * editoptions.c (edit_options_dialog): Likewise.
530 2001-07-11 Pavel Roskin <proski@gnu.org>
532 * editdraw.c (status_string): Use g_snprintf() instead of
534 From Libor Motyèka <l_motycka@ortex.cz>
536 2001-07-10 Pavel Roskin <proski@gnu.org>
538 * gtkeditkey.c (edit_translate_key): When processing bindings
539 with Alt check that Shift is not pressed - it's handled later.
541 2001-07-05 Pavel Roskin <proski@gnu.org>
543 * editdraw.c: Comment fixes.
545 2001-06-26 Pavel Roskin <proski@gnu.org>
547 * edit-widget.h (editor_widget): Rename `stat' to `stat1' to
548 avoid problems on Solaris with 64-bit file access, when `stat'
549 is a macro. All users adjusted.
550 Reported by Maksym Polyakov <polyama@yahoo.com>.
552 2001-06-25 Pavel Roskin <proski@gnu.org>
554 * gtkedit.c: Remove home_dir - it's declared in main.c.
556 2001-06-15 Pavel Roskin <proski@gnu.org>
558 * editcmd.c (canonicalize_pathname) [GTK]: Rename to ...
559 (edit_canonicalize_pathname): ... this to avoid namespace clash.
560 * edit.h [MIDNIGHT]: Include "src/cmd.h" and "src/user.h".
561 Remove declarations duplicating "src/user.h".
562 [GTK]: Include "src/dialog.h" and "src/util.h".
564 * editmenu.c (edit_wrap_cmd): Fix declaration.
565 (edit_about_cmd): Likewise.
566 * editwidget.c (get_key_state): Likewise.
568 * editcmd.c (edit_quit_cmd): Don't use strcmp on the result of
569 gtk_dialog_cauldron() since it's NULL if the dialog has been
570 closed without using buttons.
572 * edit.c (edit_execute_cmd): Put time format to a variable to
573 avoid gcc warning about Y2K issues with %c in strftime().
575 2001-06-14 Pavel Roskin <proski@gnu.org>
577 * edit.c: Declare cmd_F* static. Comment out cmd_F9.
579 * edit.c: Use indented #error for compatibility with old C
582 2001-06-13 Pavel Roskin <proski@gnu.org>
584 * edit.c (edit_execute_cmd) [GTK]: Disable user menu - it
586 (user_menu) [GTK]: Disable.
587 * gtkedit.c (tb_items): Use complete words. Disable pull-down
590 2001-06-09 Pavel Roskin <proski@gnu.org>
592 * editcmd.c (catstrs): Use interactive_display() without
593 specifying the help file.
594 From Andrew V. Samoilov.
596 2001-06-08 Andrew V. Samoilov <sav@bcs.zp.ua>
598 * editcmd.c [HAVE_CHARSET]: Really include charset.h.
599 * editmenu.c (edit_wrap_cmd): Memory leaking fixed.
601 2001-06-05 Pavel Roskin <proski@gnu.org>
603 * edit.c [HAVE_CHARSET]: Include charsets.h and selcodepage.h.
604 * editcmd.c [HAVE_CHARSET]: Add charset conversion support.
605 * editdraw.c [HAVE_CHARSET]: Likewise.
606 From Andrew V. Samoilov <sav@bcs.zp.ua>
607 and Walery Studennikov <hqsoftware@mail.ru>.
609 2001-06-01 Pavel Roskin <proski@gnu.org>
611 * gtkedit.h: Warning fix - use stricter declarations for
612 destroy_me and destroy_me_user_data.
614 2001-05-31 Pavel Roskin <proski@gnu.org>
616 * Makefile.in: Define HAVE_X and HAVE_GNOME, not just GTK -
617 header files are using them.
619 * editdraw.c (edit_render) [GTK]: Revert previous patch, it
622 2001-05-31 Andrew V. Samoilov <sav@bcs.zp.ua>
624 * editdraw.c (edit_status): Use strcpy (s, ) instead of
627 (set_color) [MIDNIGHT]: Became a macro.
628 (render_edit_text) [defined(MIDNIGHT) || defined(GTK)]: Warning fix.
629 (edit_render) [GTK]: Eliminate win variable.
630 (key_pending) [!GTK]: Warning fix.
632 2001-05-30 Pavel Roskin <proski@gnu.org>
634 * editdraw.c (status_string): Use is_printable(). Declare
635 static. Eliminate intermediate buffer. Use memset() for filling.
636 Print byte as unsigned. Use C notation for hex numbers.
638 * editdraw.c (status_string): Don't print non-printable chars.
639 Better formatting. Print "<EOF>" at the end of file instead of
640 -1. Use snprintf instead of sprintf.
642 2001-05-30 Andrew V. Samoilov <sav@bcs.zp.ua>
644 * syntax.c (open_include_file) [MIDNIGHT]: Don't hardcode location
645 of syntax file(s) with LIBDIR, use mc_home instead.
646 From Ludovic Drolez <ludovic.drolez@freealter.com>.
648 (syntax_text): Use perl.syntax to highlight perl modules (.pm).
650 2001-05-18 Pavel Roskin <proski@gnu.org>
652 * editcmd.c (edit_replace_prompt): Warning fix.
654 2001-02-26 Pavel Roskin <proski@gnu.org>
656 * editcmd.c (edit_delete_macro_cmd) [MIDNIGHT]: Don't use
657 CK_Macro on the argument to edit_delete_macro().
659 * edit.c (edit_init_file): Remove, it's useless. All the
660 necessary files should be created when needed.
661 * edit.h: Remove declaration of edit_init_file().
663 2000-11-01 Andrew V. Samoilov <sav@bcs.zp.ua>
665 * editcmd.c (canonicalize_pathname) [GTK]: memory leaking fixed
667 2000-10-30 Pavel Roskin <proski@gnu.org>
669 * editcmd.c (canonicalize_pathname) [GTK]: Make the argument
671 (edit_split_filename) [GTK]: Make the second argument constant
672 to match the declaration.
674 2000-10-30 Andrew V. Samoilov <sav@bcs.zp.ua>
676 * editcmd.c (edit_save_file): better error handling on writting
678 (edit_sort_cmd): saved sort options proposed in dialog
680 edit.h, editcmd.c: declaration for edit_save_block () added
682 (edit_split_filename): f constified
684 * edit.c (edit_init) [ENABLE_NLS]: option_whole_chars_search
685 expanded by national letters using current locale on first call
687 (edit_file_is_open) [MIDNIGHT]: all occurences and related code
690 (edit_execute_cmd): typo in error message fixed
692 2000-09-30 Pavel Roskin <proski@gnu.org>
694 * libgettext.h: Removed, shouldn't be here.
695 * Makefile.in: Adjusted to remove libgettext.h
697 2000-09-15 Andrew V. Samoilov <sav@bcs.zp.ua>
699 * editcmd.c (edit_delete_macro, edit_(load|save)_macro_cmd): don't
700 translate keywords written to macro file or macro don't work, at least
701 for Cyrillic. Made this as separate commit, so, if it seriously breaks
702 compatibility it's easy to revert it.
704 2000-09-15 Andrew V. Samoilov <sav@bcs.zp.ua>
706 * editcmd.c (edit_save_file): fopen()+fwrite()+fclose() replaced
707 by open()+write()+close() to restore possibility to edit files
708 over Midnight Commander's VFSes
710 (edit_replace_cmd) [MIDNIGHT]: some more right algorithm to calculate
711 menu coordinates used. I don't like if menu hides replaced text.
713 (edit_goto_cmd): Memory leaking fixed when f is empty string
715 2000-09-07 Andrew V. Samoilov <sav@bcs.zp.ua>
717 * edit.c (check_file_access) [MIDNIGHT,GTK]: error message localized;
718 some cosmetics changes to avoid annoying warnings
720 * editcmd.c (edit_save_file): pclose returns 0 on success,
721 file fclose()d when fwrite fails
723 (pipe_mail): malloc () + sprintf () replaced by g_strdup_printf ()
725 * syntax.c (syntax_text): Makefile replaced by [Mm]akefile to cover
726 makefile and GNUmakefile
727 (upgrade_syntax_file): infinitive loop fixed when rule file
728 is outdated but it cannot be unlinked/overwritten
730 2000-08-30 Pavel Roskin <proski@gnu.org>
732 * editwidget.c [!MIDNIGHT]: include xdnd.h
733 * Makefile.in: distribute xdnd.h
735 2000-08-18 Pavel Roskin <proski@gnu.org>
737 * Makefile.in: adjusted list of distributed files.
738 Added rule for rebuilding Makefile
740 2000-08-08 Pavel Roskin <proski@gnu.org>
742 * gtkedit.c [GTK]: don't include mousemark.h
743 * gtkedit.h [GTK]: likewise
745 2000-08-03 Pavel Roskin <proski@gnu.org>
747 * mousemark.c, mousemark.h: removed
748 * Makefile.in: don't distribute mousemark.h
749 * gtkedit.c [MIDNIGHT]: don't include mousemark.h
750 * gtkedit.h [MIDNIGHT]: likewise
752 2000-07-20 Andrew V. Samoilov <sav@bcs.zp.ua>
754 * gtkedit/editcmd.c (edit_save_file): check fclose()s return value
755 to prevent loss of data
756 (edit_block_process_cmd): don't translate empty string
758 * gtkedit/edit.h (edit_get_write_filter, edit_write_stream,
759 edit_init_file): added declarations
761 * edit.c (edit_filters): constified
762 (edit_get_write_filter): filename constified
763 (user_menu): don't translate empty string
765 * syntax.c (syntax_text): constified
766 (upgrade_syntax_file): syntax_line constified, f closed after use