* textconf.c (features): Remove "edition", minor fixes.
[midnight-commander.git] / edit / ChangeLog
blob1c294b95bab893fce77c1e14f14b50a560d7f336
1 2001-09-11  Pavel Roskin  <proski@gnu.org>
3         * syntax.c (syntax_text): Remove, it's a separate file now.
4         (upgrade_syntax_file): Remove.
5         (edit_read_syntax_file): Use check_for_default().
7 2001-09-08  Pavel Roskin  <proski@gnu.org>
9         * edit.h: Remove some useless definitions.
11 2001-09-07  Pavel Roskin  <proski@gnu.org>
13         * Makefile.am: Don't define "MIDNIGHT" - it's unused now.
15         * edit.c: Eliminate all code disabled for the text edition.
16         * editcmddef.h: Likewise.
17         * editmenu.c: Likewise.
18         * editwidget.c: Likewise.
19         * syntax.c: Likewise.
20         * wordproc.c: Likewise.
22         * edit-widget.h: Change ~/.cedit to ~/.mc/cedit to keep mcedit
23         files separate from cooledit.
25         * bookmark.c: Eliminate all code disabled for the text edition.
26         * edit-widget.h: Likewise.
27         * editcmd.c: Likewise.
28         * editdraw.c: Likewise.
29         * editoptions.c: Likewise.
31         * edit.h: Eliminate all code disabled for the text edition.
32         Reorder and simplify includes.
33         * edit.c: Likewise.
35 2001-09-06  Pavel Roskin  <proski@gnu.org>
37         * syntax.c (syntax_text): Add PHP support from Cooledit.
39 2001-09-04  Pavel Roskin  <proski@gnu.org>
41         * Makefile.am (AM_CFLAGS): Remove CFLAGS, don't use substituted
42         values directly.
44         * syntax.c (syntax_text): Remove useless ']' in the Perl and
45         Python rules.  Change shell script rule to use more portable
46         regular expression.
48         * editcmd.c (edit_block_process_cmd): Prepend space to the
49         command to avoid polluting bash history.  Document arguments.
50         Fix crash if block is 0 - not used currently.
52 2001-08-26  Pavel Roskin  <proski@gnu.org>
54         * Makefile.am: Don't install libedit.a.
56         * Makefile.in: Converted to ...
57         * Makefile.am: ... this.
59 2001-08-24  Pavel Roskin  <proski@gnu.org>
61         * Makefile.in (EDITSRC): Add headers.
62         (CPPFLAGS): Remove reference to gtkedit.
64         Copy all necessary files from gtkedit.
65         * Makefile.in (EDITLINKS): Merge with EDITSRC, remove all
66         references.
68 2001-08-24  Pavel Roskin  <proski@gnu.org>
70         * syntax.c (syntax_text): Fix recognizing pdksh and zsh scripts.
72 2001-08-23  Pavel Roskin  <proski@gnu.org>
74         * editcmd.c (edit_block_process_cmd): Use execute(), not
75         my_system() to relieve interactive scripts, such as spell
76         checker, from saving and restoring the terminal.
78 2001-08-19  Pavel Roskin  <proski@gnu.org>
80         * gtkedit.c: Include <sys/param.h> if present - it should always
81         be included before <glib.h> to avoid redefining MIN and MAX.
82         * editcmd.c [!MIDNIGHT]: Undefine B_ENTER and B_CANCEL before
83         redefining them.
85         * edit.h: Include <sys/param.h> if present.  Include Gtk+
86         headers as system headers.
87         * gtkedit.c: Include Gtk+ headers as system headers.
89 2001-08-18  Pavel Roskin  <proski@gnu.org>
91         * syntax.c (syntax_text): Highlight *.pot as PO files.
93         * edit.h [GTK]: Fix definition of edit_message_dialog().
94         * gtkedit.c (gtk_edit_dialog_message): Use "OK" button, not
95         "Cancel", for consistency with the text edition.
97 2001-08-17  Pavel Roskin  <proski@gnu.org>
99         * syntax.c (syntax_text): Add support for PO files.
101 2001-08-12  Pavel Roskin  <proski@gnu.org>
103         * edit.c: Handle CK_Shell.
104         * editcmddef.h: Define CK_Shell.
105         * editmenu.c (FileMenu): Remove C-o from the "Open file..."
106         item.
107         (FileMenuEmacs): Likewise.
109 2001-08-06  Andrew V. Samoilov  <kai@cmail.ru>
111         * editcmd.c (edit_replace_prompt): Fix menu location calculation.
113 2001-08-01  Pavel Roskin  <proski@gnu.org>
115         * editcmd.c (edit_save_file): Temporarily disable safe save
116         and backups on remote VFS because it doesn't work.  Use
117         mc_mkstemps() instead of tempnam().
119 2001-07-29  Pavel Roskin  <proski@gnu.org>
121         * syntax.c (syntax_text): Add support for S-Lang.
123 2001-07-28  Pavel Roskin  <proski@gnu.org>
125         * editcmd.c (menu_save_mode_cmd): Resurrect i18n code lost in
126         the last resync with Cooledit.
127         Reported by David Martin <dmartina@excite.es>
129         * gtkedit.c (gtk_edit_delete_cb): Handler for "delete_event".
130         (edit): Connect it.
132 2001-07-27  Pavel Roskin  <proski@gnu.org>
134         * edit.c: Fix include.
136 2001-07-20  Pavel Roskin  <proski@gnu.org>
138         * syntax.c (open_include_file) [GTK]: Use mc_home instead of
139         LIBDIR.
141 2001-07-19  Pavel Roskin  <proski@gnu.org>
143         * editcmd.c (edit_canonicalize_pathname): Don't ever use
144         getwd(), use g_get_current_dir() instead.
146         * editoptions.c (edit_options_dialog): Call edit_load_syntax()
147         if user turned syntax highlighting off to unload the rules.
149 2001-07-17  Pavel Roskin  <proski@gnu.org>
151         * edit.h [MIDNIGHT]: Declare wedit.
152         * editmenu.c: Remove wedit declaration.
153         * editoptions.c (edit_options_dialog): Load syntax rules if user
154         turned syntax highlighting on.
155         * syntax.c (edit_load_syntax): Don't load rules if syntax
156         highlighting is disabled.
158 2001-07-13  Pavel Roskin  <proski@gnu.org>
160         * editoptions.c (edit_options_dialog): Allow numbers for tab
161         spacing. Reported by mharris@redhat.com.
162         http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=34852
164         * editcmd.c (menu_save_mode_cmd): Give meaningful names to the
165         input fields instead of "i" so that they have separate history.
166         * editoptions.c (edit_options_dialog): Likewise.
168 2001-07-11  Pavel Roskin  <proski@gnu.org>
170         * editdraw.c (status_string): Use g_snprintf() instead of
171         snprintf().
172         From Libor Motyèka <l_motycka@ortex.cz>
174 2001-07-10  Pavel Roskin  <proski@gnu.org>
176         * gtkeditkey.c (edit_translate_key): When processing bindings
177         with Alt check that Shift is not pressed - it's handled later.
179 2001-07-05  Pavel Roskin  <proski@gnu.org>
181         * editdraw.c: Comment fixes.
183 2001-06-26  Pavel Roskin  <proski@gnu.org>
185         * edit-widget.h (editor_widget): Rename `stat' to `stat1' to
186         avoid problems on Solaris with 64-bit file access, when `stat'
187         is a macro. All users adjusted.
188         Reported by Maksym Polyakov <polyama@yahoo.com>.
190 2001-06-25  Pavel Roskin  <proski@gnu.org>
192         * gtkedit.c: Remove home_dir - it's declared in main.c.
194 2001-06-15  Pavel Roskin  <proski@gnu.org>
196         * editcmd.c (canonicalize_pathname) [GTK]: Rename to ...
197         (edit_canonicalize_pathname): ... this to avoid namespace clash.
198         * edit.h [MIDNIGHT]: Include "src/cmd.h" and "src/user.h".
199         Remove declarations duplicating "src/user.h".
200         [GTK]: Include "src/dialog.h" and "src/util.h".
202         * editmenu.c (edit_wrap_cmd): Fix declaration.
203         (edit_about_cmd): Likewise.
204         * editwidget.c (get_key_state): Likewise.
206         * editcmd.c (edit_quit_cmd): Don't use strcmp on the result of
207         gtk_dialog_cauldron() since it's NULL if the dialog has been
208         closed without using buttons.
210         * edit.c (edit_execute_cmd): Put time format to a variable to
211         avoid gcc warning about Y2K issues with %c in strftime().
213 2001-06-14  Pavel Roskin  <proski@gnu.org>
215         * edit.c: Declare cmd_F* static. Comment out cmd_F9.
217         * edit.c: Use indented #error for compatibility with old C
218         compilers.
220 2001-06-13  Pavel Roskin  <proski@gnu.org>
222         * edit.c (edit_execute_cmd) [GTK]: Disable user menu - it
223         doesn't work.
224         (user_menu) [GTK]: Disable.
225         * gtkedit.c (tb_items): Use complete words. Disable pull-down
226         menu.
228 2001-06-09  Pavel Roskin  <proski@gnu.org>
230         * editcmd.c (catstrs): Use interactive_display() without
231         specifying the help file.
232         From Andrew V. Samoilov.
234 2001-06-08  Andrew V. Samoilov  <sav@bcs.zp.ua>
236         * editcmd.c [HAVE_CHARSET]: Really include charset.h.
237         * editmenu.c (edit_wrap_cmd): Memory leaking fixed.
239 2001-06-05  Pavel Roskin  <proski@gnu.org>
241         * edit.c [HAVE_CHARSET]: Include charsets.h and selcodepage.h.
242         * editcmd.c [HAVE_CHARSET]: Add charset conversion support.
243         * editdraw.c [HAVE_CHARSET]: Likewise.
244         From Walery Studennikov <hqsoftware@mail.ru>.
246 2001-06-01  Pavel Roskin  <proski@gnu.org>
248         * gtkedit.h: Warning fix - use stricter declarations for
249         destroy_me and destroy_me_user_data.
251 2001-05-31  Pavel Roskin  <proski@gnu.org>
253         * Makefile.in: Define HAVE_X and HAVE_GNOME, not just GTK -
254         header files are using them.
256         * editdraw.c (edit_render) [GTK]: Revert previous patch, it
257         broke compilation.
259 2001-05-31  Andrew V. Samoilov  <sav@bcs.zp.ua>
261         * editdraw.c (edit_status): Use strcpy (s, ) instead of
262         sprintf (s, "%s", ).
264         (set_color) [MIDNIGHT]: Became a macro.
265         (render_edit_text) [defined(MIDNIGHT) || defined(GTK)]: Warning fix.
266         (edit_render) [GTK]: Eliminate win variable.
267         (key_pending) [!GTK]: Warning fix.
269 2001-05-30  Pavel Roskin  <proski@gnu.org>
271         * editdraw.c (status_string): Use is_printable(). Declare
272         static. Eliminate intermediate buffer. Use memset() for filling.
273         Print byte as unsigned. Use C notation for hex numbers.
275         * editdraw.c (status_string): Don't print non-printable chars.
276         Better formatting. Print "<EOF>" at the end of file instead of
277         -1. Use snprintf instead of sprintf.
279 2001-05-30  Andrew V. Samoilov  <sav@bcs.zp.ua>
281         * syntax.c (open_include_file) [MIDNIGHT]: Don't hardcode location
282         of syntax file(s) with LIBDIR, use mc_home instead.
283         From Ludovic Drolez <ludovic.drolez@freealter.com>.
285         (syntax_text): Use perl.syntax to highlight perl modules (.pm).
287 2001-05-18  Pavel Roskin  <proski@gnu.org>
289         * editcmd.c (edit_replace_prompt): Warning fix.
291 2001-02-26  Pavel Roskin  <proski@gnu.org>
293         * editcmd.c (edit_delete_macro_cmd) [MIDNIGHT]: Don't use
294         CK_Macro on the argument to edit_delete_macro().
296         * edit.c (edit_init_file): Remove, it's useless. All the
297         necessary files should be created when needed.
298         * edit.h: Remove declaration of edit_init_file().
300 2000-11-01  Andrew V. Samoilov  <sav@bcs.zp.ua>
302         * editcmd.c (canonicalize_pathname) [GTK]: memory leaking fixed
304 2000-10-30  Pavel Roskin  <proski@gnu.org>
306         * editcmd.c (canonicalize_pathname) [GTK]: Make the argument
307         constant.
308         (edit_split_filename) [GTK]: Make the second argument constant
309         to match the declaration.
311 2000-10-30  Andrew V. Samoilov  <sav@bcs.zp.ua>
313         * editcmd.c (edit_save_file): better error handling on writting
315         (edit_sort_cmd): saved sort options proposed in dialog
317         edit.h, editcmd.c: declaration for edit_save_block () added
319         (edit_split_filename): f constified
321         * edit.c (edit_init) [ENABLE_NLS]: option_whole_chars_search
322         expanded by national letters using current locale on first call
324         (edit_file_is_open) [MIDNIGHT]: all occurences and related code
325         are commented
327         (edit_execute_cmd): typo in error message fixed
329 2000-09-30  Pavel Roskin  <proski@gnu.org>
331         * libgettext.h: Removed, shouldn't be here.
332         * Makefile.in: Adjusted to remove libgettext.h
334 2000-09-15  Andrew V. Samoilov  <sav@bcs.zp.ua>
336         * editcmd.c (edit_delete_macro, edit_(load|save)_macro_cmd): don't
337         translate keywords written to macro file or macro don't work, at least
338         for Cyrillic. Made this as separate commit, so, if it seriously breaks
339         compatibility it's easy to revert it.
341 2000-09-15  Andrew V. Samoilov  <sav@bcs.zp.ua>
343         * editcmd.c (edit_save_file): fopen()+fwrite()+fclose() replaced
344         by open()+write()+close() to restore possibility to edit files
345         over Midnight Commander's VFSes
347         (edit_replace_cmd) [MIDNIGHT]: some more right algorithm to calculate
348         menu coordinates used. I don't like if menu hides replaced text.
350         (edit_goto_cmd): Memory leaking fixed when f is empty string
352 2000-09-07  Andrew V. Samoilov  <sav@bcs.zp.ua>
354         * edit.c (check_file_access) [MIDNIGHT,GTK]: error message localized;
355         some cosmetics changes to avoid annoying warnings
357         * editcmd.c (edit_save_file): pclose returns 0 on success,
358         file fclose()d when fwrite fails
360         (pipe_mail): malloc () + sprintf () replaced by g_strdup_printf ()
362         * syntax.c (syntax_text): Makefile replaced by [Mm]akefile to cover
363         makefile and GNUmakefile
364         (upgrade_syntax_file): infinitive loop fixed when rule file
365         is outdated but it cannot be unlinked/overwritten
367 2000-08-30  Pavel Roskin  <proski@gnu.org>
369         * editwidget.c [!MIDNIGHT]: include xdnd.h
370         * Makefile.in: distribute xdnd.h
372 2000-08-18  Pavel Roskin  <proski@gnu.org>
374         * Makefile.in: adjusted list of distributed files.
375         Added rule for rebuilding Makefile
377 2000-08-08  Pavel Roskin  <proski@gnu.org>
379         * gtkedit.c [GTK]: don't include mousemark.h
380         * gtkedit.h [GTK]: likewise
382 2000-08-03  Pavel Roskin  <proski@gnu.org>
384         * mousemark.c, mousemark.h: removed
385         * Makefile.in: don't distribute mousemark.h
386         * gtkedit.c [MIDNIGHT]: don't include mousemark.h
387         * gtkedit.h [MIDNIGHT]: likewise
389 2000-07-20  Andrew V. Samoilov  <sav@bcs.zp.ua>
391         * gtkedit/editcmd.c (edit_save_file): check fclose()s return value
392         to prevent loss of data
393         (edit_block_process_cmd): don't translate empty string
395         * gtkedit/edit.h (edit_get_write_filter, edit_write_stream,
396         edit_init_file): added declarations
398         * edit.c (edit_filters): constified
399         (edit_get_write_filter): filename constified
400         (user_menu): don't translate empty string
402         * syntax.c (syntax_text): constified
403         (upgrade_syntax_file): syntax_line constified, f closed after use