Add patch (rev2) from ticket #65
[midnight-commander.git] / src / ChangeLog
blob55b4d40cc9f5d37f8d681615e5ca42921114647c
1 2008-12-19  Roland Illig  <roland.illig@gmx.de>
3         * x11conn.c (x11_available): If the X11 shared library cannot be
4         found (maybe because there is neither an .la file nor a .so
5         symlink), try libX11.so.6 explicitly. Fixes Bug #24505.
7 2008-12-18  Roland Illig  <roland.illig@gmx.de>
9         * main.c (main): It is now possible to invoke mcedit with
10         filename:lineno[:], so that copy and paste of file locations
11         can be done quickly.
13 2008-12-02  Roland Illig  <roland.illig@gmx.de>
15         * tty.c (tty_tgetstr): Fixed a crash because of an uninitialized
16         variable.
18 2007-11-02  Pavel Tsekov  <ptsekov@gmx.net>
20         * cmd.c (save_setup_cmd): Remove redundant g_strconcat() call.
21         * hotlist.c (load_hotlist): Likewise.
23 2007-10-15  Pavel Tsekov  <ptsekov@gmx.net>
25         * myslang.h [HAS_ACS_AS_PCCHARS]: Remove all code ifdef-ed
26         HAS_ACS_AS_PCCHARS - it's unused.
27         * help.c [HAS_ACS_AS_PCCHARS]: Likewise.
28         * layout.c (init_curses) [HAS_ACS_AS_PCCHARS]: Remove redundant code.
30 2007-09-24  David Sterba  <dave@jikos.cz>
32         * widget.h: Define new mode for listbox insertion.
33         * widget.c (listbox_append_item): Implement LISTBOX_APPEND_SORTED
34         by insertsort.
35         * chown.c (init_chown): Use LISTBOX_APPEND_SORTED for user and
36         group list.
37         * achown.c (do_enter_key): Likewise.
39 2007-09-19  Pavel Tsekov  <ptsekov@gmx.net>
41         * cmd.c (menu_edit_cmd): Rename a button label from "Home"
42         to "User".
44 2007-09-19  Pavel Tsekov  <ptsekov@gmx.net>
46         * widget.c (listbox_new): Remove redundant initialization of
47         WListbox fields.
49 2007-09-17  Maxim Britov  <maxim@office.modum.by>
51         * util.c (file_date): Do not ignore the return value 
52         of localtime (). Gentoo bug #184296.
54 2007-09-14  Pavel Tsekov  <ptsekov@gmx.net>
56         * find.c (find_parameters): Fix hotkey duplication.
58 2007-09-11  Pavel Tsekov  <ptsekov@gmx.net>
60         * subshell.c (write_all): Do not use void pointer arithmetic.
62 2007-09-11  Pavel Tsekov  <ptsekov@gmx.net>
64         * mountlist.c: Fix a warning issued by gcc.
66 2007-08-27  Oswald Buddenhagen  <ossi@kde.org>
68         * color.h: Add a new color pair.
69         * color.c: Likewise.
71 2007-08-24  Pavel Tsekov  <ptsekov@gmx.net>
73         * screen.c (show_dir): Surrond the current directory with spaces.
75 2007-08-24  Pavel Tsekov  <ptsekov@gmx.net>
77         * screen.c (show_dir): Remove unneeded code.
79 2007-08-23  Pavel Tsekov  <ptsekov@gmx.net>
81         * filegui.c (rd_widgets) [_LARGE_FILES]: Use format string
82         capable of supporting 64 bit file sizes.
84 2007-08-23  Pavel Tsekov  <ptsekov@gmx.net>
86         * mountlist.c (fstype_to_string): Define only when
87         `MOUNTED_GETMNTINFO' or `MOUNTED_VMOUNT' is defined.
89 2007-05-02  Pavel Tsekov  <ptsekov@gmx.net>
91         * cmd.c (dirsizes_cmd): Re-sort the panel when done.
93 2007-03-23  Pavel Tsekov  <ptsekov@gmx.net>
95         * subshell.c (subshell_name_quote): Use the `printf' utility
96         instead of `echo' to quote the directory name.
98 2007-03-08  Pavel Tsekov  <ptsekov@gmx.net>
100         * subshell.c (sigchld_handler) [__EMX__]: Remove unneeded code.
102 2007-03-01  Pavel Tsekov  <ptsekov@gmx.net>
104         * subshell.c (subshell_pty_slave): New global variable.
105         (init_subshell): Do not close the pseudo-terminal slave - 
106         store it in `subshell_pty_slave' for later use.
107         (init_subshell_child): Do not open the pseudo-terminal slave
108         in the child. It is inherited from the parent now.
109         Use `subshell_pty_slave' as the file descriptor of the
110         opened pseudo-terminal slave.
111         Rearrange the code a bit.
112         (synchronize): Discard all data from the pseudo-terminal
113         slave input queue.
115 2007-02-22  Pavel Tsekov  <ptsekov@gmx.net>
117         * file.c (copy_file_file): chmod() the target file no matter whether
118         "preserve attributes" is checked or not, since the destination is
119         initially created with mode 0600.
121 2007-02-22  Pavel Tsekov  <ptsekov@gmx.net>
123         * utilunix.c (mc_tmpdir): Do not accept relative path in TMPDIR. Use
124         a hardcoded value instead.
126 2007-02-02  Pavel Roskin  <proski@gnu.org>
128         * mountlist.c: Fix misuse of HAVE_STRUCT_STATFS_F_FSTYPENAME.
130 2007-01-20  Pavel Tsekov  <ptsekov@gmx.net>
132         * help.c: Document the newline following the node header.
133         Teach all code dealing with nodes that the actual node data
134         starts right after the first newline following the node
135         header. Thanks to Grigory Trenin <gtrenin@gmail.com> .
137 2007-01-14  Pavel Tsekov  <ptsekov@gmx.net>
139         * dir.c (sort_time): Default to sort_name() if the
140         arguments are equal.
141         (sort_ctime): Likewise.
142         (sort_atime): Likewise.
143         (sort_size): Likewise.
145 2007-01-14  Pavel Tsekov  <ptsekov@gmx.net>
147         * dir.h (sort_type): Remove function declaration.
148         (sort_links): Likewise.
149         (sort_nuid): Likewise.
150         (sort_ngid): Likewise.
151         (sort_owner): Likewise.
152         (sort_group): Likewise.
153         * dir.c (sort_type): Remove function definition.
154         (sort_links): Likewise.
155         (sort_nuid): Likewise.
156         (sort_ngid): Likewise.
157         (sort_owner): Likewise.
158         (sort_group): Likewise.
159         (sort_orders): Reflect the changes above.
160         * screen.c (formats): Remove references to sort_type(), sort_links(),
161         sort_nuid(), sort_ngid(), sort_owner() and sort_group().
163 2007-01-02  Pavel Tsekov  <ptsekov@gmx.net>
165         * utilunix.c (mc_tmpdir): Call mc_mkstemps() with an absolute
166         path to prevent stack overflows due to circular dependecy.
168 2006-12-30  Grigory Trenin  <gtrenin@gmail.com>
170         * help.c (startpoint): Remove global variable and all references
171         to it.
172         (select_prev_link): Remove the first argument.
173         Keep searching until a link is found or end of node delimiter is
174         reached.
175         (help_handle_key): Reflect the changes above.
176         Remove an unneeded check.
178 2006-12-30  Pavel Tsekov  <ptsekov@gmx.net>
180         * view.c (view_file_load_data): Do not to attempt to  seek
181         beyond the end of file. Patch by Andrzej Zaborowski.
182         (view_moveto_addr_cmd): Display a warning message if the
183         user specified an invalid offset.
185 2006-12-21  Pavel Tsekov  <ptsekov@gmx.net>
187         * fsusage.c: Remove references to HAVE_INFOMOUNT.
189 2006-12-21  Pavel Tsekov  <ptsekov@gmx.net>
191         * fsusage.h: Update from gnulib.
192         * fsusage.c: Likewise.
194 2006-12-21  Pavel Tsekov  <ptsekov@gmx.net>
196         * fsusage.h: Resurrect.
197         * fsusage.c: Likewise.
199 2006-12-10  Pavel Tsekov  <ptsekov@gmx.net>
201         * view.c (regexp_search): Keep the search string in a global
202         variable so that it can be reused when viewing another file.
203         Do not use the same variable to hold the search string for
204         both the "Search" and "Regexp Search" functions.
205         (view_normal_search_cmd): Likewise.
207 2006-11-27  Leonard den Ottolander  <leonard den ottolander nl>
209         * subshell.c (subshell_name_quote): Bash < 2.05b (3-digit octals in
210         echo_e_cmd) no longer supported.
212 2006-11-08  Egmont Koblinger  <egmont@uhulinux.hu>
214         * key.c (get_event): Eliminate timeouts on window resize event.
215         * layout.c (change_screen_size): Set winch_flag to 0 on entrance not
216         exit of function.
218 2006-09-25  Pavel Tsekov  <ptsekov@gmx.net>
220         * layout.c (layout_do_change): Remove global variable.
221         (layout_cmd): Reflect the changes above.
222         (layout_change): Ditto.
224 2006-09-18  Pavel Tsekov  <ptsekov@gmx.net>
226         * main.c (xtoolkit_panel_setup): Remove - it is a noop.
227         (setup_panels_and_run_mc): Eliminate references to
228         `xtoolkit_panel_setup'.
230 2006-09-18  Pavel Tsekov  <ptsekov@gmx.net>
232         * key.c (get_key_code): Do not blindly strip the eight bit of the
233         key code when the 'use_8th_bit_as_meta' flag is set. Only key codes
234         in the range 128 - 255 should be stripped, the rest must be left
235         intact.
237 2006-09-14  Pavel Tsekov  <ptsekov@gmx.net>
239         * wtools.c (fg_input_dialog_help) [ENABLE_NLS]: Translate the
240         "Ok" and "Cancel" buttons here.
241         Mark the QuickDialog as translated so that quick_dialog() won't
242         try translate it again.
244 2006-09-07  Pavel Tsekov  <ptsekov@gmx.net>
246         * mountlist.c: Sync with gnulib.
247         All uses of HAVE_F_FSTYPENAME replaced by
248         HAVE_STRUCT_STATFS_F_FSTYPENAME.
249         [MOUNTED_GETMNTINFO2] Include sys/statvfs.h.
250         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
252 2006-09-07  Pavel Tsekov  <ptsekov@gmx.net>
254         * mountlist.c: Revert a failed attempt to properly detect and use
255         getmntinfo() returning its result in struct statvfs.
257 2006-08-12  Leonard den Ottolander  <leonard den ottolander nl>
259         * key.c (check_selects): Get rid of the now redundant else.
261 2006-08-12  Leonard den Ottolander  <leonard den ottolander nl>
263         * key.c (check_selects): Initialize retry to FALSE every time we enter
264         the do/while loop (bug introduced when incorrectly rewriting the
265         backward goto used by the original submitter).
267 2006-08-11  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
269         * key.c (check_selects): Fix possible crash on reference to select list
270         element removed in callback.
272 2006-08-09  Denis Vlasenko  <vda.linux@googlemail.com>
274         * key.c: Make escape key timeout user configurable via the
275         environment variable KEYBOARD_KEY_TIMEOUT_US (in microseconds).
277 2006-08-08  Andrew V. Samoilov  <sav@bcs.zp.ua>
279         * hotlist.c (update_path_name): Fix gcc4 warning.
281 2006-06-26  Oswald Buddenhagen  <ossi@kde.org>
283         * hotlist.c (remove_from_hotlist): Fix erronous check of the return
284         value of query_dialog().
286 2006-08-03  Roland Illig  <roland.illig@gmx.de>
288         * view.c: Added correct handling of Mac line endings.
290 2006-06-26  Pavel Tsekov  <ptsekov@gmx.net>
292         * vfsdummy.h [!USE_VFS] (mc_getlocalcopy): Implement.
294 2006-06-17  Pavel Tsekov  <ptsekov@gmx.net>
296         * mountlist.c (fstype_to_string): Update the code to match its
297         coreutils counterpart.
298         Guard the use of MOUNT_UFS and MOUNT_NFS with appropriate
299         ifdefs as the rest of the code does.
301 2006-06-17  Pavel Tsekov  <ptsekov@gmx.net>
303         * mountlist.c (HAVE_F_FSTYPENAME): Define when getmntinfo() is
304         used and the struct which it fills has a field named f_fstypename.
305         (read_filesystem_list) [MOUNTED_GETMNTINFO]: Use
306         MOUNTED_GETMNTINFO_STATVFS to determine the type of the first
307         argument to getmntinfo().
309 2006-06-11  Leonard den Ottolander  <leonard den ottolander nl>
311         * dir.c (sort_orders): Substitute duplicate hotkey 'C' in sort order
312         dialog.
314 2006-06-07  Pavel Tsekov  <ptsekov@gmx.net>
316         * mountlist.c: Revert last commit.
318 2006-05-29  Pavel Tsekov  <ptsekov@gmx.net>
320         * widget.c (disable_update): Remove redundant static variable.
321         (handle_char): Reflect the changes above.
323 2006-05-23  Hampa Hug  <hampa@hampa.ch>
325         * file.c (move_file_file): Do not collect progress information
326         when moving via copy/erase - copy_file_file() does that.
327         Collect progress information when moving via rename ().
329 2006-05-23  Pavel Tsekov  <ptsekov@gmx.net>
331         * tty.c (tty_tgetstr) [HAVE_SLANG]: str_unconst() the argument
332         passed to SLtt_tgetstr().
334 2006-05-23  Pavel Tsekov  <ptsekov@gmx.net>
336         * file.c (move_dir_dir): Remove Win32 specific code.
338 2006-05-21  Roland Illig  <roland.illig@gmx.de>
340         * mountlist.c: Fixed so that it builds on NetBSD 3.0.
342 2006-05-15  Pavel Tsekov  <ptsekov@gmx.net>
344         * tty.h [USE_NCURSES]: Pull in term.h if WANT_TERM_H is defined.
345         (tty_tgetstr): Declare new function.
346         * tty.c [USE_NCURSES]: Request the inclusion of term.h.
347         (tty_tgetstr): Define new function
348         * main.c (init_xterm_support): Use tty_tgetstr().
350 2006-05-10  Pavel Tsekov  <ptsekov@gmx.net>
352         * user.c: Do not include subshell.h .
354 2006-05-08  Pavel Tsekov  <ptsekov@gmx.net>
356         * subshell.c (resize_subshell): Do not try to resize the subshell tty
357         if the subshell is not running.
359 2006-04-13  Leonard den Ottolander  <leonard den ottolander nl>
361         * cons.handler.c (handle_console_linux): Remove redundant close() calls
362         before _exit().
364 2006-03-29  Pavel Tsekov  <ptsekov@gmx.net>
366         * file.c (copy_file_file): When a hardlink is created successfully
367         report success (FILE_CONT) to the caller. Fixes debian bug #301537.
369 2006-03-06  Pavel Tsekov  <ptsekov@gmx.net>
371         * mouse.h (Mouse_Type): Add new enumerated values to describe
372         the xterm mouse reporting modes offered by various xterm-like
373         terminals.
374         * mouse.c: Adjust the code to reflect the changes above.
375         Send the proper terminal control codes when xterm normal mouse
376         tracking is requested.
377         * main.c (init_xterm_support): Try to fine-tune the mouse tracking
378         mode based on the terminal type.
380 2006-02-28  Pavel Tsekov  <ptsekov@gmx.net>
382         * widget.h (struct WRadio): Remove unused field
383         `upper_letter_is_hotkey'.
384         (radio_new): Remove the last argument from the function
385         declaration - it is unused.
386         * widget.c (radio_new): Remove the last argument from the
387         function declaration - it is unused.
388         * boxes.c: Adjust all callers to reflect the changes above.
389         * layout.c: Likewise.
390         * listmode.c: Likewise.
391         * option.c: Likewise.
392         * wtools.c: Likewise.
394 2006-02-28  Pavel Tsekov  <ptsekov@gmx.net>
396         * boxes.c (configure_vfs) [!USE_NETCODE]: Fix off-by-one error.
398 2006-02-24  Pavel Tsekov  <ptsekov@gmx.net>
400         * subshell.c (synchronize): Do not discard user input if the panels
401         are off.
403 2006-02-23  Pavel Tsekov  <ptsekov@gmx.net>
405         * setup.c [USE_NETCODE]: Include fish.h .
406         (int_options) [USE_NETCODE]: Add support for user configurable
407         expiration timeout of FISH directory cache entries.
409 2006-02-21  Pavel Tsekov  <ptsekov@gmx.net>
411         *  cons.saver.c [HAVE_CONFIG_H]: Include config.h .
413 2006-02-14  David Martin  <dmartina@excite.com>
415         * hotlist.c (remove_from_hotlist): Fix l18n macro N_() to _().
417 2006-02-09  Pavel Tsekov  <ptsekov@gmx.net>
419         * wtools.c (quick_dialog_skip): Do not set `lines' and `cols'
420         members of the newly created dialog explicitly - create_dlg()
421         does this.
423 2006-02-08  Pavel Tsekov  <ptsekov@gmx.net>
425         * screen.c (panel_callback): Reset the `dirty' flag after the
426         panel has been repainted on focus.
428 2006-02-06  Pavel Tsekov  <ptsekov@gmx.net>
430         * widget.c (buttonbar_set_label): Fix `comparison of distinct
431         pointer types lacks a cast' gcc warning.
433 2006-02-05  Pavel Tsekov  <ptsekov@gmx.net>
435         * hotlist.c (hotlist_has_dot_dot): Define new global
436         variable.
437         (add_dotdot_to_list): Define new function.
438         (HotListType): Add HL_TYPE_DOTDOT.
439         (update_path_name): Handle HL_TYPE_DOTDOT entries the same way as
440         HL_TYPE_ENTRY entries.
441         (fill_listbox): Likewise.
442         (hotlist_button_callback): Go up one level when enter is pressed on
443         an entry of type HL_TYPE_DOTDOT.
444         (add2hotlist): Always attach a HL_TYPE_DOTDOT to each new
445         HL_TYPE_GROUP entry.
446         Make sure that the HL_TYPE_DOTDOT entry is the first one in the
447         list.
448         (remove_from_hotlist): Do not remove HL_TYPE_DOTDOT entries.
449         (hot_save_group): Do nothing for HL_TYPE_DOTDOT entries.
451 2006-02-05  Arpad Gereoffy (A'rpi)  <arpi@mplayerhq.hu>
453         * key.c (xterm_key_defines): Add sequences for iTerm.
455 2006-02-04  Roland Illig  <roland.illig@gmx.de>
457         * find.c: Added make_fullname() to avoid code duplication.
458         * cmd.c (mkdir_cmd): Fixed a memory leak. Instead of the
459         absolute path of the created directory, the input is passed to
460         update_panels().
461         * Makefile.am: ecs-test needs $(INTLLIBS).
462         * main.c (init_xterm_support): Eterm can handle mouse events, too.
463         * user.c: Adjusted the use of EDIT_DIR, since it has no leading
464         PATH_SEP_STR anymore.
466 2006-02-03  Roland Illig  <roland.illig@gmx.de>
468         * widget.c: Added assertions to prevent bugs like the one from
469         view.c(view_labels) from hiding that long.
470         * view.c: s/attrset/tty_setcolor/g
471         * wtools.h: Replaced the printf-like attribute with __printf__,
472         since GNU gettext defines a macro printf on some systems.
473         * find.c: After the "panelize" command, always select the first
474         file from the panel, not.
475         * util.h (str_unconst): This function is never needed to be
476         inlined.
477         * find.c (find_do_view_edit): Only strip the leading "./" from a
478         directory name if the rest is not empty.
480 2006-02-03  Pavel Tsekov  <ptsekov@gmx.net>
482         * view.c (view_labels): Use `buttonbar_clear_label' to make a
483         buttonbar button inactive.
485 2006-02-03  Roland Illig  <roland.illig@gmx.de>
487         * tty.h (tty_setcolor): Added.
488         * tty.c (tty_setcolor): Likewise.
490 2006-02-03  Pavel Tsekov  <ptsekov@gmx.net>
492         * dir.c (do_sort): Remove unused variable.
494 2006-01-31  Roland Illig  <roland.illig@gmx.de>
496         * view.c (view_display_hex): Prevented any screen overflow in
497         hex display mode. The number of bytes per line in hex mode is
498         always a multiple of four -- this makes the computation easier.
500 2006-01-30  Pavel Roskin  <proski@gnu.org>
502         * Makefile.am: Rename LIBDIR to SAVERDIR to avoid confusion.
503         Change its value to match the installation path of cons.saver.
504         * cons.handler.c: Adjust for the above.
506 2006-01-30  Pavel Tsekov  <ptsekov@gmx.net>
508         * boxes.c: Do not set the field `histname' of `QuickWidget'
509         unless the widget is of type `quick_input'.
510         * filegui.c: Likewise.
511         * hotlist.c: Likewise.
513 2006-01-30  Roland Illig  <roland.illig@gmx.de>
515         * view.c (view_display_hex): Bug fix: The list iterator from the
516         bytes that have been changed in the hex editor must be advanced
517         even if the cursor is currently on a changed byte.
519 2006-01-29  Pavel Tsekov  <ptsekov@gmx.net>
521         * file.h (safe_delete): Move declaration of `safe_delete'
522         * main.h: ... here.
523         (confirm_directory_hotlist_delete): Declare new global variable.
524         * file.c (safe_delete): Move definition of `safe_delete'
525         * main.c: ... here.
526         (confirm_directory_hotlist_delete): Define new global variable.
527         * hotlist.c (remove_from_hotlist): Based on a user configurable
528         setting, request confirmation when removing directory hotlist
529         entries. The confirmation dialog honours the `Safe delete'
530         setting.
531         Reorder the buttons in the hotlist group removal confirmation
532         dialog so that it becomes consistent with other confirmation
533         boxes.
534         * setup.c (int_options): Add support for user configurable
535         confirmation of directory hotlist entries removal.
536         * boxes.c (conf_widgets): Likewise.
537         (confirm_box): Likewise.
538         (my_directory_hotlist_delete): New module variable.
540 2006-01-29  Pavel Tsekov  <ptsekov@gmx.net>
542         * dir.c (do_sort): Do not try to reorder the entries so
543         that ".." becomes the first entry.
544         (do_load_dir): When filling the list of directory entries
545         make sure that ".." occupies the first element.
546         (do_reload_dir): Likewise.
548 2006-01-29  Julian Mehnle  <julian@mehnle.net>
550         * cmd.c: When invoking external viewer, probe VIEWER environment
551         variable first, then PAGER, then fall back to "view".
553 2006-01-28  Roland Illig  <roland.illig@gmx.de>
555         * cmd.c (toggle_listing_cmd): Included the brief listing mode in
556         the list of listing modes that can be switched through using
557         Alt-t. Patch provided in #10557. Fixes #10557.
559 2006-01-27  Roland Illig  <roland.illig@gmx.de>
561         * Makefile.am: cons.saver is installed in $(pkglibexecdir), not
562         in $(pkglibdir), to conform to the usual directory hierarchy
563         standards. Fixes #2796.
565         * Makefile.am, logging.h, logging.c: Added a new logging module
566         to allow easy tracing of function calls and other events. It is
567         only intended for debugging.
569 2006-01-24  Jindrich Makovicka  <makovick@kmlinux.fjfi.cvut.cz>
571         * file.c (copy_file_file): In 'Reget' mode take into account
572         the partially retrieved data when drawing the progress bar.
574 2006-01-23  Egmont Koblinger  <egmont@uhulinux.hu>
576         * subshell.c: restart write() calls interrupted by sigchld which lead
577         to some bytes being swallowed from the subshell's output.
579 2006-01-07  Roland Illig  <roland.illig@gmx.de>
581         * view.c: Replaced calls to printw() with tty_printf() to get
582         rid of the str_unconst() function.
584 2005-11-10  Pavel Roskin  <proski@gnu.org>
586         * global.h [!ENABLE_NLS]: Provide replacement for ngettext.
587         * screen.c (display_mini_info): Cast panel->total to unsigned
588         long before passing it to ngettext() to avoid warnings.
590 2005-11-02  Pavel Roskin  <proski@gnu.org>
592         * glibcompat.c: Move Q_ back ...
593         * util.c: ... here.  Q_ is not defined by just including glib.h.
594         The glib implementation doesn't strip prefix from translations,
595         so it's not suitable for us.  Finally, it makes man2hlp depend
596         on libintl.
597         Reported by Leonard den Ottolander <leonard den ottolander nl>
599 2005-11-02  Egmont Koblinger  <egmont@uhulinux.hu>
601         * main.c (directory_history_add): Fix invalid directory preselection on
602         cd.
604 2005-10-08  Pavel Roskin  <proski@gnu.org>
606         * man2hlp.c (main): Fix using 0 instead of NULL.
608         * widget.c (listbox_fwd): Eliminate forward inline declaration.
610 2005-10-04  Jindrich Novy  <jnovy@redhat.com>
612         * view.c (search): Fix backward regex search off by one.
614 2005-10-04  Pavel Roskin  <proski@gnu.org>
616         * util.c (gettext_ui): Rename to Q_() for glib compatibility,
617         move ...
618         * glibcompat.c: ... here.  Adjust all callers.
620 2005-10-03  Pavel Roskin  <proski@gnu.org>
622         * screen.c (display_mini_info): Use ngettext().
624 2005-09-28  Pavel Tsekov  <ptsekov@gmx.net>
626         * key.c (xmouse_get_event): Catch GPM_DRAG event.
627         * mouse.c (enable_mouse, disable_mouse): Update printed escape
628         sequence.
630 2005-09-17  Pavel Tsekov  <ptsekov@gmx.net>
632         * execute.c (do_execute): Flush stdout after printing the
633         command to be executed.
635 2005-09-17  Leonard den Ottolander  <leonard den ottolander nl>
637         * util.c: Indentation cleanup (function result types on
638         different lines then function names).
640 2005-09-17  Jindrich Novy  <jnovy@redhat.com>
642         * file.c (make_symlink): Fix off by one in symlink creation.
644 2005-09-17  Jindrich Novy  <jnovy@redhat.com>
646         * util.c (diff_two_paths): Abort when second symlink can't be
647         resolved (fixes segfault).
649 2005-09-07  Roland Illig  <roland.illig@gmx.de>
651         * setup.c: Renamed options[] to int_options[].
652         * util.h: Added get_config_string() and set_config_string(),
653         which are analogous to get_int() and set_int().
654         * util.c: Likewise.
655         * setup.c: Replaced the editor_option_backup_ext_int hack with a
656         string configuration variable, which allows the backup extension
657         to have more than just four characters. Added generic support
658         for string options.
660 2005-09-06  Roland Illig  <roland.illig@gmx.de>
662         * cmd.c: Added single_dirsize_cmd(), which computes the size of
663         the currently selected panel entry and moves down. Suggested by
664         ForestCreature on mc-devel.
665         * cmd.h: Likewise.
666         * main.c (midnight_callback): Ctrl-space calculates the size of
667         the currently selected directory entry. This is mostly useful for
668         directories.
670 2005-09-05  Roland Illig  <roland.illig@gmx.de>
672         * info.c: Switched from printw() to tty_printf() to avoid gcc
673         warnings. st_ctime is not the creation time, but the status
674         change time.
675         * achown.c: Likewise.
676         * layout.c: Likewise.
677         * menu.c: Likewise.
678         * screen.c: Likewise.
679         * main.h: Added const qualifier to the global prompt variable.
680         * main.c: Likewise.
681         * slint.c: Moved printwstr() to ../edit/editdraw.c.
682         * tty.h: Likewise.
683         * tty.c: Don't use SLsmg_write_char, because Redhat provides a
684         different API to that function when the preprocessor symbol UTF8
685         is defined.
687 2005-09-04  Roland Illig  <roland.illig@gmx.de>
689         * main.h: Removed unused variables acs_hline and acs_vline.
690         * tty.h: Added tty_printf().
691         * tty.c: Likewise.
692         * widget.c: Reduced the number of gcc warnings by using
693         tty_printf() instead of printw().
695 2005-09-01  Roland Illig  <roland.illig@gmx.de>
697         * view.c (view_fix_cursor_position): Renamed to
698         view_scroll_to_cursor.
699         * treestore.c (str_common): Don't require the arguments to be
700         different.
702 2005-08-29  Roland Illig  <roland.illig@gmx.de>
704         * slint.c: The handling of user interrupts has been moved to ...
705         * tty.c: ... this newly created file, which contains a simple,
706         not yet complete interface to the terminal library. It should be
707         used instead of depending directly on ncurses or SLang features.
708         * tty.h: Added the new function prototypes from tty.c and some
709         legacy definitions.
710         * view.c: Converted to use the new tty functions.
711         * myslang.h: Partly switched to the new tty functions.
713 2005-08-28  Roland Illig  <roland.illig@gmx.de>
715         * view.c (view_hexedit_save_changes): Added an assertion that
716         view->filename be not NULL.
717         * view.c (view_toggle_magic_mode): Check if filename != NULL
718         before dereferencing the pointer.
719         * view.c (view_change_nroff_mode_cmd): Renamed to
720         view_toggle_nroff_mode_cmd.
721         * view.c (view_new): Separated the mode toggling functions from
722         updating the display. The non-updating functions are called on
723         initialization.
725 2005-08-27  Jindrich Makovicka  <makovick@kmlinux.fjfi.cvut.cz>
727         * view.c (view_normal_search_cmd): Initialize exp to avoid
728         freeing of uninitialized pointer on cancel.
730 2005-08-25  Pavel Tsekov  <ptsekov@gmx.net>
732         * key.c (xmouse_get_event): Disable double-click tracking for
733         mouse wheel events.
735 2005-08-22  Roland Illig  <roland.illig@gmx.de>
737         * view.c (struct WView): Renamed dpy_topleft to dpy_start, as it
738         does not always represent the top-left corner of the screen.
739         Replaced dpy_complete with dpy_end, the offset of the first byte
740         after the displayed region.
741         * view.c (view_display_status): In normal display mode (that is:
742         not search progress), calculate the percentage based on dpy_end
743         instead of dpy_start. This avoids a sudden break to 100 % when
744         approaching the end of file.
745         * view.c (view_moveto_top): Simplified the code.
747 2005-08-21  Roland Illig  <roland.illig@gmx.de>
749         * view.h: Rewrote it. All functions are preceded by a describing
750         comment and the "extern" keyword.
751         * fileloc.h: Newly added this file, which provides a place where
752         all names of user specific configuration files are listed.
753         * view.c (view_done): Reordered the statements in the
754         destructor and added paragraph comments.
755         * view.c (free_change_list): Renamed to
756         view_hexedit_free_change_list.
757         * view.c: The search string is managed by the WView, not as
758         static variable in some functions.
760 2005-08-19  Roland Illig  <roland.illig@gmx.de>
762         * view.c: Added section headers. The functions are still
763         somewhat unordered. Renamed some functions to fit into the
764         view_*_cmd naming convention.
766 2005-08-18  Andrzej Zaborowski  <balrogg@gmail.com>
768         * screen.c (string_file_name): Increased the buffer size to
769         MC_MAXPATHLEN + 1 bytes to avoid filename truncation.
771 2005-08-18  Roland Illig  <roland.illig@gmx.de>
773         * view.c (view_move_up): Don't scroll up if it is not necessary.
774         This fixes an inconsistency noted by Andrej Zebrowski on
775         mc-devel.
776         * view.c (view_move_down): Do nothing if we're already at the
777         end of the file. This makes the cursor movement more consistent
778         with the behavior of the <End> key.
779         * view.c (regexp_search_cmd): Moved the code to save the changes
780         of the hex editor out of this function, as it has nothing to do
781         with regexp searching.
782         * view.c (view_display_hex): Completely rewritten. Now the code
783         distinguishes several phases (state selection, color selection,
784         printing) and does not mix them wildly, as the previous code
785         did.
786         * view.c (view_display_text): Removed the (almost) unused
787         variable boldflag.
788         * view.c (struct WView): Renamed found_len to search_length.
790 2005-08-16  Roland Illig  <roland.illig@gmx.de>
792         * view.c (view_percent): Fixed coordinate computation.
793         * view.c (view_place_cursor): Made the call to widget_move()
794         look like the other calls.
795         * view.c (view_init_growbuf): Mark the first page full instead
796         of empty. This saves one condition in view_growbuf_read_until().
798 2005-08-15  Roland Illig  <roland.illig@gmx.de>
800         * view.c (view_growbuf_read_until): When using mc_read, recover
801         from interrupted system calls.
802         * view.c (toggle_hex_mode): Now the hex cursor is always visible
803         after switching to hex mode.
804         * view.c (view_ccache_lookup): Rewrote the calculation of the
805         cache entry. Also don't put entries in the cache when the
806         current byte is '\r'.
807         * view.c (view_ccache_dump): Extended the output by the offset
808         of the next line.
809         * dialog.h (struct Dlg_head): Changed the bit fields of length one
810         from signed int to unsigned int.
811         * wtools.h: Replaced 0 with LISTBOX_APPEND_AT_END.
812         * achown.c: Likewise.
813         * view.c (view_toggle_ruler): Don't mix enums with ints.
814         * complete.c (fetch_hosts): Removed unused variable.
815         * complete.c: Don't mix enums with ints.
816         * tree.c: Likewise.
817         * screen.c (use_display_format): Removed unused variable.
818         * widget.c: Don't mix enums with ints.
820 2005-08-15  Jindrich Makovicka  <makovick@kmlinux.fjfi.cvut.cz>
822         * view.c: Made the search function interruptible.
824 2005-08-06  Roland Illig  <roland.illig@gmx.de>
826         * textconf.c: Include ecs_char in the list of type
827         characteristics that are printed.
828         * view.c (view_growbuf_read_until): On short reads, try to read
829         one more byte to check whether we're already at the end of file.
830         This makes the ">=" disappear earlier.
832 2005-08-05  Pavel Tsekov  <ptsekov@gmx.net>
834         * menu.c (menubar_draw): Use hline() instead of addch() to clear
835         the menubar widget area.
837 2005-07-31  Roland Illig  <roland.illig@gmx.de>
839         * view.c: Removed global variable have_fast_cpu. It is not used
840         anymore.
841         * view.h: Renamed view to mc_internal_viewer. This avoids
842         hundreds of shadowed names in view.c.
844 2005-07-31  Roland Illig  <roland.illig@gmx.de>
846         * user.c (execute_menu_command): Allow execution on no-exec
847         filesystems. This fixes Savannah Bug #13832.
849 2005-07-31  Roland Illig  <roland.illig@gmx.de>
851         * Makefile.am: Added support for extended character sets.
852         * ecs.h: Support for extended character sets.
853         * ecs.c: Likewise.
854         * ecs-test.c: Testsuite for ecs.c.
856 2005-07-27  Adam Byrtek  <alpha@debian.org>
858         * utilunix.c (mc_tmpdir): Check that tmpdir is correctly initialized.
860 2005-07-24  Leonard den Ottolander  <leonard den ottolander nl>
862         * wtools.h: #include "widget.h" and remove redundant declarations
863         of Dlg_head and WListbox;
865 2005-07-23  Roland Illig  <roland.illig@gmx.de>
867         * util.c (save_file_position): Only save the position if not
868         at the beginning of the file (1;0).
869         * view.c: When saving and loading the file position, use the
870         full pathname instead of the one passed as argument.
872 2005-07-22  Roland Illig  <roland.illig@gmx.de>
874         * charsets.c: Fixed wrong comparison of the result of iconv().
876 2005-07-22  Roland Illig  <roland.illig@gmx.de>
878         * utilunix.c: Replaced the use of getgrouplist() with
879         getgroups(), which is more appropriate and does not contain a
880         buffer overflow in most recent glibc versions (upto 2.3.2).
881         Simplified the code. Removed init_groups() and destroy_groups().
882         They are unnecessary.
883         * main.c: init_groups() and destroy_groups() have disappeared,
884         so don't call them.
886 2005-07-22  Roland Illig  <roland.illig@gmx.de>
888         * ext.c: Fixed a typo which has been noted by Arpad Biro.
889         * help.c: Fixed an invalid memory access, which has been noted
890         by Vitja Makarov. And fixed a bug that had been introduced by
891         me, when replacing Dlg_head * with void *.
892         * help.c: Fixed shadowing warnings from gcc.
894 2005-07-20  Roland Illig  <roland.illig@gmx.de>
896         * key.c: When the command line option -x is given, enable
897         additional key sequences that are typical for xterms.
898         * main.c: First parse command line arguments, then initialize
899         key sequences.
901 2005-07-20  Roland Illig  <roland.illig@gmx.de>
903         * util.c: Added gettext_ui(), which translates a string and
904         strips everything before the first '|' character. This function
905         is used to translate special elements of the user interface,
906         like ButtonBar labels.
907         * util.h: Likewise.
908         * view.c: Using the new gettext_ui() function.
910 2005-07-17  Roland Illig  <roland.illig@gmx.de>
912         * util.c: Added ascii_alpha_to_cntrl(), which converts 'x' to
913         ^X. Useful for entering control characters literally.
914         * util.h: Likewise.
915         * widget.c: Use that function after C-q.
917 2005-07-17  Roland Illig  <roland.illig@gmx.de>
919         * view.c: The viewer can remember the last file position and
920         restore it, like the editor. This fixes Savannah bug #13734.
921         * view.h: Likewise.
922         * setup.c: Likewise.
924 2005-07-14  Roland Illig  <roland.illig@gmx.de>
926         * util.c (get_compression_type): Use an enumeration instead of
927         an int for the return type.
928         * util.h: Likewise.
930 2005-07-13  Roland Illig  <roland.illig@gmx.de>
932         * view.c: Always call display() before close_error_pipe() to make
933         sure the screen looks nice.
934         http://mail.gnome.org/archives/mc-devel/2005-July/msg00194.html
936 2005-07-12  Roland Illig  <roland.illig@gmx.de>
938         * view.c: Added some paragraph comments. Changed some literal
939         expressions (e.g. 0 => '\0', 0 => NULL). Fixed indentation.
940         * view.c (view_hexedit_save_changes): Use the VFS file functions
941         instead of the native ones. This makes it possible to edit
942         remote files using the hex editor.
944 2005-07-11  Roland Illig  <roland.illig@gmx.de>
946         * view.c (view_update_bytes_per_line): Use a local variable to
947         do the computation. Update view->bytes_per_line only once, after
948         all computations have finished.
950 2005-07-09  Pavel Tsekov  <ptsekov@gmx.net>
952         * info.c (info_show_info): Properly calculate the length of the
953         line drawn by hline().
955 2005-07-07  Roland Illig  <roland.illig@gmx.de>
957         * view.c (view_ccache_find): Replaced the linear search with a
958         binary search. This speeds up the viewer by a factor of 25 for
959         large files (> 100 MB).
961 2005-07-07  Roland Illig  <roland.illig@gmx.de>
963         * dialog.h: Replaced object-like macros with implicit references
964         to an identifier ``h'' with function-like macros. Adjusted all
965         users.
966         * dialog.c: Likewise.
967         * find.c: Likewise.
968         * tree.c: Likewise.
969         * widget.c: Likewise.
970         * widget.c (widget_selectcolor): New function that selects a
971         color among DLG_{HOT_,}{FOCUS,NORMAL}C.
973 2005-07-07  Roland Illig  <roland.illig@gmx.de>
975         * view.c (view_compute_areas): Fixed a bug noted by Pavel
976         Tsekov. The coordinates are now relative to the Widget, as they
977         should be.
978         * view.c (view_status): Renamed to view_display_status().
979         * view.c: view_display_status() is called inside display().
980         * view.c (view_update_bytes_per_line): Fixed integer overflow
981         bug.
982         * view.c (view_compute_areas, view_percent, view_display_status,
983         view_display_ruler): Fixed screen overflow bugs.
984         * view.c (view_display_text): Fixed handling of tabulators.
986 2005-07-06  Roland Illig  <roland.illig@gmx.de>
988         * view.c: Changed some variables from int to screen_dimen.
989         Instead of relying on each of the view_display_* functions to
990         compute the correct coordinates they are managed using the new
991         function view_compute_areas(). In the view_display_* functions,
992         all calculations are done 0-based; before, the calculation had
993         involved the relative position of the area. Removed "static"
994         variables from view_status(). Simplified view_display_clean().
996 2005-07-06  Pavel Tsekov  <ptsekov@gmx.net>
998         * complete.c: Fix autocompletion for single possible path when
999         "complete show all" is set.
1001 2005-07-05  Roland Illig  <roland.illig@gmx.de>
1003         * achown.c: Changed all references to umode_t into mode_t.
1004         * chmod.c: Likewise.
1005         * file.c: Likewise.
1006         * view.c (view_load): Don't try to use fcntl() with VFS file
1007         handles. That cannot work.
1008         * textconf.c: mc --version prints the size of commonly used data
1009         types.
1011 2005-07-03  Roland Illig  <roland.illig@gmx.de>
1013         * textconf.c: mc --version prints the number of bits of off_t.
1015 2005-07-01  Roland Illig  <roland.illig@gmx.de>
1017         * view.c (view_fix_cursor_position): Fixed a division-by-zero
1018         bug, which had been reported by Dirk Jagdmann and Pavel Tsekov.
1019         Pavel also tracked down the bug.
1021 2005-06-30  Roland Illig  <roland.illig@gmx.de>
1023         * view.c (view_growbuf_load_until): Check the datasource in the
1024         right place. (get_byte_growing_buffer): Removed an unnecessary
1025         assertion. (view_file_load_data): Make sure the right datasource
1026         is selected. (view_set_byte): This function is only expected to
1027         be called when datasource == DS_FILE. Removed unused code.
1028         * global.h: Don't use MC_ENABLE_DEBUGGING_CODE to decide whether
1029         to enable or disable assertions. Just use the default value.
1031 2005-06-28  Roland Illig  <roland.illig@gmx.de>
1033         * view.c: Simplified error handling when loading files.
1034         * view.c (normal_search): Replaced with normal_search_cmd().
1035         (do_regexp_search): Removed unnecessary type cast.
1036         (do_normal_search): Likewise.
1037         * view.c (display): Changed return type to void.
1038         * view.c (display): Splitted up into view_display_hex() and
1039         view_display_text().
1040         * ext.c (get_file_type_local): Redirect error messages from
1041         file(1) to /dev/null.
1043 2005-06-27  Roland Illig  <roland.illig@gmx.de>
1045         * view.c: Massive speed-ups by reordering statements and declaring
1046         functions as inline.
1047         * view.c: Renamed view_quit to want_to_quit and changed its type
1048         to gboolean.
1049         * view.c: Eliminated the need for function pointer casts.
1051 2005-06-22  Pavel Tsekov  <ptsekov@gmx.net>
1053         * main.h: Export edit_one_file.
1054         * main.c (setup_dummy_mc): Remove dummy dir_list and remove argument.
1055         * main.c (mc_maybe_editor_or_viewer): Fix a double free and restructure
1056         according to fixes to setup_dummy_mc().
1057         * dir.c (expand_format): Use edit_widget->filename as fname when
1058         invoked as mcedit.
1060 2005-06-21  Pavel Roskin  <proski@gnu.org>
1062         * view.c (view_percent): Remove unused variable.
1064 2005-06-14  Roland Illig  <roland.illig@gmx.de>
1066         * achown.c (advanced_chown_callback): Swapped the arguments of a
1067         recursive function call -- the types didn't match.
1068         * widget.h (buttonbar_clear_label): Added.
1069         * widget.c: Likewise.
1070         * help.c: Use buttonbar_clear_label().
1071         * tree.c: Likewise.
1072         * widget.c: Added code to handle multiple types of functions for
1073         commands.
1074         * widget.h: Likewise.
1075         * widget.h (struct WButtonBar): Moved into widget.c.
1076         * widget.c (struct WButtonBar): Moved from widget.h.
1077         * boxes.c: Don't dereference WButtonBar.
1078         * help.c: Likewise.
1079         * layout.c: Likewise.
1080         * view.c: Likewise.
1081         * view.c: Fixed an integer wraparound bug.
1082         * view.c (view_get_filesize_with_exact): Removed. The replacement
1083         function is view_may_still_grow(), which does not overlap with
1084         view_get_filesize().
1086 2005-06-08  Roland Illig  <roland.illig@gmx.de>
1088         * util.h (free_after): Moved to vfs/smbfs.c, as this is the only
1089         place where it is used. This is necessary because the SunPro
1090         compiler creates external references even for functions that are
1091         only referred to in unused inline functions.
1093 2005-06-07  Leonard den Ottolander  <leonard den ottolander nl>
1095         * main.c (midnight_callback): Also match tabs as empty command.
1097 2005-06-07  Jindrich Novy  <jnovy@redhat.com>
1099         * command.c (command_callback): Fixed gcc warning about
1100         incompatible pointer types.
1102 2005-06-07  Pavel Tsekov  <ptsekov@gmx.net>
1104         * subshell.c (exit_subshell): Do not blindly perform cleanup.
1106 2005-06-07  Roland Illig  <roland.illig@gmx.de>
1108         * view.c (view_ccache_lookup): Replaced the min_nroff_column
1109         variable with a state chart, which makes the code clearer and
1110         fixes a bug in translating line/column pairs into offsets.
1111         * view.c (view_move_up): In text wrap mode, don't display parts
1112         of lines that only consist of the (invisible) newline character.
1113         * view.c (view_move_down): Likewise.
1115 2005-05-31  David Martin  <dmartina@excite.com>
1117         * info.c: Localize label.
1119 2005-05-29  Leonard den Ottolander  <leonard * den ottolander nl>
1121         * boxes.c: Added checkbox to VFS dialog to allow passive FTP
1122         over a proxy.
1124 2005-05-29  Jindrich Novy  <jnovy@redhat.com>
1126         * main.c (midnight_callback): Fix blocking of panel cd-ing when
1127         there are only spaces on the command line.
1129 2005-05-26  Roland Illig  <roland.illig@gmx.de>
1131         * view.c: Completely rewrote the cursor movement code. Now all
1132         cursor movement functions are based on two functions that
1133         translate file offsets into line/column pairs and vice versa.
1134         This change made it possible that the line/column is displayed
1135         in the status line. The beginning-of-line and end-of-line
1136         functions now work in text mode, too. Switching from non-wrap to
1137         wrap mode does not cause the whole file to be loaded.
1139 2005-05-24  Roland Illig  <roland.illig@gmx.de>
1141         * widget.c: Fixed all but one casts on function pointers.
1142         * widget.h: Fixed prototype of input_callback().
1144 2005-05-23  Roland Illig  <roland.illig@gmx.de>
1146         * help.c: Fixed the use of check_movement_keys(). This had been
1147         really ugly code, involving casts on incompatible functions.
1148         * command.c: Removed casts on function pointer types.
1149         * util.h: Added const-preserving version of strstr().
1150         * util.c: Likewise.
1151         * find.c: Removed a function cast by using the wrapper function
1152         cstrstr().
1153         * filegui.c: Removed unnecessary function casts.
1154         * fileopctx.c: Likewise.
1155         * help.c: Removed function casts.
1156         * info.c: Removed function casts.
1157         * main.h: Changed the type of quiet_quit_cmd() from int to void.
1158         * main.c: Likewise. Removed function cast.
1159         * menu.c: Removed function casts.
1160         * screen.c: Removed function casts.
1161         * tree.c: Removed function casts and provided wrappers where
1162         necessary.
1164 2005-05-22  Pavel Roskin  <proski@gnu.org>
1166         * view.c: Better fix for the gcc 4.0.0 warnings.  Fix callees
1167         rather than callers.
1169 2005-05-21  Roland Illig  <roland.illig@gmx.de>
1171         * view.c: Made the F2 key action much simpler---now it just
1172         toggles between hexview and hexedit mode. Switching between text
1173         and hex mode can be done with <tab>, as before.
1174         * view.c: Renamed dpy_text_start to dpy_topleft, as it does not
1175         only apply to text mode. Renamed dpy_text_start_col to
1176         dpy_text_column. Renamed edit_cursor to hex_cursor, as it is
1177         used in hexview mode, too.
1178         * view.c (view_labels): Simplified the code that decides whether
1179         the user can switch to hexedit mode.
1180         * win.h: Removed a const qualifier from the type movefn, as these
1181         functions typically modify their object.
1182         * win.c: Likewise.
1184 2005-05-20  Pavel Roskin  <proski@gnu.org>
1186         * find.c: Fix warnings reported by gcc 4.0.0.
1187         * mountlist.c: Likewise.
1188         * screen.c: Likewise.
1189         * view.c: Likewise.
1191         * dialog.c (dlg_select_widget): Remove first argument, it's
1192         redundant.  Adjust all callers.
1193         (dlg_replace_widget): Likewise.
1195 2005-05-11  Roland Illig  <roland.illig@gmx.de>
1197         * charsets.c (translate_character): Fixed checking of the return
1198         value of iconv().
1200 2005-05-10  Pavel Roskin  <proski@gnu.org>
1202         * .c: Sanitize all calls to functions from ctype.h.  Fix gcc 4.0
1203         warnings.
1205         * file.c: Remove unneeded WANT_WIDGETS.
1206         * layout.c: Likewise.
1207         * setup.c: Likewise.
1208         * view.c: Likewise.
1210 2005-05-10  Roland Illig  <roland.illig@gmx.de>
1212         * find.c (find_parameters): Moved around and reordered dialog
1213         items to make their meaning clearer.
1215 2005-04-03  Pavel Roskin  <proski@gnu.org>
1217         * screen.c (try_to_select): Don't call display_mini_info(), it
1218         will be called later because select_item sets panel->dirty.
1219         This fixes the mini status appearing first after Ctrl-O.
1221 2005-04-27  Roland Illig  <roland.illig@gmx.de>
1223         * view.c: Changed use of view->text_wrap_mode to reflect its
1224         type, being gboolean. That is, only use boolean operators and
1225         TRUE/FALSE for assignment. Bug reported by Jindrich Makovicka.
1227 2005-04-26  Roland Illig  <roland.illig@gmx.de>
1229         * view.c: Added some calls to str_unconst() to get rid of the
1230         GCC warnings.
1231         * global.h: Define NDEBUG (used by assert() depending on
1232         MC_ENABLE_DEBUGGING_CODE).
1234 2005-04-25  Roland Illig  <roland.illig@gmx.de>
1236         * view.c (view_move_forward2): Fixed a bug related to the return
1237         value, which had made the down and page-down keys no-ops.
1238         * view.c (init_growing_view): Renamed to
1239         view_load_command_output(). Removed dead code. Removed unused
1240         parameter.
1241         * view.c (offset_type): Adjusted the PRI[dX] constants to be
1242         like the ISO C99 PRI* constants.
1243         * view.c (struct WView): Replaced view->last with
1244         view->dpy_complete. The former variable's name didn't match its
1245         value.
1247 2005-04-22  Roland Illig  <roland.illig@gmx.de>
1249         * view.c (view_move_forward2): Fixed a bug discovered by
1250         Jindrich Makovicka. The return value did not take into account
1251         the value of the `upto' parameter.
1252         * view.c (view_move_forward2): Added more assertions. Rewrote
1253         condition for breaking out of the loop when upto == 0.
1254         * view.c (display): Fixed operator precedence with ?: in hex
1255         display.
1257 2005-04-19  Roland Illig  <roland.illig@gmx.de>
1259         * view.c (view_file_load_data): Removed the requirement for
1260         ds_file_datasize to be a power of two.
1261         * view.c (struct WView): Renamed nib_shift to hexedit_lownibble.
1262         Replaced 0 literals with FALSE.
1263         * view.c (view_free_growing_buffer): Renamed to
1264         view_growbuf_free(). Simplified the code.
1265         * view.c (view_move_forward2): Early return if get_byte() returns
1266         -1.
1267         * view.c: Replaced const_cast with str_unconst.
1268         * view.c (display): Extracted the code for drawing the ruler into
1269         its own function, view_display_ruler(). Rewrote it.
1271 2005-04-18  Roland Illig  <roland.illig@gmx.de>
1273         * view.c (struct WView): Moved the growing buffer variables
1274         between the data source and the display section.
1275         * view.c (save_edit_changes): Renamed to
1276         view_hexedit_save_changes().
1278 2005-04-17  Roland Illig  <roland.illig@gmx.de>
1280         * view.c (save_edit_changes): Completely rewritten to be robust
1281         on errors. All changed bytes that could not be saved are kept
1282         in the change list, so that the user can try to save them later.
1283         * view.c (view_set_byte): Added for save_edit_changes().
1284         * view.c (display): view_place_cursor() is called after displaying
1285         in hex mode.
1286         * view.c (save_edit_changes): Changed return type to gboolean.
1287         * view.c (view_ok_to_quit): Changed return type to gboolean.
1288         Adjusted returned values.
1289         * view.c (view_load): Changed return type to gboolean. Adjusted
1290         returned values.
1291         * view.c (view): Rewrote the code a little bit.
1292         * view.h (view): Rewrote the comment.
1293         * view.c: Eliminated some ?: operators.
1294         * view.c: Corrected some typos and indentation.
1295         * view.c: Added four functions view_get_top(), view_get_left(),
1296         view_get_bottom(), view_get_right() to mark the bounds of the
1297         rectangle that can be used for displaying data. Expressed
1298         view_get_datalines() and view_get_datacolumns() in terms of
1299         these four functions.
1300         * view.c (display): Simplified the ruler drawing code.
1301         * view.c (display): Renamed width and height to right and bottom.
1302         The values of the variables aren't really the width and height
1303         of anything.
1304         * view.c (display): Renamed frame_shift to left or top, whatever
1305         is more appropriate.
1306         * view.c (view_set_datasource_string): Removed call to
1307         view_close_datasource() for consistency with the other
1308         view_set_datasource_*() functions. Adjusted the callers.
1310 2005-04-16  Roland Illig  <roland.illig@gmx.de>
1312         * view.c (struct WView): Renamed have_frame to dpy_frame_size.
1313         * view.c (view_is_in_panel): Added.
1314         * view.c (view_percent): Removed the last parameter, as it has
1315         always the same value.
1316         * view.c: Code cleanup.
1317         * view.c (struct WView): Removed start_col. Added
1318         dpy_text_start_col, which has a similar function like start_col,
1319         but does not have negative values. Added bounds checking for
1320         dpy_text_start_col. Code cleanup, as usual.
1321         * view.c (struct WView): Renamed start_display to dpy_text_start.
1322         Fixed one invalid use of bit arithmetics (line 1819).
1323         * view.c: Added the `byte' type as an alias for unsigned char.
1324         Converted some datasources to using byte as the base type.
1325         Removed the superfluous type conversions.
1326         * view.c (vwidth, vheight): Replaced these two macros with their
1327         expansion. They looked like variables, which was irritating.
1328         * view.c (view_get_datacolumns): Added. Replaced equivalent
1329         expressions to call this function.
1330         * view.c (display): Removed the call to the empty macros
1331         view_freeze() and view_thaw(). Deleted these macros, as they
1332         are otherwise unused.
1333         * view.c (enqueue_change): Made the algorithm independent of the
1334         memory layout (especially the order) of the fields in struct
1335         hexedit_change_node. Rewrote it.
1336         * view.c (free_change_list): Don't use view->change_list as
1337         scratch variable.
1339 2005-04-14  Roland Illig  <roland.illig@gmx.de>
1341         * util.h (str_unconst): Added a conditional INLINE_STR_UNCONST
1342         that makes str_unconst() an inline function.
1344 2005-04-14  Roland Illig  <roland.illig@gmx.de>
1346         * view.c (struct WView): Removed the view_active field. It was
1347         practically equivalent to view->datasource != DS_NONE.
1348         * view.c (do_view_init): Renamed to view_load().
1349         * view.c (view_new): Every field of the WView is initialized
1350         explicitly.
1351         * view.c: Removed the "file monitor" feature (tail -f). It has
1352         not been working since at least mc-4.6.0.
1353         * view.c (struct WView): Removed the "first" field, as it was
1354         always 0.
1355         * view.c (struct WView): Renamed hexedit_text to hexview_in_text.
1356         * view.c (struct WView): Changed the type of hex_mode to gboolean.
1357         Fixed one non-boolean operation in toggle_wrap_mode().
1358         * view.c (struct WView): Renamed viewer_nroff_flag to
1359         text_nroff_mode.
1360         * view.c (struct WView): Moved hexedit_mode into the "Editor
1361         modes" section.
1362         * view.c (struct WView): Renamed viewer_magic_flag to magic_mode.
1363         * view.c (struct WView): Renamed wrap_mode to text_wrap_mode, as
1364         it only applies to the text viewer.
1365         * view.c (struct WView): Renamed growing_buffer to growbuf_in_use,
1366         blocks to growbuf_blocks, block_ptr to growbuf_blockptr.
1367         * view.c (struct WView): Renamed ds_file_size to ds_file_filesize,
1368         to avoid confusion with ds_file_datasize.
1369         * layout.c: Followed the renaming of view_init() to view_load().
1370         * view.h: Likewise.
1372 2005-04-13  Roland Illig  <roland.illig@gmx.de>
1374         * util.h (str_unconst): Provide a replacement for the const_cast
1375         macro from global.h.
1376         * util.c (str_unconst): Likewise.
1378         * view.c (struct WView): Removed the last_byte field, because it
1379         got too complex maintaining it together with the new datasource
1380         framework. The function view_get_filesize() now takes its place.
1381         Corrected the type of the growing buffer to unsigned char. Added
1382         a field growbuf_finished to indicate when all data has been read.
1383         * view.c (view_move_cursor_to_eol): Renamed to
1384         view_hexview_move_to_eol().
1385         * view.c (view_get_filesize): Added.
1386         * view.c (view_get_filesize_with_exact): Added.
1387         * view.c (get_byte_indexed): get_byte with bounds checking.
1388         * view.c (view_growbuf_read_until): Closes the datasource after
1389         reading has finished.
1390         * view.c (view_percent): The percentage is only shown when its
1391         exact value can be computed.
1392         * view.c (view_status): The [grow] field has been removed from
1393         the status line. Instead, the filesize is reported as ">= n"
1394         bytes.
1395         * view.c (count_backspaces): Added a bounds check.
1396         * view.c (display): Using get_byte_indexed instead of get_byte.
1397         * view.c (move_forward2): Renamed to view_move_forward2 because
1398         of the equally-named function in src/help.c.
1399         * view.c (get_bottom_first): Added bounds checking.
1400         * view.c (move_right): Simplified the code.
1401         * view.c (goto_addr): Fixed an off-by-one error.
1402         * view.c (view_close_datasource): For the growing buffer cases,
1403         check if the datasource has already been closed before.
1404         * view.c (view_handle_editkey): Simplified the code.
1405         * view.c (get_byte_growing_buffer): Added bounds checking.
1407 2005-04-07  Roland Illig  <roland.illig@gmx.de>
1409         * view.c: Removed mmap(2) support. Now regular files are
1410         accessed using mc_read(). Added a framework for datasources.
1411         Introduced assertions. Removed some variables (e.g. view->data)
1412         that were used for many things simultaneously.
1414 2005-04-07  Roland Illig  <roland.illig@gmx.de>
1416         * dialog.h: Removed a comma at the end of an enumeration, because
1417         ANSI does not permit it.
1419 2005-04-06  Roland Illig  <roland.illig@gmx.de>
1421         * x11conn.c (x_io_error_handler): Close the X11 connection when
1422         a protocol error occurs. Otherwise the X11 connection is held
1423         open, which may keep ssh from closing the connection.
1425 2005-03-28  Pavel Roskin  <proski@gnu.org>
1427         * screen.c (chdir_other_panel): When used on a file entry, move
1428         selection on the inactive panel to select the entry for the
1429         current directory on the active panel.
1431 2005-03-25  Andrew V. Samoilov  <sav@bcs.zp.ua>
1433         * keyxdef.c: Constify struct qnx_key_define_s typedef.
1435 2005-03-25  Mike Gorchak  <mike@malva.ua>
1437         * key.c (get_modifier): Fixed dynamic loading of the Photon
1438         library for shift keys, only current version of libph used now.
1439         (qansi_key_defines): Swapped Gray '-' and '+' codes definitions,
1440         due to fixed bugs in the QNX6's console driver.
1442 2005-03-23  Pavel S. Shirshov  <me@pavelsh.pp.ru>
1444         * util.c (load_file_position): Fix mcedit position save bug. Read a
1445         number after ';'.
1447         From Christian Hamar  <krics@linuxforum.hu>
1449 2005-03-21  Pavel Roskin  <proski@gnu.org>
1451         * key.c (init_key): Load xterm_key_defines for terminals with
1452         names starting with "rxvt".
1454 2005-03-19  Pavel Roskin  <proski@gnu.org>
1456         * slint.c: Don't use private S-Lang functions if they are
1457         unavailable.
1459 2005-03-17  Pavel Roskin  <proski@gnu.org>
1461         * screen.c (chdir_other_panel): Prevent changing current
1462         directory.  Remove incorrect comment.
1464         * achown.c (update_permissions): Partly revert recent changes
1465         because they cause infinite recursion.
1467 2005-03-10  Roland Illig  <roland.illig@gmx.de>
1469         * x11conn.c: Separated X11 connection handling from key.c. Added
1470         error handling for X11 errors and connection errors.
1471         * x11conn.h: The interface for x11conn.h.
1472         * key.c: Now using the x11conn code.
1473         * Makefile.am: Added x11conn.{h,c}.
1475 2005-02-26  Miguel de Icaza  <miguel@novell.com>
1477         * screen.c (chdir_other_panel): Restored original functionality.
1479         (sync_other_panel): This is now bound to the key Alt-i, and is the
1480         functionality that was lost.
1482 2005-01-29  Miguel de Icaza  <miguel@novell.com>
1484         * utilunix.c (init_groups): Added support for getgrouplist().
1485         Patch from Stefan Gohmann <gohmann@univention.de>.
1487 2005-02-23  Roland Illig  <roland.illig@gmx.de>
1489         * tty.h: Moved the function printwstr() to slint.c, because the
1490         SunPro compiler does not eliminate unused inline functions.
1491         * slint.c: printwstr() has been moved to here.
1492         * unixcompat.h: Only include <sys/sysmacros.h> if we're on AIX,
1493         as Solaris defines the macros twice---once in <sys/mkdev.h>,
1494         and once in <sys/sysmacros.h>.
1496 2005-02-23  Roland Illig  <roland.illig@gmx.de>
1498         * screen.c: Changed the return type of ilog10() to unsigned int
1499         and adjusted some variables in format_device_number().
1501 2005-02-22  Roland Illig  <roland.illig@gmx.de>
1503         * unixcompat.h: Added missing parenthesis to the minor() macro.
1505 2005-02-12  Roland Illig  <roland.illig@gmx.de>
1507         * info.c (info_show_info): Casted st_mode to unsigned to avoid
1508         compiler warning on Solaris 9 (st_mode is unsigned long there).
1510 2005-02-12  Jindrich Novy  <jnovy@redhat.com>
1512         * vfs.c (vfs_translate_url): Add support for smb://, sh://,
1513         ssh:// and mc:// filesystem requests. Introduced separate table
1514         for vfs aliases.
1515         * util.c (strip_password): Modifications to take the aliases into
1516         account while eliminating passwords.
1518         The original patch was extended by Roland Illig.
1520 2005-02-12  Roland Illig  <roland.illig@gmx.de>
1522         * screen.c: Reverted my changes from 2005-02-08 (except the
1523         maybe_cd() calls) to not confuse the upcoming UTF-8 patches.
1525 2005-02-12  Andrew V. Samoilov  <sav@bcs.zp.ua>
1527         * glibcompat.c: Add g_strlcat() declaration for glib 1.2.x
1529 2005-02-11  Roland Illig  <roland.illig@gmx.de>
1531         * screen.c (string_file_name): Fixed the displaying of long file
1532         names. The bug had been introduced by me on 2005-02-08.
1533         * screen.c (string_file_nlinks): Likewise.
1535 2005-02-08  Roland Illig  <roland.illig@gmx.de>
1537         * dialog.c: Marked unused parameters. Now dlg_broadcast_msg_to()
1538         does what the comment above it says.
1539         * main.c (maybe_cd): Removed unused parameter.
1540         * main.h: Likewise.
1541         * screen.c: Marked unused parameters. Updated use of maybe_cd().
1542         * cons.handler.c: Marked unused parameters.
1543         * dir.c: Likewise.
1544         * find.c: Likewise.
1545         * help.c: Likewise.
1546         * layout.c: Likewise.
1547         * mountlist.c: Likewise.
1548         * popt.c: Likewise.
1549         * poptconfig.c: Likewise.
1550         * popthelp.c: Likewise.
1551         * regex.c: Likewise.
1552         * subshell.c: Likewise.
1553         * tree.c: Likewise.
1554         * util.c: Likewise.
1555         * utilunix.c: Likewise.
1556         * widget.c: Likewise.
1557         * wtools.c: Likewise.
1559 2005-02-08  Roland Illig  <roland.illig@gmx.de>
1561         * screen.c (string_file_*): Don't use static buffers.
1562         * screen.c (format_file): Provide a buffer for the string_file_*()
1563         functions.
1565 2005-02-08  Roland Illig  <roland.illig@gmx.de>
1567         * widget.h: Renamed define_label() to buttonbar_set_label(). Renamed
1568         define_label_data to buttonbar_set_label_data. Renamed
1569         redraw_labels() to buttonbar_redraw().
1570         * widget.c: Likewise.
1571         * help.c, main.c, screen.c, tree.v, view.c: Likewise.
1572         * util.h: Added macro str_cmp to allow syntactically nice string
1573         comparison.
1575 2005-02-08  Roland Illig  <roland.illig@gmx.de>
1577         * *.c: Reordered header inclusion.
1579 2005-02-08  Andrew V. Samoilov  <sav@bcs.zp.ua>
1581         * ext.c (regex_command): Eliminate g_string_*().
1583 2005-02-08  Roland Illig  <roland.illig@gmx.de>
1585         * dialog.h: Moved and reformatted #definitions.
1586         * execute.h: Likewise.
1587         * mouse.h: Likewise.
1588         * widget.h: Moved constants to the appropriate places (just
1589         before the variable they will be used with).
1590         * widget.c: HISTORY_FILE_NAME was not needed in widget.h,
1591         so it has been made private to this file.
1593 2005-02-07  Roland Illig  <roland.illig@gmx.de>
1595         * unixcompat.h: Emit warnings for the fallback case of the
1596         major/minor/makedev macros.
1598 2005-02-07  Roland Illig  <roland.illig@gmx.de>
1600         * view.c: Changed type of view->blocks from int to size_t.
1601         * view.c: Removed unused parameters from local functions.
1602         * view.c: Reordered #include files.
1604 2005-02-07  Roland Illig  <roland.illig@gmx.de>
1606         * ext.c: Improved message formatting.
1608 2005-02-06  Roland Illig  <roland.illig@gmx.de>
1610         * widget.h: Added a new function button_get_text.
1611         * widget.c: Likewise.
1613 2005-02-06  Roland Illig  <roland.illig@gmx.de>
1615         * achown.c (get_ownership): Simplified the code. Now it is
1616         more independent of the WButton internals.
1617         * achown.c (get_ownership): Renamed to update_ownership.
1618         * achown.c (update_permissions): Update the permission widgets
1619         without accessing WButton->text directly.
1620         * achown.c (print_flags): Use update_permissions.
1621         * achown.c (chown_info_update): Likewise.
1623 2005-02-05  Roland Illig  <roland.illig@gmx.de>
1625         * util.h (msglen): Converted from a function to a procedure.
1626         * util.c (msglen): Changed variable names and did a speedup.
1627         * hotlist.c (add_new_entry_input): Using new msglen function.
1628         * hotlist.c (add_new_group_input): Likewise.
1629         * wtools.c (query_dialog): Likewise.
1630         * wtools.c (fg_input_dialog_help): Likewise.
1632 2005-02-02  Andrew V. Samoilov  <sav@bcs.zp.ua>
1634         * find.c: Implement non-recursive 'Find file' feature.
1635         Original patch by Andrew Borodin <aborodin@vmail.ru> .
1637         * utilunix.c (mc_realpath) [USE_SYSTEM_REALPATH]: Use realpath().
1639 2005-02-01  Andrew V. Samoilov  <sav@bcs.zp.ua>
1641         * utilunix.c (init_groups): Use glib memory allocation functions.
1643 2005-01-31  Roland Illig  <roland.illig@gmx.de>
1645         * view.c: Eliminated two global variables and put them into the
1646         WView structure.
1648 2005-01-29  Miguel de Icaza  <miguel@novell.com>
1650         * utilunix.c (init_groups) [HAVE_GETGROUPLIST]: Use getgrouplist().
1651         Original patch by Stefan Gohmann <gohmann@univention.de>
1653 2005-01-17  Roland Illig  <roland.illig@gmx.de>
1655         * info.c (info_show_info): Enabled display of the device number,
1656         for the case that the column in the directory listing is too
1657         short. This had been disabled since 1994, for no obvious reason
1658         and without any comment.
1659         * screen.c (format_device_number): Added. Converts a device number
1660         into a bounded string.
1661         * screen.c (string_file_size): Support for larger device numbers
1662         (and for non-Linux systems).
1664 2005-01-26  Roland Illig  <roland.illig@gmx.de>
1666         * tty.h (printwstr): Added a function to print a string
1667         left-aligned in a bounded box.
1668         * unixcompat.h (major/minor): Added support for AIX.
1669         * unixcompat.h: Added makedev macro.
1671 2005-01-25  Roland Illig  <roland.illig@gmx.de>
1673         * unixcompat.h: Provides macros and functions that are missing in
1674         some Unix variants.
1675         * Makefile.am: Added unixcompat.h.
1677 2005-01-25  Roland Illig  <roland.illig@gmx.de>
1679         * dialog.h (widget_msg_t): Added WIDGET_RESIZED to inform widgets
1680         that they had been resized.
1681         * dialog.c (widget_set_size): Send a WIDGET_RESIZED message after
1682         setting the size.
1683         * layout.c (panel_do_cols): Don't explicitly update the
1684         bytes_per_line of a hexview WView.
1685         * view.h (view_update_bytes_per_line): Removed from the interface
1686         to WView.
1687         * view.c (view_update_bytes_per_line): Declared as `static'.
1688         * view.c (view_callback): Call update_bytes_per_line when the
1689         WView is initialized and whenever a WIDGET_RESIZED message is
1690         received.
1692 2005-01-19  Jindrich Novy  <jnovy@redhat.com>
1694         * main.c (_do_panel_cd): Delete leading spaces from URL
1695         before vfs_translate_url() call.
1697 2005-01-14  Andrew V. Samoilov  <sav@bcs.zp.ua>
1699         * subshell.c (subshell_name_quote): Eliminate sprintf(d, "%c", ...).
1700         (do_subshell_chdir): Eliminate strlcpy() and optimize.
1702 2005-01-14  Pavel Shirshov  <me@pavelsh.pp.ru>
1704         * subshell.c (do_subshell_chdir): Use mc_realpath() to fix tcsh's
1705         problem with symlink.
1706         * utilunix.c: Add function mc_realpath(). Is the BSD version of
1707         realpath(3).
1708         * util.h: Add mc_realpath() declaration.
1710 2004-12-13  Andrew V. Samoilov  <sav@bcs.zp.ua>
1712         * find.c (find_parameters): Use translated string.
1714 2004-12-10  Andrew V. Samoilov  <sav@bcs.zp.ua>
1716         * command.c (enter): Speed up and simplify.
1718 2004-12-08  Pavel Shirshov  <me@pavelsh.pp.ru>
1720         * subshell.c (init_subshell_child): Don't g_strdup() constant string
1721         in putenv() calls.
1723 2004-12-03  Roland Illig  <roland.illig@gmx.de>
1725         * *.h: Renamed multiple inclusion guards that started with a
1726         double underscore. Added #includes for dependent files.
1727         * popt.c: Likewise.
1728         * popthelp.c: Likewise.
1729         * tree.c: Moved a macro from tree.h to here, as it is useless
1730         outside tree.c.
1731         * view.c: Removed unused macro.
1733 2004-12-02  Roland Illig  <roland.illig@gmx.de>
1735         * view.c (struct WView): Renamed some variables to reflect the
1736         actual use. (view_growbuf_read_until): Moved the growing buffer
1737         handling out of get_byte.
1738         * view.c: Cleaned up the code. Added error handling for the
1739         growing buffer case.
1740         * util.c (extension): Simplified the code.
1741         * util.c (cstrcasestr): Added a function to search for a
1742         substring ignoring case.
1743         * util.h: Added cstrcasestr.
1744         * find.c: Added plaintext search mode.
1746 2004-12-02  Andrew V. Samoilov  <sav@bcs.zp.ua>
1748         * file.c (make_symlink): Constify r.
1750 2004-12-02  Leonard den Ottolander  <leonard * den ottolander nl>
1752         * file.c (copy_dir_dir): Code cleanup (removal of unnecessary goto,
1753         redundant comment, indentation).
1755 2004-12-02  Jindrich Novy  <jnovy@redhat.com>
1757         * filegui.c (init_replace): Use off_t instead of int for file
1758         sizes. Use proper format string parameter for size.
1760 2004-11-30  Pavel Tsekov  <ptsekov@gmx.net>
1762         * widget.c (listbox_drawscroll): Fix declaration of `slow_terminal'.
1763         (listbox_new): Likewise.
1765 2004-11-29  Pavel Tsekov  <ptsekov@gmx.net>
1767         * main.c (midnight_callback): Make the the keystrokes the invoke
1768         select_cmd(), unselect_cmd() and reverse_selection_cmd () work
1769         even if the command prompt is turned off.
1771         This bug was reported by Alex Yosifov.
1773 2004-11-26  Andrew V. Samoilov  <sav@bcs.zp.ua>
1775         * execute.c (shell_execute): Optimize memory usage.
1776         * ext.c (regex_check_type): Likewise.
1778 2004-11-02  Pavel Tsekov  <ptsekov@gmx.net>
1780         * help.c (help_event): Fix offset of event area for mouse click.
1782 2004-11-19  Roland Illig  <roland.illig@gmx.de>
1784         * Makefile.am: Excluded pipethough.3 from the distribution
1785         as it is currently unused.
1787 2004-11-18  Pavel Shirshov  <me@pavelsh.pp.ru>
1789         * user.c (execute_menu_command): Revert last changes. Execute
1790         shell_execute() with flag EXECUTE_HIDE to prevent recording
1791         in ~/.bash_history.
1792         * execute.h: Add EXECUTE_HIDE flag. It's used to prefix the command
1793         with a space.
1794         * execute.c (shell_execute): Prefix the command with a space, if define
1795         EXECUTE_HIDE flag.
1797 2004-11-17  Roland Illig  <roland.illig@gmx.de>
1799         * screen.c (do_search): Ignore the backspace key on empty
1800         quick-search.
1802         From Egmont Koblinger <egmont * uhulinux hu>
1804 2004-11-15  Leonard den Ottolander  <leonard * den ottolander nl>
1806         * file.c: Code cleanup (mostly indentation).
1807         * user.c (execute_menu_command): Prefix the command with a space
1808         to prevent recording in ~/.bash_history.
1810 2004-11-12  Pavel Shirshov  <me@pavelsh.pp.ru>
1812         * user.c (expand_format): Return % with followed character if it
1813         without special meaning.
1815 2004-11-11  Roland Illig  <roland.illig@gmx.de>
1817         * popthelp.c (showHelpIntro): The basename of argv[0] starts after
1818         the last slash in argv[0], not after the first.
1820         From Egmont Koblinger <egmont * uhulinux hu>
1822 2004-11-10  Roland Illig  <roland.illig@gmx.de>
1824         * Makefile.am: Excluded pipethough.{c,h} from the distribution
1825         as they are currently unused.
1827 2004-11-10  Andrew V. Samoilov  <sav@bcs.zp.ua>
1829         * hotlist.c (unlink_entry): Add missed brackets.
1830         (add_new_entry_cmd): Fix memory leaks and double free()s.
1831         (add2hotlist_cmd): Eliminate static label_string.
1832         * regex.c: Define HAVE_WCTYPE_H to 0 if not defined to fix compilation.
1834 2004-11-09  Pavel Shirshov  <me@pavelsh.pp.ru>
1836         * util.c (strip_password): Fix bug - don't delete path from url.
1838 2004-11-09  Jindrich Novy  <jnovy@redhat.com>
1840         * filegui.c (file_mask_dialog): Fix memory leak.
1841         * hotlist.c (add_new_entry_cmd): Filter out a possible password
1842         dialogs.
1843         (add2hotlist_cmd): Likewise.
1845 2004-11-07  Leonard den Ottolander  <leonard * den ottolander nl>
1847         * slint.c (slang_init): Allow upto 512 lines and cols if the
1848         SLang library can handle it.
1850 2004-11-07  Roland Illig  <roland.illig@gmx.de>
1852         * key.c (use_8th_bit_as_meta): Use 8bit input as default.
1854         From Vladimir Nadvornik <nadvornik * suse cz>
1856 2004-11-04  Mike Gorchak  <mike@malva.ua>
1858         * dir.c (file_type_to_num): Added initial support for the Special Named
1859         Files. They are displayed as block devices, but with '#' prefix in it's
1860         names. Needed on QNX Neutrino.
1861         * file.c (copy_file_file): Likewise.
1862         * fs.h: Likewise.
1863         * screen.c (string_file_type): Likewise.
1864         (file_compute_color): Likewise.
1865         * util.c (string_perm): Likewise.
1867         * pipethrough.c: Added sys/select.h if found according to config.h.
1869 2004-11-04  Jindrich Novy  <jnovy@redhat.com>
1871         * screen.c (show_dir): A small fix to avoid a crash in show_dir() with
1872         a panel of more than 200 columns.
1874 2004-11-03  Andrew V. Samoilov  <sav@bcs.zp.ua>
1876         * file.c (make_symlink): Use g_strlcpy() instead of strcpy().
1878 2004-11-03  Jindrich Novy  <jnovy@redhat.com>
1880         * subshell.c (do_subshell_chdir): Filter out a possible password from
1881         warning dialog.
1883         * command.c (do_cd_command): Likewise.
1885         * screen.c (panel_callback): Likewise.
1887         * util.c (path_trunc): Add function. path_trunc() is the same as
1888         name_trunc(), but it deletes possible password from path for security
1889         reasons.
1891         * util.h: Add functions path_trunc().
1893         * filegui.c (file_progress_show_target): Filter out a possible password
1894         from dialog.
1895         (file_progress_show_deleting): Likewise.
1896         (file_mask_dialog): Likewise.
1898         * file.c (move_file_file): Likewise.
1899         (move_dir_dir): Likewise.
1900         (file_error): Likewise.
1901         (files_error): Likewise.
1902         (real_query_recursive): Likewise.
1904         * hotlist.c (add2hotlist): Typo fix.
1906 2004-11-02  Pavel Tsekov  <ptsekov@gmx.net>
1908         * dialog.c (do_select_widget): Walk the whole widgets list looking
1909         for a widget accepting the focus.
1911 2004-11-01  Roland Illig  <roland.illig@gmx.de>
1913         * utilunix.c (mc_tmpdir): Use putenv(3) instead of setenv(3) if
1914         the latter is not available. Needed for Solaris.
1916 2004-10-29  Pavel Tsekov  <ptsekov@gmx.net>
1918         * complete.c (completion_matches): Fix duplicate completion matches
1919         if there are more than two matches available.
1921 2004-10-25  Andrew V. Samoilov  <sav@bcs.zp.ua>
1923         * cmd.c (select_unselect_cmd): Collect repeated code from
1924         (un)?select_cmd here.  Fix rare off-by-one and memory leak if
1925         empty pattern passed.
1927         (select_cmd): Use select_unselect_cmd().
1928         (unselect_cmd): Likewise.
1930 2004-10-23  Roland Illig  <roland.illig@gmx.de>
1932         * complete.c (environ): Don't declare environ on Cygwin.
1933         * utilunix.c (mc_tmpdir): Convert uid to unsigned long for
1934         pathname of the temporary directory.
1936         From Pavel Tsekov <ptsekov gmx net>.
1938 2004-10-23  Roland Illig  <roland.illig@gmx.de>
1940         * regex.c (regerror): Never use the __memcpy function, as it
1941         breaks the build on Cygwin.
1943 2004-10-22  Roland Illig  <roland.illig@gmx.de>
1945         * regex.c: Fix the C preprocessor feature tests. They produced
1946         warnings before.
1947         * view.c (display): Fixed bug that displayed an empty file in
1948         hexview mode with growing buffers.
1950 2004-10-22  Pavel Shirshov  <me@pavelsh.pp.ru>
1952         * main.c (print_color_usage): Update list of keywords for global,
1953         menu and help.
1955 2004-10-21  Roland Illig  <roland.illig@gmx.de>
1957         * cons.saver.c (die): Declare as "static" to avoid gcc warning.
1958         (send_contents): Likewise.
1960 2004-10-20  Jakub Jelinek  <jakub@redhat.com>
1962         * user.c (user_menu_cmd): Fix error. test_line() doesn't handle
1963         consecutive '+'s and '='s correctly. Pass a line starting with
1964         a single '+' or '=' instead.
1966 2004-10-17  Andrew V. Samoilov  <sav@bcs.zp.ua>
1968         * hotlist.c (add_new_entry_cmd): Fix memory leaks.
1970 2004-10-16  Roland Illig  <roland.illig@gmx.de>
1972         * file.c (do_file_error): Add const qualifier. (query_recursive):
1973         Likewise. (query_replace): Likewise.
1974         * view.c: Rename EOF_offset to INVALID_OFFSET, as it is mostly
1975         used to mark an invalid cache.
1977 2004-10-13  Jindrich Novy  <jnovy@redhat.com>
1979         * util.c (strip_password): Add "/#sh:".
1981 2004-10-12  Andrew V. Samoilov  <sav@bcs.zp.ua>
1983         * myslang.h: Check USE_INCLUDED_SLANG properly.
1985 2004-10-11  Roland Illig  <roland.illig@gmx.de>
1987         * utilunix.c (close_error_pipe): Fixed possible invalid memory access
1988         (three lines below).
1990 2004-10-11  Leonard den Ottolander  <leonard * den ottolander nl>
1992         * file.c (copy_dir_dir): Small text fix.
1994 2004-10-06  Alexander Savelyev  <i@fano.com.ua>
1996         * fileopctx.h (struct FileOpContext): Use off_t for offset.
1998 2004-10-05  Miroslav Rudisin  <miero+gnu@atrey.karlin.mff.cuni.cz>
2000         * util.c(strip_password): Add support for '@' in username.
2002 2004-10-05  Jakub Jelinek  <jakub@redhat.com>
2004         * cons.saver.c: Partly rewritten cons.saver.c.
2006 2004-09-28  Andrew V. Samoilov  <sav@bcs.zp.ua>
2008         * util.c (convert_controls): Fix possible buffer overflow
2009         for ".*^" strings.
2011 2004-09-27  Andrew V. Samoilov  <sav@bcs.zp.ua>
2013         * complete.c [__linux__ && !__USE_GNU]: Fix compilation on Red Hat 7.3
2014         * util.c (convert_controls): Fix compilation.
2016 2004-09-26  Roland Illig  <roland.illig@gmx.de>
2018         * pipethrough.c: #include <string.h> to compile on Solaris.
2019         * util.h (convert_controls): Adjusted the comment to what the
2020         function really does.
2022 2004-09-26  Mike Gorchak  <mike@malva.ua>
2024         * key.c (qansi_key_defines[]): Add support for qansi-m terminals.
2025         Needed on QNX Neutrino. (correct_key_code): Likewise.
2027 2004-09-25  Roland Illig  <roland.illig@gmx.de>
2029         * pipethrough.c: Added pipethrough, a function to execute child
2030         processes in a simple way.
2031         * pipethrough.h: The interface for the function.
2032         * pipethrough.3: The manpage (will be installed in maintainer-mode).
2033         * Makefile.am: Added the files to SRCS.
2035 2004-09-25  Roland Illig  <roland.illig@gmx.de>
2037         * view.c (display): Recognize "+\bo" as a list item in nroff mode.
2038         Display "_\b_" correctly in both colors.
2040         * view.c (hex_search): Added const qualifier.
2041         * boxes.c (display_unit): Likewise.
2042         * command.c (examine_cd): Likewise. Additionally used g_strdup to
2043         not accidentally modify an environment variable.
2044         * complete.c (command_completion_function): Likewise.
2045         (filename_completion_function): Likewise. (try_complete): Likewise.
2046         (variable_completion_function): Likewise.
2047         * file.c (check_hardlinks): Likewise.
2048         * find.c (find_do_view_edit): Likewise. (find_file): Likewise.
2049         * global.h (home_dir): Likewise.
2050         * main.c (get_parent_dir_name): Likewise. (init_xterm_support):
2051         Likewise. (OS_Setup): Likewise.
2052         * menu.c (create_menu): Likewise.
2053         * mountlist.c (xatoi): Likewise. (read_filesystem_list): Likewise.
2054         * poptconfig.c (poptReadDefaultConfig): Likewise.
2055         * popthelp.c (showHelpIntro): Likewise.
2056         * rxvt.c (look_for_rxvt_extensions): Likewise.
2057         * slint.c (has_colors): Likewise.
2058         * subshell.c (check_sid): Likewise.
2059         * user.c (check_format_var): Likewise.
2060         * widget.c (radio_callback): Likewise.
2062 2004-09-25  Pavel Shirshov  <me@pavelsh.pp.ru>
2064         * boxes.c (configure_vfs): g_free handles NULL argument too,
2065         no need for the comparison.
2066         * cmd.c (set_panel_filter_to): Likewise.
2067             (do_link): Likewise.
2068             (quick_cd_cmd): Likewise.
2069         * color.c (done_colors): Likewise.
2070         * dialog.c (destroy_dlg): Likewise.
2071         * dir.c (alloc_dir_copy): Likewise.
2072         * ext.c (flush_extension_file): Likewise.
2073         * file.c (copy_file_file): Likewise.
2074             (panel_operate): Likewise.
2075         * hotlist.c (remove_group): Likewise.
2076             (remove_from_hotlist): Likewise.
2077             (done_hotlist): Likewise.
2078         * main.c (main): Likewise.
2079         * setup.c (panel_load_setup): Likewise.
2080         * tree.c (tree_destroy): Likewise.
2081             (show_tree): Likewise.
2082         * user.c (user_menu_cmd): Likewise.
2083         * utilunix.c (i_cache_add): Likewise.
2084             (putenv): Likewise.
2085         * view.c (view_done): Likewise.
2086             (regexp_search): Likewise.
2087             (normal_search): Likewise.
2088             (change_viewer): Likewise.
2089         * widget.c (label_set_text): Likewise.
2090             (set_label_text): Likewise.
2092 2004-09-24  Roland Illig  <roland.illig@gmx.de>
2094         * file.c (progress_update_one): Changed parameter type from int
2095         to off_t.
2097         Fixes http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=124241
2099 2004-09-24  Roland Illig  <roland.illig@gmx.de>
2101         * util.c (load_file_position): Fixed possible segmentation fault
2102         when an $HOME/.mc/filepos did not contain a ';'.
2104 2004-09-24  Roland Illig  <roland.illig@gmx.de>
2106         * boxes.c: Replaced NULL with (char *) NULL. Likewise for 0, where
2107         NULL was meant.
2108         * cmd.c: Likewise.
2109         * dialog.c: Likewise.
2110         * ext.c: Likewise.
2111         * file.c: Likewise.
2112         * find.c: Likewise.
2113         * hotlist.c: Likewise.
2114         * learn.c: Likewise.
2115         * main.c: Likewise.
2116         * screen.c: Likewise.
2117         * setup.c: Likewise.
2118         * treestore.c: Likewise.
2119         * user.c: Likewise.
2120         * util.c: Likewise.
2121         * utilunix.c: Likewise.
2122         * view.c: Likewise.
2123         * widget.c: Likewise.
2124         * wtools.c: Likewise.
2126 2004-09-24  Roland Illig  <roland.illig@gmx.de>
2128         * cons.handler.c (handle_console_linux): Replaced NULL with
2129         (char *) NULL in call to execl.
2130         * subshell.c (init_subshell_child): Likewise.
2131         * utilunix.c (my_system): Likewise.
2133         From patches from the OpenBSD ports collection.
2135 2004-09-23  Roland Illig  <roland.illig@gmx.de>
2137         * main.c (OS_Setup): Fixed segmentation fault.
2139         From Oskar Liljeblad <oskar osk.mine.nu>
2141 2004-09-21  Leonard den Ottolander  <leonard * den ottolander nl>
2143         * filegui.c (file_mask_dialog): Expand tilde. Remove redundant
2144         ifs before g_free().
2146 2004-09-19  Roland Illig  <roland.illig@gmx.de>
2148         * achown.c: Added const qualifiers and const_cast.
2149         * background.c: likewise.
2150         * boxes.c: likewise.
2151         * file.c: likewise.
2152         * filegui.c: likewise.
2153         * find.c: likewise.
2154         * hotlist.c: likewise.
2155         * info.c: likewise.
2156         * layout.c: likewise.
2157         * myslang.h: likewise.
2158         * option.c: likewise.
2159         * user.c: likewise.
2160         * util.c: likewise.
2161         * utilunix.c: likewise.
2162         * view.c: likewise.
2163         * widget.c: likewise.
2164         * complete.c: Surrounded the declaration of environ by and #ifdef
2165         guard to avoid a GCC warning about a redundant declaration.
2166         * cmd.c: renamed edit() to edit_file() to avoid GCC shadow
2167         warnings (many variables are also called edit).
2168         * main.c: likewise.
2170 2004-09-19  Roland Illig  <roland.illig@gmx.de>
2172         * util.c (strip_home_and_password): Fixed possible buffer overflow.
2174 2004-09-19  Roland Illig  <roland.illig@gmx.de>
2176         * find.c: Applied patch to make the find dialog more responsive
2177         while scanning through large files.
2179         From Jindrich Makovicka <makovick kmlinux.fjfi.cvut.cz>
2181 2004-09-18  Roland Illig  <roland.illig@gmx.de>
2183         * view.c (view_handle_key): Fixed invalid-offset-bug when handling
2184         ctrl-e in hex mode.
2186 2004-09-18  Roland Illig  <roland.illig@gmx.de>
2188         * help.c (search_string): Fixed a warning about a const qualifier.
2189         A local copy of the string is used for modifying.
2190         * menu.h: Removed the const qualifier from Menu.name and
2191         Menu.help_node as they are freed in destroy_menu.
2192         * menu.c (destroy_menu): Removed the (now unnecessary) casts.
2193         * popt.h: Removed a const qualifier to avoid compiler warnings.
2194         * profile.c (get_profile_string): Added const qualifiers to
2195         avoid compiler warnings. (GetSetProfile): likewise.
2196         (GetSetProfileChar): likewise.
2197         * profile.h (get_profile_string): likewise.
2198         * win.c (check_movement_keys): likewise.
2199         * win.h (check_movement_keys): likewise.
2201 2004-09-17  Pavel Shirshov  <me@pavelsh.pp.ru>
2203         * ext.c (get_file_type_local): Fixes <zombies> in
2204         QNX 6.x (QNX Neutrino) when guessing file type before
2205         viewing file.
2207         Based on patch from Dmitry Alexeyev <dmi_a@qnx.org.ru>
2209 2004-09-17  Andrew V. Samoilov  <sav@bcs.zp.ua>
2211         * hotlist.c (add_new_entry_input): Fix warnings.
2212         * wtools.h (QuickWidget): Make text const.
2213         * wtools.c (fg_input_dialog_help): Fix warning.
2215 2004-09-14  Leonard den Ottolander  <leonard * den ottolander nl>
2217         * utilunix.c (tilde_expand): Fix extra slash in result from
2218         tilde_expand() for ~<user>/dir.
2220 2004-09-14  Pavel Tsekov  <ptsekov@gmx.net>
2222         * key.c (get_modifier): Recognize keyboard modifiers on Cygwin.
2224 2004-09-12  Pavel Shirshov  <me@pavelsh.pp.ru>
2226         * execute.c (toggle_panels): Fix error. show_output_starts_shell=1
2227         is not working
2228         * cmd.c (view_other_cmd): Likewise.
2230         From Petr Hadraba <hadrabap@volny.cz>
2232 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
2234         * view.c (get_byte): Fix avoid dying if file is too large
2235         to fit into memory.
2236         (load_view_file): Fix avoid mmaping just part of a >=4GB file
2237         on 32-bit arches.
2239         * setup.c (load_keys_from_section): Handle "copy".
2240         gnome-terminal started using TERM=gnome instead of TERM=xterm,
2241         so does rxvt etc.
2242         Instead of making mc.lib really huge and hard to edit
2243         by repeating same keys for every xterm alternative,
2244         I have added a special key "copy", with argument name of terminal.
2245         mc will in this case read the keys from the referenced terminal's
2246         keys from the same file as well.
2248 2004-09-04  Jakub Jelinek  <jakub@redhat.com>
2250         * info.c (info_show_info): don't truncate block counts to 32 bits
2251         on 64-bit platforms
2253 2004-09-04  Pavel S. Shirshov  <me@pavelsh.pp.ru>
2255         * subshell.c (exit_subshell): Prevent unwanted reuse of freed
2256         pty_buffer.
2257         * complete.c (variable_completion_function): strncpy()->memcpy()
2258         changes are because we know there is no '\0' among the first
2259         length bytes.
2260         (insert_text): Likewise.
2261         (command_completion_function): Avoid memory leaks.
2262         (filename_completion_function): g_free handles NULL argument too,
2263         no need for the comparison.
2264         (try_complete): Likewise.
2265         (command_completion_function): Likewise.
2266         (free_completions): Likewise.
2267         * widget.c (gauge_callback): Fix for 64-bit arches (%*s len must
2268         be int, %3d takes int.
2269         (copy_region): g_free handles NULL argument too, no need for
2270         the comparison.
2271         (kill_line): Likewise.
2272         * find.c (do_search): Likewise.
2273         (init_find_vars): Likewise.
2274         (do_find): Likewise.
2275         * util.c (get_current_wd): We know there is just one '\0' byte
2276         in p, at p[len - 1].
2278         Based on patch from Jakub Jelinek  <jakub@redhat.com>
2280 2004-09-03  Pavel S. Shirshov  <me@pavelsh.pp.ru>
2282         * menu.c (destroy_menu): Fix warnings.
2283         * view.c (view_adjust_size): Likewise.
2284         * widget.c (find_buttonbar): Likewise.
2286         Based on patch from Jakub Jelinek  <jakub@redhat.com>
2288 2004-09-02  Roland Illig  <roland.illig@gmx.de>
2290         * color.c (try_alloc_color_pair (ncurses)): Added const qualifier
2291         to the arguments.
2293 2004-09-02  Roland Illig  <roland.illig@gmx.de>
2295         * man2hlp.c (handle_link): Added header "glibcompat.h" because
2296         glib-1.2 does not know g_strlcpy().
2297         * Makefile.am (man2hlp): Added source file glibcompat.c for
2298         glib-1.2 compatibility.
2300 2004-09-02  Pavel S. Shirshov  <me@pavelsh.pp.ru>
2302         * complete.c (completion_matches): Use more suitable function
2303         g_strndup() instead of sequence g_malloc(), strncpy(),
2304         name[len] = '\0'
2305         * widget.c (copy_region): Likewise.
2306         (delete_region): Use memmove() instead of strcpy().
2307         * user.c (debug_out): Eliminate buffer array.
2308         (test_line): Likewise.
2310         Based on patch from Jakub Jelinek  <jakub@redhat.com>
2312 2004-09-02  Pavel S. Shirshov  <me@pavelsh.pp.ru>
2314         * color.c (load_dialog_colors): Make a separate color for
2315         hotkeys in red dialogs.
2316         * color.h: Likewise.
2317         * view.c (view_ok_to_quit): Add hotkey to dialog.
2319 2004-09-01  Pavel S. Shirshov  <me@pavelsh.pp.ru>
2321         * user.c (check_format_var): Use more suitable function
2322         g_strndup() instead of sequence g_malloc(), strncpy(),
2323         name[len] = '\0'
2324         * man2hlp.c (handle_link): Use g_strlcpy() instead of sequence
2325         strncpy(), name[len] = '\0'
2326         * profile.c (GetSetProfile): Likewise.
2327         * wtools.c (fg_input_dialog_help): Likewise.
2329         Based on patch from Jakub Jelinek  <jakub@redhat.com>
2331 2004-09-01  Andrew V. Samoilov  <sav@bcs.zp.ua>
2333         * wtools.h: Fix warnings.
2334         * selcodepage.c (select_charset): Likewise.
2335         * boxes.c (display_bits_box): Likewise.
2337 2004-09-01  Pavel S. Shirshov  <me@pavelsh.pp.ru>
2339         * color.c (mc_init_pair): Use cast to avoid warning.
2340         * screen.c (display_mini_info): Likewise.
2341         * slint.c (do_define_key): Likewise.
2342         * tree.c (tree_show_mini_info): Likewise. (show_tree):Likewise.
2343         * view.c (view_status): Likewise.
2345 2004-08-29  Roland Illig  <roland.illig@gmx.de>
2347         * background.c (do_background): Fixed file descriptor leak.
2349 2004-08-29  Roland Illig  <roland.illig@gmx.de>
2351         * Code cleanup: Added const qualifier for variables and
2352         function declarations where possible. No functional changes.
2354 2004-08-26  Roland Illig  <roland.illig@gmx.de>
2356         * cmd.c (do_link): Fixed memory leak and cleaned up code.
2358 2004-08-21  Pavel Shirshov  <me@pavelsh.pp.ru>
2360         * utilunix.c (tilde_expand): Use more suitable function
2361         g_strndup, instead sequence g_malloc, strncpy, name[len] = '\0'
2363 2004-08-19  Roland Illig  <roland.illig@gmx.de>
2365         * util.h (move_backward2): Fixed endless loop. Cleaned up code.
2366         The only case that's left with the old code is text mode with
2367         line wrapping. (move_backward2_textmode_wrap): The special case
2368         of moving some lines up in text mode with line wrapping enabled.
2370 2004-08-19  Roland Illig  <roland.illig@gmx.de>
2372         * util.h: Added the function free_after for easier handling
2373         of dynamically allocated strings.
2375 2004-08-19  Roland Illig  <roland.illig@gmx.de>
2377         * util.c: Added the function str_replace, which replaces
2378         all occurences of a character in a string.
2380 2004-08-16  Roland Illig  <roland.illig@gmx.de>
2382         * achown.c (apply_advanced_chowns): Added explicit cast
2383         (uid_t) -1 and (gid_t) -1, as on most systems uid_t and gid_t
2384         are unsigned. This avoids a GCC warning about comparison
2385         between types differing in signedness. No functional changes.
2387         * background.c (background_attention): Replaced int with ssize_t
2388         to correctly handle calls to POSIX read(). No other functional
2389         changes.
2391         * boxes.c: const'ified some declarations. Now using the
2392         NULL_QuickWidget macro to mark the end of arrays of QuickWidgets.
2393         No functional changes.
2395         * chown.c: Added missing initializers. No functional changes.
2397         * color.c (configure_colors_string): Using size_t for variables
2398         indexing arrays. (get_color): likewise. (init_colors): likewise.
2399         No functional changes.
2401         * command.c: Using size_t for variables indexing arrays.
2402         (command_insert): Changed the type of the second parameter to
2403         const char *, as it is not modified inside the function.
2404         (do_cd_command): Added a comment about quoting the argument to
2405         the internal "cd" command. No functional changes.
2407         * complete.c: TODO
2409         * dialog.c (create_dlg): Made the parameters help_ctx and title
2410         const. No functional changes.
2412         * execute.c (execute_with_vfs_arg): Applied necessary changes to
2413         the new mc_ungetlocalcopy.
2415         * ext.c: Applied necessary changes to the new mc_ungetlocalcopy.
2417         * file.c: Needs the implementation details of the vfs, so include
2418         "../vfs/vfs-impl.h". Adjusted some data types to size_t and const
2419         char *. No functional changes.
2421         * filegui.c: Now using NULL_QuickWidget as initializer.
2422         No functional changes.
2424         * find.c: Added const modifier for text of buttons. No functional
2425         changes.
2427         * global.h: New macro const_cast to indicate places where a const
2428         is casted away but ideally shouldn't.
2430         * hotlist.c: Type changes to size_t and const char *. No functional
2431         changes.
2433         * info.c (info_show_info): Explicitly casted st.st_blocks to avoid
2434         invalid typed argument for printf. Changed a literal 0xffffffff to
2435         -1 to fit into the type with which it is compared. No functional
2436         changes.
2438         * key.c: Added a const modifier. No functional changes.
2440         * layout.c: Added const modifiers and changed int to size_t where
2441         appropriate. No functional changes.
2443         * main.c: Added explicit initializers to global variables. Replaced
2444         the initializer 0 by NULL for pointers. Removed the (unused)
2445         parameter for keyboard-mapped functions. (version): Renamed to
2446         show_version to avoid name conflicts with equally-named variables.
2447         Added missing initializers for popt arguments.
2449         * main.h: Fixed the FIXME near the key_callback typedef.
2450         (vfs_print_message): Added a const modifier to the msg parameter.
2452         * menu.c (create_menu): Avoided a GCC warning concerning the
2453         comparison of unsigned and signed expressions. No functional changes.
2455         * mountlist.c: Replaced (char *) 0 by NULL. No functional changes.
2457         * options.c: Made PAUSE_OPTIONS look uniformly. Added const modifier
2458         where appropriate. No functional changes.
2460         * popthelp.c: Added missing initializers. No functional changes.
2462         * profile.c (profile_clean_section): Added const modifier to
2463         parameter appname. No functional changes.
2465         * screen.c (string_file_name): Replaced int by size_t.
2466         (string_file_perm_octal): Changed output format to long octal, because
2467         there might be more than 16 significant bits. Added the specialized
2468         function type panel_key_callback and added wrapper functions for
2469         functions that don't ordinarily take a WPanel * argument.
2471         * slint.c (SLang_getkey2): Replaced memcpy by memmove, as src and
2472         dest are overlapping. Changed an int to a size_t.
2474         * subshell.c (check_sid): Added prototype to the definition.
2475         Removed unnecessary casts from void * to char *.
2476         Fixed a format string bug (changed %s to %d for a file descriptor).
2478         * textconf.c (version): Renamed to show_version to avoid name
2479         conflicts with variables.
2481         * tree.c: Added an own callback function type that takes a WTree *
2482         as first parameter and adjusted the calling functions.
2484         * util.c (str_replace): replaces all occurences of a character by
2485         another character. Modifies the given string in-place.
2486         (x_basename): Now returns a const char * instead of a char *.
2488         * util.h (free_after): Frees its second argument after evaluating
2489         both arguments. See util.h for usage.
2491         * utilunix.c (tilde_expand): Now using g_strdup instead of g_malloc
2492         + strncpy.
2494         * widget.c: Added the const modifier for strings in many places.
2496         * wtools.c: Added the const modifier for strings in many places.
2498         * view.c: Replaced various occurences of int, long and unsigned long
2499         (all meaning the same) by the newly created offset_type to have
2500         a uniform look. (move_backward2): Simplified the function to be
2501         more readable. Outsourced the hardest case into
2502         move_backward2_textmode_wrap and left it with the old code.
2504 2004-08-19  Pavel Shirshov  <me@pavelsh.pp.ru>
2506         * utilunix.c (mc_tmpdir): Fix typos in comment.
2507         Set MC_TMPDIR environment variable for vfs scripts.
2508         Clear error after successful test of mc temp dir.
2510 2004-08-19  Pavel Shirshov  <me@pavelsh.pp.ru>
2512         * screen.c (paint_frame): Fix possible buffer overflow.
2514 2004-08-18  Pavel Shirshov  <me@pavelsh.pp.ru>
2516         * background.c (do_background): Use O_RDWR when opening
2517         the file '/dev/null' for replacement standard streams.
2519 2004-08-17  Pavel Shirshov  <me@pavelsh.pp.ru>
2521         * utilunix.c (mc_tmpdir): Check return value of getpwuid()
2522         for NULL.
2524 2004-04-18  Pavel Roskin  <proski@gnu.org>
2526         * vfsdummy.h [!USE_VFS]: Make sure that vfs_canon() doesn't
2527         change the original string.  Fix compilation without VFS.
2529 2004-03-07  Andrew V. Samoilov  <sav@bcs.zp.ua>
2531         * achown.c (init_chown_advanced) [ENABLE_NLS]: i18n fix.
2532         * user.c (extract_line): Add a new parameter (size of the
2533         output buffer) to prevent buffer overflow.
2535 2004-03-05  Pavel Roskin  <proski@gnu.org>
2537         * subshell.c: Partly revert previous patch to preserve
2538         translated strings.
2540 2004-02-09  Pavel Roskin  <proski@gnu.org>
2542         * subshell.c: Use "\r\n" at the end of all error messages.
2543         Don't use perror().  Make error messages more exact.
2545 2004-01-23  Pavel Roskin  <proski@gnu.org>
2547         * utilunix.c (canonicalize_pathname): Add support for UNC paths.
2549         * utilunix.c (canonicalize_pathname): Return void to make it
2550         clear that the conversion is done in place.  Adjust all callers.
2552         * filegui.c (init_replace): Don't show the "Reget" button when
2553         moving files.  Reported by Arpad Biro <biro_arpad@yahoo.com>
2555         * fileopctx.h: Add "operation" filed to FileOpContext.
2556         * fileopctx.c (file_op_context_new): Add "operation" argument.
2557         * filegui.c (file_op_context_create_ui): Remove "operation"
2558         argument, it's known already.  Adjust all callers.
2560 2004-01-23  Andrew V. Samoilov  <sav@bcs.zp.ua>
2562         * user.c (execute_menu_command): Put /bin/sh in the beginning of
2563         the script.
2565 2004-01-22  Pavel Roskin  <proski@gnu.org>
2567         * screen.c (display_mini_info): Correctly fill the space after
2568         "<readlink failed>".
2570         * glibcompat.h: Fix definition of g_try_realloc().
2572 2003-12-24  Dmitry Alexeyev  <dmi_a@qnx.org.ru>
2574         * key.c (get_event): Treat all negative values of gpm_fd in the
2575         same way.  Add one more check that gpm is alive.
2577 2003-12-24  Pavel Roskin  <proski@gnu.org>
2579         * layout.c (rotate_dash): Set color before printing the dash.
2581 2003-12-01  Pavel Roskin  <proski@gnu.org>
2583         * command.c (examine_cd): Add tilde expansion.
2585 2003-11-28  Pavel Roskin  <proski@gnu.org>
2587         * utilunix.c (tilde_expand): Correct last fix, simplify code.
2588         Reported by David Sterba <dave@jikos.cz>
2590 2003-11-27  Pavel Roskin  <proski@gnu.org>
2592         * execute.c (toggle_panels): Refresh panels after returning from
2593         Ctrl-O.
2595         * cmd.c (view_file_cmd): Use input_expand_dialog().
2597         * wtools.c (quick_dialog_skip): Perform tilde expansion on input
2598         widgets that use cd completion.
2600         * utilunix.c (tilde_expand): Preserve tilde if the username
2601         could not be found.  Don't ever return NULL.  Change callers not
2602         to check for NULL.
2604         * dialog.c (do_select_widget): New function that is the only one
2605         calling dlg_focus() and dlg_unfocus().  Incorporate code from
2606         other functions that did it.
2607         (dlg_select_widget): Change return type to void.
2609 2003-11-26  Pavel Roskin  <proski@gnu.org>
2611         * dialog.h (dlg_widget_active): New function - check if the
2612         widget is active.
2613         * boxes.c (display_callback): Use it.
2614         * layout.c (swap_panels): Likewise.
2615         * screen.c (do_panel_event): Likewise.
2617         * dialog.c: Eliminate callback macro.
2619         * dialog.c (dlg_replace_widget): Use dlg_select_widget().
2620         (select_a_widget): Rename to select_other_widget(), factorize
2621         most code from dlg_one_up() and dlg_one_down().
2623 2003-11-24  Pavel Roskin  <proski@gnu.org>
2625         * complete.c (check_is_cd): Simplify logic, use isspace().
2627 2003-11-24  Andrew V. Samoilov  <sav@bcs.zp.ua>
2629         * hotlist.c (add_new_group_input): Clean up.
2630         * wtools.c (do_create_message): Eliminate g_strdup_printf().
2631         (bg_message): Likewise.
2633 2003-11-21  Pavel Roskin  <proski@gnu.org>
2635         * view.c (check_left_right_keys): Implement fast scrolling if
2636         Ctrl is pressed.  Idea by Arpad Biro <biro_arpad@yahoo.com>
2638         * execute.c (do_execute): Use get_key_code(), not getch() to
2639         consume all characters from a single sequence.
2640         Reported by Miven Dooligan <dooligan@intergate.ca>
2642 2003-11-20  Pavel Roskin  <proski@gnu.org>
2644         * glibcompat.h: Provide replacement for g_slist_delete_link().
2645         Reported by Pavel S. Shirshov <me@pavelsh.pp.ru>
2647 2003-11-20  Andrew V. Samoilov  <sav@bcs.zp.ua>
2649         * util.c (load_mc_home_file): Eliminate g_strdup_printf().
2651 2003-11-19  Pavel Roskin  <proski@gnu.org>
2653         * user.c (expand_format): Preserve "%" if followed by a
2654         characted without special meaning.
2656 2003-11-14  Andrew V. Samoilov  <sav@bcs.zp.ua>
2658         * glibcompat.h: Define g_try_realloc as realloc for glib 1.2.x.
2660 2003-11-14  Pavel Roskin  <proski@gnu.org>
2662         * main.c (midnight_callback): Ctrl-Shift-Enter now copies full
2663         path to the command line, like in Total Commander.
2665 2003-11-07  Pavel Roskin  <proski@gnu.org>
2667         * boxes.c: Include "../vfs/gc.h" if VFS is used.
2668         * hotlist.c: Likewise.
2669         * key.c: Likewise.
2670         * main.c: Likewise.
2671         * setup.c: Likewise.
2673         * view.c (free_file): Don't use check_error_pipe(), display
2674         error messages in close_error_pipe().
2675         * utilunix.c (check_error_pipe): Remove, it's unused.
2677 2003-10-30  Andrew V. Samoilov  <sav@bcs.zp.ua>
2679         * widget.[ch] (listbox_search_text): Constify "text" argument.
2680         (listbox_add_item): Ditto.
2682         * find.c (add_to_list): Make inline.
2683         (stop_idle): Ditto.
2684         (status_update): Ditto.
2685         (get_list_info): Ditto.
2687         (push_directory): Constify "dir" argument and use
2688         concat_dir_and_file() instead of g_strdup().
2690         (find_add_match): Constify "dir" and "file" arguments.
2691         (insert_file): Ditto. Don't append trailing PATH_SEP, it's done
2692         in push_directory().
2694         (search_content): Constify "directory" and "filename" arguments.
2695         (do_search): Make "directory" char * instead of char[].
2697 2003-10-29  Pavel Roskin  <proski@gnu.org>
2699         * fsusage.c: Merge ...
2700         * mountlist.c: ... here.  These files are closely related.  Move
2701         some defines from extraconf.h here.
2702         * fsusage.h: Remove.
2703         * Makefile.am: Remove fsusage.c and fsusage.h.
2705 2003-10-28  Pavel Roskin  <proski@gnu.org>
2707         * ext.c (regex_check_type): Use mc_getlocalcopy() instead of
2708         piping first 8k to "file".  If the user selected the file, we
2709         are likely to need the whole file.  Besides, mc_getlocalcopy()
2710         on ftpfs and fish shares file cache with other VFS operations.
2711         (get_file_type_pipe): Remove.
2712         (mc_doublepopen): Likewise.
2713         (mc_doublepclose): Likewise.
2715 2003-10-27  Pavel Roskin  <proski@gnu.org>
2717         * utilunix.c: Move mc_doublepopen() and mc_doublepclose() ...
2718         * ext.c: ... where they are used.
2720         * slint.c (mc_refresh): Revert last change - it breaks screen
2721         restoring on rxvt.
2723         * tree.c (tree_rmdir_cmd): Don't change to the root directory -
2724         it's not needed now.
2726         * win.c (check_movement_keys): Add support for Ctrl-PgDown,
2727         Ctrl-PgUp, Ctrl-Home and Ctrl-End.
2729 2003-10-26  Pavel Roskin  <proski@gnu.org>
2731         * terms.c: Merge ...
2732         * win.c: ... here.
2733         * Makefile.am: Remove terms.c.
2735         * panel.h: Fix duplication between cpanel and current_panel in
2736         favor of current_panel.  Ditto opanel and other_panel.
2738         * main.c (get_current_panel): Remove.
2739         (get_other_panel): Move ...
2740         * layout.c: ... here.
2742         * info.h: Don't expose WInfo internals.
2744         * background.c (tell_parent): Eliminate.
2745         (background_attention): Use error code instead.
2746         * file.c (panel_operate): Exit with code 0, not 1.
2748         * wtools.c: Merge mc_message() and message() into one background
2749         safe function message().  Fix all callers.
2751         * i18n.h: Include into global.h.
2752         * Makefile.am: Remove i18n.h.
2754 2003-10-25  Pavel Roskin  <proski@gnu.org>
2756         * background.c: Clean up includes.
2757         (do_background): Set current_dlg to NULL for the child process.
2758         * dialog.h (do_complete_refresh): Don't use we_are_background.
2759         * file.h: Remove dependency on background.h.
2760         * background.h: Define we_are_background.  Move mc_message() ...
2761         * wtools.h: ... here.
2762         * key.h: Don't define we_are_background.
2763         * slint.c (mc_refresh): Use current_dialog instead of
2764         we_are_background to fix compilation without WITH_BACKGROUND.
2766         * background.c (do_background): Use pipe() instead of less
2767         portable socketpair().  Close comm[0] in the child.
2769         * wtools.c (mc_message): Fix argument expansion.
2771         * background.c: Leave only code used when WITH_BACKGROUND is
2772         defined. The rest goes ...
2773         * wtools.c: ... here.
2775         * background.c: Remove mymsg.
2777         * util.c (msglen): Constify first argument.
2778         * wtools.c (query_dialog): Constify string arguments.
2779         (create_message): New function, forked from message().
2780         (message): Return void.  Allocate memory dynamically.
2781         * wtools.h: Eliminate D_INSERT.  Adjust all users.
2783         * background.c: Replace all message stubs with a new function
2784         mc_message().  Protect against strlen(MSG_ERROR).  Adjust all
2785         dependencies.
2787 2003-10-25  Jindrich Makovicka  <makovick@kmlinux.fjfi.cvut.cz>
2789         * hotlist.c (remove_from_hotlist): Fix improper check of the
2790         return value - group could be deleted after pressing ESC.
2792 2003-10-25  Pavel Roskin  <proski@gnu.org>
2794         * background.c (background_attention): Unregister task before
2795         calling message() to avoid recursion.
2796         (message_3s): Fix the number of arguments.
2798         * command.c (enter): Don't change current_dlg to NULL.  It
2799         breaks repainting of the panels.  Simplify logic.
2801         * key.c (init_key_x11): Warning fix for gcc 3.3.2.
2803 2003-10-24  Pavel Roskin  <proski@gnu.org>
2805         * fs.h (compute_namelen): Fix warning about unused argument.
2806         * man2hlp.c (handle_tp_ip): Likewise.
2808         * dialog.c (dlg_key_event): Simplify logic, return void.
2810         * dialog.c: Remove duplication between two chains of dialogs.
2811         * dialog.h (struct Dlg_head): Add "fullscreen" field, remove
2812         "refresh_pushed", rename "previous_dialog" to "parent".
2814         * tree.h: Fix unneeded dependency on dialog.h.
2815         * layout.h: Likewise.
2817         * dlg.h: Merge with ...
2818         * dialog.h: ... this.  Adjust all dependencies.
2819         * dlg.c: Merge with ...
2820         * dialog.c: ... this.
2821         * Makefile.am (SRCS): Remove dlg.h and dlg.c.
2823         * dlg.h: Declare idle_hook here.
2825         * dialog.c: Eliminate typedef Refresh, unneeded includes.
2827         * complete.h: Move CompletionFunction definition ...
2828         * complete.c: ... here.
2830         * color.c (dealloc_color_pairs): Rename to ...
2831         (done_colors): ... this.
2832         * layout.c (done_screen): Call done_colors() here ...
2833         * slint.c (slang_shutdown): ... but not here, as it's not S-Lang
2834         specific.
2836         * cmd.c: Remove source routing code.
2837         * main.c: Likewise.
2839         * screen.c (user_file_menu_cmd): Move ...
2840         * cmd.c: ... here.
2841         * cmd.h: Remove unused declarations.
2843         * chmod.c (stat_file): Eliminate.  Use mc_stat().
2844         * chmod.h: Remove unneeded code.
2845         * chown.h: Likewise.
2846         * main.c: Include achown.h.
2848         * fileopctx.h: Define struct FileOpContext.
2849         * background.h: Avoid conditional declarations.
2851         * dir.h: Eliminate DIR_H_INCLUDE_HANDLE_DIRENT.  Adjust all
2852         callers.  Remove unused code.
2853         * dlg.h: Remove unused code.
2854         * panel.h: Likewise.
2856 2003-10-24  Andrew V. Samoilov  <sav@bcs.zp.ua>
2858         * dir.c (if_link_is_exe): Check mc_stat() return value.
2859         Make full_name and file_entry const.
2860         (link_isdir): Make file_entry const.
2861         * dir.h: Adjust declarations.
2863 2003-10-24  Pavel Roskin  <proski@gnu.org>
2865         * view.c (view_handle_editkey): Fix prototype.
2866         (toggle_hex_mode): Don't mess with parent's flags - it can
2867         permanently disable Tab switch between panels.
2868         (view): Use DLG_WANT_TAB for full screen only, unconditionally.
2870 2003-10-23  Pavel Roskin  <proski@gnu.org>
2872         * tree.h: Don't include treestore.h.  Fix sources to include
2873         treestore.h when needed.
2874         * treestore.h: Eliminate useless typedefs.
2876         * treestore.c (tree_store_start_check_cwd): Eliminate.
2877         (tree_store_start_check): Make globally visible.
2878         * dir.c (do_load_dir): Use path supplied as argument.  Call
2879         tree_store_start_check() after the directory is opened.
2880         (do_reload_dir): Likewise.
2882 2003-10-23  Andrew V. Samoilov  <sav@bcs.zp.ua>
2884         * dir.c (do_reload_dir): Fix memory leaks.
2886 2003-10-23  Pavel Roskin  <proski@gnu.org>
2888         * win.c (check_movement_keys): Remove "additional" argument,
2889         it's always 1.
2891         * view.c: (put_editkey): Rename to ...
2892         (view_handle_editkey): ... this.  Move here some logic from ...
2893         (view_handle_key): ... here.
2895         * view.c: Eliminate struct block_ptr_t and enum ViewSide.
2896         Rename ascii mode to text mode.
2898         * view.c (WView): Remove unused fields localcopy and file_dirty.
2899         Make boolean fields 1 bit wide.
2901         * view.c (toggle_hexedit_mode): New function, split from ...
2902         (toggle_wrap_mode): ... this.
2903         (view_labels): Fix overuse of the :? operator.  Don't allow
2904         editing files in quick view - it's easy to lose changes.
2906         * main.c (process_args): Use cast to avoid warning.
2908         * view.c (view_callback): Don't close the current dialog when
2909         the viewer is framed.
2911 2003-10-16  Pavel Roskin  <proski@gnu.org>
2913         * main.c (update_one_panel_widget): Use VFS_SETCTL_FLUSH for the
2914         current directory.  This fixes Ctrl-R on fish.
2915         * vfsdummy.h: Remove unused functions.
2917         * main.c (process_args): Use VFS_SETCTL_LOGFILE for ftpfs.
2919 2003-10-15  Pavel Roskin  <proski@gnu.org>
2921         * glibcompat.h: Define g_try_malloc as malloc for glib 1.2.x.
2923         * view.c (load_view_file): Use g_try_malloc() because the
2924         failure to allocate memory is acceptable here.
2925         Reported by Pavel S. Shirshov <me@pavelsh.pp.ru>
2927 2003-10-14  Pavel Roskin  <proski@gnu.org>
2929         * tree.c: Remove dead code.
2930         * treestore.c (tree_store_add_entry): Make static.
2931         (tree_store_start_check): Likewise.
2933         * cmd.c: Cleanup of unneeded global functions and data.
2934         * color.c: Likewise.
2935         * dir.c: Likewise.
2936         * file.c: Likewise.
2937         * filegui.c: Likewise.
2938         * hotlist.c: Likewise.
2939         * layout.c: Likewise.
2940         * main.c: Likewise.
2941         * panelize.c: Likewise.
2942         * wtools.c: Likewise.
2944 2003-10-12  Pavel Roskin  <proski@gnu.org>
2946         * screen.c (do_enter_on_file_entry): Remove annoying message "no
2947         action taken".  Simplify logic.  Confirmation affects VFS too.
2949 2003-10-11  Pavel Roskin  <proski@gnu.org>
2951         * vfsdummy.h: New file to replace vfs.h if VFS is disabled.
2952         * Makefile.am: Add vfsdummy.h.
2953         * global.h [!USE_VFS]: Include vfsdummy.h.  Fix files that
2954         include vfs.h directly.
2956         * file.c (check_hardlinks): Use vfs_file_class_flags().
2958         * main.c (_do_panel_cd): Use vfs_release_path().
2960         * file.c: Use struct vfs_class, not type vfs, which should be
2961         internal to VFS code.
2963 2003-10-08  Pavel Roskin  <proski@gnu.org>
2965         * background.h: Eliminate background_wait variable.  Adjust all
2966         dependencies.
2968         * main.c (argument_table): Reorder options into logical groups.
2970 2003-10-07  Pavel Roskin  <proski@gnu.org>
2972         * dlg.c (dlg_broadcast_msg): Use widget_msg_t type.
2973         (dlg_broadcast_msg_to): Likewise.
2975 2003-09-29  Koblinger Egmont  <egmont@uhulinux.hu>
2977         * main.c (copy_other_pathname): Trailing slash was not always
2978         inserted when it should be.
2980 2003-09-29  Andrew V. Samoilov  <sav@bcs.zp.ua>
2982         * find.c (do_search): Use strncpy() instead of unsafe strcpy().
2983         Check mc_(l)stat() return values.
2985 2003-09-24  Pavel Roskin  <proski@gnu.org>
2987         * key.c (xterm_key_defines): More sequences for gnome-terminal.
2989 2003-09-23  Pavel Roskin  <proski@gnu.org>
2991         * key.c (xterm_key_defines): Add more sequences.
2993 2003-09-22  Pavel Roskin  <proski@gnu.org>
2995         * find.c (find_file): Don't call file_mark(), it would use
2996         uninitialized data.
2997         * main.c (panel_clean_dir): Make panel dirty.
2999         * glibcompat.c: New file for compatibility with older versions
3000         of glib.
3001         * glibcompat.h: Likewise.
3002         * Makefile.am: Add the new files SOURCES.
3003         * global.h: Include glibcompat.h.
3005         * menu.c (menu_scan_hotkey): Use g_strlcpy() to avoid undefined
3006         behavior when using strcpy() on overlapping strings.
3007         * profile.c (GetSetProfile): Likewise.
3008         * widget.c (button_scan_hotkey): Likewise.
3009         Found by Valgrind.
3011 2003-09-13  Pavel Roskin  <proski@gnu.org>
3013         * dlg.c (dlg_replace_widget): Clean rewrite.  It was broken
3014         after eliminating Widget_Item.
3016         * menu.h: Return to keeping dialog id instead of a widget
3017         pointer for previous widget.  The widget can be replaced in the
3018         meantime.
3019         * dlg.c (dlg_select_by_id): New function, essentially a cleaner
3020         implementation of dlg_select_nth_widget().
3022         * dlg.h: Remove "first" field for dialogs and DLG_HAS_MENUBAR.
3023         * dlg.c (dlg_mouse_event): Remove menubar hack.
3024         * screen.c (do_panel_event): Redirect mouse events on the upper
3025         frame to the menubar if it's invisible.
3026         (panel_event): Don't repaint the panel after redirected events.
3028 2003-09-12  Pavel Roskin  <proski@gnu.org>
3030         * screen.c (panel_event): Make sure that the panel is repainted
3031         after the event is processed.
3033         * hotlist.c (l_call): Fix incorrect calls to hotlist_callback().
3035         * dlg.h: Merge Widget_Item into Widget.  Massive adjustment.
3037         * main.c (setup_panels_and_run_mc): Use straight widget order in
3038         midnight_dlg.  Select initial panel by dlg_select_widget().
3040         * menu.h (WMenu): Save pointer to the previous widget, not its
3041         number.  Adjust all dependencies.
3042         * menu.c (menubar_finish): Restore focus on the saved widget.
3043         * dlg.c (dlg_item_number): Remove, it's unused now.
3044         (dlg_select_nth_widget): Likewise.
3046         * help.c (interactive_display): Use straight widget order.
3048         * complete.c (complete_engine): Don't need DLG_REVERSE.
3049         * widget.c (show_hist): Likewise.
3050         * view.c (view): Use straight widget order.
3052         * dlg.h: Replace DLG_BACKWARD to DLG_REVERSE with a better
3053         defined meaning.  Make it default to populate dialogs from the
3054         top.  Change all calls to create_dlg().
3056         * dlg.c: DLG_BACKWARD now affects how the dialog is populated by
3057         widgets, not the runtime behavior.
3058         (init_dlg): Don't change current widget.  This allows using
3059         dlg_select_widget() before the dialog is run.
3060         * dlg.h: Remove initfocus field.
3061         * wtools.c (query_dialog): Use dlg_select_widget(), not
3062         initfocus to set the initial widget.
3064         * widget.c (input_callback): Don't handle Enter.
3065         Requested by Ali Akcaagac <aliakc@web.de>
3067         * chmod.c (chmod_callback): Fix uninitialized variable.
3069 2003-09-11  Pavel Roskin  <proski@gnu.org>
3071         * main.c (midnight_callback): Don't redraw dirty panels if the
3072         menubar is active.
3074         * dlg.c (add_widget): New, safer implementation.  Don't rely on
3075         the position of the first widget.  Disable insertion into
3076         running dialogs - it's unused and cannot be tested.
3078         * boxes.c (symlink_dialog): Add "OK" and "Cancel" buttons.
3079         Don't translate strings, it's done in quick_dialog().
3080         Reported by Ali Akcaagac <aliakc@web.de>
3082 2003-09-10  Pavel Roskin  <proski@gnu.org>
3084         * dlg.h: Remove "last" field from Dlg_head, it's unneeded in a
3085         circularly linked list.
3087         * screen.c (paint_dir): Don't make panel clean here.
3088         (panel_update_contents): Do it here.
3089         (panel_callback): Repaint the panel on focus.
3090         (select_item): Don't paint anything here.
3092         * dlg.h (send_message): Use cb_ret_t and widget_msg_t.
3094         * main.c (menu_cmd): If the current panel is inactive, use the
3095         opposite side to start menu.
3097         * dlg.h: Use cb_ret_t and widget_msg_t in widget callbacks.
3098         Massive adjustment for the above.
3100         * chmod.c (chmod_toggle_select): Get id as argument.
3102         * dlg.h: Remove restroy callback.  Widgets should use
3103         WIDGET_DESTROY.  Adjust all dependencies.
3105         * dlg.c: Don't supply ID of the current widget with any
3106         callbacks.  It's mostly useless and can be found by the
3107         callback.
3108         * layout.c: Likewise.
3109         * widget.c: Likewise.
3110         * chmod.c (chmod_callback): Adjust for the above.
3112         * layout.c (layout_change): Make static.
3113         * screen.c (paint_panel): Likewise.
3114         * cmd.c (dirsizes_cmd): Use dirty flag.
3115         * tree.c (chdir_sel): Don't call paint_panel().
3117         * find.c: Remove useless calls to paint_panel().
3118         * panelize.c: Likewise.
3120         * screen.c (use_display_format): Set dirty flag.  Remove calls
3121         to paint_panel() where they become unneeded.
3123         * screen.c (file_mark): Set dirty flag if the mark changes.
3124         * cmd.c: Remove calls to paint_panel() due to file marks.
3126         * screen.c (update_dirty_panels): New function - update panels
3127         with the dirty flag.
3128         (panel_update_contents): Make static, don't call directly.
3129         * main.c: Don't call panel_update_contents(), use dirty flag.
3130         (midnight_callback): Call update_dirty_panels().
3132 2003-09-09  Pavel Roskin  <proski@gnu.org>
3134         * find.c (find_parameters): Make "filename" entry focused on
3135         startup - it's used more often than "start at".
3137         * widget.c (button_callback): Don't let the default button steal
3138         Enter from the current button.
3140         * widget.c (button_callback): Treat Enter as hotkey for the
3141         default button.
3142         * wtools.c (quick_callback): Remove, it's unneeded now.
3144         * wtools.c (quick_callback): Restore old obscure functionality -
3145         DLG_KEY should not return MSG_HANDLED to allow the button
3146         callback to override the dialog return value.
3148         * key.c (xterm_key_defines): Add keypad keys.
3149         Reported by Vyacheslav Filyayev <vfilyayev@d2.khai.edu>
3151 2003-09-09  Andrew V. Samoilov  <sav@bcs.zp.ua>
3153         * view.c (view_init): Constify "_command" argument.
3154         (view): Likewise.
3155         (do_view_init): Likewise.
3156         (init_growing_view): Constify "name" and "filename" args.
3157         * view.h: Fix declarations and comment.
3159         * user.c (execute_menu_command: Fix rare segmentation violation
3160         if last line in menu file contain space(s) only and no trailing
3161         newline.
3163 2003-09-07  Pavel Roskin  <proski@gnu.org>
3165         * listmode.c: Use groupboxes.
3167         * layout.c (init_layout): Use groupboxes.
3169         * widget.c: Implement new widget - groupbox.
3170         * option.c: Use it.
3172         * layout.c: Fix remaining callback calls.
3173         * widget.c: Likewise.
3175         * dlg.h: Use new types for dialog callbacks.
3176         (dlg_cb_fn): Swap msg and parm arguments for consistency with
3177         widget callbacks.  Adjust all dependencies.
3179         * dlg.h: Remove WIDGET_USER.  Define new types dlg_msg_t,
3180         widget_msg_t and cb_ret_t.
3182         * dlg.c (find_widget_type): Take pointer to void to avoid casts
3183         everywhere.  Adjust all callers.
3185         * main.c (midnight_callback): Fix for the last commit - repaint
3186         the panel if the search mode is unset.
3188         * dlg.h: Remove DLG_PRE_EVENT, it's unused now.
3190         * main.c (make_panels_dirty): Remove, it's unneeded now.
3191         (midnight_callback): Don't call make_panels_dirty().  Mark
3192         current panel dirty if the search mode is unset.  No need to set
3193         attributes before calling show_console_contents().
3195         * dlg.h: Convert send_idle_msg field to a publicly visible flag
3196         DLG_WANT_IDLE.
3197         * main.c (midnight_callback): Move auto_menu handling to the
3198         handler for DLG_IDLE.
3199         (do_nc): Request idle events.
3201 2003-09-06  Pavel Roskin  <proski@gnu.org>
3203         * dlg.c: Fix a bug when DLG_HOTKEY_HANDLED would not be
3204         delivered if the current widget already has focus.
3206 2003-09-04  Andrew V. Samoilov  <sav@bcs.zp.ua>
3208         * user.c (execute_menu_command): Implement %view macro.
3210 2003-09-03  Pavel Roskin  <proski@gnu.org>
3212         * wtools.c (create_listbox_window): Don't repaint the dialog
3213         before it's run.
3215         * learn.c: Don't track button hotkeys.
3216         (learn_check_key): Consume all alphanumeric keys, regardless of
3217         button hotkeys.
3219 2003-09-01  Pavel Roskin  <proski@gnu.org>
3221         * listmode.c: Create all buttons in one place.  Remove unneeded
3222         low-level drawing.
3223         (listmode_edit): Return NULL on cancel.
3224         * main.c (listmode_cmd): Actually use the result of
3225         listmode_edit().
3227         * listmode.c: Use callbacks for Add and Remove buttons.  Don't
3228         run dialog in the loop, it doesn't work this way.
3230         * widget.h: Define type bcback for button callbacks.
3232         * widget.c (listbox_new): Remove "action" argument.  Listboxes
3233         without callbacks default to closing the dialog.  Adjust all
3234         users.  This fixes double click on completion listbox.
3235         * widget.h: Use uppercase names for the return values of the
3236         listbox callback.
3238         * hotlist.c (update_path_name): Avoid using global variable.
3239         (l_call): Likewise.
3241         * widget.h: Eliminate listbox_cback.  Call listbox callback
3242         whenever it's defined.  Adjust all users.
3244         * widget.h: Use exact type in the listbox callback.  Adjust all
3245         legitimate users, remove all unused callbacks.
3247         * boxes.c: Fix GUI code for some non-default configurations.
3248         * listmode.c: Likewise.
3250 2003-08-31  Pavel Roskin  <proski@gnu.org>
3252         * widget.h (button_new): Remove unused extra argument.  Adjust
3253         all dependencies.
3255         * option.c (check_options): Remove tk field.
3256         * widget.c: Comment fix to get rid of references to Tk.
3257         * wtools.c (real_input_dialog_help): Rename tk_name to histname.
3258         Remove names from non-input widgets.
3260         * widget.h: Completely get rid of tkname.  Rename it to histname
3261         for the input widget.  Adjust all dependencies.
3263         * dlg.h (struct Widget): Remove tkname field.
3264         (init_widget): Remove tkname argument.
3265         * widget.h (listbox_new): Likewise.
3266         Adjust all dependencies.
3268 2003-08-29  Andrew V. Samoilov  <sav@bcs.zp.ua>
3270         * cmd.c (edit_symlink_cmd): Fix possible off-by-one after
3271         readlink().
3272         * file.c (make_symlink): Likewise.
3273         * main.c (copy_readlink): Likewise.
3274         * screen.c (display_mini_info): Likewise.
3275         (chdir_to_readlink): Likewise.
3276         * util.c (resolve_symlinks): Likewise.
3278 2003-08-18  Pavel Roskin  <proski@gnu.org>
3280         * cmd.c (delete_cmd_local): New function.  Remove file under the
3281         cursor, regardless of marks.
3282         * screen.c (panel_keymap): Bind it to F18.
3284         * file.c (panel_operate_generate_prompt): Remove source
3285         calculation, it doesn't belong here.
3286         (panel_operate): Change arguments: drop ask_user and thedefault,
3287         introduce force_single.  force_single changes default to the
3288         current file and ignores selection.  Adjust all dependencies.
3290 2003-08-17  Pavel Roskin  <proski@gnu.org>
3292         * dir.h (file_entry): Rename "buf" to "st".  Adjust all
3293         dependencies.
3295 2003-08-01  Pavel Roskin  <proski@gnu.org>
3297         * main.c: Rename PanelMenu to LeftMenu.  Don't assume that
3298         LeftMenu and RightMenu are identical.
3299         From Pavel Tsekov <ptsekov@gmx.net>
3301 2003-07-28  Andrew V. Samoilov  <sav@bcs.zp.ua>
3303         * main.c: Make more variables static.
3305 2003-07-23  Pavel Roskin  <proski@gnu.org>
3307         * key.c (xterm_key_defines): Add more sequences for xterm-179 by
3308         Thomas E. Dickey.
3310 2003-07-21  Pavel Roskin  <proski@gnu.org>
3312         * subshell.c (pty_open_master) [HAVE_GRANTPT]: Prefer
3313         posix_openpt() over GNU-specific getpt().  Needed for FreeBSD
3314         5.x.  Original patch by Max Khon <fjoe@FreeBSD.org>
3316         * screen.c (panel_key): Redisplay ministatus if the searching
3317         was turned off.  Reported by gotar@poczta.onet.pl
3319 2003-07-08  Andrew V. Samoilov  <sav@bcs.zp.ua>
3321         * ext.c (regex_check_type): Don't skip first character after ":"
3322         unconditionally.
3324 2003-07-02  Pavel Roskin  <proski@gnu.org>
3326         * ext.c (regex_check_type): Set content_shift to skip the
3327         filename.
3329 2003-06-27  David Sterba  <dave@jikos.cz>
3331         * hotlist.c: Add buttons "Refresh" and "Free VFSs now" to Active
3332         VFS dialog.
3333         (hotlist_button_callback): Handle the buttons.
3334         * main.c: Remove the 'Free VFS now' menu item.
3336 2003-06-25  Andrew V. Samoilov  <sav@bcs.zp.ua>
3338         * ext.c (regex_check_type): Fix previous change.
3340         * ext.c (regex_check_type): Strip tab(s) after "filename:" in
3341         file output.
3343 2003-06-22  Pavel Roskin  <proski@gnu.org>
3345         * execute.c (do_execute): Make static.  Print end of line after
3346         "Press any key to continue" and user's keystroke, but before
3347         restoring the panels.  Eliminate last_paused variable.  Don't
3348         print fake prompt if there is no command.
3350         * text.c: Eliminate.  Move colors to color.c and clr_scr() to
3351         layout.c.
3352         * main.c (restore_console): Eliminate, use handle_console().
3353         * Makefile.am: Remove text.c.
3355         * execute.c: New file with all functions for execution and
3356         toggling panels not specific to subshell.
3357         * execute.h: Corresponding header.
3358         * Makefile.am: Adjust for the above.
3360         * main.c (execute): Eliminate.  Fix all dependencies.
3361         (shell_execute): Constify string argument.
3363 2003-06-09  Pavel Roskin  <proski@gnu.org>
3365         * key.c (mc_bindings): Remove.  Esc-">" and Esc-"<" are not
3366         always the same as Home and End, at least in mcedit.
3367         (get_key_code): Never ignore Escape outside known sequences.
3368         * screen.c (panel_keymap): Add Esc-">" and Esc-"<".
3369         * tree.c (tree_keymap): Likewise.
3370         * widget.c (input_map): Likewise.
3371         (listbox_key): Likewise.
3372         (check_movement_keys): Likewise.
3373         Reported by Miguel de Icaza <miguel@ximian.com>
3375 2003-06-09  David Sterba  <dave@jikos.cz>
3377         * key.c (correct_key_code): Treat Shift-Backspace as Backspace.
3379 2003-06-06  Pavel Roskin  <proski@gnu.org>
3381         * util.h: Add new match_type - match_regex.
3382         * ext.c: Use it everywhere.
3383         (regex_command): Don't change easy_patterns - it affects the
3384         panel filters.
3385         Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
3387         * view.c (get_byte): Fix off-by-one error.  Found by Valgrind.
3389         * command.c (command_new): Fix memory leak.
3390         * subshell.c (exit_subshell): Free pty_buffer.
3392 2003-06-05  Pavel Roskin  <proski@gnu.org>
3394         * dir.c (do_load_dir): Add new argument "path" to avoid the need
3395         to request the current directory.
3396         (do_reload_dir): Likewise.  Adjust all callers.
3398         * screen.c (panel_destroy): Rewind history to the beginning
3399         before freeing it.
3400         * widget.c (input_destroy): Likewise.
3401         * util.c (list_append_unique): Free data when removing duplicate
3402         list entries.
3404 2003-05-29  Andrew V. Samoilov  <sav@bcs.zp.ua>
3406         * key.c (init_key): Fix crash if TERM is unset.
3408 2003-05-29  Koblinger Egmont  <egmont@uhulinux.hu>
3410         * ext.c (regex_check_type): Recognize and skip "/dev/stdin:"
3411         that can appear in the output of new versions of file.
3413         * util.c (unix_error_string): Convert error string from UTF-8 if
3414         glib 2 is used.
3416         * text.c (default_edition_colors): Change the default for
3417         dhotfocus to be blue on cyan for consistency with dhotnormal.
3419 2003-05-27  Andrew V. Samoilov  <sav@bcs.zp.ua>
3421         * info.c (info_show_info): Cast myfs_stats.avail to double to
3422         fix integer overflow that can cause a negative percent number.
3424 2003-05-05  Jindrich Makovicka  <makovick@kmlinux.fjfi.cvut.cz>
3426         * main.c (directory_history_add): Don't change the directory
3427         passed as the argument, work on a copy.
3429 2003-04-16  Andrew V. Samoilov  <sav@bcs.zp.ua>
3431         * find.c (get_line_at): Strip trailing newline to fix $
3432         matching.
3434 2003-03-26  Andrew V. Samoilov  <sav@bcs.zp.ua>
3436         * file.c (copy_file_file): Fix data corruption if mc_write()
3437         does not write n_read bytes at once.
3438         (move_file_file): Eliminate retry_src_lstat label.
3440 2003-03-24  Andrew V. Samoilov  <sav@bcs.zp.ua>
3442         * view.c (get_line_at): Set prev properly for reverse search.
3443         Don't remove final character in the last line without newline.
3444         (search): During regexp search: handle properly '^'
3445         in forward search and '$' in reverse search.
3446         Based on the patch from Adam Byrtek <alpha@debian.org>.
3448 2003-03-22  Andrew V. Samoilov  <sav@bcs.zp.ua>
3450         * cons.handler.c (set_attr) [__FreeBSD__]: Fix compilation.
3451         Reported by Dmitry Alexeyev <dmi_a@qnx.org.ru>.
3453 2003-03-22  Adam Byrtek  <alpha@debian.org>
3455         * command.c (enter): Check subshell state early and return if
3456         inactive before clearing the command line.
3457         * main.c (force_subshell_execution): Remove magic, unusable,
3458         undocumented command line option "-r".
3460         * subshell.c: Remove dead code (SYNC_PTY_SIDES).
3461         (init_subshell_child): Remove dead code (initfile for TCSH).
3462         (init_subshell): Use ZSH_VERSION environment variable to detect
3463         ZSH.  Use -g option to zsh to hide entries beginning with space
3464         from history.  Add space before ZSH precmd to hide it.
3466 2003-03-21  Andrew V. Samoilov  <sav@bcs.zp.ua>
3468         * view.c (get_line_at): Return unreversed line for backward
3469         search to restore backward regexp search feature.
3470         (icase_search_p): Fix for the above.
3471         Reported by Adam Byrtek <alpha@debian.org>
3473 2003-03-19  Andrew V. Samoilov  <sav@bcs.zp.ua>
3475         * view.c (icase_search_p): Add backward search support.
3476         (search): Likewise.
3477         (block_search): Likewise.
3478         (normal_search): Add "Backwards" button.
3479         (get_line_at): Handle view->direction properly and return
3480         reversed string if backward search required.
3482 2003-03-14  Pavel Roskin  <proski@gnu.org>
3484         * key.c (xterm_key_defines): Add more sequences for xterm, rxvt
3485         and konsole.
3487 2003-03-11  Andrew V. Samoilov  <sav@bcs.zp.ua>
3489         * key.c: Use fputs() instead of fprintf().
3490         (func_XOpenDisplay) [HAVE_GMODULE]: Move to init_key_x11().
3491         (get_modifier) [__QNXNTO__]: Use g_snprintf() instead of unsafe
3492         sprintf().
3494 2003-03-10  Pavel Roskin  <proski@gnu.org>
3496         * key.c (correct_key_code): Convert unrecognized 0177, Ctrl-h
3497         and Ctrl-d into Delete and Backspace.  Remove all references to
3498         those keys in other files.
3500         * key.c (get_modifier) [__QNXNTO__]: Remove incorrect check for
3501         the existence of libph.so.1.
3503 2003-03-10  Dmitry Alexeyev  <dmi_a@qnx.org.ru>
3505         * key.c (get_modifier): Add support for QNX Photon pterm.
3507 2003-03-10  Pavel Roskin  <proski@gnu.org>
3509         * utilunix.c (canonicalize_pathname): Clean rewrite from
3510         scratch.  The old implementation had memory problems with "/.."
3511         and didn't actually strip the leading "./" from path.  Remove
3512         support for obsolete Qnet paths.
3514 2003-03-05  Pavel Roskin  <proski@gnu.org>
3516         * subshell.c (init_subshell_child): Set environment variable
3517         MC_SID to the session number of the subshell.
3518         (check_sid): Check that we are not running mc already in the
3519         same session.
3520         * main.c (main): Don't run do_nc() if shutdown was requested.
3522 2003-03-05  Andrew V. Samoilov  <sav@bcs.zp.ua>
3524         * cons.handler.c (set_attr) [__FreeBSD__]: Eliminate cmd array.
3526 2003-03-05  Max Khon  <fjoe@iclub.nsu.ru>
3528         * cons.handler.c (console_init) [__FreeBSD__]: Fix the amount of
3529         allocated memory.
3530         (console_save) [__FreeBSD__]: Doesn't exit on error, just return.
3532 2003-03-05  Pavel Roskin  <proski@gnu.org>
3534         * cons.handler.c (show_console_contents_freebsd): Rewrite
3535         to use screen library (S-Lang or ncurses).  Direct output is
3536         unreliable when the screen library is active.
3538 2003-03-03  Pavel Roskin  <proski@gnu.org>
3540         * profile.c (load): Fix reading keys immediately after comments.
3542 2003-02-26  Pavel Roskin  <proski@gnu.org>
3544         * cons.handler.c: Put checks for rxvt extensions in one place.
3545         Simplify FreeBSD code.
3547 2003-02-26  Max Khon  <fjoe@iclub.nsu.ru>
3549         * cons.handler.c: Add implementation for FreeBSD 4.x and 5.x.
3551 2003-02-26  Pavel Roskin  <proski@gnu.org>
3553         * view.c (load_view_file): Make sure view->s.st_size is not
3554         truncated when passed to g_malloc().
3555         Reported by Philipp Thomas <pthomas@suse.de>
3557 2003-02-23  Dmitry Alexeyev  <dmi_a@qnx.org.ru>
3559         * key.c (get_modifier): Add support for QNX Neutrino console.
3561 2003-02-23  Pavel Roskin  <proski@gnu.org>
3563         * key.c (init_key_x11): Don't try to use X11 if DISPLAY is not
3564         set in the environment.
3566 2003-02-22  Pavel Tsekov  <ptsekov@gmx.net>
3568         * key.c: Add support for dynamic loading of libX11.
3570 2003-02-21  Pavel Roskin  <proski@gnu.org>
3572         * utilunix.c (destroy_groups): Revert last change, it doesn't
3573         work with glib-1.2.x.
3575 2003-02-19  Andrew V. Samoilov  <sav@bcs.zp.ua>
3577         * option.c (init_configure): Use OTHER_OPTIONS consistently.
3578         By Mike Smithson <dooligan@intergate.ca>.
3580 2003-02-18  Pavel Roskin  <proski@gnu.org>
3582         * util.c (list_append_unique): Free removed links.
3583         * utilunix.c (destroy_groups): Use g_tree_foreach() instead of
3584         obsolete g_tree_traverse().
3586         * util.c (list_append_unique): Traverse the list backwards.
3587         Otherwise the list was lost when the current link was removed.
3589         * widget.c (history_get): Set the history to the last item.
3590         Reported by Adam Byrtek <alpha@debian.org>
3592         * main.c (do_panel_cd): Record directory history for the panel
3593         that changes the directory, not for the current panel.
3595         * widget.c (history_get): Use list_append_unique() for backward
3596         compatibility.
3598         * main.c (directory_history_list): Allow history command even
3599         with just one entry - it's more intuitive.
3601         * util.c (list_append_unique): New function - add text to GList
3602         and remove duplicates.
3603         * main.c (directory_history_add): Use list_append_unique().
3604         * widget.c (push_history): Likewise.
3606         * panel.h: Convert directory history to GList.
3607         * widget.h: Convert input history to GList.
3608         Adjust all dependencies.
3610 2003-02-11  Pavel Roskin  <proski@gnu.org>
3612         * cmd.c (edit_cmd_new): Call editor with NULL argument, not with
3613         an empty string.  nvi won't save the file if invoked with an
3614         empty argument.
3615         (execute_with_vfs_arg): Don't call vfs_file_is_local() on NULL.
3616         Reported by Adam Byrtek <alpha@debian.org>
3618 2003-02-04  Pavel Roskin  <proski@gnu.org>
3620         * cmd.c (get_random_hint): Add "force" argument to ignore
3621         timeout.  Adjust all dependencies.
3622         * main.c (load_hint): Likewise.
3623         * layout.c (setup_panels): Force updating the hint bar.
3624         Original patch by Adam Byrtek <alpha@debian.org>
3626 2003-02-03  Pavel Roskin  <proski@gnu.org>
3628         * slint.c (getch): If there is EOF on the input, exit
3629         immediately, don't use quiet_quit_cmd().
3630         Reported by Steven P. Ulrick <spu@faith4miracle.org>
3632 2003-01-28  Pavel Roskin  <proski@gnu.org>
3634         * util.c (name_quote): Don't quote ':', '~' and '@'.  Quote '#'
3635         and '~' only if it's the first character.
3637         * info.c (info_show_info): Cast nlink_t to int to avoid a
3638         warning if nlink_t is short.
3639         * screen.c (string_file_nlinks): Likewise.
3641 2003-01-27  Arpi  <arpi@mplayerhq.hu>
3643         * key.c (is_idle): Correct maximal file descriptor and return
3644         value.
3646 2003-01-27  Andrew V. Samoilov  <sav@bcs.zp.ua>
3648         * util.h (app_text): Remove declaration - it became static.
3649         * util.c (get_compression_type): Cast magic to char * to
3650         fix compilation on AIX.
3651         * mountlist.c (read_filesystem_list) [MOUNTED_GETMNTENT1]:
3652         Check for MOUNTED is defined to fix compilation on AIX.
3653         Reported by Alexander Varakin <avarakin00@hotmail.com>.
3655 2003-01-27  Pavel Roskin  <proski@gnu.org>
3657         * main.c (update_xterm_title_path): Use is_printable().
3659 2003-01-24  Pavel Roskin  <proski@gnu.org>
3661         * slint.c (slang_reset_softkeys): Cast arguments from size_t to
3662         int to avoid a warning on 64-bit systems.
3664         * subshell.c (resize_tty) [!TIOCSWINSZ]: Warning fix.
3666 2003-01-23  Pavel Roskin  <proski@gnu.org>
3668         * slint.c (slang_init): Limit screen size to 255x255 because of
3669         S-Lang limitations.
3670         Reported by Tero Peippola <top@ees2.oulu.fi>
3672 2003-01-22  Adam Byrtek  <alpha@debian.org>
3674         * cmd.c (view_other_cmd): Update path in the xterm title after
3675         command execution.
3676         * main.c (do_execute): Likewise.
3678 2003-01-22  Pavel Roskin  <proski@gnu.org>
3680         * util.c (size_trunc): Remove "b" from the output - it's
3681         redundant and wrong - the abbreviation for byte is "B".
3682         Reported by Werner Lemberg <wl@gnu.org>
3684 2003-01-20  Pavel Roskin  <proski@gnu.org>
3686         * screen.c (string_file_type): Check for "regularity" before
3687         checking for executable bit.
3688         (file_compute_color): Likewise.
3690         * dir.c (handle_dirent): Fix cleaning the stat buffer if
3691         mc_lstat() fails.  Leave buf1->st_mode to be 0, so that the
3692         entry is marked as a "non-regular file of unknown kind".
3693         * screen.c (do_enter_on_file_entry): Try to change directory
3694         when pressing Enter on a non-stat()able file.
3696         * screen.c (string_file_type): Represent non-regular files of
3697         unknown kind by '?'.
3698         (file_compute_color): Use for them the same color as for stale
3699         links.
3701         * main.c: Change default value of full_eight_bits to 0 - it's
3702         reported to be broken on many terminals.
3704         * man2hlp.c (main): Initialize cnode->heading_level.
3705         Bug report by Tribhuvan <loka@rcn.com>
3707         * dir.c (sort_size): Avoid any arithmetic except comparison on
3708         file sizes - they may not fit "int" that the function returns.
3709         Original patch by Bulia Byak <bulia@dr.com>
3711 2003-01-20  Andrew V. Samoilov  <sav@bcs.zp.ua>
3713         * profile.c (load): Handle corrupted section header.
3714         Reported by skol@sbox.tugraz.at.
3715         (GetPrivateProfileInt): Make intBuf and buf auto variables.
3717 2003-01-20  Pavel Roskin  <proski@gnu.org>
3719         * screen.c (do_search): Use case-insensitive search if and only
3720         if the sort order is case-insensitive.
3721         Suggested by Bulia Byak <bulia@dr.com>
3723 2003-01-19  Pavel Roskin  <proski@gnu.org>
3725         * dir.c (do_load_dir): Remove dotdot_found - handle_dirent()
3726         doesn't process ".." now.  Don't add ".." to the "/" directory.
3727         (do_reload_dir): Likewise.
3728         Suggested by Bulia Byak <bulia@dr.com>
3730         * dir.c (handle_dirent): If mc_lstat() fails, assume that the
3731         entry is a directory.  This is useful for QNX Neutrino.
3733 2003-01-15  Andrew V. Samoilov  <sav@bcs.zp.ua>
3735         * man2hlp.c (fclose_check): Call ferror() and exit on file
3736         error.
3738         * man2hlp.c (main): Use fgets() return value in while loop
3739         instead of feof() because end-of-file indicator can be false on
3740         error.
3742         * man2hlp.c (handle_command): Fix possible buffer overflow.
3743         (handle_link): Likewise.
3745 2002-12-27  Pavel Roskin  <proski@gnu.org>
3747         * layout.c (setup_panels): Revert unnecessary part of the
3748         previous patch.  Call load_hint() regardless of message_visible.
3749         Reported by Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
3751         * key.c (correct_key_code): Don't call get_modifier() for normal
3752         characters - they only should get modifiers from sequences
3753         tables.  This fixes entering characters with AltGr.
3754         Reported by David Martín <dmartina@excite.com>
3756         * view.c (max_dirt_limit): Make global to match view.h.
3757         * setup.c (options): Actually save max_dirt_limit, which is
3758         documented as a "special setting".
3760 2002-12-26  Pavel Roskin  <proski@gnu.org>
3762         * key.c (get_modifier): Warning fix.
3764         * file.c: Never access internals of ctx->rx directly.
3765         * fileopctx.c (file_op_context_destroy): Use regfree() to free
3766         ctx->rx.
3767         Patch from Red Hat beta.
3769         * layout.c (setup_panels): Clean the hint bar if it's enabled.
3770         Bug reported by Adam Byrtek <alpha@debian.org>
3772 2002-12-26  Adam Byrtek  <alpha@debian.org>
3774         * main.c (update_xterm_title_path): New function, display
3775         current path in the xterm window title.
3776         (_do_panel_cd): Call update_xterm_title_path().
3777         (done_mc): Remove final message for the titlebar.
3778         * layout.c: Replace "Xterm hintbar" option with more generic
3779         "Xterm window title".  Update all dependencies.
3780         (setup_panels): Call update_xterm_title_path().
3782 2002-12-26  Pavel Roskin  <proski@gnu.org>
3784         * utilunix.c (mc_tmpdir): Check temporary directory more
3785         carefully.  Report problems and ask user to acknowledge them.
3787         * main.c (midnight_callback): Fix the last change, so that plain
3788         Enter is not affected.
3790 2002-12-25  Pavel Roskin  <proski@gnu.org>
3792         * main.c (copy_prog_name): Make static.
3793         (midnight_callback): Handle both Alt-Enter and Ctrl-Enter before
3794         the widgets, because the input widget interprets them now.
3795         (default_map): Remove Alt-Enter, it's handled elsewhere.
3797         * key.c (correct_key_code): Convert Shift-Tab and Ctrl-Tab to
3798         Back Tab (used in dialogs to jump to the previous widget).
3800         * widget.c (input_callback): Insert Enter with a modifier as
3801         literal Enter.  Useful when pasting multiline text.
3803         * cmd.c (execute_with_vfs_arg): New function.  Work around
3804         defects of VFS localcopy code.
3805         (view_file_at_line): Use execute_with_vfs_arg().
3806         (do_edit_at_line): Likewise.
3808 2002-12-24  Pavel Roskin  <proski@gnu.org>
3810         * key.c (is_idle): Check for input on input_fd and gpm_fd.
3812         * main.c (init_xterm_support): Revert last change, it doesn't
3813         free all S-Lang memory anyways, but creates portability issues.
3815         * dlg.h: Add new event DLG_VALIDATE.
3816         * dlg.c (frontend_run_dlg): Send DLG_VALIDATE.
3817         (select_a_widget): Don't send DLG_ONE_DOWN, nobody uses it.
3818         * find.c (find_parm_callback): New callback for the parameter
3819         dialog.  Don't allow stopping the dialog if the regular
3820         expression is invalid.
3822 2002-12-23  Pavel Roskin  <proski@gnu.org>
3824         * layout.c (init_curses) [HAVE_SLANG]: Don't call
3825         SLtt_get_terminfo(), it's already called in slang_init().
3826         * main.c (init_xterm_support): Free term_entry.
3828         * subshell.c (subshell_switch_key): Make static const.
3830         * key.c (correct_key_code): Strip or add modifier information
3831         when necessary.  Recognize shift with function key N as function
3832         key (N + 10).  Fix breakage from previous patch.
3833         * key.h: Change XCTRL and ALT macros to use new definitions for
3834         keyboard modifiers.
3836 2002-12-21  Pavel Roskin  <proski@gnu.org>
3838         * key.c (get_modifier): Make static.  Return the mc internal
3839         representation, not the Linux console code.
3840         (correct_key_code): Add the modifier, not strip it.
3841         (ctrl_pressed): Remove.  Adjust all dependencies.
3843         * key.h: Add definitions for the keyboard modifiers that can be
3844         part of the key code.
3845         * key.c (xterm_key_defines): Add some common key definitions
3846         with modifiers for xterm and rxvt.
3847         (correct_key_code): Strip and remember modifiers.
3848         (get_modifier): Add support for saved modifiers.
3850 2002-12-20  Pavel Roskin  <proski@gnu.org>
3852         * layout.c (init_curses) [!HAVE_SLANG]: Set ESCDELAY to 200ms.
3853         If ESCDELAY is 0, ncurses 5.2 may stop recognizing escape
3854         sequences under heavy CPU load.
3856 2002-12-19  Pavel Roskin  <proski@gnu.org>
3858         * screen.c (chdir_other_panel): Use do_panel_cd() on the
3859         opposite panel instead of changing the current panel twice.
3861         * main.c (make_panels_dirty): Preserve the cursor position.
3863 2002-12-18  Tomas Styblo  <tripie@cpan.org>
3865         * hotlist.c (update_path_name): Update the title even when
3866         opening an empty group.
3868 2002-12-16  Pavel Roskin  <proski@gnu.org>
3870         * dir.c (do_load_dir): Add an error message if mc_opendir()
3871         fails.
3872         (do_reload_dir): Likewise.
3873         * screen.c (do_enter_on_file_entry): Add an error message if
3874         do_cd() fails.
3876 2002-12-15  Pavel Roskin  <proski@gnu.org>
3878         * view.c (do_view_init): Use non-blocking open() followed by
3879         fstat() to avoid race conditions.  Unset O_NONBLOCK flag after
3880         the open().
3882         * cmd.c (mkdir_cmd): Don't try to create a directory with empty
3883         name.
3885         * global.h: Add replacement for O_NONBLOCK.
3887 2002-12-11  Pavel Roskin  <proski@gnu.org>
3889         * find.c (find_file): Skip entries without data when panelizing.
3890         Found by Valgrind.
3892         * eregex.h: Undefine __restrict_arr before redefining to avoid a
3893         warning if it's defined.
3895 2002-12-09  Pavel Roskin  <proski@gnu.org>
3897         * util.c (load_file_position): Don't free filename.
3899 2002-12-08  Pavel Roskin  <proski@gnu.org>
3901         * util.c: Add functions for saving and loading file positions.
3903 2002-12-07  Pavel Roskin  <proski@gnu.org>
3905         * file.c (is_wildcarded): Move ...
3906         * filegui.c: ... here.  Make static.
3908 2002-12-01  Pavel Roskin  <proski@gnu.org>
3910         * cmd.c (do_edit_at_line): Set line to 0 to allow the editor to
3911         decide if the user cares about the initial line or not.
3912         * main.c: Set edit_one_file_start_line to 0 initially.
3914 2002-11-29  Pavel Roskin  <proski@gnu.org>
3916         * setup.c: Add option_save_position to the options table.
3918 2002-11-28  Pavel Roskin  <proski@gnu.org>
3920         * tree.c: Make struct WTree opaque.  Remove "done" flag - it's
3921         broken by design.
3922         (tree_selected_name): New function, return name of the currently
3923         selected entry.  Use it where WTree is opaque.
3924         * boxes.c (tree_callback): Don't check for the "done" flag - it
3925         causes closing the dialog on any key after mouse selection.
3927         * user.h: Don't include edit/edit-widget.h.
3928         * user.c: Include edit/edit-widget.h and edit/edit.h.
3930         * slint.c (getch): Return -1, not SLANG_GETKEY_ERROR, otherwise
3931         get_key_code() crashes when calling isalpha().
3933         * color.c (mc_init_pair) [HAVE_SLANG]: Pass "default", not NULL
3934         to SLtt_set_color() - it fixes transparency with the latest
3935         versions of S-Lang.  Treat foreground like background.
3937 2002-11-20  Pavel Roskin  <proski@gnu.org>
3939         * main.c: Eliminate finish_program variable - mc can now exit
3940         immediately.
3942 2002-11-17  Pavel Roskin  <proski@gnu.org>
3944         * screen.c (do_select): Mark panel as dirty.
3946         * boxes.c (init_disp_bits_box): Make static.
3948 2002-11-15  Pavel Roskin  <proski@gnu.org>
3950         * main.c (main): Don't call subshell_get_console_attributes() if
3951         the subshell is disabled from the command line.
3953 2002-11-14  Pavel Roskin  <proski@gnu.org>
3955         * myslang.h: Define getyx() macro.
3956         * layout.c (print_vfs_message): Preserve cursor position.
3958         * view.h: Make struct WView opaque, move non-interface parts ...
3959         * view.c: ... here.
3960         * layout.c: Use struct WView, not typedef WView.
3962         * cmd.c: Clean up includes, don't rely on edit.h.
3964         * dialog.c (struct Refresh): Make opaque.
3965         * dialog.h: Move all stuff unrelated to dialog.c ...
3966         * wtools.h: ... here.  Adjust all users.
3968         * dialog.c (refresh_list): Make static.
3969         * dialog.h: Add typedef refresh_fn.
3971         * cmd.c (menu_edit_cmd): Make static, provide separate functions
3972         without arguments to access it.
3973         * menu.h: Make callfn function without arguments - we are not
3974         using any arguments now.
3976 2002-11-13  Pavel Roskin  <proski@gnu.org>
3978         * man2hlp.c (persistent_fread): Return error for len <= 0.
3979         (persistent_fwrite): Likewise.
3980         (main): Check the result of the second ftell().
3982         * cmd.h: Fully exclude WPanel from public interfaces of cmd.c.
3983         * cmd.c: All commands operate on current panels.
3984         (get_a_panel): Remove.
3985         * screen.c: Change to use new functions.
3987         * main.h: Don't check if panel.h was included.  Use forward
3988         declaration of WPanel, change prototypes to use struct WPanel.
3989         (midnight_callback): Make static.
3991         * cmd.c (do_view_cmd): Don't take WPanel argument - always use
3992         the current panel.
3993         (view_cmd): Likewise.
3994         (view_file_cmd): Likewise.
3995         (view_simple_cmd): Likewise.
3996         (filtered_view_cmd): Likewise.
3997         (filtered_view_cmd_cpanel): Remove.
3998         (view_panel_cmd): Likewise.
4000 2002-11-12  Pavel Roskin  <proski@gnu.org>
4002         * chmod.c (init_chmod): Make static.
4003         * help.c (quit_cmd): Rename to help_quit_cmd().
4004         (show): Rename to help_show().
4005         * main.c (quit_cmd): Make static.  Return void, not int.
4006         (sort_cmd): Make static.
4008         * dlg.c (send_message_to): Remove, use send_message() instead.
4009         (send_message): Make inline, remove Dlg_head argument.  Change
4010         all callers.
4012         * dlg.h: Remove Dlg_head argument from callback_fn - it's
4013         excessive and can be trivially derived from the widget.
4014         (default_proc): Remove Dlg_head argument.  Change all callers.
4015         * widget.c (listbox_draw): Remove Dlg_head argument.
4017         * dlg.h: Define dlg_cb_fn - dialog callback function.  Improve
4018         typedefs for callbacks and use them everywhere.  Clean up some
4019         unused defines.
4020         * dlg.c: Adjust declarations for match.
4022         * wtools.h: Eliminate the_widget field in QuickWidget.
4023         * wtools.c (quick_callback): Allocate widget table dynamically.
4025         * dlg.c (widget_redraw): Remove.
4026         * widget.c (find_buttonbar): Use find_widget_type().  Make
4027         global.
4028         (define_label): Remove paneletc argument.  Change all callers.
4029         (define_label_data): Likewise.
4030         (redraw_labels): Likewise.  Use find_buttonbar().
4031         * view.c (view_adjust_size): Use find_buttonbar().
4033         * menu.h: Remove "*" from the definition of the type "Menu"
4034         for consistency with other types.  Change all dependencies.
4035         (menubar_event): Make static.
4037 2002-11-12  Andrew V. Samoilov  <kai@cmail.ru>
4039         * view.c (get_line_at): Use g_strreverse() instead of
4040         reverse_string().
4041         * util.c (reverse_string): Remove.
4042         (decompress_extension): Return const char *.
4043         (strip_home_and_password): Make dir const.
4044         * util.h: Fix declarations.
4046 2002-11-11  Pavel Roskin  <proski@gnu.org>
4048         * charsets.c (convert_to_display): Don't crash on empty read
4049         only strings.
4050         (convert_from_input): Likewise.
4051         Reported by David Martin <dmartina@excite.com>
4053         * screen.c (select_item): Don't show the file selection if the
4054         panel is inactive.
4055         (chdir_other_panel): Select the same file on the other panel.
4057         * file.c (panel_operate): Warning fix.
4058         * cmd.c (compare_dirs_cmd): Likewise.
4059         * man2hlp.c: Warning fixes.  size_t can be unsigned.
4061         * file.c (panel_get_file): Make static.
4062         * filegui.h: Eliminate use of WANT_WIDGETS.
4063         * setup.h: Likewise.
4064         * menu.h: Declare struct WMenu.
4065         * main.h: Don't include menu.h, use forward declaration.
4067         * dlg.h: Move movefn definition ...
4068         * win.h: ... where it's used.  Remove unused definitions.
4069         * win.c: Remove unused code.
4070         * key.h: Include mouse.h, don't rely on others doing it.
4071         * widget.h: Include dlg.h.  Remove Tk-only fields.
4072         * widget.c: Remove Tk-only fields.
4074         * panel.h: Simplify interdependencies between headers.  Use
4075         forward declarations for structures.
4076         * widget.h: Declare struct WListbox.
4077         * wtools.h: Use forward declaration for struct WListbox to avoid
4078         dependency on widget.h.
4080 2002-11-10  Pavel Roskin  <proski@gnu.org>
4082         * panel.h: Remove all unused definitions.  Make format_e an
4083         opaque structure by moving it ...
4084         * screen.c: ... here.
4086         * screen.c (display_mini_info): Make static.
4087         (the_info_panel): Remove.
4089         * screen.c (Xtry_to_select): Make static, rename to
4090         do_try_to_select().
4092         * screen.c (chdir_other_panel): Change behavior of Alt-O -
4093         change the other panel to the current directory, put it to the
4094         listing mode if needed.  Based on a patch from PLD Linux
4095         Distribution.
4097 2002-11-06  Pavel Roskin  <proski@gnu.org>
4099         * myslang.h: Don't define ERR - it conflicts with sys/ucontext.h
4100         in glibc 2.1.3.
4101         * key.c: Use -1, not ERR.
4103 2002-11-01  Andrew V. Samoilov  <sav@bcs.zp.ua>
4105         * boxes.c (configure_vfs): Ask whether passive connections
4106         should be used.  Asked by Andrew W. Nosenko <awn@bcs.zp.ua>.
4108 2002-11-01  Pavel Roskin  <proski@gnu.org>
4110         * main.c (main): Use O_TRUNC when opening the file to write the
4111         last working directory.  Fix segmentation fault when exiting
4112         while on VFS.
4113         * util.c (mc_mkstemps): Use O_TRUNC to open temporary files.
4115 2002-10-31  Andrew V. Samoilov  <sav@bcs.zp.ua>
4117         * view.c (normal_search) [HAVE_CHARSET]: Fix segmentation fault
4118         on first search.  Writing to read-only "" is not good idea.
4120 2002-10-31  Pavel Roskin  <proski@gnu.org>
4122         * main.c (probably_finish_program): Eliminate.
4123         (handle_args): Use exit code 1 only for errors, 0 for legitimate
4124         options such as "--help".
4126 2002-10-30  Pavel Roskin  <proski@gnu.org>
4128         * main.c: Option -P takes an argument (output filename) now.
4129         (main): Output the last directory to the specified file.  Don't
4130         output "." if this information is unavailable.
4132         * subshell.c (subshell_name_quote): Don't quote numbers and
4133         letters if possible and safe.
4135         * charset.h: Provide new inline functions convert_to_display_c()
4136         and convert_from_input_c().
4137         * view.c: Include charset.h unconditionally, use new conversion
4138         functions that don't require ifdefs.
4140         * charset.h [!HAVE_CHARSET]: Provide dummy macros for
4141         convert_to_display and convert_from_input.  Eliminate uchar
4142         definition, use unsigned char, adjust dependencies.
4143         * charsets.c (convert_to_display): Tolerate NULL argument.
4144         (convert_from_input): Likewise.
4146         * ext.c (exec_extension): Don't create self-destructing scripts
4147         for the viewer - remove those scripts manually after calling
4148         view().  This fixes the problem with double F8 in the viewer on
4149         parsed files.
4150         Reported by David Martin <dmartina@excite.com>
4152         * ext.c (exec_extension): Don't rely on working #! - explicitly
4153         run /bin/sh on the temporary script.
4155         * mouse.h: Use definitions for GPM_B_DOWN and GPM_B_UP
4156         compatible with gpm-1.20.
4157         Reported by David Martin <dmartina@excite.com>
4159 2002-10-29  Pavel Roskin  <proski@gnu.org>
4161         * panel.h: Use spaces, not commas, in the format - they are more
4162         readable and easier to document.
4163         * screen.c (panel_format): Likewise.
4164         (mini_status_format): Likewise.
4166 2002-10-29  Andrew V. Samoilov  <sav@bcs.zp.ua>
4168         * view.c (init_growing_view): Mark message for translation.
4169         (normal_search) [HAVE_CHARSET]: Convert saved search string to
4170         original codeset if input_dialog() returns empty string.
4172 2002-10-24  Pavel Roskin  <proski@gnu.org>
4174         * screen.c (mini_info_separator): Revert last patch.  The bug is
4175         in Red Hat 8.0 S-Lang.
4177         * screen.c (mini_info_separator): The separator was one
4178         character too long.
4179         (show_dir): Remove obsolete linux_unicode hack.
4181         * dlg.c (init_dlg): Redraw screen after selecting the focused
4182         widget, not before.  The bug affected file progress dialog with
4183         verbose operation off.
4184         Reported by Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
4186         * filegui.c (check_progress_buttons): Reinitialize ret_value to
4187         avoid old values after events other than selecting a button.
4188         Reported by Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
4190 2002-10-24  Andrew V. Samoilov  <sav@bcs.zp.ua>
4192         * man2hlp.c (handle_link): Treat link name after \& as regular
4193         text.
4194         Suggested by David Martin <dmartina@excite.com>
4196 2002-10-23  Andrew V. Samoilov  <sav@bcs.zp.ua>
4198         * poptconfig.c (configLine): Cast the argument to functions for
4199         character classification to unsigned or use unsigned char *.
4200         (poptReadConfigFile): Likewise.
4201         * popthelp.c (singleOptionHelp): Likewise.
4202         * poptparse.c (poptParseArgvString): Likewise.
4204         * main.c (show_change_notice): Make local variable in main().
4205         (compatibility_move_mc_files): Merge with
4206         do_compatibility_move() and return 1 if moving was done, 0
4207         otherwise.  Move ~/.mc.tree to ~/.mc/Tree.
4209         * file.c (copy_file_file): Reuse message from move_file_file().
4210         (copy_dir_dir): Eliminate one more goto.
4212 2002-10-22  Pavel Roskin  <proski@gnu.org>
4214         * man2hlp.c (main): Remove unnecessary spaces in the table of
4215         contents.
4217         * setup.c: Remove dead code surrounded by
4218         SAVE_CHANGES_OUTSIDE_OPTIONS_MENU.
4219         * tree.c: Make tree_navigation_flag static.
4221         * help.h: Remove unused characters.
4222         * help.c (show): Remove handling of unused characters.
4224 2002-10-22  Andrew V. Samoilov  <sav@bcs.zp.ua>
4226         * popthelp.c (poptPrintHelp): Use POPT_ for "[OPTION...]",
4227         this message is eliminated by poptSetOtherOptionHelp().
4228         * popt.c (poptStrerror): Use _ instead of POPT_ for useful
4229         messages.
4231         * utilunix.c (mc_tmpdir): Make directory only if not exists.
4232         Use strncpy() instead of g_snprintf() - there can be printf()
4233         pattern(s) in the $TMPDIR.
4235         * man2hlp.c (handle_link): Don't strip leading space(s) from
4236         linkname.
4238 2002-10-22  Pavel Roskin  <proski@gnu.org>
4240         * myslang.h: Add a replacement for addch(), which expects a
4241         wchar_t argument in patched S-Lang on Red Hat 8.0.
4243 2002-10-21  Pavel Roskin  <proski@gnu.org>
4245         * main.c (print_mc_usage): Remove unnecessary newline.
4247         * main.c (print_mc_usage): Partly revert previous patch -
4248         poptPrintHelp() has side effects and should not be called
4249         inside fprintf(), which can be a macro.
4251         * main.c (print_mc_usage): Use poptSetOtherOptionHelp()
4252         From Andrew V. Samoilov <sav@bcs.zp.ua>
4254         * learn.c (learn_check_key): Simplify logic.  Add a comment for
4255         translators.
4257         * file.h: Rename know_not_what_am_i_doing to safe_delete.
4258         * file.c (real_query_recursive): Don't ask to enter "yes" - it's
4259         ugly and requires changing input method in some locales.
4261         * file.c (real_query_recursive): Default to empty string, not to
4262         "no" when asking to enter "yes".  Add note for translators.
4264         * cmd.c (do_view_cmd): When asking confirmation, correctly
4265         interpret closing the dialog by escape.
4267 2002-10-20  Pavel Roskin  <proski@gnu.org>
4269         * utilunix.c (mc_tmpdir): Don't exit if the temporary directory
4270         cannot be created - it should be possible to run mc on read-only
4271         filesystems.  Try to chmod() the temporary directory.
4273 2002-10-17  Andrew V. Samoilov  <sav@bcs.zp.ua>
4275         * man2hlp.c (handle_tp_ip): Implement .IP and .TP macros
4276         (without arguments).
4277         (handle_command): Call handle_tp_ip().
4278         (main): Handle label and body of .TP paragraph.
4280 2002-10-17  Pavel Roskin  <proski@gnu.org>
4282         * view.c (view_ok_to_quit): Use the same dialog as the editor.
4284 2002-10-15  Andrew V. Samoilov  <sav@bcs.zp.ua>
4286         * Makefile.am (man2hlp_LDADD): Set to $(GLIB_LIBS).
4287         * man2hlp.c: Include <glib.h> and use g_snprintf()/g_vsnprintf()
4288         instead of sprintf()/vsprintf().
4290         * man2hlp.c: Report about stale links.
4292 2002-10-13  Pavel Roskin  <proski@gnu.org>
4294         * color.h: Remove Q_SELECTED_COLOR and Q_UNSELECTED_COLOR.
4295         Rename BEST_COLOR to IF_COLOR.  Make error messages bold on b/w
4296         terminals.  Don't highlight stale links on b/w terminals, since
4297         they cannot be distinguished from marked files.
4299         * main.c (print_color_usage): Update list of keywords for file
4300         types.  Add a notice for translators.
4302         * color.c: Rename stalledlink to stalelink.  Make the same
4303         change elsewhere.
4305 2002-10-09  Andrew V. Samoilov  <sav@bcs.zp.ua>
4307         * popt.h: Adjust poptHelpOptions[] and poptPrintHelp()
4308         declarations.
4310         * popthelp.c: Replace POPT_ with _ for visible strings.
4311         (singleOptionHelp): Eliminate format array.
4312         (poptHelpOptions): Make const.
4313         (poptPrintHelp): Return width of left column.
4315         * main.c (print_mc_usage): Use width from poptPrintHelp()
4316         for "+number".
4318 2002-10-07  Andrew V. Samoilov  <sav@bcs.zp.ua>
4320         * boxes.c (sel_charset_button): Use g_snprintf() instead of
4321         sprintf().
4322         * charsets.c (init_translation_table): Likewise.
4324 2002-10-07  Pavel Roskin  <proski@gnu.org>
4326         * view.c: Move call to view_update_bytes_per_line() from
4327         view_init(), where the number of columns is unknown yet, to
4328         view_callback() where it's already known.
4329         (view_adjust_size): Make static.
4331 2002-10-07  Miven Dooligan  <dooligan@intergate.ca>
4333         * view.c (view_update_bytes_per_line): Don't use vertical bars
4334         in the hex viewer is short of space.  Fix missing space between
4335         addresses and hexdump when framed.
4336         (display): Likewise.
4338 2002-10-07  Pavel Roskin  <proski@gnu.org>
4340         * selcodepage.c (select_charset): Use g_snprintf() instead
4341         of non-portable snprintf().
4343         * myslang.h [!HAVE_SYSTEM_SLANG]: Update location of slang.h.
4345 2002-09-29  Pavel Roskin  <proski@gnu.org>
4347         * ext.c (get_file_type_local): Return -1 for fatal errors.
4348         (get_file_type_pipe): Likewise.
4349         (regex_command): Likewise.  Adjust all callers.
4350         From Jindrich Makovicka <makovick@KMLinux.fjfi.cvut.cz>
4352         * dlg.c (frontend_run_dlg): Allow terminating the dialog from
4353         the idle handler.
4354         From Jindrich Makovicka <makovick@KMLinux.fjfi.cvut.cz>
4355         Call change_screen_size() regardless of ncurses version, and let
4356         that function decide what to do.
4358 2002-09-28  Pavel Roskin  <proski@gnu.org>
4360         * background.c (background_attention): Fix calling functions
4361         with wrong arguments, which resulted in segmentation faults.
4363 2002-09-27  Pavel Roskin  <proski@gnu.org>
4365         * file.c (panel_operate): Replace fancy internationalized
4366         message boxes for unknown file operations with abort().
4368         * util.c (name_trunc): Remove unused code, unhelpful error
4369         message and workaround for bugs in the callers.
4371         * file.c (copy_file_file): Rename DST_* names to DEST_*, since
4372         DST_NONE is used in FreeBSD libc.
4373         Reported by Pavel Shirshov <me@pavelsh.pp.ru>
4375 2002-09-26  Pavel Roskin  <proski@gnu.org>
4377         * textconf.c: Don't translate filesystem names.
4379         * main.h: Remove all references to icons.
4380         * panel.h: Likewise.  Adjust all dependencies.
4382         * hotlist.c (load_hotlist): Remove compatibility code with
4383         hotlist files created by ancient versions of mc.
4385         * command.c (do_cd_command): Reuse translated message.
4387         * user.c (check_patterns): Ignore invalid shell_patterns and
4388         let user see them in the menu.  The error message was too vague.
4390 2002-09-26  Andrew V. Samoilov  <sav@bcs.zp.ua>
4392         * util.c (mc_mkstemps): Really return NULL in the filename in the
4393         case of failure.  Reported by Andrew W. Nosenko <awn@bcs.zp.ua>.
4395 2002-09-26  Pavel Roskin  <proski@gnu.org>
4397         * ext.c (get_file_type_local): Make static.
4398         (get_file_type_pipe): Likewise.
4399         * util.c (check_patterns): Likewise.
4401         * file.c (copy_file_file): Eliminate the complex scheme with
4402         "resources".  Set src_desc, dest_desc to -1 initially and use
4403         their values to see if they need to be closed.  Track status of
4404         the destination file using a 3-state variable.
4406         * file.c (copy_file_file): Fix event handling - check the result
4407         of file_progress_show_bytes().
4408         From Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
4410 2002-09-25  Pavel Roskin  <proski@gnu.org>
4412         * subshell.c (pty_open_master) [IS_AIX]: Open /dev/ptc, not
4413         /dev/ptmx.  From Sergey Pavlukhin <psi@dmng.ru>
4415 2002-09-24  Pavel Roskin  <proski@gnu.org>
4417         * screen.c (string_file_nuid): Fix a warning with uClibc.
4418         (string_file_ngid): Likewise.
4420         * mountlist.c: Restore sys/param.h before sys/mount.h - it's
4421         required on FreeBSD.
4422         Reported by Pavel Shirshov <me@pavelsh.pp.ru>
4424         * screen.c (panel_event): Implement support for mouse wheel.
4426         * view.c (display): Fix wrapping of tabs.
4427         Reported by Arpad Biro <biro_arpad@yahoo.com>
4429 2002-09-23  Pavel Roskin  <proski@gnu.org>
4431         * dlg.h: New message DLG_RESIZE.
4432         * layout.c: Call DLG_RESIZE instead of resizing viewer and
4433         editor individually.
4434         * view.c (view): Install handler for DLG_RESIZE.  Make view_dlg
4435         a local variable.
4437         * view.c (view): Set view_dlg to NULL after it's destroyed.
4439         * color.h: Remove EDITOR_UNDERLINED_COLOR, it's unused.
4441         * global.h: Move fcntl.h inclusion here.  Define O_BINARY.
4442         * mountlist.c: Remove more includes already handled in global.h.
4444 2002-09-22  Pavel Roskin  <proski@gnu.org>
4446         * man2hlp.c (handle_alt_font): Implement .BR, .IR, .RB, .RI, .BI
4447         and .IB macros.
4448         (handle_command): Call handle_alt_font().
4450         * man2hlp.c: Take text width from help.h, not from the command
4451         line.
4452         * help.h: Declare HELP_TEXT_WIDTH.
4453         * help.c: Use HELP_TEXT_WIDTH.
4455         * help.h: Replace CHAR_BOLD_ON, CHAR_BOLD_OFF and CHAR_ITALIC_ON
4456         with  CHAR_FONT_BOLD, CHAR_FONT_NORMAL and CHAR_FONT_ITALIC
4457         respectively for better consistency.
4459         * util.c (is_printable): Disable "Full 8 bits output" on xterm,
4460         fall back to "ISO 8859-1" due to problems with gnome-terminal,
4461         which identifies itself as xterm.
4462         Reported by Miven Dooligan <dooligan@intergate.ca>
4464         * mouse.h: Put return codes from the mouse callback to an enum.
4465         Remove MOU_ENDLOOP and MOU_LOCK - they are interpreted like
4466         MOU_NORMAL.  Adjust all dependencies.
4467         * dlg.c: Use MOU_NORMAL instead of 0 for mouse_status.
4469 2002-09-21  Pavel Roskin  <proski@gnu.org>
4471         * main.c (process_args): Print only data directory and nothing
4472         else for the "-f" argument.
4473         (argument_table): Rename --libdir to --datadir, adjust its
4474         description.
4476         * Makefile.am: Rename LIBDIR to DATADIR, since it refers to
4477         pkgdatadir now.  Install cons.saver to pkglibdir, pass it to the
4478         compiler as LIBDIR.
4479         * cons.handler.c (handle_console): Use LIBDIR.
4480         * main.c (OS_Setup): Use DATADIR instead of LIBDIR.  Rename
4481         MC_LIBDIR to MC_DATADIR.
4483         * panelize.c: Remove unused variable panelize_title.
4485         * view.c (view_event): Add mouse wheel support.
4487 2002-09-20  Pavel Roskin  <proski@gnu.org>
4489         * mouse.h: Define events for the mouse wheel.
4490         * key.c (xmouse_get_event): Recognize mouse wheel events.
4492         * command.c: (command_insert): New function - insert quoted
4493         text into the command line.
4494         * main.c: Use command_insert() instead of stuff().  This ensures
4495         that the names in the command line are quoted.
4496         Reported by Arpad Biro <biro_arpad@yahoo.com>
4498         * command.c: Make `command' a standard WInput widget, just
4499         change its callback.  Eliminate input_w().  Adjust all
4500         dependencies.
4501         * widget.c (input_callback): Remove static attribute.
4503 2002-09-19  Pavel Roskin  <proski@gnu.org>
4505         * main.c (argument_table): Improve help for "+number" - it has
4506         to be re-translated anyway.
4508         * main.c (argument_table): Add missing descriptions.
4510         * main.c [NATIVE_WIN32]: Remove -S option, it's useless.
4512         * main.c (print_mc_usage): Use poptPrintHelp() instead of
4513         manually formatted help text.  Adjust callers to pass popt
4514         context.
4516         * poptint.h: Use i18n.h instead of most own replacement macros.
4518 2002-09-18  Pavel Roskin  <proski@gnu.org>
4520         * cmd.c (other_symlink_cmd): Remove, this function is
4521         undocumented and poorly implemented.
4522         * main.c: Remove call to other_symlink_cmd() on C-x C-l.
4524 2002-09-16  Pavel Roskin  <proski@gnu.org>
4526         * wtools.c (real_input_dialog_help): Trim spaces from the label
4527         text.  Align label with the input field.
4529         * cmd.c (do_link): Avoid using g_strconcat() on translatable
4530         strings.
4531         (other_symlink_cmd): Likewise.
4533 2002-09-13  Pavel Roskin  <proski@gnu.org>
4535         * main.c: Remove advanced_chfns variable.  Adjust all
4536         dependencies.
4538         * option.c: Make "Configure options" dialog more flexible,
4539         readjust layout.  Remove "advanced chown" option - it's unused.
4541 2002-09-13  Andrew V. Samoilov  <sav@bcs.zp.ua>
4543         * main.c (process_args) [WITH_SMBFS]: Call smbfs_set_debugf()
4544         for "-l" option.
4546 2002-09-13  Pavel Roskin  <proski@gnu.org>
4548         * main.c: Fully remove obsolete "-m" option.
4550 2002-09-11  Andrew V. Samoilov  <sav@bcs.zp.ua>
4552         * main.c [WITH_SMBFS]: Include ../vfs/smbfs.h.
4553         (argument_table) [WITH_SMBFS]: Add -D, --debuglevel option for
4554         smbfs debug level.
4555         (process_args) [WITH_SMBFS]: Handle new -D option.
4556         (print_mc_usage) [WITH_SMBFS]: Describe -D, --debuglevel option.
4558 2002-09-11  Pavel Roskin  <proski@gnu.org>
4560         * subshell.c: Move tcsh_fifo to the file scope.  Use mc_tmpdir()
4561         to calculate tcsh_fifo.
4563         * utilunix.c (mc_tmpdir): New function that returns temporary
4564         directory for mc.
4565         * util.c (mc_mkstemps): Use mc_tmpdir().
4566         * main.c (main): Call mc_tmpdir().
4568 2002-09-10  Pavel Roskin  <proski@gnu.org>
4570         * util.c (trim): Handle short strings even better - don't use
4571         dots unless necessary.
4573         * main.c (load_prompt): Don't shorten the prompt if COLS is 8 or
4574         less.
4576         * screen.c (show_dir): Don't call trim() with negative length.
4577         * util.c (trim): Better handle short length.  Make sure that the
4578         destination is always 0-terminated.
4580 2002-09-09  Andrew V. Samoilov  <sav@bcs.zp.ua>
4582         * screen.c (string_file_name): Fix possible off-by-one
4583         buffer overflow.
4584         (string_file_size): Avoid unsafe strcpy().
4585         (string_file_size_brief): Likewise.  Eliminate buffer array.
4587 2002-09-08  Pavel Roskin  <proski@gnu.org>
4589         * color.c: Move hascolors variable into init_colors().  Adjust
4590         all dependencies.
4592         * myslang.h: Remove definition of initscr(), it's unused.
4594         * tty.h [!HAVE_SLANG]: Remove all slang_* definitions.
4595         * main.c (main) [!HAVE_SLANG]: Don't call slang_shutdown().
4596         * myslang.h: Remove slang_done_screen(), it's unused.
4598 2002-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
4600         * key.c (get_event): Check gpm_fd only if gpm is actually used.
4601         * layout.c (done_screen): Move disable_mouse() call ...
4602         * main.c (done_mc): ... here.
4604 2002-09-08  Pavel Roskin  <proski@gnu.org>
4606         * view.c (init_growing_view): Avoid reporting the same error
4607         twice.  Reported by Moritz Barsnick <moritz@barsnick.net>
4609 2002-09-07  Pavel Roskin  <proski@gnu.org>
4611         * textconf.c: Don't use SLANG_TERMINFO, which is unused anywhere
4612         else.  Assume that terminfo is used if USE_TERMCAP is undefined.
4614 2002-09-06  Pavel Roskin  <proski@gnu.org>
4616         * subshell.c (subshell_name_quote): Return NULL if we are out of
4617         memory.  Use "echo -e" with zsh (Debian bug #150996).
4618         (do_subshell_chdir): Be prepared to get NULL from
4619         subshell_name_quote().
4621         * profile.c: Remove unused code.  Eliminate global variables.
4622         (is_loaded): Rename to find_loaded().  return matching profile.
4623         Adjust all dependencies.
4625         * fs.h: Only redefine S_IS* macros if they are undefined, and
4626         then define them to 0.  S_IF* constants should be avoided.
4627         * util.c: Whenever possible, use standard POSIX macros to test
4628         for the file type.
4629         Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
4631 2002-09-05  Pavel Roskin  <proski@gnu.org>
4633         * cmd.c (nice_cd): Fix conditions when this function is
4634         compiled.
4636         * fs.h: Replace S_IFFIFO with S_IFIFO, which is the right name.
4638         * fs.h: Correct S_IS* definitions to use S_IFMT.  Add fallback
4639         definitions for S_IFDOOR and S_ISDOOR.
4640         * screen.c (string_file_type): Remove unnecessary ifdefs, fs.h
4641         takes care of it.
4642         (file_compute_color): Add support for Solaris doors.
4643         * util.c (string_perm): Remove unnecessary ifdef.
4645         * man2hlp.c (handle_command): Make clear that unsupported
4646         command is a warning, not an error.  Avoid unsafe strcat().
4648         * view.c (view_mode_callback): Eliminate, use the default
4649         callback.
4651         * main.c (load_hint): Don't hardcode copyright years.  Use a
4652         translated message.
4654         * main.c (midnight_callback): Avoid calling the default DLG_DRAW
4655         handler.  From David Martin <dmartina@excite.com>
4657         * help.c (help_handle_key): Sanity check for broken help files.
4658         From David Martin <dmartina@excite.com>
4660 2002-09-03  Pavel Roskin  <proski@gnu.org>
4662         * global.h: Eliminate xgetch, update all dependencies.
4664         * boxes.c: Fix remaining old-style calls to create_dlg().
4665         * complete.c: Likewise.
4666         * main.c: Likewise.
4667         * view.c: Likewise.
4669         * wtools.c: Remove Chooser, its unused.
4671         * dlg.c: Fix the case when the dialog has no title.
4673         * wtools.c (real_input_dialog_help): Use a more reliable way
4674         to indicate password input.
4676         * boxes.c (display_widgets) [!HAVE_CHARSET]: Fix initialization.
4677         (vfs_smb_get_authinfo): Reuse another translated string.
4679         * wtools.h (QuickDialog): Eliminate the "class" field - it's not
4680         used and it can clash with C++ code.  Adjust all dependencies.
4682         * dlg.c (x_set_dialog_title): Completely eliminate.  Adjust all
4683         dependencies.
4685         * help.c (interactive_display): Fallback to node "[main]" if the
4686         requested node cannot be found.
4688         * help.c (help_index_cmd): Eliminate unneeded search for
4689         "[Help]", which always fails.  Fix crash if "[Contents]" cannot
4690         be found.  Reuse more generic error message.
4692         * filegui.c: Eliminate x_set_dialog_title().
4693         * hotlist.c: Likewise.
4694         * help.c: Likewise.
4695         (interactive_display): Default to node "[main]" if the given
4696         node is empty.
4698 2002-09-02  Pavel Roskin  <proski@gnu.org>
4700         * dlg.c (create_dlg): Take title instead of unused name as the
4701         8-th argument.
4702         (x_set_dialog_title): Free old title.  Mark this function
4703         obsolete.
4704         * achown.c: Use new create_dlg().
4705         (do_enter_key): Provide titles for popups.
4707         * dlg.c: Remove unused code, make functions static if possible.
4709         * chmod.c: Use common_dialog_repaint().
4710         * chown.c: Likewise.
4711         * layout.c: Likewise.
4712         * option.c: Likewise.
4714         * wtools.c (common_dialog_callback): Fold into ...
4715         * dlg.c (default_dlg_callback): ... this.  Don't redraw dialogs
4716         that don't have colors.  Adjust all dependencies.
4717         (std_callback): Eliminate.
4719         * panelize.c (panelize_refresh): Eliminate in favor of
4720         common_dialog_callback().
4722         * widget.c (history_callback): Eliminate in favor of
4723         common_dialog_callback().
4724         (show_hist): Set dialog title and flag DLG_COMPACT.
4726         * help.c (help_callback): Use common_dialog_callback().
4727         (interactive_display): Set dialog title.
4729         * wtools.c (listbox_callback): Eliminate in favor of
4730         common_dialog_callback().
4732         * wtools.c (dialog_repaint): Eliminate, nobody should be using
4733         non-standard colors.  Adjust all dependencies.
4734         (common_dialog_repaint): Fix return code.
4735         (query_callback): Eliminate, use common_dialog_callback()
4736         instead.
4738         * listmode.c (listmode_refresh): Use common_dialog_repaint().
4739         Eliminate all global variables.  Reformat the whole file.
4741         * boxes.c (init_disp_bits_box): Use common_dialog_callback().
4742         Return the new dialog.
4744         * boxes.c (display_callback): Use common_dialog_repaint().
4745         (display_init): Avoid using two different translations.
4747 2002-09-01  Pavel Roskin  <proski@gnu.org>
4749         * help.c (interactive_display): Don't reuse the old value of
4750         help_lines - LINES could have changed.  Scale height better for
4751         terminals with many lines - use 2/3 of the full screen.
4753         * man2hlp.c: Move handling of .SH and NODE to a separate
4754         function handle_node().  Don't output empty nodes except in the
4755         table of contents.
4757 2002-09-01  Andrew V. Samoilov  <sav@bcs.zp.ua>
4759         * man2hlp.c (print_error): Print input filename.
4760         (handle_command): Handle .P, .LP, .IP and .br.
4761         Ignore comments and .TH (Title header).
4762         Report about unsupported commands.
4763         Handle .SM and .SB.
4765         * ext.c (regex_command): Use "%s" as text argument.
4766         * user.c (debug_out): Likewise.
4768         * win.c (key_name_conv_tab): Fix initialization.
4770 2002-08-31  Pavel Roskin  <proski@gnu.org>
4772         * help.c (show): Fix segfault on unterminated help files.
4773         From David Martin <dmartina@excite.com>
4775         * key.c (get_event): Reduce scope of select_set.  Don't check
4776         mouse_enabled all the time, instead break out of the loop if it
4777         becomes 0.
4779         * main.c (do_nc): Make midnight_colors[] local to do_nc().
4780         Initialize normal color - it's used by the tree.
4781         * boxes.c (tree_box): Use standard dialog_colors.
4782         * tree.c: Use NORMALC for normal entries.
4784         * view.c (view): Avoid passing an uninitialized color array to
4785         create_dlg() - pass NULL instead.
4787 2002-08-30  Pavel Roskin  <proski@gnu.org>
4789         * color.c: Define global array alarm_colors for the colors used
4790         in the dialogs that should be most visible (error messages,
4791         request to delete or overwrite).
4792         (load_dialog_colors): Initialize alarm_colors.
4793         * filegui.c: Use alarm_colors.
4794         * wtools.c: Likewise.
4795         * dlg.c (create_dlg): Make the color_set array constant.
4797         * wtools.c (common_dialog_repaint): Use colors specific to the
4798         current dialog, not fixed colors for "normal" dialogs.
4799         * filegui.c (replace_callback): Eliminate, use
4800         common_dialog_callback() instead.
4802         * filegui.c (file_op_context_create_ui): Use
4803         common_dialog_callback().  Set title to the operation name.
4804         (op_win_callback): Remove, it's unused.
4806 2002-08-27  Pavel Roskin  <proski@gnu.org>
4808         * view.c: Make static whatever possible.
4809         * view.h: Remove internal view routines.
4811 2002-08-27  Andrew V. Samoilov  <sav@bcs.zp.ua>
4813         * selcodepage.c (select_charset): Use snprintf instead of sprintf.
4814         (do_select_codepage) [!HAVE_ICONV]: Remove.
4816 2002-08-27  Pavel Roskin  <proski@gnu.org>
4818         * charsets.c: Add disclaimer of warranty.
4819         * filenot.c: Likewise.
4820         * fileopctx.c: Likewise.
4821         * mfmt.c: Likewise.
4822         * selcodepage.c: Likewise.
4823         * text.c: Likewise.
4824         * textconf.c: Likewise.
4826         * man2hlp.c (main): Factor error checks in fopen() and fclose(),
4827         eliminate reuse of variables for different purposes, add more
4828         comments.  Correctly process "\&" escape.
4829         The last part is from David Martin <dmartina@excite.com>
4831 2002-08-26  Pavel Roskin  <proski@gnu.org>
4833         * main.c (init_xterm_support): Force xterm-style screen saving
4834         and no mouse on "cygwin" terminal.
4836 2002-08-25  Pavel Roskin  <proski@gnu.org>
4838         * man2hlp.c: Change default from the English string for TOPICS,
4839         to no heading.
4841         * man2hlp.c (handle_command): Remove quotes from TOPIC.
4843         * key.c (get_event): Check gpm_fd before using it in FD_SET.  If
4844         gpm_fd is -1 (gpm has died), disable mouse support.
4846         * key.c: Use the maximal file descriptor, not FD_SETSIZE in all
4847         calls to select().
4848         * subshell.c: Likewise.
4849         From Pavel Tsekov <ptsekov@gmx.net>
4851 2002-08-24  Pavel Roskin  <proski@gnu.org>
4853         * user.c (expand_format): Remove support for error file in the
4854         editor.
4855         * utilunix.c (close_error_pipe): Fix the condition when nothing
4856         needs to be displayed.
4858         * dlg.c (x_set_dialog_title): Force uniform spacing.
4859         From Andrew Borodin <borodin@zarya-k.ru>
4861         * utilunix.c (check_error_pipe): Check error_pipe[0], not
4862         stdout.  From Pavel Tsekov <ptsekov@gmx.net>
4864         * achown.c (chown_refresh): Use common_dialog_repaint().
4866         * dlg.h (struct Dlg_head): Separate user flags and internal
4867         flags.  Make "direction" a user flag.  Adjust all dependencies.
4868         * dlg.c (run_dlg): Return ret_value.
4870 2002-08-23  Pavel Roskin  <proski@gnu.org>
4872         * text.c (default_edition_colors): Use more rxvt-friendly color
4873         for dhotnormal.
4875         * Makefile.am: Remove definition of CONFDIR, it's not used.
4877 2002-08-22  Pavel Roskin  <proski@gnu.org>
4879         * layout.c (print_vfs_message): Set normal color, don't use
4880         random current attributes.
4882         * dlg.h (struct Dlg_head): Eliminate "data" field, it duplicated
4883         functionality of "title".
4884         * wtools.c (query_callback): Use dialog_repaint().
4885         (quick_callback): Use common_dialog_repaint().
4887         * learn.c (learn_callback): Use common_dialog_repaint().
4888         * achown.c (chl_callback): Likewise.
4890         * dialog.h: Cleanup unused functions.
4891         * dialog.c: Cleanup unused headers.
4893         * dlg.h (struct Dlg_head): Fold fields "raw" and "has_menubar"
4894         into one field "flags".  Adjust all dependencies.  Add new flag
4895         DLG_COMPACT.
4896         * wtools.c (dialog_repaint): Draw frame without spaces if
4897         DLG_COMPACT flag is set.
4898         * complete.c (complete_engine): Set DLG_COMPACT.
4899         (query_callback): Use common_dialog_repaint().
4901         * keys.h: Remove, include ...
4902         * myslang.h: ... here.
4903         * Makefile.am: Remove keys.h.
4905         * dlg.h: Remove unused fields in struct Dlg_head.
4906         * dlg.c: Adjust for the above.
4908 2002-08-21  Pavel Roskin  <proski@gnu.org>
4910         * dlg.h: Remove unused fields in struct Widget.
4911         * dlg.c: Adjust for the above.
4912         * layout.c: Likewise.
4914         * cmd.c (info_cmd_no_menu): Toggle info screen.
4915         (quick_cmd_no_menu): Toggle quick view.
4917         * help.c (interactive_display): Always show button bar.
4919         * widget.c (buttonbar_callback): Fix a bug that prevented the
4920         last byte from being redrawn.
4921         Reported by David Martin <dmartina@excite.com>
4923         * layout.c (setup_panels): Make the button bar 0 lines high if
4924         it's invisible, so that mouse click on the history button works
4925         with invisible button bar.
4927         * widget.c: Make more functions static.
4929         * ext.c: (regex_check_type): Further split.  Restore caching
4930         broken in the previous commit.
4932         * ext.c (regex_command): Separate checking for "type/" into ...
4933         (regex_check_type): ... this.
4935         * global.h: Move include for rx.h and eregex.h here.
4937         * learn.c (learn_button): Don't allow Tab to be learned.
4939 2002-08-20  David Martin  <dmartina@excite.com>
4941         * menu.c (create_menu): Get help node as an argument.
4942         * main.c: Use new create_menu() interface.
4944 2002-08-20  Pavel Roskin  <proski@gnu.org>
4946         * man2hlp.c: Don't redirect stdout.  Check result of ftell.
4947         Drop support for invocation with 2 arguments.
4949 2002-08-19  Pavel Roskin  <proski@gnu.org>
4951         * cons.handler.c (handle_console): Use _exit(), not exit() in
4952         the child.
4954         * main.c (handle_args): Set POPT_CONTEXT_NO_EXEC flag for
4955         poptGetContext().
4956         * popt.c: Call abort() in execCommand() - we should not execute
4957         anything here.
4959         * util.h: Remove unused and dangerous flags for my_system():
4960         EXECUTE_TEMPFILE, EXECUTE_SETUID and EXECUTE_WAIT.
4961         * utilunix.c: Corresponding adjustments.
4962         * ext.c: Don't use EXECUTE_TEMPFILE, it has no effect.
4964         * subshell.c (synchronize): Workaround for Cygwin (should not be
4965         needed for the next version) - remove SIGCHLD blocking from
4966         old_mask.
4968         * dlg.h: Remove all unused flags for create_dlg().  Adjust all
4969         dependencies.
4971         * cmd.c (fishlink_cmd): Implement user interface for FiSH.
4972         * main.c: Add it to the menu.
4974         * help.c (help_follow_link): Made static.
4976 2002-08-18  Pavel Roskin  <proski@gnu.org>
4978         * subshell.c (synchronize): Discard all remaining data from
4979         stdin to the subshell.
4981         * subshell.c (exit_subshell) [AIX_TCSH_CODE_BELOW_IS_IT_FIXED]:
4982         Remove.  Nobody has fixed this code for years.
4984         * main.h [USE_INTERNAL_EDIT]: Don't include declarations from
4985         edit.h.
4986         * setup.c [USE_INTERNAL_EDIT]: Include edit.h.
4988         * boxes.h: Remove user_format.
4989         * boxes.c: Make more variables static, remove all extern
4990         declarations.
4991         * setup.c: Remove some extern declarations.
4993         * mountlist.h: Move some internals ...
4994         * mountlist.c: ... here.
4996         * main.c: Remove extremely unsafe and poorly designed support
4997         for /tmp/mc.$PID.control file.
4998         * util.c (my_putenv): Remove, it's unused now.
5000         * panel.h (struct format_e): Make string_fn return const char *.
5001         Adjust all dependencies.
5002         * screen.c (string_file_mtime): Return empty string for "..".
5003         (string_file_atime): Likewise.
5004         (string_file_ctime): Likewise.
5006         * view.c (display): Use enum for boldflag values.  Fix cursor
5007         highlighting for the ASCII part of the hex editor.
5009         * layout.c (init_curses) [!HAVE_SLANG]: Add support for
5010         stickchars - fill acs_map[] with ASCII approximations.
5011         * main.c [!HAVE_SLANG]: Enable --stickchars (-a) for ncurses.
5013 2002-08-16  Pavel Roskin  <proski@gnu.org>
5015         * setup.c: New variable global_profile_name to hold full name of
5016         mc.lib.
5017         (load_setup): Calculate global_profile_name.
5018         (done_setup): Free global_profile_name.
5019         (load_key_defs): Use global_profile_name.
5020         * treestore.c (should_skip_directory): Likewise.
5022         * man2hlp.c: Implement persistent fread and fwrite to make sure
5023         that all output is read and written.
5025 2002-08-16  Andrew V. Samoilov  <sav@bcs.zp.ua>
5027         * help.c (show): Cast *paint_start to unsigned char to display
5028         Cyrillic with ncurses.
5029         [HAS_ACS_AS_PCCHARS] (acs2pc_table): Make const.
5031         * user.c (expand_format): Cast the argument to functions
5032         for character classification to unsigned int.
5033         (execute_menu_command): Likewise.
5035 2002-08-15  Pavel Roskin  <proski@gnu.org>
5037         * treestore.c (tree_store_remove_entry): Don't use ts.check_name
5038         and don't check it.
5040         * treestore.c: Remove unused code, reformat.
5041         * treestore.h: Remove unused declarations.
5043         * fs.h (compute_namelen): New inline function to take care of
5044         the d_namlen field if and only if it's needed.
5046         * screen.c (string_file_name): Replace non-printable characters
5047         with question marks.
5049         * subshell.c (read_subshell_prompt): Remove argument "how", it's
5050         never set to VISIBLY.  Adjust all dependencies.  Eliminate hack
5051         with "clear_now" - it causes invalid memory access and hides the
5052         real problem.
5053         * util.c (strip_ctrl_codes): Fix possible invalid memory access
5054         if the escape sequence ends unexpectedly.
5056 2002-08-14  Pavel Roskin  <proski@gnu.org>
5058         * dir.c (do_load_dir): Fix leaking of file descriptors - always
5059         call mc_closedir() before return.
5061         * main.c (do_execute) [!HAVE_SUBSHELL_SUPPORT]: Compile fix.
5063         * view.c (display): Use only declared color pairs to fix hex
5064         editor appearance with ncurses.  Eliminate some useless defines.
5066 2002-08-10  Pavel Roskin  <proski@gnu.org>
5068         * key.c (delete_select_channel): Avoid using freed memory.
5070 2002-08-09  Pavel Roskin  <proski@gnu.org>
5072         * ext.c (exec_extension): Eliminate unused argument.
5073         (regex_command): Remove support for user actions.  Return int.
5074         Adjust all dependencies.
5076         * ext.c (exec_extension): Make static.  Remove support for Drop,
5077         Title and Icon actions.  Adjust all dependencies.
5079         * main.c (sigchld_handler_no_subshell) [linux]: SIGTSTP is
5080         always defined on Linux.
5081         * subshell.c (sigchld_handler): No need to use SIGTSTP
5082         explicitly when we really care about SIGCONT.
5084         * ncurses.patch: Remove, it's obsolete.
5085         * Makefile.am: Remove ncurses.patch.
5087 2002-08-04  Pavel Roskin  <proski@gnu.org>
5089         * subshell.c: Assume that SIGTSTP and SIGCONT are always
5090         defined.  This is now checked in configure.  Otherwise
5091         synchronize() would hang until subshell exits.
5093 2002-08-01  Pavel Roskin  <proski@gnu.org>
5095         * charsets.c: Unconditionally enable finalization code that was
5096         only used with HAVE_MAD.
5097         * color.c: Likewise.
5098         * color.h: Likewise.
5099         * key.c: Likewise.
5100         * main.c: Likewise.
5101         * slint.c: Likewise.
5102         * subshell.c (exit_subshell): Free subshell_prompt.
5104         * mad.c: Remove.
5105         * mad.h: Likewise.
5106         * Makefile.am (SRCS): Remove mad.c and mad.h.
5107         * cmd.c: Remove references to MAD.
5108         * main.c: Likewise.
5109         * dlg.c: Use inline, not INLINE.
5110         * hotlist.c: Likewise.
5111         * menu.c: Likewise.
5112         * global.h: Don't include mad.h.
5114 2002-07-31  Andrew V. Samoilov  <kai@cmail.ru>
5116         * man2hlp.c (main): Don't use freed structure member.
5118         * ext.c (regex_command): Don't check same condition twice.
5119         (exec_extension): Comment out useless loop.
5120         * key.h (key_code_name_t): Typedef const.
5122 2002-07-30  Pavel Roskin  <proski@gnu.org>
5124         * man2hlp.c (main): Use only stream I/O.  Fix checks for error
5125         conditions.  Reformat the whole file.
5127         * man2hlp.c: Avoid the need to use gindex.pl.
5128         From Andrew V. Samoilov <sav@bcs.zp.ua>
5129         * Makefile.am: Use man2hlp directly.
5130         (EXTRA_DIST): Remove gindex.pl.
5131         * gindex.pl: Remove.
5133         * ext.c (regex_command): Additional check to prevent reading
5134         unallocated memory when matching "shell/".  Found by Valgrind.
5136 2002-07-29  Pavel Roskin  <proski@gnu.org>
5138         * setup.c: Eliminate all PORT* macros.
5139         * screen.c: Likewise.
5141         * subshell.c (feed_subshell): Reading 0 bytes in a channel with
5142         FD_ISSET being set is a sign of something being wrong - exit
5143         immediately.  Observed when mc is run under su in xterm and
5144         xterm is closed while the subshell is running.
5145         Reported by Vlad Harchev <hvv@hippo.ru>
5147         * color.h: Replace PORT_COLOR macro with BEST_COLOR, which uses
5148         MY_COLOR_PAIR.
5150         * util.c: Remove unused functions.
5151         * utilunix.c: Likewise.
5152         * util.h: Update to match.
5154         * cons.saver.c: Use SEEK_SET instead of 0 in lseek().
5155         * view.c: Likewise.
5157         * main.c (do_execute): Add newline after "Press any key to
5158         continue".
5160         * cons.saver.c: Eliminate some global variables.  Further
5161         cleanup.  Make sure that console_fd is always closed.
5163 2002-07-28  Pavel Roskin  <proski@gnu.org>
5165         * cons.saver.c: Remove support for Linux kernels before 2.0.
5166         Massive cleanup.
5167         (send_contents): Remove incorrect optimization - restore even
5168         empty lines because they may be touched by the viewer.
5169         From Denis Vlasenko <vda_unique@iname.com>
5171 2002-07-26  Pavel Roskin  <proski@gnu.org>
5173         * utilunix.c (canonicalize_pathname): Don't extend empty path
5174         to "." - it can corrupt memory.
5176         * cmd.c (copymove_cmd_with_default): Remove, it's unused.
5177         (copy_cmd_local): New function, copy within panel.
5178         (ren_cmd_local): New function, rename within panel.
5179         * cmd.h: Adjust to match.
5180         * screen.c (panel_keymap): Associate F15 with copy_cmd_local and
5181         F16 with ren_cmd_local.
5183         * view.c (display): Don't highlight characters as bold if the
5184         character before the backspace was different.
5185         From Roland Illig <roland.illig@gmx.de>
5187 2002-07-25  Andrew V. Samoilov  <kai@cmail.ru>
5189         * wtools.c (message): Fix possible buffer overflow.
5191         * slint.c [HAVE_MAD] (dealloc_color_pairs): Move ...
5192         * color.c [HAVE_MAD]: ... here and make accessible from
5193         other files to fix compilation.
5194         * color.h [HAVE_MAD]: Declare dealloc_color_pairs.
5196 2002-07-20  Pavel Roskin  <proski@gnu.org>
5198         * screen.c (panel_callback): Revert last change, it has bad side
5199         effects on the subshell.
5201 2002-07-19  Pavel Roskin  <proski@gnu.org>
5203         * dlg.c: Eliminate all useless x_* functions.
5204         * dlg.h: Likewise.
5205         * panel.h: Likewise.
5206         * textconf.h: Likewise.
5207         * view.c: Likewise.
5208         * view.h: Likewise.
5209         * widget.c: Likewise.
5210         * main.c: Remove panel_update_marks(). Move try_to_select() ...
5211         * screen.c: ... here.  Eliminate x_* functions.
5212         * main.h: Remove panel_update_marks().
5214         * screen.c (panel_callback): Only change directory on
5215         WIDGET_FOCUS if current_panel changes.
5217         * main.c (handle_args): Don't call mc_get_current_wd().
5219         * main.c (directory_history_list): Report error if cannot change
5220         directory.
5222 2002-07-16  Pavel Roskin  <proski@gnu.org>
5224         * main.c (do_execute): Don't ask to press any key when the shell
5225         is running a command - the user has already pressed Ctrl-O.
5227 2002-07-15  Pavel Roskin  <proski@gnu.org>
5229         * slint.c: Eliminate hardcoded color terminals.  Most users no
5230         longer need this hack, and those who do have color_terminals
5231         option in the config file.
5233 2002-07-14  Pavel Roskin  <proski@gnu.org>
5235         * color.c [USE_NCURSES]: Eliminate division by COLOR, it's 0 in
5236         black and white mode.
5238         * slint.c: Move functions for allocating color pairs ...
5239         * color.c: ... here.  Implement ncurses equivalents.  Rename
5240         init_pair() to mc_init_pair() and keep tack of max_index with
5241         ncurses.  Adjust all dependencies.
5243         * mem.h: Clean up obsolete definitions, incorporate into ...
5244         * global.h: ... this.
5245         * Makefile.am: Remove mem.h.
5247 2002-07-13  Pavel Roskin  <proski@gnu.org>
5249         * Makefile.am (AM_CPPFLAGS): Remove REGEX_MALLOC, it's now in
5250         configure.in.
5252         * tty.h: Use standard autoconf defines to determine which
5253         ncurses header to include.  Eliminate RENAMED_NCURSES.
5255 2002-07-10  Pavel Roskin  <proski@gnu.org>
5257         * utilunix.c: Cast argument for GUINT_TO_POINTER to int to fix
5258         warnings on Cygwin.
5260         * subshell.c: ioctl() doesn't set errno - don't use perror() to
5261         report failures.  Use fprintf() instead, ignore errors from
5262         TIOCSWINSZ.
5263         (resize_tty): New function - code common for resize_subshell()
5264         and init_subshell_child().
5266         * global.h: Include vfs.h.
5267         * boxes.c (configure_vfs): Ask whether .netrc should be used.
5268         From Thomas Zajic <zlatko@gmx.at>
5270 2002-07-03  Pavel Roskin  <proski@gnu.org>
5272         * file.c (do_transform_source): Cast the argument to functions
5273         for character classification to unsigned int.
5274         * main.c (handle_args): Likewise.
5275         * util.c (size_trunc_sep): Likewise.
5276         (skip_numbers): Likewise.
5278         * subshell.c (sigchld_handler): Remove subshell_pty from the
5279         channel list if the subshell has died.
5281 2002-07-03  Andrew V. Samoilov  <kai@cmail.ru>
5283         * mad.[ch] [__GNUC__] (mad_strconcat): Use macro varargs.
5284         (mad_strdup_printf): Likewise.
5285         (mad_strdup_vprintf): Likewise.
5286         * main.c [HAVE_MAD] (main): Release this_dir and other_dir.
5288 2002-07-03  Pavel Roskin  <proski@gnu.org>
5290         * main.c (stop_dialogs): New function to stop all dialogs.
5291         (quit_cmd_internal): Use stop_dialogs() instead of stopping
5292         midnight_dlg only.  This fixes exit from the shell invoked from
5293         the internal viewer or editor.
5295         * cmd.c (view_other_cmd): Shut down extra select channels before
5296         switching to the shell.  Restore them afterwards, but not if
5297         quit was requested.  Skip more code on quit.
5299 2002-07-02  Pavel Roskin  <proski@gnu.org>
5301         * util.c: Eliminate get_small_endian_long() and CHECK macro.
5303         * util.h: Rename compression types, add a type for uncompressed
5304         files.
5305         * util.c (is_gunzipable): Rename to ...
5306         (get_compression_type): this.  Don't check archive length, since
5307         it's unreliable if there is padding at the end of the file.
5308         Eliminate prehistoric Linux workaround.  All callers adjusted.
5310 2002-07-01  Andrew V. Samoilov  <kai@cmail.ru>
5312         * utilunix.c (close_error_pipe): Use "%s" in message () to
5313         prevent possible crash.
5314         (check_error_pipe): Likewise.
5316 2002-06-27  Pavel Roskin  <proski@gnu.org>
5318         * screen.c (do_enter_on_file_entry): Process associations before
5319         trying to execute the file.
5321 2002-06-20  Pavel Roskin  <proski@gnu.org>
5323         * dir.c (handle_dirent): Don't process ".." entries.
5324         (handle_path): Likewise.
5325         From Andrew V. Samoilov <kai@cmail.ru>
5327 2002-06-13  Oskar Liljeblad  <oskar@osk.mine.nu>
5329         * slint.c (has_colors): Don't reset SLtt_Use_Ansi_Colors to 0 if
5330         force_colors is not set.  This fixes color on unknown terminals.
5332 2002-06-13  Andrew V. Samoilov  <kai@cmail.ru>
5334         * user.c (expand_format): Fix '%b' processing.
5335         Handle '%k' as documented.
5337 2002-05-30  Andrew V. Samoilov  <kai@cmail.ru>
5339         * view.c (regexp_search): Don't call save_edit_changes
5340         if there are no changes.
5341         (save_edit_changes): Use messages from ../po/mc.pot.
5343         * mad.c (mad_tempnam): Commented out to make linker happy.
5344         * main.c [HAVE_MAD && !_OS_NT] (main): G_free mc_home.
5346 2002-05-27  Andrew V. Samoilov  <kai@cmail.ru>
5348         * view.c (save_edit_changes): Handle errors.
5349         (do_view_init): Don't open and check file type
5350         if _command is not null or _file is empty string.
5352 2002-05-22  Pavel Roskin  <proski@gnu.org>
5354         * Makefile.am: doc/mc.1 is in top_builddir, not in top_srcdir.
5356 2002-05-15  Andrew V. Samoilov  <kai@cmail.ru>
5358         * view.c (do_view_init): Close fd if it is unused.
5360 2002-05-14  Andrew V. Samoilov  <kai@cmail.ru>
5362         * Makefile.am (VFSLIB): Add ../vfs/samba/libsamba.a
5363         if USE_SAMBA_FS is true.
5365 2002-05-07  Pavel Roskin  <proski@gnu.org>
5367         * hotlist.c (hotlist_button_callback): Don't process B_REMOVE
5368         for VFS list - it would crash.
5369         From Andrey Panov <pav@metib.ru>
5371 2002-04-19  Andrew V. Samoilov  <kai@cmail.ru>
5373         * main.c [!WITH_MCFS] (PanelMenu): Eliminate mcfs related entry.
5374         (RightMenu): Likewise.
5375         * textconf.c (features): Likewise.
5376         * cmd.c (netlink_cmd) [!WITH_MCFS]: Eliminate.
5378 2002-04-03  Pavel Roskin  <proski@gnu.org>
5380         * Makefile: mc.hlp should be in MAINTAINERCLEANFILES, not in
5381         CLEANFILES, because "make clean" should not make the source
5382         directory useless on systems without Perl.
5384 2002-03-26  Andrew V. Samoilov  <kai@cmail.ru>
5386         * eregex.h [!USE_INCLUDED_REGEX]: Include <regex.h>.
5387         * regex.c: Compile only if USE_INCLUDED_REGEX is defined.
5389 2002-03-25  Andrew V. Samoilov  <kai@cmail.ru>
5391         * complete.c (insert_text): Fix buffer overflow.
5393         * cmd.[ch] [USE_INTERNAL_EDIT] (edit_syntax_cmd:) New dialog
5394         to edit Syntax Highlighting definitions file.
5395         * main.c (CmdMenu) [USE_INTERNAL_EDIT]: Add 'Syntax file edit'
5396         entry.
5397         (process_args): Print mc's library directory to stdout.
5399 2002-03-21  Andrew V. Samoilov  <kai@cmail.ru>
5401         * man2hlp.c (handle_command): Handle backslash quoting
5402         for .I and .B
5403         (handle_link): Strip .B and .I
5404         * gindex.pl: Use fifth argument as man2hlp location.
5406 2002-03-20  Andrew V. Samoilov  <kai@cmail.ru>
5408         * man2hlp.c (handle_command): Handle '.\"TOPICS' comment.
5409         Use it for translated 'Topics:' message.
5410         * gindex.pl: Use first line of man2hlp output as
5411         translated 'Topics:' message if fourth argument
5412         is empty string.
5413         * Makefile.am (mc.hlp.ru): Use empty string as gindex.pl's
5414         fourth argument.
5416         * textconf.c (version): Write to stdout.
5417         * main.c (print_mc_usage): Add "stream" parameter to specify
5418         file stream.
5419         (process_args): Use print_mc_usage() with stdout as stream.
5420         (handle_args): Use print_mc_usage() with stderr as stream.
5421         (print_color_usage): Write to stdout.
5423 2002-03-18  Pavel Roskin  <proski@gnu.org>
5425         * eregex.h: Update from glibc-2.2.5.
5426         * regex.c: Likewise.
5427         * find.c: Use eregex.h, not regex.h.
5428         * util.c: Likewise.
5429         * view.c: Likewise.
5430         From Alexander Varakin <avarakin00@hotmail.com>
5432         * find.c (find_parameters): Invert condition when find is case
5433         sensitive.
5435 2002-03-04  Andrew V. Samoilov  <kai@cmail.ru>
5437         * Makefile.am (mc.hlp.ru): Use mc.1 instead of mc.1.in.
5438         (mc.hlp): Likewise.
5440         * file.c (copy_file_file): Chmod destination only if
5441         ctx->preserve is on.  Eliminate gotos.
5443 2002-03-01  Andrew V. Samoilov  <kai@cmail.ru>
5445         * Makefile.am (mc.hlp.ru): New rule to compile translated
5446         help file.
5447         (mclib_DATA): Add mc.hlp.ru.
5448         (EXTRA_DIST): Likewise.
5450         * gindex.pl: Add optional 4th argument for translated
5451         Content section name.
5453 2002-02-28  Andrew V. Samoilov  <kai@cmail.ru>
5455         * mad.c: Make mem_areas dynamically growing.
5456         (mad_init): Allocate memory for mem_areas.
5457         (mad_alloc): Grow mem_areas if it is exhausted.
5459         * filegui.c (file_mask_dialog): Enable 'follow Links'
5460         and 'preserve Attributes' features in Move dialog.
5461         (file_bps_show): Translate messages.
5462         (file_eta_show): Likewise.
5464         * man2hlp.c (main): Don't crash if called without argument(s).
5465         Make buffer char pointer.
5466         (handle_command): Handle '.\"NODE' comment.  Use it for
5467         nodename in translated manual pages.
5469         * gindex.pl: Use [nodename] as user visible section name
5470         only if next line is empty.  Elsewhere use this nonempty line.
5472         * find.c (find_parameters): Compile content_pattern here.
5473         Inform user about malformed regular expression.
5474         (search_content): Use compiled regular expression.
5475         (do_find): Eliminate `done'.  Call regfree for compiled
5476         content_pattern.
5478 2002-02-24  Pavel Roskin  <proski@gnu.org>
5480         * chown.c (chown_cmd): Use size_trunc_len() to show the file
5481         size.  Eliminate c_fsize, which wasn't properly initialized.
5483 2002-02-22  Pavel Roskin  <proski@gnu.org>
5485         * man2hlp.c (string_len): Don't exclude characters with codes
5486         above 128 from the string length.
5488 2002-02-21  Andrew V. Samoilov  <kai@cmail.ru>
5490         * ext.c (exec_extension): Use "#! /bin/sh".
5492 2002-02-20  Pavel Roskin  <proski@gnu.org>
5494         * background.c (background_attention): Cast pointer to long
5495         instead of int because it's unsafe of 64-bit systems.
5496         * main.c (init_xterm_support): Likewise.
5498 2002-02-18  Pavel Roskin  <proski@gnu.org>
5500         * utilunix.c (canonicalize_pathname) [__QNX__]: Fix detection
5501         of Qnet names.  Disable support of Qnet names under QNX Neutrino.
5502         Reported by Maurizio Rossi <MRossi@system-group.it>
5504         * global.h: Include unix.h under "classical" QNX.
5505         * subshell.c: Don't include unix.h.
5506         * utilunix.c: Likewise.
5508 2002-02-07  Andrew V. Samoilov  <kai@cmail.ru>
5510         * main.c (update_one_panel_widget): Call ftpfs_flushdir().
5512 2002-02-05  Pavel Roskin  <proski@gnu.org>
5514         * key.c [USE_NCURSES] (get_key_code): Ignore KEY_RESIZE.
5515         * layout.c [USE_NCURSES] (flag_winch): Don't call
5516         low_level_change_screen_size() from signal handler.
5517         From Thomas Dickey <dickey@herndon4.his.com>
5519         * screen.c (format_file): Add a new parameter (size of the
5520         output buffer) to prevent buffer overflow on very wide
5521         terminals.
5522         From Thomas Dickey <dickey@herndon4.his.com>
5524 2002-02-04  Andrew V. Samoilov  <kai@cmail.ru>
5526         * util.c [!HAVE_TRUNCATE] (truncate): Close fd if my_ftruncate
5527         fails.
5529         * util.c [HAVE_CHARSET] (is_printable): Eliminate printable.
5530         * setup.c [HAVE_CHARSET] (load_setup): Don't use
5531         init_printable_table.
5533         * charsets.h: Don't declare init_printable_table ().
5534         * charset.c (printable): Removed.
5535         (init_printable_table): Removed.
5537 2002-01-30  Andrew V. Samoilov  <kai@cmail.ru>
5539         * file.c (recursive_erase): Use mc_closedir() if mc_lstat()
5540         fails.  Eliminate goto.
5541         (erase_dir): Eliminate goto.
5542         (erase_dir_iff_empty): Likewise.
5544 2002-01-29  Andrew V. Samoilov  <kai@cmail.ru>
5546         * dir.c (handle_dirent): Use MSG_ERROR.
5547         * charsets.c (translate_character): Use ICONV_CONST.
5549 2002-01-22  Pavel Roskin  <proski@gnu.org>
5551         * screen.c: Don't try to paint anything if width is 0 or less.
5552         Reported by Pawel Sakowski <pawel@sakowski.eu.org>
5554         * screen.c: Make functions static whenever possible.  Remove
5555         unused functions.
5556         * panel.h: Remove corresponding declarations.
5558 2002-01-21  Pavel Roskin  <proski@gnu.org>
5560         * util.c: Move replacements for permission bits ...
5561         * fs.h: ... here.  Add more replacements.
5562         * global.h: Include direct.h only with MSVC.
5564         * main.c: Include "drive.h", not <drive.h>, do it after panel.h.
5565         Use _OS_NT as the condition for including drive.h.
5566         * screen.c: Use _OS_NT as the condition for including drive.h.
5568         * global.h [_OS_NT]: Include io.h, direct.h and windows.h.
5569         Don't redefine struct timeval.
5571         * fs.h [_MSC_VER]: Use dirent provided by glib.
5573         * global.h [!HAVE_SYS_TIME_H]: Provide a replacement for struct
5574         timeval.
5576         * findme.c: Respect HAVE_UNISTD_H.
5577         * popt.c: Likewise.
5579         * global.h: Fallback to sys/utime.h if utime.h is missing.
5581         * global.h: Provide fallbacks for getuid(), getgid(), geteuid()
5582         and getegid().
5583         * fs.h: Fully trust HAVE_DIRENT_H.
5584         * complete.c: Don't include dirent.h directly, fs.h takes care
5585         of it.
5586         * file.c: Likewise.
5587         * filegui.c: Likewise.
5588         * main.c: Likewise.
5589         * treestore.c: Likewise.
5591         * global.h [!__GNUC__]: Define __attribute__ with one argument.
5593 2002-01-20  Pavel Roskin  <proski@gnu.org>
5595         * screen.c (string_file_size): Translate "UP--DIR".
5596         (string_file_size_brief): Translate "SUB-DIR" and "SYMLINK".
5598         * dir.c (add_dotdot_to_list): Don't use costly stat() - just put
5599         realistic (i.e. bogus) data to the list.
5601         * screen.c (string_file_size): Don't display size of ".." - it
5602         may take too much time to calculate it on VFS.  Show "UP--DIR"
5603         instead.
5604         (string_file_size_brief): Remove ".." handling - it's now done
5605         in string_file_size().  Show "SUB-DIR" for links to directories,
5606         "SYMLINK" for other links.
5608 2002-01-17  Pavel Roskin  <proski@gnu.org>
5610         * cmd.c: Remove OS/2 specific code.
5611         * file.c: Likewise.
5612         * main.c: Likewise.
5614         * main.h: Remove dead declarations.
5615         * setup.c: Remove defunct extension alignment support.
5616         * util.c: Likewise.
5617         * util.h: Likewise.
5619         * main.c: Remove unused toggle_* functions.
5621         * dir.c: Show backups by default.
5623 2002-01-15  Andrew V. Samoilov  <kai@cmail.ru>
5625         * file.c (copy_dir_dir): Check the destination is a directory
5626         if it exists. Reported by Thomas <metaf4@pseudonym.org>.
5628 2002-01-09  Andrew V. Samoilov  <kai@cmail.ru>
5630         * util.c (string_perm) [S_IFDOOR]: Support Solaris doors.
5631         * screen.c (string_file_type) [S_IFDOOR]: Likewise.
5633 2001-12-21  Pavel Roskin  <proski@gnu.org>
5635         * hotlist.c (hotlist_callback): Recognize "delete" key.
5637         * myslang.h [!HAVE_SYSTEM_SLANG]: Include slang/slang-mc.h to
5638         simplify includes.
5639         [HAVE_SYSTEM_SLANG]: Use angle brackets for slang.h.
5641         * myslang.h [!HAVE_SYSTEM_SLANG]: Include slang-mc.h directly
5642         to avoid relying on symlinks.
5644 2001-12-18  Pavel Roskin  <proski@gnu.org>
5646         * utilunix.c (init_groups): Don't return prematurely if the
5647         primary group cannot be found (it can happen on Cygwin).
5649 2001-12-10  Pavel Roskin  <proski@gnu.org>
5651         * dir.c (do_reload_dir): Hash-table added.
5652         From Björn Eriksson <mdeans@algonet.se>
5654 2001-12-03  Pavel Roskin  <proski@gnu.org>
5656         * dir.c (do_reload_dir): Optimize the logic - count the marks
5657         and only match new entries against old entries if at least one
5658         mark has not been transferred.
5659         From Björn Eriksson <mdeans@algonet.se>
5661 2001-11-29  Pavel Roskin  <proski@gnu.org>
5663         * main.c (midnight_callback): Implement "auto menus".
5665         * layout.c: Make more variables static.
5667         * cons.saver.c: Define LINUX_CONS_SAVER_C so that some parts
5668         of cons.saver.h can be omitted.
5669         * cons.saver.h: Declare nothing but constants if
5670         LINUX_CONS_SAVER_C is defined.
5672 2001-11-14  Pavel Roskin  <proski@gnu.org>
5674         Fully eliminate all references to HAVE_X and HAVE_GNOME.
5676         * dir.c (do_sort): Correctly handle the case when there is no
5677         ".." entry (i.e. panelized mode).
5679 2001-11-14  Andrew V. Samoilov  <kai@cmail.ru>
5681         * view.c (do_view_init): Make sure _file is not
5682         an empty string before mc_stat and mc_open.
5683         Memory leak fixed.
5685 2001-11-14  Pavel Roskin  <proski@gnu.org>
5687         * panelize.c (do_external_panelize): Re-sort the panel according
5688         to the current settings.
5690         * find.c (do_find): Re-sort the panel according to the current
5691         settings when doing panelizing.
5693         * dir.c (sort_type_to_name): Remove, it's unused in the text
5694         edition.
5695         (sort_name_to_type): Likewise.
5696         * dir.h: Adjust to match.
5698         * mouse.c: Add default cases to fix warnings with gcc-2.96.
5700 2001-11-12  Pavel Roskin  <proski@gnu.org>
5702         * main.c: Remove support for subshell debugging.  Firstly, it
5703         was broken.  Secondly, every developer should be able to add
5704         this code when needed.  Finally, there is no need to expose the
5705         option to the user and translate it into 30 languages.
5706         * subshell.h: Remove debug_subshell.
5707         * subshell.c: Likewise.
5709 2001-11-12  Andrew V. Samoilov  <kai@cmail.ru>
5711         * mad.h: Enable glib support.
5713         * mad.[ch] (mad_get_current_dir): New function to use instead
5714         of g_get_current_dir.
5715         (mad_tempnam): Add file and line parameters.
5716         (mad_alloc0): Make file parameter const.
5717         (mad_realloc): Likewise.
5718         (mad_strdup): Likewise.
5719         (mad_strndup): Likewise.
5720         (mad_free): Likewise.
5721         (mad_finalize): Likewise.
5723 2001-11-07  Andrew V. Samoilov  <kai@cmail.ru>
5725         * cmd.c (guess_message_value): Make val static const array.
5726         (smblink_cmd) [!WITH_SMBFS]: Eliminated.
5728         * dlg.c (add_widget): Check for what is not NULL
5729         before everything else.
5731         * slint.c (slang_reset_softkeys): Make display static const
5732         array.  Use sizeof (display) - 1 instead of strlen display.
5733         (color_terminals): Make static const array.
5734         (key_table): Make const.
5736         (dealloc_color_pairs) [HAVE_MAD]: New function.  Release
5737         memory allocated in try_alloc_color_pair.
5738         (slang_shutdown) [HAVE_MAD]: Call dealloc_color_pairs.
5739         (try_alloc_color_pair): Move struct c outside function.
5741 2001-10-29  Andrew V. Samoilov  <kai@cmail.ru>
5743         * charsets.c (load_codepages_list): Use glib memory allocation
5744         functions.
5745         (free_codepages_list) [HAVE_MAD]: New function to release
5746         memory allocated in load_codepages_list.
5747         * charsets.h: Declare free_codepages_list.
5749         * main.c [HAVE_CHARSET]: Include charsets.h.
5750         (main) [HAVE_MAD && HAVE_CHARSET]: Call free_codepages_list.
5751         (program_name): Commented out.
5753 2001-10-26  Andrew V. Samoilov  <kai@cmail.ru>
5755         * key.c (push_char): Fix buffer length calculation.
5756         By David Kaelbling <drk@sgi.com>.
5757         http://bugzilla.gnome.org/show_bug.cgi?id=60932
5759         (define_sequence): Likewise.
5760         (key_define_t): Add const declaration.
5762 2001-10-22  Pavel Roskin  <proski@gnu.org>
5764         * main.h: Declare view_one_file and edit_one_file.
5766 2001-10-22  Andrew V. Samoilov  <kai@cmail.ru>
5768         * dialog.h: Include global.h.
5769         (message): Specify __attribute__.
5771 2001-10-20  Pavel Roskin  <proski@gnu.org>
5773         * main.h (print_vfs_message): Specify __attribute__.
5775 2001-10-19  Pavel Roskin  <proski@gnu.org>
5777         * global.h: Define __attribute__ to an empty string for non-gcc
5778         compilers so that it's safe to use.
5780 2001-10-18  Pavel Roskin  <proski@gnu.org>
5782         * view.c (init_growing_view): Revert last change, it was wrong.
5783         (view_hook): Don't check that the file is regular - it's now
5784         done in do_view_init().  This fixes update problem in quick view
5785         when moving cursor from a regular file to a directory.
5787         * view.c (do_view_init): Only accept regular files.  Use stat(),
5788         not fstat() because open() would hang on pipes.  Avoid opening
5789         the file twice.
5790         (init_growing_view): Take file descriptor, not the filename.
5791         (load_view_file): Likewise.
5793 2001-10-01  Pavel Roskin  <proski@gnu.org>
5795         * boxes.c (tree): Rename to tree_box() to avoid confusion.
5796         Adjust all callers and headers.
5797         * main.c (tree_box): Rename to tree_box_cmd().
5799         * tree.c (set_navig_label): Get argument "tree".
5800         (set_navig_label): Likewise.  Adjust all callers.  Don't cast
5801         function tree() to (Widget *) - it's wrong and dangerous.
5803         * widget.h: Use type "buttonbarfn" more consistently.
5804         * widget.c: Likewise.
5806         * setup.c [!USE_VFS]: Warning fix.
5807         * hotlist.c [!USE_VFS]: Likewise.
5809         * tree.c (tree_navigation_flag): Should not be static.
5811         * screen.c (panel_format_modified): Use more portable cast.
5813         * fileopctx.h: Define new type mc_stat_fn.
5814         * filegui.c (file_mask_dialog): Cast mc_stat and mc_lstat to
5815         mc_stat_fn to prevent warnings without VFS support.
5816         * fileopctx.c (file_op_context_new): Likewise.
5818 2001-09-23  Andrew V. Samoilov  <kai@cmail.ru>
5820         * find.c: Include rx.h or regex.h
5821         (get_line_at): New function.  Returns malloc()ed null-terminated
5822         line from file file_fd.  Input is buffered in buf_size long
5823         buffer.
5824         (search_content): Don't use external egrep.
5825         Use get_line_at and regexp.
5827 2001-09-21  Pavel Roskin  <proski@gnu.org>
5829         * cmd.c: Change all "long" variables to "off_t" whenever they
5830         are used to store file sizes.
5831         * file.c: Likewise.
5832         * file.h: Likewise.
5833         * fileopctx.h: Likewise.
5834         * tree.c: Likewise.
5835         * filegui.c: Likewise.
5836         (show_bar): Take "double" arguments.  Normalize arguments of
5837         gauge_set_value() before converting them to "int".
5839 2001-09-17  Pavel Roskin  <proski@gnu.org>
5841         * mouse.h: Major cleanup and interface change.  init_mouse()
5842         should only be called once, disable_mouse() and enable_mouse()
5843         should be used later.  Distinguish between disabled and
5844         undetected mouse.  Remove debugging stuff.  Adjust all users.
5845         * mouse.c: Implementation of the above.
5846         * key.c: Don't use gpm_flag - check mouse_enabled instead.
5848 2001-09-15  Pavel Roskin  <proski@gnu.org>
5850         * view.c: Cleanup of preprocessor directives.
5851         * view.h: Likewise.
5852         * widget.c: Likewise.
5853         * widget.h: Likewise.
5855         * textconf.h: Get rid of all PORT_HAS_*.  Adjust all users.
5856         Continued eliminating GNOME code.
5858         * cmd.c: Clean up unused GNOME code and some ifdef's.
5859         * dlg.c: Likewise.
5860         * dlg.h: Likewise.
5861         * ext.c: Likewise.
5862         * setup.c: Likewise.
5864         * cmd.c (guess_message_value): Remove the argument.  Adjust all
5865         callers.
5867         * textconf.c (features): Remove "edition", minor fixes.
5868         (version): Don't report the current locale - it's meaningless,
5869         especially if ENABLE_NLS is not defined.
5871         * textconf.h: Remove status_using_ncurses - it's useless now.
5872         Adjust all users.  Call do_exit_ca_mode() and do_enter_ca_mode()
5873         even with ncurses.
5875         * main.c (init_xterm_support): Don't enable xterm_flag just
5876         because of "kmous" in terminfo.  Setting this flag means much
5877         more than just mouse support.  Recognize terminals beginning
5878         with "rxvt" and set xterm_flag for them.
5880         * cmd.c (view_other_cmd): Don't check use_mouse_p before calling
5881         init_mouse() and shut_mouse(), since those functions decide
5882         themselves what to do.
5883         * layout.c (done_screen): Likewise.
5884         * main.c (setup_mc): Likewise.
5885         * text.c (edition_post_exec): Likewise.
5886         (edition_pre_exec): Likewise.
5888         * user.h: Fix location of the home editor menu.
5889         Reported by David Martin <dmartina@excite.es>
5891         * mouse.h: Export xmouse_seq.
5892         * mouse.c (init_mouse): Use xmouse_seq instead of hardcoded
5893         xterm mouse sequence.
5894         * main.c (setup_post): Join with setup_mc().
5895         (init_xterm_support): New function.  Check mouse capability.
5896         (OS_Setup): Remove parts that are now in init_xterm_support().
5898 2001-09-14  Pavel Roskin  <proski@gnu.org>
5900         * key.c (get_event): Recognize KEY_MOUSE, not just MCKEY_MOUSE.
5901         * mouse.c: Don't use or emulate keyok(), since MC understands
5902         KEY_MOUSE now.
5904 2001-09-11  Pavel Roskin  <proski@gnu.org>
5906         * cmd.c (check_for_default): Make accessible from other files.
5907         * cmd.h: Declare check_for_default().
5909 2001-09-10  Pavel Roskin  <proski@gnu.org>
5911         * layout.c: Use HAVE_TERMIOS_H and HAVE_SYS_IOCTL_H more
5912         consistently.
5913         * mouse.c: Likewise.
5914         * subshell.c: Likewise.
5915         * win.c: Likewise.
5916         * util.c: Remove unused includes.
5918         * Makefile.am (mc_LDADD): Don't use LSLANG and LGPM, since they
5919         are now included into MCLIBS.
5921         * Makefile.am (mc_LDADD): Use INTLLIBS provided by gettext
5922         instead of LINTL.
5924 2001-09-09  Pavel Roskin  <proski@gnu.org>
5926         * hotlist.c (load_hotlist): If cannot open hotlist, don't assume
5927         that it needs to be migrated and don't warn the user.
5929 2001-09-08  Pavel Roskin  <proski@gnu.org>
5931         * Makefile.am: Fix definitions of CONFDIR and LOCALEDIR.
5933         * subshell.c: Move definitions of WEXITSTATUS and WIFEXITED
5934         below all includes so that they can be defined elsewhere.
5936 2001-09-07  Pavel Roskin  <proski@gnu.org>
5938         * myslang.h: Specify arguments to function-like macros or remove
5939         them if they are unused.
5941         * main.c: Remove old debugging code.  Remove external function
5942         declarations.
5943         (menu_bar_event): Remove, it's unused.
5944         * main.h: Declare get_mc_lib_dir() and force_ugly_line_drawing.
5945         * layout.c: Remove all external declarations.
5947         * main.c (main): Call save_stop_handler() - it was ifdef'd out
5948         by error.
5950         * main.c: Remove all GNOME code.
5952         * cmd.c: No need to define "MIDNIGHT" before including vfs.h.
5954         * user.h: Remove all dirty tricks with "MIDNIGHT" - they are not
5955         needed anymore.
5957         * global.h: Include io.h, pwd.h, grp.h and utime.h.  Adjust all
5958         sources not to include them and to include global.h at the right
5959         place.
5961         * global.h: Include all time-related system includes, since
5962         it's non-trivial (order, conflicts) and is better handled in one
5963         place.
5965 2001-09-06  Pavel Roskin  <proski@gnu.org>
5967         * fsusage.c: Include sys/param.h before sys/mount.h - it's
5968         required on some systems.
5969         * mountlist.c: Likewise.
5970         From Timur Bakeyev <mc@bat.ru>
5972 2001-09-04  Pavel Roskin  <proski@gnu.org>
5974         * Makefile.am: Don't use substituted values directly.  Define
5975         CHARSET_SRC unconditionally.  Join SRCS and HDRS.
5977 2001-09-03  Pavel Roskin  <proski@gnu.org>
5979         * widget.c (label_new): Don't calculate dimensions of multiline
5980         labels, since they cannot be changed and msglen() is already
5981         used when the dialog is created.
5983         * Makefile.in: Converted to ...
5984         * Makefile.am: ... this.
5986         * slint.c: Make more data and function static.
5987         * key.h: Remove declarations that are now static.
5988         * myslang.h: Likewise.
5990         * x.h: Remove.  Adjust all users.  Make sure that global.h is
5991         included instead.  Don't include sys/param.h unconditionally -
5992         rely on global.h taking care of it.
5993         * Makefile.in: Remove x.h.
5995         * color.c: Remove unused code.
5996         * color.h: Likewise.
5998 2001-09-02  Pavel Roskin  <proski@gnu.org>
6000         * key.c: Remove support for BUGGY_CURSES.
6002         * tty.h: Remove support for old curses and GNOME.
6003         * global.h: Likewise.
6005         * widget.c (label_new): Set initial width of the widget based on
6006         the initial text.
6008         * view.c (hex_search): Don't use sscanf() to search for quoted
6009         strings - use strchr instead.
6011 2001-08-31  23:14:21  Timur Bakeyev  <mc@bat.ru>
6013         * utilunix.c: init_groups(), destroy_groups(), get_user_permissions()
6014         rewritten to use GTree structure and functions. Add new static helper
6015         functions mc_gid_compare() and mc_gid_destroy().
6017         * util.h: Removed deprecated structure user_in_groups.
6019         * screen.c: Fixed typo in format report error string.
6021 2001-08-31  23:14:21  Timur Bakeyev  <mc@bat.ru>
6023         * utilunix.c: get_user_rights() renamed into get_user_permissions().
6024         delete_groups() renamed into destroy_groups().
6025         * util.h: Likewise.
6026         * screen.c: Likewise.
6027         * main.c: Likewise.
6029 2001-08-27  Pavel Roskin  <proski@gnu.org>
6031         * cmd.c (dirsizes_cmd): Don't cast st_size to long - use off_t
6032         instead, since off_t can be longer.
6033         Reported by Radovan Bukoci <rado@autoparts.sk>
6035 2001-08-30  David Martin  <dmartina@excite.es>
6037         * info.c (info_show_info): Use size_trunc_len() instead of
6038         print_bytesize().  Don't assume English word ordering.  Add
6039         singular message when single block.
6040         * win.c (print_bytesize): Remove.
6041         (sprint_bytesize): Remove.
6042         * win.h: Remove print_bytesize() and sprint_bytesize().
6044         * util.c (size_trunc_len): Add units parameter.  Change all
6045         callers.
6047         * util.c (size_trunc_len): Print size values with some (little)
6048         sense for tiny and even wee lengths (i.e. squeezed X terminals).
6050         * info.c (info_show_info): Move comment line just before
6051         translatable message so it's shown in .po files to alert
6052         translators.  The message (translated) is used to set the start
6053         column (so the available width) for some "truncatable" strings.
6055 2001-08-27  Pavel Roskin  <proski@gnu.org>
6057         * key.c (learn_key): Turn off keypad to disable interpreting keys
6058         by ncurses.
6059         Reported by Frederic L. W. Meunier <fredlwm@pervalidus.net>
6061 2001-08-26  Pavel Roskin  <proski@gnu.org>
6063         * xcurses.c: Remove.
6064         * Makefile.in: Remove all references to xcurses.c.
6066 2001-08-24  Pavel Roskin  <proski@gnu.org>
6068         * user.h: Include "../edit/edit-widget.h", not
6069         "../gtkedit/edit-widget.h".
6071         * subshell.c: Use standard Autoconf symbols to determine whether
6072         to include <stropts.h> and <grp.h>.
6074 2001-08-23  Pavel Roskin  <proski@gnu.org>
6076         * subshell.c (feed_subshell): Don't wait forever after the first
6077         select() call if fail_on_error is true.  This alleviates hang
6078         with zsh on QNX Neutrino.
6080 2001-08-21  Pavel Roskin  <proski@gnu.org>
6082         * view.h: Declare view_dlg.
6083         * main.h: Declare edit_dlg.
6084         * layout.c (change_screen_size): Remove external declarations
6085         inside the function.
6087 2001-08-20  Pavel Roskin  <proski@gnu.org>
6089         * view.c (load_view_file) [!HAVE_MMAP]: Warning fix.
6091 2001-08-19  Pavel Roskin  <proski@gnu.org>
6093         * main.c (mc_maybe_editor_or_viewer) [!USE_INTERNAL_EDIT]:
6094         Re-enable to make "mc -v" possible.
6095         (do_nc): Call mc_maybe_editor_or_viewer() even if the editor
6096         is not compiled in.
6097         (argument_table) [!USE_INTERNAL_EDIT]: Disable "-e".
6099 2001-08-19  Andrew V. Samoilov  <sav@bcs.zp.ua>
6101         * view.c (view_handle_key) [HAVE_CHARSET]: Remove unneeded
6102         statements.
6104 2001-08-19  Pavel Roskin  <proski@gnu.org>
6106         * screen.c [HAVE_X]: Disable unused code.
6108         * fs.h: Correctly include <sys/param.h>.
6109         * x.h: Include "global.h".  Move all contents ...
6110         * global.h: Here.
6112         * regex.c (regex_compile): Warning fix for ambiguous else.
6114 2001-08-18  Pavel Roskin  <proski@gnu.org>
6116         * key.c (xmouse_get_event): Filter out GPM_UP events that don't
6117         follow a GPM_DOWN event.  Filter out events with unknown button
6118         numbers, such as mouse wheel events.
6119         (get_event): Return EV_NONE if xmouse_get_event() decided to
6120         ignore the event.
6122         * main.c (init_sigchld): Disable subshell if SIGCHLD handler
6123         cannot be installed.
6125         * x.h: Instead of undefining MIX and MAX after <gnome.h> make
6126         sure that <sys/param.h> is included before <gnome.h>.
6128 2001-08-17  Pavel Roskin  <proski@gnu.org>
6130         * key.c (mc_bindings) [linux]: Remove old hack - recognizing
6131         "\e[2~" on all terminals.
6133 2001-08-16  Pavel Roskin  <proski@gnu.org>
6135         * charsets.c (load_codepages_list): Print a warning if
6136         mc.charset cannot be opened.
6137         * setup.c (load_setup) [HAVE_CHARSET]: Remove all popup messages
6138         because it's to early to use them - ncurses would crash.
6140 2001-08-15  Pavel Roskin  <proski@gnu.org>
6142         * util.c (strip_ctrl_codes): Rewrite using pointers.  Fix
6143         stripping sequences beginning with "\e[".  Check is_printable().
6145         * man2hlp.c: Remove HTML support.  Remove old link support.
6146         Warning fixes.
6147         (print_string): Handle backslashes in verbatim mode too.
6149         * main.c (setup_pre) [HAVE_CHARSET]: Fix compilation with
6150         ncurses.
6152         * textconf.c (features): Fix interpretation of
6153         HAVE_SYSTEM_SLANG.
6154         From David Martin <dmartina@excite.es>
6156 2001-08-14  Pavel Roskin  <proski@gnu.org>
6158         * key.h (define_sequence): Change declaration to return int.
6159         * key.c (define_sequence): Return 1 on success, 0 on error.
6160         * learn.c (learn_button): Don't accept sequence if
6161         define_sequence() has failed.
6163 2001-08-12  Pavel Roskin  <proski@gnu.org>
6165         * learn.c (learn_save): Fix memory leak.
6167         * dir.c (string_sortcomp) [HAVE_STRCOLL]: Make static.
6169         * cmd.c (guess_message_value): Typo - replace "LC_MESSAGE" with
6170         "LC_MESSAGES".
6172         * dir.c (string_sortcomp) [HAVE_STRCOLL]: Always use strcmp()
6173         for case sensitive sort.  For case insensitive sort use
6174         strcoll() if it's case insensitive for ASCII and g_strcasecmp()
6175         otherwise.
6177 2001-08-11  Pavel Roskin  <proski@gnu.org>
6179         * achown.c (chown_advanced_cmd): Remove dead code.
6180         * chown.c (chown_cmd): Likewise.
6181         * chmod.c (chmod_cmd): Likewise.
6183         * charsets.c (load_codepages_list): Use concat_dir_and_file().
6185         * mad.h: Disable glib support - it doesn't work properly.
6187 2001-08-07  Pavel Roskin  <proski@gnu.org>
6189         * view.c: Warning fixes. Include "cmd.h". Rename help_cmd()
6190         to view_help_cmd().
6191         (view_handle_key) [HAVE_X]: Disable '!' and Ctrl-O.
6193         * main.c (do_execute): Don't show prompt if the command is empty
6194         and the subshell is not running.
6195         * view.c (view_handle_key): Add support for Ctrl-O in the viewer.
6196         Suggested by Walery Studennikov <despair@sama.ru>
6198 2001-08-06  Pavel Roskin  <proski@gnu.org>
6200         * boxes.c (display_init): Associate correct help topic.
6201         (sort_box): Likewise.
6202         (set_panel_filter): Likewise.
6203         * option.c (init_configure): Likewise.
6204         * menu.c (menubar_handle_key): Show help dependent on the active
6205         menu.
6207 2001-08-06  Andrew V. Samoilov  <kai@cmail.ru>
6209         * mad.c (mad_strdup): Return NULL if NULL is passed.
6211         * view.c (block_search): Return the position where the block was
6212         found as declared in comment.
6213         (hex_search): Don't increase pos, block_search returns now right
6214         position.
6216 2001-08-03  Andrew V. Samoilov  <kai@cmail.ru>
6218         * mad.[ch] (mad_check): Declare file parameter const.
6219         (mad_alloc): Likewise. Don't truncate it.
6220         (mad_abort): Declare message and file parameters const.
6222 2001-08-03  Pavel Roskin  <proski@gnu.org>
6224         * file.c: Warning fix.  Include global.h before other local
6225         includes.
6226         * filegui.c: Likewise.
6227         (fmd_init_i18n) [!ENABLE_NLS]: Completely disable.
6228         * i18n.h [!ENABLE_NLS]: Warning fix.
6229         * learn.c (init_learn): Move do_refresh() call immediately
6230         before create_dlg().  Warning fix.
6232 2001-07-31  Pavel Roskin  <proski@gnu.org>
6234         * Makefile.in: "install" now depends on "all".
6235         Reported by Walery Studennikov <despair@sama.ru>
6237 2001-07-31  Andrew V. Samoilov  <kai@cmail.ru>
6239         * util.c [!HAVE_X] (is_printable): Don't duplicate declarations from
6240         main.h.
6241         (load_file): Use fopen and fstat to prevent race conditions.
6242         (size_trunc): Make suffix const array.
6243         (strip_password): Make prefixes const array.
6244         (file_date): Make fmt auto variable.
6245         * color.c (color_table): Make constant array.
6246         * widget.[ch] (label_new): Make text parameter const.
6247         * menu.c (create_menu): Don't localize name, it is always done.
6248         * find.c (find_parameters): Fix hotkeys duplication.
6249         * complete.c (command_completion_function): Don't stop $PATH
6250         processing on empty entry. Interpret it as current directory.
6252 2001-07-31  Pavel Roskin  <proski@gnu.org>
6254         * charsets.c: Warning fixes.
6255         * charsets.h: Likewise.
6256         * selcodepage.c: Likewise.
6257         * selcodepage.h: Likewise.
6259         * Makefile.in: Move most logic around gindex.pl into gindex.pl.
6260         Don't use maintainer-only rules since mc.hlp won't be removed
6261         now if perl is missing or gindex.pl fails.
6262         * gindex.pl: Run man2hlp internally.  Use files given as
6263         arguments instead of stdin and stdout.
6265 2001-07-30  Pavel Roskin  <proski@gnu.org>
6267         * mad.c: Don't use g_calloc - it's missing in glib 1.2.x.
6268         * mad.h: Likewise.  Use mad_alloc0() to emulate calloc().
6270         * view.h: Simplify, respect WANT_WIDGETS setting.
6272 2001-07-28  Pavel Roskin  <proski@gnu.org>
6274         * view.c (view_ok_to_quit): Make global - it's needed for GMC.
6275         * view.h: Declare view_ok_to_quit().
6277 2001-07-27  Pavel Roskin  <proski@gnu.org>
6279         * util.c [!USE_VFS] (get_current_wd): Resurrect, this time using
6280         g_get_current_dir().
6282         * background.h: Remove WITH_BACKGROUND, it's now in extraconf.h.
6283         * background.c: Use WITH_BACKGROUND instead of USE_NETCODE.
6285         * util.c (mc_mkstemps): Don't prepend $TMPDIR if prefix contains
6286         path separator.
6288 2001-07-26  Pavel Roskin  <proski@gnu.org>
6290         * cmd.c (do_link): Append filename to the default symlink
6291         target.  Don't add path separator if there is no listing on
6292         the other panel.  Avoid using fixed size buffers.
6293         From Max Schedriviy <max@tavrida.net>
6295         * main.c [HAVE_X]: Disable eight_bit_clean and full_eight_bits.
6296         * util.c (is_printable) [HAVE_X]: Simplify.
6298 2001-07-25  Pavel Roskin  <proski@gnu.org>
6300         * cmd.c (do_link): Simplify.  Don't silently exit if the source
6301         file is not regular - let user see the error if any.
6303 2001-07-24  Pavel Roskin  <proski@gnu.org>
6305         * achown.c (ch_perm): Make constant array.
6306         (chown_info_update): Use set_perm_by_flags(), not set_perm().
6307         (set_perm): Remove.
6309         * achown.c: Make all global variables static.  Fix help.
6310         * complete.c: Likewise.
6311         * chmod.c: Make all global variables static.
6312         * chown.c: Likewise.
6313         * chmod.h: Remove all variables.
6315 2001-07-23  Pavel Roskin  <proski@gnu.org>
6317         * user.c: Eliminate static variable s_editwidget.  Pass
6318         edit_widget as argument.  All callers changed.
6319         (expand_format): Fix expansion of %n and %b for the editor.
6320         * util.c: Remove dead code.
6322         * setup.c (load_keys_from_section): Give terminal-specific
6323         settings preference over settings from [terminal:general].
6325 2001-07-22  Pavel Roskin  <proski@gnu.org>
6327         * setup.c (load_keys_from_section): Give ~/.mc/ini preference
6328         over mc.lib.
6330 2001-07-20  Pavel Roskin  <proski@gnu.org>
6332         * dlg.c: Remove dependency on definitions in gconf.h.
6334         * widget.c (input_callback) [HAVE_X]: Disable Ctrl-q - it
6335         doesn't work.
6337         * file.c (panel_get_file): Use g_assert_not_reached().
6338         * key.c (xgetch_second): Make static.
6340 2001-07-19  Pavel Roskin  <proski@gnu.org>
6342         * user.c (check_format_view): Match "unform" instead of
6343         "unformated" because some users may spell this word correctly.
6345 2001-07-17  Pavel Roskin  <proski@gnu.org>
6347         * util.c (get_current_wd): Remove.  It's obsoleted by
6348         g_get_current_dir() from glib.
6350         * ext.c (exec_extension): Add the `rm' command to the end of
6351         temporary scripts so that they erase themselves.
6353         * util.c (mc_mkstemps): Always use "unsigned long" for entropy,
6354         since gcc-2.7.2.1 on SunOS doesn't understand __extension__ and
6355         checking for "long long" is not worth the trouble.
6356         Reported by David Martin <dmartina@excite.es>
6358 2001-07-16  Pavel Roskin  <proski@gnu.org>
6360         * utilunix.c (mc_doublepopen): Use _exit() instead of exit()
6361         and don't close any unrelated file descriptors.  Explicitly
6362         close inhandle.
6364 2001-07-15  Pavel Roskin  <proski@gnu.org>
6366         * mad.h: Include stdio.h to prevent redefining mad_tempnam().
6367         * main.c [HAVE_X && HAVE_MAD]: Don't call done_key().
6369         * dlg.h: Remove declarations of non-existent functions.
6370         [HAVE_X]: Disable color constants - they shouldn't be used.
6372         * boxes.c [WITH_SMBFS] (vfs_smb_get_authinfo): Copied from
6373         vfs/smbfs.c, function authinfo_get_authinfo_from_user().
6375         * cmd.c [HAVE_X]: Disable source routing dialog and panel
6376         comparison.
6377         * main.c (ctl_x_map): Simplify preprocessor directives.
6379 2001-07-14  Pavel Roskin  <proski@gnu.org>
6381         * screen.c (panel_keymap) [HAVE_X]: Disable Alt-H - it's not
6382         implemented properly for GNOME.
6383         * main.c (directory_history_list) [HAVE_X]: Disable.
6385         * panelize.c [HAVE_X]: Disable unused code.
6387         * main.c [HAVE_X]: Disable Ctrl-X sequences.
6389         * find.c: Remove code unused in the text edition.
6391         * main.c [HAVE_X]: Eliminate setup_post() and partly done_mc().
6393         * utilunix.c (uid_cache): Make static.
6394         (gid_cache): Likewise.
6395         (init_uid_gid_cache): Remove.
6396         * main.c (setup_post): Don't call init_uid_gid_cache().
6398         * main.c (default_map) [HAVE_X]: Disable Alt-T.
6399         * cmd.c [HAVE_X]: Eliminate set_basic_panel_listing_to() and
6400         toggle_listing_cmd().
6402 2001-07-13  Pavel Roskin  <proski@gnu.org>
6404         * utilunix.c (canonicalize_pathname): Don't handle PATH_SEP
6405         after backslash in a special way.
6407 2001-07-12  Pavel Roskin  <proski@gnu.org>
6409         * subshell.c (init_subshell): Run "set echo_style=both" at
6410         startup to ensure that echo in tcsh understands octal numbers.
6411         Reported by Francis Kwok <francis.kwok@alcatel.com>
6413         * Makefile.in (OURLIBS): Merge with ...
6414         (LIBS): ... this. Add @LIBICONV@.
6415         Reported by Libor Motyèka <l_motycka@ortex.cz>
6417         * subshell.c (subshell_name_quote): New function. Quote all
6418         characters as octals, use command substitution.
6419         (do_subshell_chdir): Use subshell_name_quote(). Don't change
6420         terminal settings when the quoted path is sent to the shell -
6421         it's now safe.
6423 2001-07-12  Andrew V. Samoilov  <kai@cmail.ru>
6425         * main.c: Eliminate iconify_on_exec.
6426         [!HAVE_GNOME]: Eliminate nowindows, nodesktop, twopanel,
6427         display_linksdir and cmdline_geometry.
6428         (sigchld_handler_no_subshell): Comment fixes.
6429         (midnight_callback): Likewise.
6430         (print_mc_usage): Use fputs, not fprintf.
6431         (print_color_usage): Likewise.
6432         (argument_table): Assign 'r' with force_subshell_execution and 'U'
6433         with use_subshell.
6434         (process_args): Don't deal with 'r', 'U' and 'X' options.
6435         (setup_mc) [HAVE_GNOME]: Eliminate more code.
6437         setup.c (options):  Eliminate iconify_on_exec.
6439 2001-07-10  Andrew V. Samoilov  <kai@cmail.ru>
6441         * view.c (hex_search): Release buffer after use.
6443 2001-07-09  Pavel Roskin  <proski@gnu.org>
6445         * view.c (hex_search): Reimplement parser using sscanf. Add
6446         support for decimal and octal numbers. Add error reporting.
6447         Allocate buffer dynamically.
6449         * hotlist.c: Add comments to avoid confusion between
6450         done_hotlist() and hotlist_done().
6451         (hotlist_done): Set l_hotlist to NULL.
6452         (add2hotlist): Load hotlist if it's neither loaded nor loading.
6453         This fixes Ctrl-x h. Fix compiler warning.
6455         * hotlist.c: Make more variables and functions static.
6457 2001-07-08  Pavel Roskin  <proski@gnu.org>
6459         * ext.c (exec_extension) [HAVE_X]: Free file_name. Add comment
6460         explaining why it cannot be unlinked there.
6462 2001-07-06  Pavel Roskin  <proski@gnu.org>
6464         * ext.c (exec_extension): Unlink temporary file earlier if it's
6465         not going to be used.
6466         [OLD_CODE]: Remove.
6468         * Makefile.in: Use additional quotes to preserve @prefix@ when
6469         Makefile is generated.
6471         * Makefile.in: Don't use SEDCMD2, use sed.
6473         * cons.saver.c: New variable console_minor. Eliminate variables
6474         len and vcs_name.
6475         (check_file): Set console_minor to the minor device number of
6476         the console. Disallow /dev/tty0.
6477         (detect_console): Don't parse tty_name, instead make sure that
6478         it corresponds to console_minor. Check console first. Fallback
6479         to /dev/vcc/a* if /dev/vcsa* cannot be opened.
6480         (save_console): Use console_minor.
6481         (restore_console): Likewise.
6483         * cons.saver.c (check_file): Eliminate using text messages to
6484         indicate errors. Improve debug messages.
6485         (detect_console): Likewise.
6486         (main): Adjust call to detect_console.
6488         * main.c (sigchld_handler_no_subshell): Don't restart cons.saver
6489         if it died.
6490         * subshell.c (sigchld_handler): Likewise.
6492 2001-07-05  Pavel Roskin  <proski@gnu.org>
6494         * main.c (midnight_callback): Don't handle any events except
6495         Ctrl-x combinations on DLG_KEY event if the menu is active.
6497         * main.c (load_prompt): Don't change prompt if midnight_dlg is
6498         not the current dialog.
6500 2001-06-28  Pavel Roskin  <proski@gnu.org>
6502         * util.c (size_trunc_len): New function - print file size to
6503         a buffer of limited length.
6504         * util.h: Declare size_trunc_len().
6505         * screen.c (string_file_size): Use size_trunc_len().
6507 2001-06-26  Pavel Roskin  <proski@gnu.org>
6509         * xslint.c: Remove.
6510         * Makefile.in (SRCS): Remove xslint.c.
6512 2001-06-25  Pavel Roskin  <proski@gnu.org>
6514         * key.c (ctrl_pressed): Don't limit functionality to Linux.
6515         * screen.c (prev_page_key): Don't require console_flag to be set
6516         to use ctrl_pressed(), only require that HAVE_X is undefined.
6517         (next_page_key): Likewise.
6518         * widget.c (key_left): Don't limit functionality to Linux.
6519         (key_right): Likewise.
6521         * main.h: Use "ifdef HAVE_GNOME", not "if HAVE_GNOME". Fix the
6522         order of conditionals and put comments on endifs.
6524 2001-06-25  Andrew V. Samoilov  <sav@bcs.zp.ua>
6526         * view.c [HAVE_CHARSET]: Include selcodepage.h.
6527         (view_new): Use g_new0.
6528         (ruler): Make static.
6530         * complete.c (filename_completion_function): Clean it up.
6531         (command_completion_function): Make words, bash_reserved and
6532         bash_builtins const, use concat_dir_and_file.
6533         (fetch_hosts): Fix typo, style fixes.
6535 2001-06-23  Pavel Roskin  <proski@gnu.org>
6537         * mem.h: Undefine bcopy(), bcmp() and bzero() before redefining
6538         them.
6540 2001-06-22  Pavel Roskin  <proski@gnu.org>
6542         * ext.c (exec_extension) [HAVE_X]: Disable console handling.
6544         * cons.handler.c: Reorganize includes. Fix warnings on BSD.
6545         * rxvt.c (rxvt_extensions): Make static.
6546         * main.c (sigchld_handler_no_subshell) [!__linux__]: Don't try
6547         to restart cons.saver.
6548         * subshell.c (sigchld_handler) [!__linux__]: Likewise.
6550         * fsusage.c: Use HAVE_INFOMOUNT.
6551         * mountlist.c: Likewise. Fix condition when mount_list is
6552         declared.
6553         (fstype_to_string): Rename mount_list to mlist to avoid
6554         confusion with the file-scoped static variable.
6556         * cmd.c [HAVE_X]: Disable more code. Reorder includes.
6558 2001-06-20  Pavel Roskin  <proski@gnu.org>
6560         * main.c: Remove MenuBarEmpty. From Andrew V. Samoilov.
6562         * wtools.c [HAVE_X]: Disable quick dialog routines.
6564         * setup.c (save_setup) [HAVE_X]: Don't save the [Dirs] section.
6565         (load_setup) [HAVE_X]: Don't load the [Dirs] section.
6566         * main.c [HAVE_X]: Disable other_dir and boot_current_is_left.
6567         Adjust all users.
6569 2001-06-19  Pavel Roskin  <proski@gnu.org>
6571         * background.h: Correct condition when WITH_BACKGROUND is
6572         defined.
6573         * fsusage.c: Rearrange the includes. Define HAVE_QNX_MOUNT
6574         for old QNX and use it instead of __QNX__.
6575         * mountlist.c: Likewise.
6576         * keyxdef.c: Define HAVE_QNX_KEYS for old QNX and use it instead
6577         of __QNX__.
6579 2001-06-18  Pavel Roskin  <proski@gnu.org>
6581         * main.c [HAVE_X]: Disable change_panel(),
6582         copy_current_readlink() and copy_other_readlink().
6583         Don't do anything with cmdline and command_prompt.
6584         * screen.c [HAVE_X]: Disable panel_event(), chdir_other_panel()
6585         and chdir_to_readlink(). Adjust all callers.
6586         (panel_key) [HAVE_X]: Don't use command_prompt - always
6587         start search on alphanumeric keys.
6588         * setup.c [HAVE_X]: Disable save_layout(), load_layout(), struct
6589         layout. Adjust all dependencies.
6591         * utilunix.c (init_my_statfs): Move this ...
6592         * util.c (my_statfs): ... and this ...
6593         * mountlist.c: ... here.
6594         * util.h: Move mountlist-related declarations ...
6595         * mountlist.h: ... here.
6596         * info.c: Include mountlist.h.
6598 2001-06-17  David Martin  <dmartina@excite.es>
6600         * hotlist.c (init_movelist): Don't assume English word ordering
6601         in the title.
6603 2001-06-16  Andrew V. Samoilov  <sav@bcs.zp.ua>
6605         * wtools.c (message): Possible buffer overflow fixed.
6606         (query_callback) [HAVE_X]: Disable more code.
6607         (listbox_refresh) [!HAVE_X]: Became a macro.
6608         * hotlist.c (init_i18n_stuff): Mark cancel_but for translation.
6610         * tree.c (tree_copy, tree_move): Possible memory leaking fixed.
6611         (tree_keymap): Constified.
6613 2001-06-15  Pavel Roskin  <proski@gnu.org>
6615         * panelize.c: Define DIR_H_INCLUDE_HANDLE_DIRENT earlier, since
6616         the GNOME edition includes dir.h from other headers.
6618         * background.c: Include "x.h".
6619         * panelize.c: Likewise.
6620         * treestore.c: Likewise.
6621         * user.c: Likewise.
6622         * util.c: Likewise.
6623         * command.c: Reorder includes. Include "x.h".
6624         * complete.c: Likewise.
6625         * find.c: Likewise.
6626         * user.h: Declare user_menu_cmd() unconditionally.
6627         * i18n.h [GAVE_GNOME]: Remove code that is now in x.h.
6629         * tty.h [HAVE_X]: Define beep() to gdk_beep().
6631 2001-06-14  Pavel Roskin  <proski@gnu.org>
6633         * xtty.h: Remove, move contents ...
6634         * tty.h: ... here.
6635         [HAVE_X]: Define attrset(), mc_refresh(), enable_interrupt_key()
6636         and disable_interrupt_key(). Don't declare mc_refresh().
6637         * view.c: Use braces around widget_move() since it's empty in
6638         the GNOME edition.
6639         * xslint.c: Eliminate attrset() and mc_refresh().
6640         * Makefile.in: Remove xtty.h.
6642         * cons.handler.c (handle_console): Remove useless default.
6643         * ext.c (regex_command): Initialize include_target_len.
6644         * find.c [HAVE_GNOME]: Eliminate untyped declarations.
6645         * fsusage.c: Remove untyped declaration of statfs().
6646         [_AIX && _I386]: Rename statfs to aix_statfs and move
6647         it before get_fs_usage(). Define statfs to aix_statfs.
6649         * achown.c: Eliminate untyped declarations.
6650         * boxes.c: Likewise.
6651         * cons.saver.c: Likewise.
6652         * hotlist.c: Likewise.
6653         * panelize.c: Likewise.
6654         * rxvt.c: Likewise.
6655         * main.c: Likewise. Make undeclared functions static.
6656         * treestore.c: Make undeclared functions static.
6657         * view.c: Likewise.
6658         * widget.c: Likewise.
6660         * main.h: Fix prototype of exec_shell.
6661         * tree.c: Make all functions static when possible.
6662         * tree.h: Changes for the above.
6664         * text.c [HAVE_X]: Remove useless #error.
6665         * cons.saver.c: Indent #error to hide it from old compilers.
6667 2001-06-13  Pavel Roskin  <proski@gnu.org>
6669         * screen.c (display_mini_info): Avoid nested i18n calls.
6670         (parse_panel_size): Warning fix.
6671         * user.c [HAVE_X]: Warning fix.
6672         (check_format_var): Avoid nested i18n calls. Improve messages.
6674         * screen.c (user_file_menu_cmd) [HAVE_X]: Disable.
6675         (panel_callback) [HAVE_X]: Don't define labels, they are unused.
6676         * user.c [HAVE_X]: Disable all user menu code.
6678         * color.c (color_table): Make static. Only use in text edition.
6679         * xtty.h: Remove unused definitions.
6681         * slint.c (slang_init): Check screen dimensions and exit if they
6682         are abnormal. This may happen due to a S-Lang bug when the TERM
6683         is set to a value not listed in termcap or terminfo.
6685 2001-06-12  Pavel Roskin  <proski@gnu.org>
6687         * boxes.c [HAVE_CHARSET]: Localize more strings. Lay out the
6688         encoding dialog using the translated title length. Remove
6689         useless preprocessor directives.
6690         From David Martin <dmartina@excite.es>
6692 2001-06-11  Andrew V. Samoilov  <sav@bcs.zp.ua>
6694         * dlg.[ch] (x_set_dialog_title): title constified.
6695         (create_dlg): Use g_new0 instead of g_new.
6697         * selcodepage.c (do_select_codepage): Fix compilation.
6699 2001-06-09  Pavel Roskin  <proski@gnu.org>
6701         * util.c (load_mc_home_file): New function. Load file from
6702         mc_home, but try localized version of that file first.
6703         * util.h: Declare load_mc_home_file().
6704         * help.c (interactive_display): Use load_mc_home_file(). If the
6705         first argument is NULL assume mc.hlp.
6706         * dlg.c (dialog_handle_key): Use interactive_display() without
6707         specifying the help file.
6708         * tree.c (tree_copy): Likewise.
6709         * cmd.c (help_cmd): Likewise.
6710         (get_random_hint): Use load_mc_home_file().
6711         From Andrew V. Samoilov.
6713 2001-06-07  Andrew V. Samoilov  <sav@bcs.zp.ua>
6715         * charsets.h: Define CHARSETS_INDEX without leading LIBDIR.
6717         * charsets.c (translate_character): Warning fix.
6718         (init_translation_table): Don't deal with printable.
6719         This one is initialized by init_printable_table ().
6720         (load_codepages_list): Use CHARSETS_INDEX.
6722         * selcodepage.c (do_select_codepage): Messages marked for i18n.
6723         * setup.c (load_setup): Eliminate errbuf. Fix error message.
6725 2001-06-07  Pavel Roskin  <proski@gnu.org>
6727         * setup.c (load_setup): Call init_printable_table() and
6728         init_translation_table() regardless of other failures.
6730         * charsets.c (get_codepage_index): Warning fix.
6731         (init_printable_table): New function.
6732         * charsets.h: Declare init_printable_table().
6733         * setup.c (load_setup): Uncomment init_printable_table().
6735         * cons.saver.c: Make all functions except main() static.
6736         * mfmt.c (omain): Remove, it's unused.
6738 2001-06-06  Pavel Roskin  <proski@gnu.org>
6740         * main.c (done_mc) [HAVE_X]: Don't use xterm_flag.
6741         (midnight_callback) [HAVE_X]: Don't handle any keys except
6742         Ctrl-x sequences.
6743         Remove useless preprocessor conditionals.
6744         * win.c [HAVE_X]: Disable unused functions.
6746         * file.c: Add comments after every endif.
6747         [HAVE_GNOME] [!WITH_BACKGROUND]: Fix compilation.
6749 2001-06-06  Andrew V. Samoilov  <sav@bcs.zp.ua>
6751         * main.c [HAVE_CHARSET]: Remove source_codepage and display_codepage.
6752         They are declared in selcodepage.c.
6753         * setup.c [USE_VFS]: Remove declarations for variables which are
6754         declared in vfs/ftpfs.c.
6755         (load_setup) [HAVE_CHARSET]: init_printable_table commented
6756         out to enable compilation. Error strings tagged for translation.
6757         (init_setup): Optimized.
6758         * boxes.c (sel_charset_button): Eliminate C++ comment.
6759         (new_display_codepage): Made static.
6760         (display_bits_box): Use "%s" for plain string in message.
6762 2001-06-05  Pavel Roskin  <proski@gnu.org>
6764         * boxes.c [HAVE_CHARSET]: New charset selection dialog.
6765         * main.c [HAVE_CHARSET]: Don't use eight_bit_clean and
6766         full_eight_bits. Use source_codepage and display_codepage to
6767         deduce the terminal 8-bitness.
6768         * main.h [HAVE_CHARSET]: Change to match main.c.
6769         * setup.c [HAVE_CHARSET]: Implement saving and loading charset
6770         settings.
6771         * util.c (is_printable) [HAVE_CHARSET]: Use charset settings.
6772         * view.c [HAVE_CHARSET]: Implement charset support.
6773         From Walery Studennikov <hqsoftware@mail.ru>.
6775         * selcodepage.c (do_select_codepage): New function.
6776         * selcodepage.h: Declare it.
6777         From Walery Studennikov <hqsoftware@mail.ru>.
6779         * mfmt.c (omain): Warning fix.
6781         * key.c [HAVE_TEXTMODE_X11_SUPPORT]: Rename `display' to
6782         `x11_display' and `w' to `x11_window'. Make them static.
6783         (init_textmode_x11_support): Include into init_key().
6784         (done_textmode_x11_support): Include into done_key().
6785         (k_dispose): Make static.
6786         (s_dispose): Likewise.
6787         * key.h: Remove init_textmode_x11_support() and
6788         done_textmode_x11_support().
6789         * main.c: Don't call init_textmode_x11_support() and
6790         done_textmode_x11_support().
6792         * achown.c: Make global variables static if possible. Remove now
6793         useless preprocessor directives, since this file is now used in
6794         the text edition only.
6795         * boxes.c: Remove useless ifdefs.
6796         [USE_VFS]: Don't undef USE_NETCODE - it's done in extraconf.h.
6797         * cmd.c [USE_VFS]: Don't undef USE_NETCODE.
6798         * chmod.c: Remove useless ifdefs.
6799         * filegui.c: Likewise.
6800         * hotlist.c: Likewise.
6801         * info.c: Likewise.
6802         * layout.c: Likewise.
6803         * listmode.c: Likewise.
6804         * option.c: Likewise.
6805         * subshell.c: Likewise.
6806         * help.c: Remove useless ifdefs. Make global variables static if
6807         possible.
6808         * key.c: Likewise.
6809         * learn.c: Likewise.
6811 2001-06-04  Andrew V. Samoilov  <sav@bcs.zp.ua>
6813         * charsets.c (load_codepages_list): Lines in mc.charset beginning
6814         with a # are comments. Use "default character_set_name" in mc.charset
6815         to set default codepage for your system.
6816         (xstrncpy): Eliminate.
6818 2001-06-04  Pavel Roskin  <proski@gnu.org>
6820         * cmd.c (edit_symlink_cmd) [!HAVE_GNOME]: Warn if the current
6821         selection is not a symbolic link.
6823 2001-06-02  Pavel Roskin  <proski@gnu.org>
6825         * cmd.c (free_vfs_now) [HAVE_GNOME]: Eliminate.
6826         (reselect_vfs) [HAVE_GNOME]: Likewise.
6827         * main.c (ctl_x_map) [HAVE_GNOME]: Disable add2hotlist_cmd.
6828         (done_mc) [HAVE_X]: Don't call save_hotlist().
6829         * setup.c (save_setup) [HAVE_X]: Likewise.
6830         (done_setup) [HAVE_X]: Don't call done_hotlist().
6832 2001-06-01  Pavel Roskin  <proski@gnu.org>
6834         * hotlist.c [HAVE_X]: Don't use ctrl_pressed().
6835         * widget.c [HAVE_X]: Likewise.
6836         * main.c [HAVE_X]: Likewise. Don't call init_key() and
6837         init_key_input_fd().
6838         * setup.c [HAVE_X]: Remove some variables that make no sense
6839         for the GNOME edition. Eliminate save_panel_types().
6840         * view.c [!PORT_WANTS_VIEW]: Eliminate view_mode_callback().
6842         * view.c [HAVE_X]: Define is_idle() to 1. Warning fix.
6844         * file.c (copy_file_file): Initialize src_uid, src_gid, src_mode
6845         and file_size to avoid a warning.
6847 2001-05-31  Pavel Roskin  <proski@gnu.org>
6849         * charsets.c: Include config.h before everything else.
6850         * selcodepage.c: Likewise.
6852         * textconf.c (features): Use longer strings to avoid enforcing
6853         English word ordering on the translations. Capitalize sentences.
6854         From Walery Studennikov: Indicate charset support.
6855         (version): Use fputs, not fprintf.
6857         * Makefile.in: Add charsets.c, charsets.h, selcodepage.c and
6858         selcodepage.h. Compile them if the charset support is enabled.
6859         Distribute them always.
6861 2001-05-30  Pavel Roskin  <proski@gnu.org>
6863         * charsets.c: New file for charset conversion support.
6864         From Walery Studennikov.
6865         * charsets.h: Likewise.
6866         * selcodepage.c: Likewise.
6867         * selcodepage.h: Likewise.
6869         * layout.c (init_curses) [!HAVE_SLANG]: Set ESCDELAY to 0 if
6870         possible to prevent ncurses from waiting after escape.
6872 2001-05-29  Pavel Roskin  <proski@gnu.org>
6874         * cmd.c (quick_cd_cmd) [HAVE_GNOME]: Disable.
6875         * main.c (sort_cmd) [HAVE_GNOME]: Likewise.
6876         (ctl_x_map) [HAVE_GNOME]: Disable "Ctrl-x j" - background jobs.
6878         * color.c (init_colors) [HAVE_SLANG]: Use "default" instead of
6879         NULL as color names - this works even if COLORFGBG is unset.
6880         Don't check HAS_DIRECT_COLOR_ACCESS - it's now meaningless.
6882         * color.h: Define DEFAULT_COLOR_INDEX and DEFAULT_COLOR in the
6883         same way regardless of HAVE_SLANG.
6884         * color.c (init_colors) [USE_NCURSES]: Initialize the default
6885         color pair.
6887         * subshell.c (pty_open_master) [!HAVE_SCO && HAVE_GRANTPT]:
6888         Don't try to close a file that wasn't opened.
6890         * xslint.c: Remove slang_init() and FIXME in the comment.
6891         * main.c (main) [!HAVE_SLANG]: Don't call slang_init().
6893 2001-05-28  Pavel Roskin  <proski@gnu.org>
6895         * myslang.h: Use HAVE_SLANG_SLANG_H instead of non-standard
6896         SLANG_H_INSIDE_SLANG_DIR.
6898         * xslint.c: Remove unused functions.
6900         * color.c (init_colors) [HAVE_SLANG]: Use SLtt_set_color() to
6901         associate the default colors with DEFAULT_COLOR_INDEX. The old
6902         code would unset alternative charset without making S-Lang aware
6903         of it.
6904         Thanks to John E. Davis <davis@space.mit.edu>
6905         * widget.c (update_input) [HAVE_SLANG]: Revert last change - it
6906         is not needed now.
6908 2001-05-28  Andrew V. Samoilov  <sav@bcs.zp.ua>
6910         * main.c: Correct some comments after #endif
6911         (shell): Remove comment and #ifdef around shell variable.
6912         (process_args) [HAVE_SUBSHELL_SUPPORT]: All related args enclosed
6913         between one #ifdef ... #endif pair.
6914         (process_args): smbfs_set_debug () takes a debug level as argument,
6915         commented out.
6917 2001-05-27  Pavel Roskin  <proski@gnu.org>
6919         * main.c (OS_Setup) [!HAVE_X]: Exit immediately if TERM
6920         environment variable is unset or empty.
6922 2001-05-25  Pavel Roskin  <proski@gnu.org>
6924         * cmd.c: Clean up useless preprocessor directives.
6925         (symlink_cmd): Warning fix.
6926         * dlg.c (dialog_handle_key) [HAVE_X]: Disable suspend on Ctrl-z.
6927         * main.c (do_suspend_cmd) [HAVE_GNOME]: Remove.
6928         (suspend_cmd) [HAVE_GNOME]: Likewise.
6930 2001-05-24  Pavel Roskin  <proski@gnu.org>
6932         * widget.c (update_input) [HAVE_SLANG]: Work around a bug in
6933         SLang 1.x - set charset to alternative when printing spaces.
6935 2001-05-22  Pavel Roskin  <proski@gnu.org>
6937         * ext.c (exec_extension): Use g_free() on the result of
6938         mc_mkstemps(). Don't free it if mc_mkstemps() fails - it's not
6939         needed anymore.
6940         * user.c (execute_menu_command): Likewise.
6941         * util.c (mc_mkstemps): Return NULL in the filename in the case
6942         of failure. Remove support for NULL as the first argument.
6943         From Andrew V. Samoilov.
6945 2001-05-21  Pavel Roskin  <proski@gnu.org>
6947         * ext.c (exec_extension): Use mc_mkstemps().
6948         * user.c (execute_menu_command): Use mc_mkstemps().
6949         * util.c (mc_mkstemps): New function - safely create and
6950         open temporary file. Return the handle and the name.
6951         * util.h: Declarations for init_tmpdir() and mc_mkstemps().
6952         Define TMPDIR_DEFAULT and SCRIPT_SUFFIX.
6954 2001-05-18  Pavel Roskin  <proski@gnu.org>
6956         * TODO: Remove Tk-related entries.
6957         * boxes.c [HAVE_TK]: Remove. Don't need INPUT_INDEX anymore.
6958         * screen.c [HAVE_TK]: Remove.
6959         (panel_event): Made static.
6960         * chmod.c [HAVE_TK]: Remove.
6961         * cmd.c [HAVE_TK]: Likewise.
6962         * help.c [HAVE_TK]: Likewise.
6963         * hotlist.c [HAVE_TK]: Likewise.
6964         * info.c [HAVE_TK]: Likewise.
6965         * view.c [HAVE_TK]: Likewise.
6966         * view.h [HAVE_TK]: Likewise.
6967         * widget.c [HAVE_TK]: Likewise.
6968         * wtools.c [HAVE_TK]: Likewise.
6970         * TODO: Remove XView-related entries.
6971         * menu.h [HAVE_XVIEW]: Remove all XView-related code.
6973 2001-05-17  Pavel Roskin  <proski@gnu.org>
6975         * subshell.c (pty_open_master) [HAVE_SCO]: Fix ambiguous `else'.
6976         [!HAVE_SCO && !HAVE_GRANTPT]: Likewise.
6978 2001-05-16  Pavel Roskin  <proski@gnu.org>
6980         * subshell.c: Define _GNU_SOURCE to enable prototypes for
6981         allocating pseudo-terminals on GNU systems.
6983         * subshell.c (init_subshell_child): New function to initialize
6984         child process and run subshell. Code moved from ...
6985         (init_subshell): ... here.
6987         * subshell.c (init_subshell): Don't close pty_slave if is wasn't
6988         open. Initialize it with -1.
6990 2001-05-14  Pavel Roskin  <proski@gnu.org>
6992         * main.c [HAVE_GNOME]: Disable more code.
6993         * cmd.c [HAVE_GNOME]: Likewise.
6995         * background.h: Omit definitions that require FileOpContext if
6996         fileopctx.h has not been included yet.
6998         * background.c (real_message_2s): Declare arguments "const" when
6999         possible.
7000         (real_message_3s): Likewise.
7001         * wtools.c (message): Likewise.
7002         * background.h: Change declarations to match.
7003         * dialog.h: Likewise.
7005         * boxes.c [HAVE_GNOME]: Disable unused code.
7006         * find.c [HAVE_GNOME]: Likewise.
7007         * complete.c [HAVE_GNOME]: Likewise.
7008         * main.c [HAVE_GNOME]: Likewise.
7010         * screen.c (adjust_top_file): Enable only if it's used, i.e.
7011         when PORT_HAS_PAINT_FRAME in undefined.
7012         * wtools.c (listbox_refresh): Disable for HAVE_X, define to
7013         an empty macro instead.
7014         (listbox_callback): Call listbox_refresh() regardless of HAVE_X.
7015         (create_listbox_window): Likewise.
7017         * fsusage.c: Include stdlib.h for abort().
7018         * tree.c (tree_mkdir_cmd): Disable tree_mkdir_cmd() since it's
7019         not used.
7020         * widget.c: Declare x_radio_toggle() with arguments.
7022         * util.h: Remove declarations of some functions defined in
7023         background.c.
7025 2001-05-14  Andrew V. Samoilov  <sav@bcs.zp.ua>
7027         * background.c (real_message_1s, message_1s): third parameter is
7028           used by message () as printf pattern, so "%s" has to be added
7029           if plain string must be shown but printf conversion
7030           specification(s) may be there.
7031         * view.c (do_view_init): ditto
7032         * user.c (debug_out): ditto
7033         * utilunux.c (close_error_pipe, check_error_pipe): ditto
7035         * background.[ch], vfs/util-alone.c (message_1s): third parameter
7036           constified
7038 2001-04-27  Andrew V. Samoilov  <sav@bcs.zp.ua>
7040         * find.c (search_content): Redo recent change without infinite loop ;-),
7041         egrep_path hardcoded to "egrep" as it is done in locate_egrep ()
7043         (locate_egrep): commented out
7045         (rotating_dash) [!HAVE_X]: moved into do_search to prevent warning
7047 2001-04-26  Pavel Roskin  <proski@gnu.org>
7049         * find.c (search_content): Undo a recent change that caused an
7050         infinite loop.
7052 2001-04-24  Andrew V. Samoilov  <sav@bcs.zp.ua>
7054         * view.c (get_line_at): previous newline is right condition
7055         for regexp '^' pattern also, fixed
7057         (search) [HAVE_GNOME]: gnome_message_box_new doesn't expand printf
7058         pattern, so g_strdup_printf used
7060         * find.c (find_parameters): don't use stat structure if mc_stat failed
7062 2001-04-17  Pavel Roskin  <proski@gnu.org>
7064         * subshell.c (init_raw_mode): New function, separated from ...
7065         (invoke_subshell): ... this.
7066         (init_subshell): Initialize raw_mode here instead of delaying it
7067         until invoke_subshell(). Otherwise the current mode may have
7068         been changed by edition_pre_exec(), which caused Ctrl-O to be
7069         ignored on FreeBSD if a command has been run before switching
7070         to the subshell.
7072 2001-04-06  Pavel Roskin  <proski@gnu.org>
7074         * chmod.c (stat_file): Allow chmod and chown on special files.
7076         * cons.handler.c: Include "global.h" for exit().
7078         * Makefile.in: Add dependencies between mc and static libraries
7079         in the source tree.
7081 2001-04-06  Andrew V. Samoilov  <sav@bcs.zp.ua>
7083         * find.c (find_parameters): Add a checkbox for case insensitive
7084         content search.
7085         (search_content): Pass `-i' to egrep for case insensitive
7086         search.
7088 2001-03-30  Andrew V. Samoilov  <sav@bcs.zp.ua>
7090         * panel.h, screen.c (panel_new): panel_name constified to do gcc
7091         some more happy when gmc is compiled
7093 2001-03-18  Miguel de Icaza  <miguel@ximian.com>
7095         * widget.c (forward_word, backward_word): Revert Timur's patch
7096         from last year which made the behavior for advancing words not
7097         match the one in Emacs.
7099 2001-03-02  Pavel Roskin  <proski@gnu.org>
7101         * key.c (mi_getch): Discard non-events (EV_NONE), but not
7102         keycode 0 (Ctrl-@).
7104 2001-02-26  Pavel Roskin  <proski@gnu.org>
7106         * cmd.c (edit_cmd) [HAVE_GNOME]: Use gmc_edit(). Don't use
7107         regex_command().
7108         (ext_cmd) [HAVE_GNOME]: Don't compile for GNOME.
7109         * ext.c (regex_command) [HAVE_GNOME]: Likewise.
7110         * ext.h [HAVE_GNOME]: Don't define MC_USER_EXT and MC_LIB_EXT.
7112         * main.c (main): Don't call edit_init_file() - the editor should
7113         care about its files itself.
7115 2001-02-09  Pavel Roskin  <proski@gnu.org>
7117         * main.c (main): Fix compilation error when configured without
7118         subshell support.
7120 2001-02-07  Andrew V. Samoilov  <sav@bcs.zp.ua>
7122         * main.c (main): Do not fork subshell for mcedit/mcview.
7124 2001-01-27  Pavel Roskin  <proski@gnu.org>
7126         * cons.handler.c (handle_console): Check the result of ttyname().
7128         * main.c (handle_args): Exit if no arguments are given to mcview.
7129         [HAVE_GNOME]: Don't examine argv[0] - it's done separately.
7131         * dir.c: Respect HAVE_STRCOLL. Added a comment about strcoll().
7133 2001-01-26  Pablo Saratxaga  <pablo@mandrakesoft.com>
7135         * file.c: moved a comment one line down so it becomes visible on the
7136         translators' po files. Also added gettext:no-c-format comments for
7137         a few strings with % in them that are not C format printf codes.
7139 2001-01-21  Andrew V. Samoilov  <sav@bcs.zp.ua>
7141         * subshell.c (do_subshell_chdir): temporary patch to prevent command
7142         execution for directory names containing 0x03 (intr) 0x14.
7143         See http://www.securityfocus.com/vdb/?id=2016 for details.
7144         Subshell still can't chdir to such directories :(
7146         * subshell.[ch] (do_subshell_chdir): directory constified
7148 2001-01-17  Pavel Roskin  <proski@gnu.org>
7150         * Makefile.in: Respect LDFLAGS when linking cons.saver.
7152 2000-11-20  Andrew V. Samoilov  <sav@bcs.zp.ua>
7154         * view.c: Fixed long existed bugs in internal viewer. When search is
7155         doing in binary file it ignore skipped zero(es), so cursor is before
7156         searched expression and next search find the same string. Also regexp
7157         search could return wrong results for '^ ?' expressions.
7159         (get_line_at): skipped: new parameter for number of skipped zero(es)
7161         (search): new features of get_line_at used.
7163 2000-11-16  Andrew V. Samoilov  <sav@bcs.zp.ua>
7165         * cons.saver.c (check_file): close fd on error. There was a bug, which
7166         allowed luser to write '\0' char to any symlinkable file in Linux
7167         system which don't ensure that fd's 0, 1, and 2 are open on startup
7168         of a SUID/SGID binary.
7169         Based on patch from bugtrack by Maurycy Prodeus <z33d@ETH-SECURITY.NET>.
7171 2000-11-14  Andrew V. Samoilov  <sav@bcs.zp.ua>
7173         * layout.c (print_vfs_message): format string vulnerability fixed
7175 2000-11-03  Andrew V. Samoilov  <sav@bcs.zp.ua>
7177         * main.c (CmdMenu): don't include edit_user_menu_cmd ()
7178         if USE_INTERNAL_EDIT is not defined
7179         (main): call edit_init_file () if USE_INTERNAL_EDIT is defined only
7180         (listmode_cmd): messages are localized
7182 2000-11-02  Pavel Roskin  <proski@gnu.org>
7184         * layout.c [PORT_NEEDS_CHANGE_SCREEN_SIZE]: Declare
7185         low_level_change_screen_size().
7186         (flag_winch) [PORT_NEEDS_CHANGE_SCREEN_SIZE]: Call
7187         low_level_change_screen_size(). From Andrew V. Samoilov.
7189 2000-10-04  Pavel Roskin  <proski@gnu.org>
7191         * user.c (expand_format): Fixed processing of "%s".
7193 2000-09-30  Pavel Roskin  <proski@gnu.org>
7195         * Makefile.in: Added an explicit rule for man2hlp.
7197 2000-09-26  Pavel Roskin  <proski@gnu.org>
7199         * listmode.c, listmode.h, main.c: Consistently using define
7200         LISTMODE_EDITOR to enable the experimental listmode editor.
7201         * main.c: Don't allow two adjacent separators in the Command
7202         menu.
7204 2000-09-22  Pavel Roskin  <proski@gnu.org>
7206         * fixhlp.c: Removed.
7207         * Makefile.in: Removed all references to fixhlp.c
7209 2000-09-14  Pavel Roskin  <proski@gnu.org>
7211         * features.h: Joined with textconf.h to avoid name clash with
7212         GNU Libc.
7213         * features.c: Renamed to ...
7214         * textconf.c: ... this
7215         * Makefile.in, cmd.c, main.c, text.c: necessary adjustments
7217         * Makefile.in: Don't make softlinks to the libraries
7219 2000-09-13  Pavel Roskin  <proski@gnu.org>
7221         * Makefile.in: Only rebuild mc.hlp in the maintainer mode.
7223 2000-09-01  Pavel Roskin  <proski@gnu.org>
7225         * fixhlp.c: fixed compile errors and warnings
7227 2000-08-30  Pavel Roskin  <proski@gnu.org>
7229         * dirhist.c, dirhist.h: removed
7231         * features.h, keys.h, textconf.h, x.h: added protection against
7232         multiple inclusion
7234 2000-08-23  Pavel Roskin  <proski@gnu.org>
7236         * features.c: include <sys/param.h> to avoid a warning
7238         * main.c [HAVE_X]: print_mc_usage() and print_color_usage()
7239         removed.
7240         version() moved to ...
7241         * features.inc: ... here, renamed to features.c
7242         * main.h: status_using_ncurses moved to ...
7243         * features.h: ... here
7244         * cmd.c, text.c: include "features.h"
7245         * cmd.h: include "panel.h"
7246         * Makefile.in: changed to use features.h and features.c
7248 2000-08-22  Pavel Roskin  <proski@gnu.org>
7250         * main.c [HAVE_GNOME]: disable chmod and chown - they were
7251         broken and obsoleted by the "Properties" dialog
7253         * cmd.c [HAVE_X]: Removed dependency on status_using_ncurses
7255         * man2hlp.c: Removed undocumented feature - when converting
7256         to HTML some output would go to index.html instead of stdout
7258 2000-08-16  Pavel Roskin  <proski@gnu.org>
7260         * gindex.pl: Enable warnings. Existing warnings fixed.
7262         * Makefile.in: mc.hlp now depends on man2hlp.c instead of
7263         man2hlp - this avoids some rebuilds of mc.hlp
7265 2000-08-15  Pavel Roskin  <proski@gnu.org>
7267         * mc.hlp: removed. It's a derived file
7268         * Makefile.in: Fixed dependencies for $(srcdir)/mc.hlp
7269         Build $(srcdir)/mc.hlp but allow a failure (e.g. no perl)
7271 2000-08-11  Frederic L. W. Meunier  <fredlwm@pervalidus.net>
7273         * Makefile.in: Don't compile mfmt, compile mcmfmt directly.
7275 2000-08-08  Andrew V. Samoilov  <sav@bcs.zp.ua>
7277         * hotlist.c (done_hotlist): static tkn_buf, tkn_buf_length and
7278         tkn_length nullified after tkn_buf is freed to prevent crashes.
7280         (new_hotlist): became a macro
7282         * background.c (real_message_[123]s): title is really prepended
7283         by "Background process:" string now if mode == Background
7285         (background_attention): resstr NULLified to prevent warning
7287 2000-06-26  Andrew V. Samoilov  <sav@bcs.zp.ua>
7289         * screen.c (display_mini_info): two different patterns are
7290         used now: for one file and for other cases
7292 2000-06-16  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
7294         * cons_saver: support linux with devfs, patch by pavenis@lanet.lv
7296 2000-06-14  Andrew V. Samoilov  <sav@bcs.zp.ua>
7298         * panel.h, util.[ch] (struct WPanel, size_trunc, size_trunc_sep): size
7299         parameters and WPanel.total field became double, thus, total size
7300         of selected files/directories is shown in the mini status correctly
7301         when it exceeds 2 GB.
7303 2000-05-25  Andrew V. Samoilov  <sav@bcs.zp.ua>
7305         * slint.c (init_pair): segfault fixed when mcedit -b called
7307         * user.c (check_format_var): error messages are localized
7309         (expand_format, user_menu_cmd): memory leaking for %e and %k macro
7310         fixed; segfault fixed when %m macro is used outside user_menu_cmd ()
7312         * ext.c (regex_command): memory leaking fixed when user extension
7313         file is absent
7315         (exec_extension): error message for changed mc.ext file format
7316         are localized -- does we really must be worry about mc 3.0 ?
7318         * widget.c (history_put): counter is initialized again
7320 2000-05-11  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>
7322         * src/user.c: fix segfault when Shift-F4, Shift-F1, so when menu
7323         content condition y, macro %y
7325 2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>
7327         * src/user.c: Add macro %k it is block file name
7328         Add macro %e it is error file name
7329         Add macro %i it is cursor column indent of spaces, only for edit
7330         Add macro %y, it is syntax of current file in editor, only for edit
7331         Add condition y, it is syntax pattern of current file in edit
7332         Add macro %x it is extension of current file
7333         Add macro %m it is current menu filename
7335 2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>
7337         * gtkedit/editcmd.c: Modify External Formatter (was C indent formatter) .
7338         Autocreate a scripts in home, from templates /usr/lib/mc/edit.indent.rc,
7339         edit.ispell.rc, etc. Remove leading and trailing spaces into _(""),
7340         (the message of David H. Martin <dmartina@usa.net>)
7342 2000-05-05  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>
7344         * src/user.c:   Add condition (x filename) into mc.menu .
7345                         for "Open next a free console" and like.
7347 2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>
7349         * src/user.c: fix segfault in chunk_alloc of glibc, when into condition
7350         of .mnu we have quoted space. (~.mc/menu: + f \.\ test$).
7352 2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>
7354         * gtkedit/edit.c:
7355         Add ability user edit menus: system: /usr/lib/mc/cedit.menu,
7356         * gtkedit/editmenu.c: home: ~/.cedit.menu, local: .cedit.menu
7357         Marked block is access now from an user edit menu
7358         Access ~/.cedit/cooledit.block for insert to cursor place from
7359         user edit menu.
7360         Created system cedit.menu
7362 2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>
7364         * gtkedit/editdraw.c:
7365         Improved a status string of cool editor for best understand,
7366         and to add char,hex view.
7368 2000-04-17  Andrew V. Samoilov  <sav@bcs.zp.ua>
7370         * widget.c: (history_put): profile is free()d if chmod failed,
7371           (input_map): added const qualifier
7372         * utilunix.c, util.h: (tilde_expand): added const qualifier
7373         * cmd.c: (nice_cd): i18n update,
7374           (source_routing): typo fixed, source is free()d after use
7375         * screen.c: i18n changes, (panel_keymap): added const qualifier
7376         * view.[ch]: (view, view_init, do_view_init): added const qualifier
7378 2000-04-15  Timur Bakeyev  <mc@bat.ru>
7380         * dir.c (string_sortcomp): strcmp() replaced with strcoll() to make
7381         directory listing LOCALE sensitive. I assume, strcoll exists everywhere,
7382         as it is in POSIX.
7384 2000-04-15  Timur Bakeyev  <mc@bat.ru>
7386         * dlg.c: Committed at last patch, that fixes screwed up right panel in
7387         a long format. Occasionally, all my colors problems also gone. All thanks
7388         to Norbert Warmuth <nwarmuth@privat.circular.de>, who tracked down the
7389         problem, blames to me and Federico :)
7391 2000-04-12  Timur Bakeyev  <mc@bat.ru>
7393         * widget.c ([forward|backward]_word): Changed one more time -
7394         now it skips alnums and THEN spaces+punct. That gives almost the
7395         same results, but twice quicker. Hope, this will be accepted.
7397 2000-04-06  Timur Bakeyev  <mc@bat.ru>
7399         * widget.c ([forward|backward]_word): Changed logic of moving - now,
7400         it skips only spaces+punct OR alnum. Reason to do it so - deleting lines
7401         like "lynx http://www.gnome.org", where "lynx http:" part was erased
7402         in one operation. That's nasty, IMHO. Made this a separate commit, so,
7403         if it seriously breaks compatibility it's easy to revert it. Still hope
7404         that nobody will do that.
7406 2000-04-06  Timur Bakeyev  <mc@bat.ru>
7408         * file.c, widget.[ch]: Fixed long existing problems with filenames
7409         and input widgets, then char is greater than 128. They were processed
7410         incorrectly. As usual, char != unsigned char problem.
7412 2000-03-03  Björn Eriksson  <mdeans@algonet.se>
7414         * Similar patches came from Andrew V. Samoilov <sav@bcs.zp.ua>.
7416         * mad.[ch]: Some functions wrongly by-passed mad_alloc*() (causing
7417         problems when later g_free()ed.
7419         * Added mad_strndup().
7421         * Repeated code collected in mad_fatal_error().
7423         * The gcc-extension/C99-standard variable argument macros (adding
7424         __FILE__, __LINE__ before ', ...') would be nice.
7426         * Alloc_idx_hint and code added, the mad code was way too slow for my
7427         poor computer. A hash-table would be nice.
7429         * (mad_strconcat, mad_strdup_vprintf): g_malloc and g_new are
7430         undefined at the top of mad.c, so mad_alloc must be used.
7432 2000-02-23  Norbert Warmuth  <nwarmuth@privat.circular.de>
7434         * main.c (parse_control_file): add missing right parentheses
7436         * boxes.c: fix incorrect initialization of array of structure (gcc
7437         version 2.96 20000131 chokes on it).
7439 2000-02-18  Paul Sheer  <psheer@obsidian.co.za>
7441         * gtkedit/*.[ch], edit.c et al: updates to reflect
7442         cooledit-3.13.0. See CVS commits and cooledit ChangeLog
7443         for details.
7445 2000-02-10  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
7447         * setup.c (load_setup): remove duplicate loading of anonymous
7448         passwd by do_load_string(), it is doing by
7449         ftpfs_init_passwd. (Patch by sav@bcs.zp.ua)
7451 2000-02-04  "David H.Martin"  <dmartina@usa.net>
7453         * src/widget.c (input_new): Change NULL to empty strings and avoid
7454           crashing when string functions are called.
7455         * src/boxes.c (configure_vfs): Remove local change to empty string.
7456         * src/setup.c (load setup): Load anonymous password
7458 2000-02-03  Andrew V. Samoilov  <sav@bcs.zp.ua>
7460         * setup.c (load_setup): call ftpfs_init_passwd to avoid segfault
7462 2000-01-24  Andrew V. Samoilov  <sav@bcs.zp.ua>
7464         * main.c (parse_control_file): add extra security checks for
7465          control file. It cannot be group/world writable;
7466         (ctl_x_map, default_map, argument_table): added const qualifier.
7468         * fixed segfault in print_mc_usage
7470 2000-01-24  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
7472         * cmd.c (nice_cd): disabled ability to go to home.
7474 2000-01-02  viro@math.psu.edu
7476         * src/subshell.c: Reason: in feed_subshell() we are trying to read
7477         from shell pty, check for retval==-1 && errno != EIO. In that case
7478         we flame and exit. Otherwise we are trying to write what we've
7479         read. Good luck doing it if we got errno==EIO, which is _normal_
7480         for situation when shell just died. Resulting write(1,foo,~0U) is
7481         somewhat excessively, erm, verbose.
7483 1999-12-21  Pavel Roskin  <pavel_roskin@geocities.com>
7485         * src/main.c, src/view.c: #warning's replaced with FIXME's.
7486         They were not for users, but for developers
7488 1999-11-11  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
7490         * main.c, cmd.c: add possibility to free VFS now
7492 1999-11-03  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
7494         * layout.c: always display status line. It contains vital
7495         information for ftpfs
7497 1999-03-19  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
7499         * profile.c (str_translate_newline_dup): someone likes to pass
7500         NULL's around. Warn instead of segfault.
7502 1999-11-02  Miguel de Icaza  <miguel@gnu.org>
7504         * main.c (OS_Setup): Do not warn if TERM is not set for the GNOME edition.
7506 1999-09-21  Federico Mena Quintero  <federico@redhat.com>
7508         * dlg.c (dlg_broadcast_msg_to): Sigh.  Put in a GrossHack(tm) to
7509         unfocus what will be a WInput when a panel is initialized.
7511 1999-09-21  Federico Mena Quintero  <federico@redhat.com>
7513         * dlg.c (init_dlg): Walk the list of widgets only if it exists.
7514         (dlg_broadcast_msg_to): Use safer list-walking code for if someone
7515         inserts a widget inside the message broadcast.
7517 1999-09-20  Federico Mena Quintero  <federico@redhat.com>
7519         The following is a patch from Volker Braun
7520         <volker.braun@physik.hu-berlin.de> to fix column resizing in the
7521         file panels.
7523         * setup.c (options): Declare the column width option values.
7524         (save_configure): Save the default user format.
7525         (load_setup): Load the default user format.
7527         * panel.h (WPanel): Added a field for the column widths.
7529 1999-09-19  Andrew V. Samoilov  <sav@bcs.zp.ua>
7531         * user.c (check_patterns): char* is used instead of char [] in sizeof
7533         * util.c (string_perm): prefix named pipes by 'p' and not by `s'
7535 1999-09-19  Norbert Warmuth  <nwarmuth@privat.circular.de>
7537         * mad.c, mad.h, util.c, util.h: Move mad-functions from util.[ch]
7538         to mad.[ch]
7540         * option.c: Include files reordered in order to make it compile with
7541         --with-debug
7543         * mad.c (mad_init): New function. Initialize debug FILE pointer to
7544         stderr (moved to a function because not on every system stderr is
7545         a constant).
7546         (mad_set_debug): added const qualifier
7548         * main.c (main): call mad_init
7550 1999-09-14  Norbert Warmuth  <nwarmuth@privat.circular.de>
7552         * widget.[ch] (input_new): added const qualifier
7554         * util.c (wipe_password): Check for NULL.
7556 1999-09-13  Federico Mena Quintero  <federico@redhat.com>
7558         * treestore.c: Removed tree_store_destroy(), renamed
7559         tree_store_init() to tree_store_get().
7561         * tree.c (tree_destroy): Do not destroy the tree store.
7562         (tree_new): Get the tree store, do not initialize it.
7564         * treestore.c (tree_store_init): Do not set the linked list
7565         pointers to NULL.
7567         * panel.h (WPanel): Added a new field that indicates whether the
7568         user is dragging something over the tree.
7570 1999-08-31  Federico Mena Quintero  <federico@redhat.com>
7572         * main.c: In the GNOME version, we want cd_symlinks to be FALSE.
7573         The VFS should never have to look at this variable, but alas, it
7574         does.  BUGFIX:  Red Hat Bugzilla #2344.
7576         * setup.c: Disable cd_symlinks in the GNOME version.
7578 1999-08-30  Norbert Warmuth  <nwarmuth@privat.circular.de>
7580         * main.c (print_mc_usage): Print the bug reporting address.
7581         (main): Put prompt in a new line at termination.
7583 1999-08-27  Federico Mena Quintero  <federico@redhat.com>
7585         * ext.c (quote_block): How did this ever work?  People, if you
7586         realloc() things, don't keep pointers to stuff inside the original
7587         block.
7589         * screen.c (do_enter_on_file_entry): Pass in the full name to
7590         if_link_is_exe().
7592         * dir.[ch] (if_link_is_exe): Take in the full name, not the directory
7593         and the file entry.
7595 1999-08-15  Norbert Warmuth  <nwarmuth@privat.circular.de>
7597         * cmd.c (guess_message_value): New function. Determine locale used
7598         for messages
7600         (get_random_hint): use guess_message_value
7602 1999-08-15  David Martin  <dmartina@usa.net>
7604         * boxes.c: (symlink_dialog): Move dialog misaligned elements
7606         * cmd.c (get_random_hint): Look for localized hint files
7608 1999-08-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
7610         * ext.c: Added missing include file.
7612 1999-08-08  David Martin  <dmartina@usa.net>
7614         * menu.c: (create_menu): Adjust "#ifdef ENABLE_NLS" so that menus
7615         get the right size even when NLS is disabled.
7617 1999-08-06  Norbert Warmuth  <nwarmuth@privat.circular.de>
7619         * screen.c (string_file_[amc]time): These three functions use
7620         file_date which returns a pointer to a static buffer. In the
7621         Gnome edition this buffer has to be copied to a static buffer
7622         which isn't used in the other two functions (Fix Bug #1766).
7624         * util.c, util.h: Moved some constants to util.h
7626 1999-08-04  Norbert Warmuth  <nwarmuth@privat.circular.de>
7628         * widget.c (push_history): Add SMB Link to the list of input dialogs
7629         where URLs are input without vfs prefix.
7631         Translate the titles of these input dialogs only once.
7633         Removed Gnome specific code because the Gnome edition doesn't use
7634         the input history any more.
7636         * util.c (strip_password): Add /#smb: to the list of URLs which might
7637         be input with password.
7639 1999-08-03  Norbert Warmuth  <nwarmuth@privat.circular.de>
7641         * poptalloca.h: New file with definitions for alloca. Note: alloca
7642         is defined as malloc on systems which fail to support alloca. Don't
7643         include this file if you frequently use alloca.
7645         * findme.c, popt*.c: include poptalloca.h
7647         * Makefile.in: added poptalloca.h
7649         * menu.c (create_menu): set minimum menu width to 20 characters as
7650         it used to be (this was part of David's patches but I haven't
7651         applied it yet).
7653 1999-08-01  David Martin  <dmartina@usa.net>
7655         * menu.c (create_menu, menubar_drop_compute, menubar_paint_idx):
7656         Discount '&' for hotkeys when checking menu widths to avoid the
7657         extra blank space.
7658         Moved this accounting from the drawing to the creating function.
7660         * widget.c: Translate History box tittle.
7662 1999-07-21  Norbert Warmuth  <nwarmuth@privat.circular.de>
7664         * popt.c, popt.h, poptconfig.c, popthelp.c, poptparse.c: updated
7665         to the version found in the popt module
7667         * features.inc: added report information for smbfs
7669 1999-06-01  Robert Brady  <rwb197@ecs.soton.ac.uk>
7671         * file.c (move_dir_dir): Give an error when an attempt is made to
7672         move an empty directory into itself.
7674 1999-06-24  smil@linuxfan.com
7676         * view.c (view_update_bytes_per_line, display): show correctly the
7677         offset of the file (full 8 digit), display offset in bold color
7679         (view_labels): use goto_addr instead of goto_line in hex mode
7681         (goto_addr): New function. Goto offset address in hex mode.
7683         * view.h: use unsigned long for hexedit cursor position in file
7685 1999-06-24  Norbert Warmuth  <nwarmuth@privat.circular.de>
7687         * menu.c (menubar_execute): Now needs an additional do_refresh in order
7688         to make layout changes visible.
7690 1999-06-01  Robert Brady  <rwb197@ecs.soton.ac.uk>
7692         * file.c (move_dir_dir): Give an error when an attempt is made to
7693         move an empty directory into itself.
7695 1999-06-22  Norbert Warmuth  <nwarmuth@privat.circular.de>
7697         * cmd.c (quick_view_cmd): Change panel when the file we want to
7698         view isn't in the current panel (prevents a "file not found"
7699         error).
7701         * menu.c (menubar_execute): De-activate the menubar previous to
7702         invoking the callback. This is needed to make change_panel in
7703         quick_view_cmd work (the activated menubar doesn't allow unfocus,
7704         i.e. dlg_one_down|up don't change anything).
7706         * view.c (do_view_init): improved error handling w.r.t quick view
7707         (mc used to dump core when the file to view couldn't be opened).
7709 1999-06-22  David Martin  <dmartina@usa.net>
7711         * view.c (display): added view_gotoxy's in order to make the gnome
7712         edition operational in hex mode.
7714 Fri Jun 18 11:29:56 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
7716         * user.c (user_menu_cmd): Allow national characters as hotkeys.
7717         Don't dump core when the menu file contains only empty lines
7719         * view.c (search, block_search): Use the correct column for the
7720         percent display while searching.
7722 1999-06-11  Federico Mena Quintero  <federico@nuclecu.unam.mx>
7724         * complete.c (complete_engine): Put an #ifndef HAVE_GNOME around
7725         the completion/query engine.  Make the Gnome version just beep
7726         instead.  We do not have the completion/query engine for Gtk.
7728 1999-06-09  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
7730         * cmd.c (configure_panel_listing): no more code duplication
7732         * screen.c (panel_new): no more code duplication
7733         (set_panel_formats): warn user when he gives bogus format, move
7734         checks into set_panel_formats
7736 1999-06-01  Akira Higuchi  <a-higuti@math.sci.hokudai.ac.jp>
7738         * util.c (is_printable): in GNOME all characters are printable.
7740 1999-05-31  Miguel de Icaza  <miguel@nuclecu.unam.mx>
7742         * main.c (handle_args): Handle --desktop-linksdir without using X
7744 1999-05-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>
7746         * treestore.c (should_skip_directory): Add fix from Wayne Roberts
7747         to actually acknowledge the settings of mc.global.
7749 1999-05-24  Brandon S. Allbery  <allbery@ece.cmu.edu>
7751         * subshell.c (pty_open_master): Added missing comma.p
7753 Mon May 17 07:37:12 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
7755         * subshell.c (pty_open_master): use getpt () if available to open
7756         the master side of the pty. getpt () is a glibc extension and is
7757         needed when glibc 2.1.x is used with a (linux) kernel without unix98
7758         style ptys (if there is no /dev/ptmx getpt falls back to bsd style
7759         ptys).
7761         * filegui.c (check_progress_buttons): Don't update the Gpm mouse
7762         cursor when we check for events. It causes a flickering cursor on a
7763         different virtual console.
7765 1999-05-12  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
7767         * cons.saver.c (main): change cons.saver so it can be run without
7768         root privileges. It is well possible to run cons.saver with
7769         privileges only to /dev/vcsa: create new user and make vcsa's
7770         owned by that user instead of root.
7772         Distribution maintainers please take this text as idea of what you
7773         should do to make your system more secure.
7775 1999-05-05  Miguel de Icaza  <miguel@nuclecu.unam.mx>
7777         * cmd.c (view_file_at_line): gmc_view never fails, so we handle
7778         that now.
7780 1999-04-29  Federico Mena Quintero  <federico@nuclecu.unam.mx>
7782         * chmod.c (chmod_cmd): Missing _ in _().
7783         (chmod_cmd): Added braces around nested if/else.
7785         * widget.c (is_in_input_map): Added braces around nested if/else.
7786         (listbox_remove_current): Likewise.
7788         * subshell.c (read_subshell_prompt): Likewise.
7790         * view.c (view_status): Likewise.
7792 Tue Apr 27 20:31:13 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
7794         * util.c (strip_home_and_password): Don't split the path in the
7795         middle of a directory, e.g. "/home/bofh" will not be translated to
7796         "~h" (fixes the bug reported by Alex Fortuna <alex@rdc.ru>)
7798 1999-04-25  Sergei Ivanov  <svivanov@pdmi.ras.ru>
7800         * find.c: The origin of the bug is in the function do_search (file
7801         find.c).  It limits the number of subdirectories to scan by the
7802         number stat.st_nlink-2, or infinite if st_nlink<2. On tar vfs,
7803         st_nlink is always 1, so it should be the second case.
7805         But before doing stat, do_search does opendir. And opendir on tar
7806         vfs (vfs_s_opendir in vfs/direntry.c) increases the st_nlink value
7807         in the stat data! So mc_stat called after mc_opendir on tar vfs
7808         returns st_nlink==2 instead of 1. This is interpreted as if the
7809         directory had no subdirs, thus subdirs are not searched in.
7811         Changing the order of calls to mc_stat and mc_opendir fixes the
7812         problem.
7814 1999-03-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>
7816         * setup.c (save_setup): Only save this if there is a current panel
7818 Wed Apr 21 21:47:15 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
7820         * ext.c (exec_extension): Use tempnam instead of tmpnam (AIX doesn't
7821         like the latter when compiled with -mthreads).
7823         * user.c (execute_menu_command): ditto.
7825 Wed Apr 21 20:40:38 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
7827         * Makefile.in: use MCCFLAGS and MCLIBS
7829 Wed Apr 21 20:19:45 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
7831         * key.c (get_modifier): Query the state of the modifier keys when
7832         running inside a terminal emulation under X11.
7834         * key.c (init_textmode_x11_support, done_textmode_x11_support): new
7835         functions, only used in the text edition. Connect to and disconnect
7836         from the X Server when DISPLAY is set.
7838         * key.h: added prototypes for the new functions
7840         * main.c (main): call (init|done)_textmode_x11_support
7842 Sat Apr 17 13:04:19 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
7844         * view.c (do_view_init): Enable viewing of files with negative
7845         st_size (This reverts parts of a patch I committed recently. Miguel
7846         provided a better fix for this issue).
7848 1999-04-16  Miguel de Icaza  <miguel@nuclecu.unam.mx>
7850         * view.c (regexp_search): Use unsigned longs for all of the
7851         offsets here.  Fixes crash reported on bugtraq.
7853 1999-04-16  Federico Mena Quintero  <federico@nuclecu.unam.mx>
7855         * treestore.c (tree_store_save_to): Moved the functionality from
7856         tree_store_save() to here.
7857         (tree_store_save): Save the tree in the default location in an
7858         atomic fashion.
7859         (tree_store_load_from): Moved the functionality from
7860         tree_store_load() to here.
7861         (tree_store_load): Load the tree from the default location.
7863         * treestore.h (MC_TREE_TMP): Added a #define for the temporary
7864         name we'll use when saving the tree.  Moved the #defines from
7865         tree.h over to here.
7867         * main.c (main): Use tree_store_load() and tree_store_save().
7868         Removed the mc_tree_store_load/save() versions.
7870         * tree.c (load_tree): Use tree_store_load().
7871         (save_tree): Use tree_store_save().
7873 Fri Apr 16 07:51:42 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
7875         * wtools.c (message): Use g_vsnprintf instead of vsprintf.
7877 Fri Apr 16 07:50:59 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
7879         * view.c (do_view_init): Don't view files with negative file size.
7880         Added some error checking (I'm not sure whether this is needed).
7882 1999-04-15  Federico Mena Quintero  <federico@nuclecu.unam.mx>
7884         * panel.h (WPanel): Added a drag_tree_row field to the WPanel
7885         structure.  This is used to keep track of the highlighted row in
7886         the tree for drag and drop.  Also, added drag_tree_timeout_id to
7887         hold the node expand timeout.  Also, added drag_tree_fe to hold
7888         the file_entry for the currently highlighted row in the tree.
7890 1999-04-13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
7892         * utilunix.c (my_system): Set up default signal handlers for
7893         children.
7895 Tue Apr 13 07:14:10 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
7897         * slint.c (getch): Quit MC when SLang_getkey returns an error. Looking
7898         at the code that's only the case when we read EOF from stdin.
7900         This fixes the problem where MC consumes a lot of cpu time while
7901         reading EOF from stdin in a tight loop. This situation arises when the
7902         terminal line/connection drops without MC being sent SIGHUP.
7904 Tue Apr 13 07:13:10 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
7906         * slint.c (SLang_input_pending2): don't store SLANG_GETKEY_ERROR (int)
7907         in the input buffer (char).
7909 1999-04-12  Andrew T. Veliath  <andrewtv@usa.net>
7911         * main.c (_do_panel_cd): If we are using GNOME, and the panel is a
7912         desktop panel, open up a new panel for the contents.
7914 1999-04-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
7916         * tree.c (tree_start_search): Renamed from start_search() to avoid
7917         collisions with screen.c:start_search().
7919         * panel.h: Added prototype for start_search().
7921 1999-04-09  Rosanna Yuen  <rwsy@mit.edu>
7923         * screen.c (do_enter_on_file_entry): split GNOME version and
7924         non-gnome version.
7925         (parse_display_format): listen to the warning.
7927 1999-04-08  Miguel de Icaza  <miguel@nuclecu.unam.mx>
7929         * treestore.c (tree_store_load): Do not load non-local file
7930         systems
7931         (tree_store_save): Do not save non-local file systems
7933 1999-04-07  Jonathan Blandford  <jrb@redhat.com>
7935         * screen.c (do_enter_on_file_entry): added a consistent behavior
7936         for GNOME stuff.
7938 1999-04-06  David Martin  <dmartina@usa.net>
7940         * info.c (text out of box and locale layout).
7942         * util.c: If gmc uses strftime() why mc doesn't?
7944         * view.c: a) Tune status line so it does fit in a Quick View Panel
7945         b) Let Hex View resize cleanly. I think it's fixed for panel
7946         re-split and SIGWINCH signal in xterm. gmc still fails. There was
7947         a tiny risk of division by zero when pressing F4 in a very small
7948         box. True hard work... Must try and check it.
7950 1999-04-05  Federico Mena Quintero  <federico@nuclecu.unam.mx>
7952         * main.c (main): Call mc_tree_store_save() when the program
7953         terminates.
7955 1999-04-05  Miguel de Icaza  <miguel@nuclecu.unam.mx>
7957         * find.c (setup_gui): Do not scroll horizontally.  Why does the
7958         CList behave like this?
7960         * setup.c: Save desktop information.
7962 1999-04-05  Federico Mena Quintero  <federico@nuclecu.unam.mx>
7964         * cons.saver.c (main): dup2() may be interrupted; take this into
7965         account.  Do we need to fcntl() stderr, or is it enough to close()
7966         it before recreating it?
7968 1999-03-30  Federico Mena Quintero  <federico@nuclecu.unam.mx>
7970         * dlg.c (dlg_run_done): Do not call the callback of a NULL current
7971         widget.
7973         * setup.h: Added missing prototype for setup_init().
7975         * filegui.c (check_progress_buttons): Added a missing return
7976         value.
7978         * dlg.c (remove_widget): Added a missing return value.
7980         * main.c: Removed the global directory_list variable.
7981         Removed the main_corba_register_server() function.
7983         * main.h: Removed the global run_desktop variable.
7985         * panel.h: Now the panel structure has a unique numerical ID used
7986         for session management.
7988         * screen.c (panel_new): Maintain a unique ID for each panel.
7990         * main.c (maybe_display_linksdir): Handle display of the desktop
7991         init dir here.
7992         (main): Call gnome_check_super_user().
7993         (init_corba_with_args): Call corba_init_server().
7995         * main.c (init_corba_with_args): Do CORBA initialization here.  Also
7996         removed the global force_activation option.
7998 1999-03-29  Jonathan Blandford  <jrb@redhat.com>
8000         * main.c (main): updated message.
8002 Sun Mar 28 23:52:08 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
8004         * util.c (is_printable): Character 155 is non printable even when
8005         full eight bit output is enabled (on the linux console 155 is
8006         interpreted as "ESC [").
8008 1999-03-26  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8010         Patch courtesy of John Bley (jbb6@acpub.duke.edu):
8012         * background.c (do_background): Use pid_t instead of int.
8014         * subshell.c (sigchld_handler): Likewise.
8016 1999-03-24  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8018         * Makefile.in: Use mcsrclibdir where appropriate.
8020 1999-03-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8022         * treestore.c (process_special_dirs): Free memory here.
8024         Fix test: Skip only "." and "..", before it could skip "?.".
8026 1999-03-22  David Martin  <dmartina@mailexcite.com>
8028         * wtools.c (real_input_dialog_help): Do a strncmp with the length
8029         of th same translated "Password:" string.
8031 Mon Mar 22 02:05:28 1999  Timur Bakeyev  <mc@bat.ru>
8033         * screen.c (file_entry_color): Dropped. Code went to file_compute_color.
8035         * screen (format_file): Add check, that avoids reported error, when
8036         long file list -> quick view -> brief file list gives core dump.
8038 1999-03-19  Jonathan Blandford  <jrb@redhat.com>
8040         * main.c (main): We don't want to restart if we hit cancel.
8042         * file.c (panel_operate): Ugly hack for GNOME.  We only treat the
8043         copy as if it were many files, and skip the only_one branch.
8045 1999-03-18  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8047         * utilunix.c (close_error_pipe): Inform parent of the return value
8048         of any command here.  This allows the desktop to launch a terminal
8049         only if it succeeded in mounting the directory.
8051 Thu Mar 18 16:09:09 1999  Timur Bakeyev  <mc@bat.ru>
8053         * panel.h, screen.c: Add an ability to center justify fields in the
8054         panel, in addition to left and right justification. Just for fun.
8055         Try =name in user format.
8057         * util.c (name_quote): Quote "~@^|;:". Hope, that's all :)
8059 1999-03-17  Jonathan Blandford  <jrb@redhat.com>
8061         * main.c (main): Put in a warning when run as root.
8063 1999-03-15  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8065         * boxes.c (symlink_dialog): Put this inside an "#ifndef
8066         HAVE_GNOME" since we now provide a nicer version of the dialog.
8068         * wtools.c (real_input_dialog_help): Removed unneeded #ifdef.
8070         * cmd.c (edit_symlink_cmd): Generate the title of the dialog after
8071         we have computed the source filename.
8072         (edit_symlink_cmd): Use g_strdup_printf() instead of g_strconcat()
8073         for better internationalization.
8075         * wtools.c: Removed unused function input_dialog_help_2().
8076         (real_input_dialog_help): Put this inside an "#ifndef HAVE_GNOME",
8077         because now the Gnome version implements its own pretty dialog.
8079 1999-03-14  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8081         * dlg.c (dlg_select_nth_widget): Handle the case where h->current
8082         points to NULL.
8084 1999-03-12  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8086         * file.c (erase_file): Here we need to mc_lstat(), not mc_stat().
8087         Since we use the resulting buf.st_size to update the progress, we
8088         need the size of unresolved links.  This also makes it consistent
8089         with screen.c:do_file_mark().
8091         * screen.c (select_item): Return immediately if this is a desktop
8092         panel.
8094 1999-03-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8096         * subshell.c (pty_open_slave): Glibc-2.1-based Linux kernels have
8097         grantpt() but they do lack SysV streams.  Handle this.  Noticed by
8098         Jakub Jelinek
8100 1999-03-11  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8102         * util.h: Added prototype for g_readlink().  Miggie boy should add
8103         prototypes when he adds public functions.
8105 1999-03-11  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8107         * utilunix.c (g_readlink): Fixed two bugs spotted by Morten
8108         Wellinder.  Boy, Morten has such a good eye!
8110 1999-03-10  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8112         * file.c (erase_dir): Erase metadata for directories as well.
8113         (erase_dir_iff_empty): Likewise.
8114         (copy_file_file): Delete/copy the metadata even for
8115         char/block/sock/fifo files.  Same thing for when copying symlinks.
8116         (copy_dir_dir): Delete/copy the metadata.
8117         (move_dir_dir): Delete/move the metadata.
8118         (recursive_erase): Delete the metadata.
8120 1999-03-08  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8122         * file.c (real_query_recursive): Removed an unused variable.
8124 1999-03-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8126         * utilunix.c (g_readlink): New function.  Wraps all the nonsense
8127         of readlink into a nice routine.
8129         * filegui.c: Support ui->ctx to be NULL, as file.c will set this
8130         to NULL for background operations.
8132         * background.c (do_background): Handle EINTR in dup2.
8134 Wed Mar 10 22:21:19 1999  David Martin  <dmartina@usa.net>
8136         * util.c (my_putenv): char* was used to store the length of a string
8138         * info.c (info_show_info): cast st_dev and st_ino when passing
8139         to printw.
8141 1999-03-08  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8143         * file.c (panel_operate): Always create the ctx->ui.  Federico,
8144         can you see if this change is correct from your point of view?
8146         * cmd.c (edit_symlink_cmd): Small fix to improve the messages
8147         printed.
8149 Tue Mar  2 22:54:50 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
8151         * util.c (name_quote): Quote '<' and '>'.
8153 Tue Mar  2 22:28:39 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
8155         * main.c (panel_clean_dir): New function: reset all counters of a
8156         WPanel and clean directory list.
8158         * various places: Use panel_clean_dir instead of clean_dir whenever
8159         a WPanel is available. This solves the problem reported by Enrico
8160         Scholz (screen refresh while panel reload with an old/now invalid
8161         panel->count).
8163 Mon Mar  1 00:18:48 1999  Timur Bakeyev  <mc@bat.ru>
8165         * mad.c: Tempnam() returns malloced buffer, so, free() it, not g_free().
8167 1999-02-26  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8169         * view.c (view_percent, view_update): Take an extra argument:
8170         update_gui, which controls whether we want to update the displayed
8171         region in the GUI version.
8173 1999-02-25  Jonathan Blandford  <jrb@redhat.com>
8175         * cmd.c (symlink_cmd): little change to handle the case when a
8176         desktop panel is passed in.
8178 1999-02-25  Owen Taylor  <otaylor@redhat.com>
8180         * fileopctx.h file.c: Moved recursive delete query
8181         dialog into gdialogs.c for GNOME.
8183 1999-02-24  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8185         * file.c: Moved FileCopyMode here (thanks to Wolfgang Scherer for
8186         pointing this out) and made it a typedef.
8188         * treestore.c (process_special_dirs): New function.
8189         (should_skip_directory): Load the settings from the global
8190         special.dirs file and from the
8192         * util.c: Test for glibc/linux and if so, do not use getwd, but
8193         getcwd as on this system it is better than popen ("pwd").
8195 1999-02-18  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8197         * setup.c: Declare extern int tree_panel_visible for the GNOME
8198         version.
8200 1999-02-17  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8202         * dir.c (if_link_is_exe): Made this function take in a directory
8203         argument as well -- the sought file may not be in the cwd, and
8204         file entries do not carry the directory the file refers to.
8206         * screen.c (do_enter_on_file_entry): Pass in the cpanel->cwd to
8207         if_link_is_exe().
8209 1999-02-16  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8211         * treestore.c (tree_store_rescan): Add code to skip scanning
8212         specially slow directories (/afs, /coda, /...).  It is of course,
8213         configurable.
8215         * setup.c: Export the profile_name setup routine.
8217 Tue Feb 16 21:21:32 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
8219         * popt.c: Compilation fix: on systems without setreuid use setuid.
8221 Tue Feb 16 21:18:08 1999  David Martin  <dmartina@usa.net>
8223         * achown.c: Make buttons fit in the (new) translated
8224         Advanced Chown dialog.
8226 1999-02-16  Alexander Savelyev  <fano@ham.kiev.ua>
8228         * subshell.c (exit_subshell): Use the size of the buffer, not
8229         sizeof of the pointer to the buffer.
8231 Sun Feb 14 02:59:09 1999  Timur Bakeyev  <mc@bat.ru>
8233         * utilunix.c (my_system): Fix the order of preferences, as setuid
8234         more desirable on BSD systems. Terminate execl[p]() with NULL, as
8235         this is formally correct.
8237 1999-02-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8239         * dir.c (do_load_dir): Added missing calls to tree_store_end_check.
8241         * find.c (add_to_list): Pass the data pointer as well.
8243 Fri Feb 12 06:36:58 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
8245         * utilunix.c (my_system): Compilation fix: on systems without
8246         setreuid use setuid.
8248 1999-02-11  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8250         * panel.h (WPanel): Removed unused field "corbadat".
8252 1999-02-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8254         * screen.c: Make delete key delete files.
8256         * dir.c (do_reload_dir): Add a couple of missing calls to tree_store_end_check.
8258 1999-02-10  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8260         * main.h: Added prototype for main_corba_register_server().
8262 1999-02-09  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8264         * view.c (search): Provide GNOME specific code for the search progress
8266         * treestore.c: Add a new hook system to hint a tree freeze/thaw.
8268         * setup.c: In the GNOME version, we do not show the dot files by default.
8270 1999-02-08  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8272         * file.c (copy_file_file): Add support for the GNOME metadata here.
8273         (move_file_file): Add support for the GNOME metadata here.
8275 1999-02-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8277         * treestore.c   (tree_store_add_entry): Use g_new0 to allocate the tree_entry.
8279         (tree_store_notify_add): Close, but no cigar.  The
8280         bug was deeper:  This list keeps names, not tree_entries.
8282 1999-02-07  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8284         * treestore.c (tree_store_notify_add): A tree_store_add_fn wants a
8285         string, not a tree_entry, so pass a string to it.
8287 1999-02-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8289         * treestore.c: Revert all of the stack changes.  Now the treestore
8290         is again non-re-entrant.  Being re-entrant was only covering up for
8291         bugs in other places.
8293         Now we postpone notifications for additions at
8294         tree_store_end_check, not before.
8296 1999-02-06  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8298         * treestore.c (tree_store_remove_entry): Removed unused code for
8299         base_sublevel computation.
8301 Sun Feb  7 06:11:48 1999  Timur Bakeyev  <mc@bat.ru>
8303         * Makefile.in: Change calls to xmkdir to mkinstalldirs - this is more
8304         GNU-like :)
8306         * xmkdir removed - we have mkinstalldirs.
8308 1999-02-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8310         * cmd.c (view_other_cmd): Do not use \r in translatable strings.
8312 1999-02-04  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8314         * widget.c (push_history): Only do check the history headings if
8315         the widget has a history entry bound to it.
8317 1999-02-03  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8319         * treestore.c (tree_store_start_check, tree_store_mark_checked,
8320         tree_store_end_check): Use a stack for check_name.  There are far
8321         too many instances that might call the end_check.
8323 Wed Feb  3 23:55:54 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
8325         * widget.c (history_put): set the access rights correctly when
8326         the history file is created initially. Don't save the history
8327         if we can't set the access rights.
8329 1999-02-01  Jonathan Blandford  <jrb@redhat.com>
8331         * setup.c: save we_can_afford_the_speed
8333 Wed Feb  3 22:27:04 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
8335         * util.c (strip_password): Extended to find the URL in the first
8336         parameter. The second parameter tells whether it should search the
8337         URL (indicated by known prefixes) in the first parameter or whether
8338         the first parameter is a URL without a prefix ("ftp://", "/#ftp:",
8339         "/#mc:").
8341         * main.c (directory_history_add): Strip the password (if any) from
8342         the freshly added value.
8344         * widget.c (push_history): ditto. There's a ugly special casing
8345         necessary for the network and ftp link dialogs (URLs are entered
8346         with out prefix).
8348         * widget.c (history_put): Restrict read and write access to the
8349         history file to the owner (Just in case I forgot to strip passwords
8350         somewhere).
8352 Mon Feb  1 00:43:15 1999  Timur Bakeyev  <mc@bat.ru>
8354         * screen.c (to_buffer): Code of the function rewritten, as a side
8355         effect added J_CENTER (who needs this?). Also, justification flags
8356         got twins with _FIT suffix, which tries to fit name in the field with-
8357         out truncation (uses name_trunc()). This unifies behavior of CList
8358         variants and text-bases widgets.
8360         * screen.c: Remove HAVE_GNOME wrappers around string_file_[name|owner|
8361         group]() - not necessary, to_buffer() doing this work.
8363 Sun Jan 31 19:49:00 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
8365         * hotlist.c (add_new_entry_input, add_new_group_input): Make the
8366         quick_widget arrays static and various changes needed because they
8367         are now static. add_widgets_i18n recalculates button positions
8368         which get lost when the quick_widget arrays are non static.
8370         * screen.c (to_buffer): NULL terminate string when using strncpy
8372         * setup.c: Save and restore new option ftpfs_first_cd_then_ls.
8374 1999-01-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8376         * file.c (panel_operate_generate_prompt): Removed the cmd_buf
8377         argument, since it is a global variable anyway (this function is
8378         only called once from file.c, and the global cmd_buf was being
8379         passed in).
8380         (panel_operate): Do not pass cmd_buf to
8381         panel_operate_generate_prompt().
8382         Thanks to Alexander Savelyev <fano@vcom.kiev.ua> for noticing this.
8384 1999-01-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8386         * achown.c (XTRACT): Add missing call to _().
8388 1999-01-26  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8390         * panel.h: Fixup #includes.
8392 1999-01-26  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8394         * cons.saver.c: Removed glib from the suid app
8396 Wed Jan 27 03:17:44 1999  Timur Bakeyev  <mc@bat.ru>
8398         * Converted memory management to Glib. Now we use g_new()/g_malloc()/
8399         g_strdup()/g_free() routings. Also, copy_strings() replaced by
8400         g_strconcat(), strcasecmp() -> g_strcasecmp(),and sprintf() by
8401         g_snprintf().
8403         * Some sequences of malloc()/sprintf() changed to g_strdup_printf().
8405         * mad.[ch]: Modified, to work with new GLib's memory management. Fixed
8406         a missing #undef for tempnam, which caused dead loop. Add several new
8407         functions to emulate GLib memory management.
8409         *main.c, mad.[ch]: Add a new switch  "-M", which allows to redirect MAD
8410         messages to the file.
8412         * util.[ch], utilunix.c: Modified, deleted our variants of strcasecmp()
8413         and strdup() - we have g_ equivalences. Remove get_full_name() - it is
8414         similar to concat_dir_and_file(). Some other tricks with g_* functions.
8416         * global.h: Modified, extended. Now it is main memory management include -
8417         i.e. all inclusions of <stdlib.h>, <malloc.h>, <glib.h>, "fs.h", "mem.h",
8418         "util.h" and "mad.h" done there. This eliminates problem with proper or-
8419         der of #include's.
8421         * All around the source - changed order of #include's, most of them gone
8422         to global.h (see above), minor changes, like "0" -> NULL in string func-
8423         tions.
8425 1999-01-25  Alexander Savelyev  <fano@vcom.kiev.ua>
8427         * ext.c (exec_extension): Always use /bin/sh.  Not the user
8428         shell.
8430 1999-01-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8432         * treestore.c (tree_store_remove_entry_remove_hook): Missing
8433         function.  To remove a notification hook.
8434         (tree_store_notify_add, tree_store_add_entry_add_hook,
8435         tree_store_remove_entry_add_hook): New functions to notify of
8436         additions to the treestore.
8438         * tree.c (tree_destroy): Remove the callback hook when we go
8439         away.
8441 1999-01-21  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8443         * option.c (init_configure): One line patch from Alexander
8444         Savelyev to translate all strings.
8446 1999-01-18  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
8448         * file.c: Killed operation_names: they seemed same to op_names to
8449         me, and compilation failed on them (initializer element is not a
8450         constant). Maybe Miguel tagged too many strings for localization?
8451         :-).
8453         * ext.c: we use /tmp in "creative" way: creating there file and
8454         then executing it. I do not see how it is needed. Marked with FIXME.
8456 Thu Jan 21 01:11:24 1999  Timur Bakeyev  <mc@bat.ru>
8458         * mad.[ch], util.[ch]: commit changes, that allow coexist (temporary)
8459         GLib'ed VFS and not still converted MC itself.
8461 1999-01-20  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8463         * treestore.c (tree_store_start_check): Use mc_stat(), not stat().
8464         (tree_store_rescan): Use mc_lstat(), not lstat().
8466 Tue Jan 19 05:28:04 1999  Timur Bakeyev  <mc@bat.ru>
8468         * ext.c, filenot.c, main.c, screen.c, treestore.c: add missed #include's
8469         and moved glib.h so, it follows "fs.h", but precedes "util.h" and "mad.h".
8470         There were conflicts during compilation with MAD and GLibed vfs.
8472 Mon Jan 18 21:23:29 1999 Paul Sheer  <psheer@obsidian.co.za>
8474         * cmd.c: update_panels (UP_OPTIMIZE, UP_KEEPSEL); instead
8475         of reread after editing a file.
8477 1999-01-18  Arturo Espinosa  <arturo@nuclecu.unam.mx>
8479         * file.c: Use N_ instead of _ for some of Miguel's last tags.
8481 1999-01-18  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8483         * file.c: Tag some more strings for localization.
8485 1999-01-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8487         * cmd.c (mkdir_cmd): Please, check your pointer usage.
8489 Thu Jan 14 13:18:58 1999  Timur Bakeyev  <mc@bat.ru>
8491         * screen.c (string_file_[owner|group]): Workaround the fact, that some
8492         systems have user and group names greater than 8 symbols. Now we trun-
8493         cate them.
8495 1999-01-13  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8497         * treestore.c (tree_store_load): Use g_return_val_if_fail(), not
8498         g_return_if_fail().
8499         (tree_store_rescan): Added parentheses to clarify || and &&.
8501         * tree.c (tree_add_entry): Removed unused variable.
8503         * treestore.h: Added prototype for tree_store_start_check_cwd().
8505 1999-01-13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8507         * view.c (search): Missing condition.
8509         * treestore.c (tree_store_opendir): Simplistic fix.  This is not
8510         quite correct.
8512 1999-01-12  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8514         * panelize.h: Added prototype for do_external_panelize().
8516         * screen.c (move_selection): Unused variable fixes for HAVE_X.
8518         * boxes.c (configure_vfs): Removed an unused variable.
8520 1999-01-12  Jonathan Blandford  <jrb@redhat.com>
8522         * cmd.c (mkdir_cmd): now mkdir_cmd will accept relative, and
8523         absolute directories.
8525 Tue Jan 12 13:40:46 1999  Timur Bakeyev  <mc@bat.ru>
8527         * gtkedit(syntax.c): Fixed a typo in Pascal syntax.
8529 1999-01-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8531         * treestore.c (tree_store_save): Add signature for version 2.0 of
8532         the file format.
8534 1999-01-11  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8536         * file.c (do_file_error): Made static.
8537         (query_recursive): Have cases for background/foreground operation.
8538         (do_file_error): Likewise.
8540         * background.c: Removed the bg_ctx global, since now all the
8541         contexts are carried around by the functions that actually need
8542         them.
8544         * fileopctx.h (FileOpContext): Moved the op_preserve field to here.
8546         * filegui.c (file_mask_dialog): Removed the ui assertion, since
8547         now the op_preserve field is kept in the main context structure.
8549 1999-01-11  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8551         * util.c: Provide workarounds for Linux kernel bug.
8553 Sun Jan 10 02:18:33 1999  Timur Bakeyev  <mc@bat.ru>
8555         * screen.c(string_file_size): Fixed (incorrect?) printing of device num-
8556         bers. Major should never be greater 255.
8558 1999-01-08  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8560         * dir.c (handle_dirent): Use the tree_store now.
8561         (handle_path): ditto.
8562         (do_load_dir): ditto.
8563         (do_load_dir): ditto.
8564         (do_reload_dir): ditto.
8565         (do_reload_dir): ditto.
8567         * treestore.c (tree_store_save): New file
8568         (encode): New routine used to encode pathnames in a safe way that
8569         are saved to the mc/.tree file.
8570         (decode): New routine, used to decode the pathnames we encoded in
8571         the step above.  Ain't love grand?
8573         * tree.c (load_tree): Kill dead code.
8575         Moved all of the tree store information into a new file:
8576         treestore.  To be reused by the Gnome code.
8578 1999-01-08  Ilya Zakharevich  <ilya@math.ohio-state.edu>
8580         * popt.c: OS/2 and Windows NT portability fix.
8582 1999-01-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8584         * file.c (panel_operate_flags): Only show this dialog box if it is
8585         a copy or move operation
8587 1999-01-06  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8589         * background.c (do_background): Make it a bit saner.  Now we store
8590         a per-child-process FileOpContext structure.
8592         * fileopctx.h: New file with declarations for the file operation
8593         context structure.
8595         * fileopctx.c (file_op_context_new): New function to create a file
8596         operation context with the default file mask values.
8597         (file_op_context_destroy): New function to destroy a file
8598         operation context and its associated UI, if appropriate.
8600         * filegui.h: Use complete prototype for fmd_init_i18n().
8602         * filegui.c (FileOpContextUI): New structure that describes the UI
8603         and internal data for file operation contexts in the text mode
8604         version.
8605         (file_op_context_create_ui): Renamed from create_op_win() and
8606         made it use a context instead of global variables.
8607         (file_op_context_destroy_ui): Likewise, renamed from
8608         destroy_op_win().
8609         (fmd_widgets): Removed an #ifdef HAVE_XVIEW bit and moved the
8610         initialization of the result pointers to file_mask_dialog(), as we
8611         need to use the pointers to the fields inside the file op context now.
8612         Made all the functions use a file operation context.
8613         (file_mask_dialog): Always call fmd_init_i18n(); it will take care
8614         of idempotence by itself.
8615         (fmd_init_i18n): Now the code that makes sure this function is
8616         only called once is here.
8618         * cmd.c (check_for_default): Make it use a file operation context.
8619         * tree.c (tree_copy): Likewise.
8620         (tree_move): Likewise.
8621         (tree_rmdir_cmd): Likewise.
8623         * file.c: Removed file_progress_replace_progress and
8624         file_progress_replace_filename -- they are only used in filegui.c
8625         as part of the UI for the file operation context.
8626         (panel_operate_generate_prompt): Made static.
8627         (panel_operate_generate_prompt): Always call fmd_init_i18n(); it
8628         will take care of idempotence by itself.
8629         (panel_operate): Removed the panel_operate_def() function, and
8630         made panel_operate() take an extra "ask_user" argument.
8631         (query_recursive): Made static.
8633         * background.c (background_attention): Made static.
8634         (register_task_running): Made static.
8635         (do_background): Now takes a file operation context as an
8636         argument.  It stores the pid of the child there.
8638         * Makefile.in: Added fileopctx.[ch].
8640 1999-01-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8642         * widget.c (listbox_new): Assign l->height.
8644 1999-01-03  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8646         * main.c (update_one_panel_widget): GNOME version does the panel
8647         update here (this is an optimization, as we do not want do_refresh
8648         to do anything.
8650         * dialog.c (do_refresh): Remove this optimization as it was
8651         disabling the repainting of the screen contents.
8653         * hotlist.c (done_hotlist): The hotlist might not be loaded
8654         anymore.
8656 1999-01-02  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8658         * widget.c (listbox_new): Under GNOME, height of the listbox might
8659         be less than zero (due to LINES/COLS being set to zero there).  So
8660         for bow, set the height to 1.  This needs to be properly computed
8661         in x_create_listbox.
8663         * main.c (main): Do not load the hotlist here anymore.   We
8664         auto-load it on the setup(?).
8666 1998-12-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8668         * main.c (main): Removed old, unused code.
8669         (setup_panels_and_run_mc): Register the corba server here, not
8670         before, as the program is not ready to accept any commands yet.
8672         * screen.c (panel_set_sort_order): New routine to set the sorting
8673         mode.
8674         (panel_re_sort): New routine to force a resort on a panel.
8676         * main.c (sort_cmd): Use the new routines.
8678 1998-12-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8680         * cmd.c (check_for_default): Make this compile.
8682 Tue Dec 29 22:25:34 1998  Timur Bakeyev  <mc@bat.ru>
8684         * mountlist.c: Compress all xBSD systems to one line and add check
8685         for MOUNT_UFS - it seems, that 4.4BSD and 4.4BSD2 systems different-
8686         ly handles FS names. (currently affects BSDI and FreeBSD)
8688 Tue Dec 29 16:34:02 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
8690         * file.c (progress_update_one): Ignore files in subdirectories
8691         when panel totals haven't been computed.
8693         (erase_dir, erase_file): update progress bar (i.e. make it work
8694         for OP_DELETE).
8696         (panel_operate_flags): Don't compute panel totals for OP_MOVE.
8697         When moving files on the same filesystem computing totals might
8698         last much longer than the actual move operation.
8700         (various places): Adaptations for the above changes.
8702 Mon Dec 28 22:15:43 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
8704         * slint.c (try_alloc_color_pair): Changed hardcoded values into
8705         defines.
8707 Mon Dec 28 20:22:59 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
8709         * color.c, text.c: Added color "stalledlink" which is used for
8710         stalled symbolic links. Formerly "viewunderline" was used for
8711         this (IMO bad because function and name didn't match).
8712         According to the man page the color keyword for executable files
8713         is `executable' and not `execute' -- changed.
8715         * color.c, color.h: When using SLang some color indexes are not
8716         freely choosable (DEFAULT_COLOR clashed with A_BOLD_REVERSE).
8717         Solved by adding holes in color_map.
8719         * find.c (do_search): fixed possible memory leak
8721 Sat Dec 26 09:53:39 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
8723         * layout.c: include sys/ioctl.h to get definition of TIOCGWINSZ
8724         (fixes problem with screen resize).
8726 Fri Dec 25 20:19:57 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
8728         * file.c (panel_operate_flags): Don't change file progress count and
8729         size twice for every file.
8731         (panel_compute_totals): Initialize return values to zero before
8732         calculating anything.
8734         (panel_operate_def, panel_operate): return a value
8736 Thu Dec 24 19:00:05 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
8738         * screen.c (recalculate_panel_summary): new function which recalculates
8739         the summary information for the mini-status.
8741         * screen.c (panel_reload): use recalculate_panel_summary
8743         * screen.c (do_file_mark): Honor that dirsizes computed is now a
8744         per entry flag.
8746 Thu Dec 24 18:53:16 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
8748         * option.c: Added Compute Totals to the configuration dialog.
8750         * file.c (compute_dir_size): made non static
8752         (panel_operate_flags): Don't compute directory sizes if verbose
8753         operation are off.
8755 Thu Dec 24 18:42:52 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
8757         * cmd.c (dirsizes_cmd): Rewritten to use compute_dir_size as suggested
8758         by Miguel, i.e. get rid of du. Now the dirsizes_cmd honors a
8759         selection and computes sizes only for marked directories. Possible
8760         improvement: add a dialog (or C-C?) to abort computation.
8762         * dir.h (file_entry), panel.h (WPanel): Made the dirsizes computed
8763         flag a per file flag.
8765         * dir.c, find.c, panelize.c, screen.c: Adapted to new file_entry and
8766         WPanel structure.
8768         * features.inc: Deleted DUSUM information
8770         * mc.hlp: remade because of changes in doc/mc.1.in
8772 1998-12-22  Jonathan Blandford  <jrb@redhat.com>
8774         * file.c: add a HAVE_GNOME only function
8776 Mon Dec 21 22:39:35 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
8778         * mountlist.c: Define xBSD on FreeBSD.
8780         * main.c (parse_an_arg): New function, popt callback. Option
8781         parsing in gmc was broken. The gnome*_init_with_popt_table free
8782         the option tables and gmc tried to use the option tables later.
8784         * main.c (handle_args): In the Gnome edition don't parse the
8785         options a second time.
8787         * boxes.c (configure_vfs), setup.c: Deleted obsolete options.
8788         tar.gz files are now always unzipped to a temporary file on disk.
8790 Mon Dec 21 14:28:55 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
8792         * filenot.c (my_mkdir_rec): Someone broke this completely by deleting
8793         a line. Funny things happen if you use an already freed pointer.
8794         Improved error handling: try to make directories recursively until
8795         mkdir succeeds or fails with errno != ENOENT. Now you will get the
8796         correct error message when you don't have permission to create a
8797         directory.
8799         * mountlist.c: Deleted function prototypes for strdup and strstr,
8800         they might conflict with definitions in the system header files.
8802 Wed Dec 16 14:41:15 1998  Paul Sheer  <psheer@obsidian.co.za>
8804         * gtkedit.c, editwidget.c: gnome selection now works with the
8805         editor.
8807 Wed Dec 16 06:27:00 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
8809         * screen.c (Xtry_to_select): Don't select a similar file when
8810         "name" can't be found in the panel (when deleting files the
8811         selection jumped from the deleted "file" to a directory which
8812         started with the same character as "file", annoying).
8813         Strip known vfs suffixes from "name" before trying to select
8814         (I think Timur made this suggestion a few months ago). Know the
8815         vfs is mature enough to do this.
8817 1998-12-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8819         * dir.c (link_isdir): Remove unused variable.
8821 Sun Dec 13 18:35:05 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
8823         * screen.c (panel_reload): Don't set panel->selected to zero here,
8824         keep it's value if possible or set it to panel->count - 1 (I disliked
8825         the jumping cursor when deleting files).
8827 1998-12-11  Michael Fulbright  <msf@majestic.labs.redhat.com>
8829         * file.c (panel_operate_generate_prompt): Changes the text
8830         for GNOME dialogs.  --jrb
8832 1998-12-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8834         * main.c (try_to_select): We do not need to select the item
8835         manually in this case, as the X code will do this for us.
8837 Fri Dec 11 00:05:50 1998 Paul Sheer  <psheer@obsidian.co.za>
8839         * syntax.c, slint.c, color.c, color.h: editor now has its
8840         own color configuration so you can set editor background
8841         colors with MC_COLOR_TABLE.
8843 1998-12-10  Paul Sheer  <psheer@obsidian.co.za>
8845         * syntax.c: perl syntax highlighting. syntax highlighting
8846         bug fixes for python and sh.
8848         * edit.c: new method of finding line offsets from line
8849         number (for cooledit for python stuff).
8851 Mon Nov 30 21:10:30 1998  Pavel Machek  <pavel@bug.ucw.cz>
8853         * file.c (copy_file_file): minor code beatifying: replace goto's
8854         with while loops (it is both shorter and nicer :-)
8855         (panel_operate): hopefully done WANT_STALE_DATA right. We really
8856         should kill ftpfs_hint_reread hack soon.
8858         * cmd.c (dirsizes_cmd): report error if you are on non-local
8859         filesystem. (As opposed to silently failing.)
8861 1998-12-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8863         * screen.c (panel_reload): Set panel->selected to zero here, this
8864         will at least guarantee that we do not try to fetch anything
8865         outside of bounds.
8867         * main.c: The bar2 is gone as well.
8869 Tue Dec  8 19:19:39 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
8871         * cmd.c (dirsizes_cmd): Fixed possible buffer overflow
8873 1998-12-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8875         * screen.c (do_enter): Return the value from this.
8877 1998-12-06  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8879         * dir.c (link_isdir): Fetch the information from
8880         file->f.link_to_dir, since we already have it.
8882         * dir.h (file_entry): Removed the `cache' field in this structure,
8883         as it was only used for the deprecated Xview version.
8884         Also, removed the `exists' field, as it was not being used anywhere.
8886         * dir.c: Removed all occurrences of file_entry->cache.
8888         * find.c: Removed all occurrences of file_entry->cache.
8890         * panelize.c: Removed all occurrences of file_entry->cache.
8892         * screen.c (do_enter_on_file_entry): New public function that
8893         implements the functionality in do_enter(), but based on a file
8894         entry rather than on a panel.
8895         (do_enter): Use do_enter_on_file_entry() with the selection of the
8896         panel as an argument.
8898 1998-12-04  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8900         * cmd.c, tree.c: Updated to the new file.c api.
8902         * file.c: (copy_file_file, copy_dir_dir, move_file_file,
8903         move_dir_dir): Updated to work with the new updating stuff.
8905         * setup.c: New configuration option to compute the totals to be
8906         transfered.
8908         * file.c (compute_dir_size, panel_compute_totals): New routines to
8909         compute the total amount of information that is going to be
8910         transfered.
8912 1998-12-03  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8914         * ext.h: GNOME edition uses a different set of .ext files.
8916         * lib/mc-gnome.ext.in: New file with GNOME-specific bindings.
8918 1998-12-02  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8920         * GNORBA integration.  We now produce two binaries: gmc and
8921         corba-gmc (that way, I don't interfere with other's work).
8923         * Added prototypes, made private functions static, clean up
8924         various silly warnings.
8926         * main.c (main): Removed crufty init_sigfatal code.
8928         * cmd.c (do_link): More slang dependencies are fixed for the X
8929         ports.
8931         * keys.h (enum): Moved key definitions here.
8933         * tty.h: Move towards slang freedom for the GNOME port.
8935 1998-12-01  Jonathan Blandford  <jrb@redhat.com>
8937         * file.c (panel_operate_generate_prompt): moved from filegui.c
8939 1998-11-30  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8941         * panel.h (WPanel): Added the missing tree/pane/view_table fields
8942         to the Gnome part of the structure.
8944 1998-11-26  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8946         * cons.saver.c (main): Make sure stderr is always valid.
8947         (main): Also check that stderr_fd is not -1.
8949 Wed Nov 25 22:16:19 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
8951         * cmd.c (dirsizes_cmd): Quote characters with a special meaning
8952         when passing it to du.
8954 1998-11-23  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8956         * dlg.c (dlg_try_hotkey): Removed unused declaration of input_event.
8957         (dlg_key_event): Return 1 if handled the tab key.
8959         * filegui.h: Added prototypes for file_progress_show_{source,target,deleting}().
8961 Sun Nov 22 22:30:50 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
8963         * autogen.sh: replaced "cat *.m4" with a call to aclocal. Concatenate
8964         mc-aclocal.m4 and gettext.m4 to acinclude.m4. The other way round
8965         would have been to add three more m4 files to the replaced cat line
8966         (including cond.m4 from automake-1.3b).
8968         Fixed OBJ_DIR handling.
8970 Sun Nov 15 00:37:58 1998  Pavel Machek  <pavel@bug.ucw.cz>
8972         * mad.c (mad_tempnam): needed wrapper for tempnam added
8974 1998-11-17  Miguel de Icaza  <miguel@nuclecu.unam.mx>
8976         * dlg.c (destroy_dlg): Do not refresh.
8978         * filegui.c: New file.  We keep all of the user interface code for
8979         the text edition in this file now.  This should be a per-GUI port
8980         file.
8982 1998-11-11  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8984         * panel.h (WPanel): Instead of the "#ifdef GNOME" mess in the
8985         WPanel structure, we now have a single opaque pointer to UI data,
8986         called port_ui.  GUI stuff specific to each port should be here.
8987         This is a work in progress.
8989 1998-11-10  Federico Mena Quintero  <federico@nuclecu.unam.mx>
8991         * setup.c: Removed the icons_snap_to_grid and
8992         want_transparent_{icons,text} options.
8994 Thu Nov  5 12:10:10 1998  Pavel Machek  <pavel@atrey.karlin.mff.cuni.cz>
8996         * file.c (panel_operate): check for null pointer before passing it
8997         to mc_setctl
8999 Wed Nov  4 17:51:43 1998  Pavel Roskin  <pavel_roskin@geocities.com>
9001         * src/findme.h: added from popt-1.2 by RedHat
9003         * src/Makefile.in: appropriate changes to use new popt
9005 Sun Nov  1 20:59:05 1998  Pavel Machek  <pavel@bug.ucw.cz>
9007         * file.c (erase_file): translated goto into while loop (it is both
9008         shorter AND cleaner)
9010         * subshell.c (feed_subshell): do NOT print anything if we get
9011         errors/eofs from read(subshell) - this fixes (or at least hides)
9012         nasty bug where typing "exit" on mc prompt prints lots of garbage
9013         and falls into infinite loop. Someone with better knowledge should
9014         read feed_subshell(), and make it handle errors properly. (Why do
9015         we ignore EIO for example?)
9017 Sun Oct 18 22:56:17 1998  Pavel Machek  <pavel@bug.ucw.cz>
9019         * view.c: we now rely on sfs to do file decompressing for us. That
9020         has advantage of displaying #ugz at first line, so user knows what
9021         we are doing behind his back
9023         * view.c: fix indentation, fallback to read whole file if mmap fails.
9025 1998-11-01  Federico Mena Quintero  <federico@nuclecu.unam.mx>
9027         * setup.c: #ifdef'ed out stuff in the menus that will get changed
9028         as I rewrite the desktop part.
9030 1998-10-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9032         * layout.c (print_vfs_message): Use g_snprintf instead of
9033         vnsprintf.
9036 1998-10-30  Sung-Hyun Nam  <namsh@lgic.co.kr>
9038         * color.c, slint.c: support transparent background if user use
9039         'default' keyword for background color.
9041 Mon Oct 26 00:31:53 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
9043         * configure.in, Make.common.in: Split CPPFLAGS into CPPFLAGS and
9044         MCCPPFLAGS. The last one contains references to variables which are
9045         not available in every Makefile.in (namely intl/Makefile.in). Without
9046         the split `-I ' was passed to the compiler (the compiler on DU 4.0
9047         interprets -I as "don't search include files in /usr/include").
9049 Thu Oct 22 20:41:50 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
9051         *  configure.in (subshell): Don't define inline to be empty
9052         when compiling with non-gcc compiler. AC_C_INLINE (invoked in
9053         AM_GETTEXT_GNU) already defines inline if necessary.
9055 Thu Oct 22 20:41:16 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
9057         * panelize.c (do_external_panelize): Not zeroing some fields
9058         in cpanel led sometimes to segfaults.
9060 Thu Oct 22 20:31:17 1998  Pavel Roskin  <pavel_roskin@geocities.com>
9062         * lib/mc.ext.in: *.jar and *.JAR treated like *.zip and *.ZIP
9064 Fri Oct 16 12:10:56 1998  Pavel Machek  <pavel@atrey.karlin.mff.cuni.cz>
9066         * cmd.c (quick_chdir_cmd): you must check for return code of
9067         do_cd(). (Fixed error for here, but more such bugs are present in
9068         src/ tree. Or maybe move error checking into do_cd?)
9070         * command.c: warn user if he is pressing enter while on non-local
9071         filesystem. (Prev. behavior was fail silently to do anything,
9072         which is _bad_.)
9074 Mon Oct 12 22:47:53 1998  Pavel Machek  <pavel@bug.ucw.cz>
9076         * file.c (copy_file_file): MCCTL_SETREMOTECOPY is no longer used
9078         * file.c (copy_file_file): do_reget is now correctly done using
9079         open()/lseek() pair
9081 Wed Oct  7 22:20:37 1998  Pavel Machek  <pavel@bug.ucw.cz>
9083         * file.c: Ask user if (s)he wants to delete incomplete file
9085 Sun Oct 11 20:21:20 1998  Peter Kleiweg  <kleiweg@let.rug.nl>
9087         * mfmt.c (main): When there are an even number of empty lines
9088         between messages, all goes well, but when the number of empty
9089         lines between messages is odd, the program fails.
9091 Sun Oct 11 20:11:16 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
9093         * setup.c: Option ftpfs_use_unix_list_options was saved from
9094         and restored to the wrong variable (ftpfs_use_passive_connections).
9096 Mon Oct  5 21:33:14 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
9098         * screen.c (parse_display_format): Don't dereference NULL pointer
9099         when format string is an empty string.
9101 Mon Oct  5 19:59:56 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
9103         * main.c (translate_url_to_new_syntax): Translate ftp:// to an
9104         absolute path instead of a relative path (fix to "hotlist" bug
9105         reported by Andrej). This means we drop the "return to last dir"
9106         feature for ftpfs (when leaving ftpfs with ".." returns to the
9107         directory visited before entering the ftpfs).
9109 Sat Oct  3 00:54:23 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
9111         * gtkedit/Makefile.in (EDITOBJS): removed one wrong \\ (line
9112         continuation)
9114 Thu Oct  1 18:43:34 1998  Pavel Roskin  <pavel_roskin@geocities.com>
9116         * file.c: Commented out search for egrep because execvp() does
9117         it itself
9119         * utilunix.c: vfs_uid should not be used if VFS is disabled
9121 Tue Sep 29 17:53:56 1998  Pavel Machek  <pavel@atrey.karlin.mff.cuni.cz>
9123         * main.c: removed stupid reference to {sfs,extfs}_which
9125         * screen.c: fixed highlighting to go for longest match if it does
9126         not find exact match. This is so that it works well with vfs (and
9127         needs _NO_ knowledge about vfs layer).
9129 Tue Sep 29 14:02:56 1998  Pavel Machek  <pavel@atrey.karlin.mff.cuni.cz>
9131         * layout.c (print_vfs_message): fixed buffer overrun by
9132         vsnprintf. Unfortunately I have no clue how to do this portably.
9134 Tue Sep 29 11:42:32 1998  Pavel Roskin  <pavel_roskin@geocities.com>
9136         * setup.c: Corrected code which prevents using icon view by
9137         ports which don't support it
9139 Mon Sep 28 21:55:13 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
9141         * find.c: Changed hotkey of the continue-button (both Chdir and
9142         Continue used `C').
9144         * Makefile.in: search config.status in builddir and not in rootdir,
9145         i.e. make it compile for builddir != srcdir
9147 Wed Sep 23 14:06:44 1998  Pavel Machek  <pavel@atrey.karlin.mff.cuni.cz>
9149         * src/file.c: Made file.c use new O_LINEAR mode (so copying from
9150         ftp works nicely, again)
9152 Fri Sep 18 14:15:43 1998  Pavel Roskin  <pavel_roskin@geocities.com>
9154         * src/mad.c: All messages are sent to stderr and terminate with \r\n
9156         * src/hotlist.c: Harmless memory leak fixed
9158         * xv/Makefile.in, xv/xvmain.c, xv/xvscreen.c: Minor fixes to
9159         make compilation of the XV port possible (currently without
9160         viewer).
9162 Thu Sep 17 07:32:23 1998  Norbert Warmuth  <k3190@fh-sw.de>
9164         * Makefile.in: After creating symlinks invoke another instance of
9165         make to build libvfs.a. Otherwise make will not know how to build
9166         the object files if symlinks have been created.
9167         Added target cleansourcelinks (invoked with make distclean).
9169 Tue Sep 15 22:41:24 1998  Paul Sheer  <psheer@obsidian.co.za>
9171         * edit.c, editwidget.c, gtkedit.c: fixed segfault when trying to
9172         edit a non-file under gmc.
9174 Tue Sep 15 21:52:00 1998  Norbert Warmuth  <k3190@fh-sw.de>
9176         * mc.hlp, doc/mc.1.in, doc/mc.sgml: updated my EMail address
9178 Tue Sep 15 20:51:42 1998  Norbert Warmuth  <k3190@fh-sw.de>
9180         * setup.c: save and restore new global variable/option
9181         ftp_use_unix_list_options
9183 Tue Sep 15 01:02:34 1998   Paul Sheer  <psheer@obsidian.co.za>
9185         * gtkedit: Directory added. This directory contains all the editor
9186         code modified to work with gnome. Mcedit now works properly under
9187         gnome with a slightly reduced set of features.
9189         * gscreen.c gscreen.h screen.c: Modified to respond to F4 on a file
9190         and start the new gtkedit internal editor.
9192 1998-09-14  Norbert Warmuth  <k3190@fh-sw.de>
9194         * file.c (move_dir_dir): Fixed severe bug reported by Andrew Pechenov
9195         <zx80@demo.ru> (losing files when moving directories cross filesystem
9196         boundaries): make sure erase_list is emptied always not only when we
9197         deleted files.
9199 Sat Sep 12 02:59:43 1998  Timur Bakeyev  <mc@bat.ru>
9201         * screen.c: Xtry_to_select() Remove extfs hack to the main.c. Change
9202         for() cycle to the x_basename() call (Thanks to Pavel Roskin).
9203         Add (key_callback) do_enter() to prevent warnings.
9205         * main.c: Rename cd_try_to_select() to the get_parent_dir_name(). Now
9206         it process VFS postfixes too. Reduced number of loops against prev hack.
9208 Fri Sep 11 15:27:59 1998  Pavel Machek  <pavel@ucw.cz>
9210         * screen.c: make cd .. from extfs file highlight it
9212 Tue Sep  8 13:10:32 1998  Pavel Roskin  <pavel_roskin@geocities.com>
9214         * autogen.sh: Don't destroy aclocal.m4 if "macros" directory
9215         is missing
9217         * layout.c: Use stdout instead of stderr in set_hintbar()
9219 Mon Aug 31 12:40:29 1998  Pavel Machek  <pavel@ucw.cz>
9221         * cmd.c: added view_file_cmd which asks user which file to view -
9222         _very_ useful with vfs (now you can browse web with mc: try
9223         /#url:http:||atrey.karlin.mff.cuni.cz|~pavel#uhtml)
9225 Thu Aug 27 19:52:45 1998  Pavel Roskin  <pavel_roskin@geocities.com>
9227         * Make.common.in: Don't define VERSION anymore
9229         * configure.in: this is the right place for VERSION definition
9231         * acconfig.h: does not include file "VERSION" anymore
9233         * config.h.in: rebuilt by autoheader
9235         * VERSION: removed from CVS and added to .cvsignore since it
9236         is rebuilt every time as configure is run
9238 1998-08-20  Raja R Harinath  <harinath@cs.umn.edu>
9240         * mad.h: Include stdlib.h/malloc.h first, to prevent prototypes
9241         from being clobbered by the subsequent macro defines.
9243 Wed Aug 12 15:56:46 1998  Pavel Roskin  <pavel_roskin@geocities.com>
9245         * edit.h: added "../" before some includes to avoid unnecessary
9246         "-I" options for the PC port makefiles.
9248 Sun Aug  9 22:39:12 1998  Janne Kukonlehto  <jtklehto@paju.oulu.fi>
9250         * mad.h (calloc): Added parentheses around the arguments as
9251         suggested by Steef Boerrigter <sxmboer@sci.kun.nl>.
9253 Fri Jul 31 09:04:35 1998  Pavel Roskin  <pavel_roskin@geocities.com>
9255         * syntax.c: makefile* will be highlighted as Makefile*
9257 1998-07-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9259         * main.c (translated_mc_chdir): Quick hack to make the old
9260         url-like pathnames to be used on the command line.
9262 1998-06-22  T.E.Dickey  <dickey@clark.net>
9264         * keyxdef.c: Fix for compiling with ncurses.
9266 Fri Jul 24 00:44:37 1998  Tom Tromey  <tromey@cygnus.com>
9268         * mc-local.m4 (AC_STRUCT_LINGER): Moved into macros/linger.m4.
9269         * autogen.sh: Include linger.m4 in aclocal.m4.
9270         * Makefile.in (GNOME_M4_FILES): Include linger.m4.
9272 Thu Jul 23 22:44:16 1998  Tom Tromey  <tromey@cygnus.com>
9274         * Makefile.in (aclocal.m4): Depend on all source files.  Include
9275         gnome-vfs.m4 and gnome-undelfs.m4.
9276         (GNOME_M4_FILES): New macro.
9277         * autogen.sh: Include gnome-vfs.m4 and gnome-undelfs.m4 in
9278         aclocal.m4.
9279         * configure.in: Use GNOME_VFS_CHECKS and GNOME_UNDELFS_CHECKS
9280         macros instead of in-line checks.  Create vfs/Makefile from
9281         vfs/Make-mc.in.
9283 Thu Jul 23 19:49:12 1998  Pavel Roskin  <pavel_roskin@geocities.com>
9285         * hotlist.c: corrected layout of the warning which appears
9286         if ~/.mc doesn't exist. Appropriate changes in translations.
9288 Wed Jul 15 00:41:01 1998    Paul Sheer  <psheer@obsidian.co.za>
9290         * edit.c, editwidget.c,            * syntax.c: Syntax
9291         editdraw.c, editmenu, editcmd.c:   highlighting for Pascal
9292         Added column text highlighting     added.
9293         and block movements.
9295 1998-07-04  Carsten Schaar  <nhadcasc@fs-maphy.uni-hannover.de>
9297         * main.c (main): 'session_management_setup' will be called after
9298         'gnome_init'.
9300 Wed Jun 18   Pavel Machek  <pavel@ucw.cz>
9302         * i18n.h: we do not want i18n in case of compiling standalone
9303         libvfs.so.
9305 Fri Jun  5 23:34:20 1998  Timur I. Bakeyev  <timur@comtat.kazan.ru>
9307         * screen.c (file_entry_color): take care about BSD core dumps
9308         which have names program.core instead of core
9310 Mon Jun  1 15:41:20 1998  Norbert Warmuth  <k3190@fh-sw.de>
9312         * main.c (translate_url_to_new_syntax): translate the common
9313         ftp url syntax to the syntax used by the new vfs code.
9315         (_do_panel_cd): First translate the path if necessary. This makes
9316         it possible to enter ftp://host on the command line and in the
9317         directory hotlist. We might need to move the translation code
9318         to the vfs layer if there are other places where we want to enter
9319         ftp://host.
9321 Mon Jun  1 12:33:08 1998  Alexander V. Lukyanov  <lav@yars.free.net>
9323         * configure.in: allowed to use `configure --with-included-gettext'
9324         on systems (like solaris) that have their own libintl
9326 1998-05-31  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9328         * complete.c (filename_completion_function): Use the vfs routines
9329         for name completion.
9331 1998-05-31  Jakub Jelinek  <jj@ultra.linux.cz>
9333         * complete.c (complete_engine): Fix completions.
9335 Sun May 31 10:23:01 1998  Norbert Warmuth  <k3190@fh-sw.de>
9337         * key.c (define_sequence): If a sequence clashes the last
9338         definition made will be used. This makes it possible to override
9339         wrong definitions in terminfo/termcap database with learn keys (or
9340         the appropriate entries in mc.lib and ~/.mc/ini).
9342         * widget.c (show_hist): Don't display the listbox partly
9343         off screen (the left panel's history started in column - 2).
9345         * keyxdef.c: include tty.h instead of myslang.h as suggested by
9346         Tamasi Gyorgy <gt_cosy@usa.net>
9348 Fri May 29 15:41:19 1998  Alexander V. Lukyanov  <lav@yars.free.net>
9350         * widget.c (update_input): this patch allows entering 8-bit
9351         characters in input fields without screwing attributes. (the
9352         same old sign extension...)
9354 Wed May 27 22:23:48 1998  Ed Cogburn  <ecogburn@greene.xtn.net>
9356         * lib/xterm.ti: The 'xterm-color' definition needs 'sgr0'. The tic
9357         program from ncurses 4.2 doesn't like the xterm.ti file that comes
9358         with mc.
9360 Wed May 27 15:29:01 1998  Alexander V. Lukyanov  <lav@yars.free.net>
9362         * key.c (get_key_code): characters with high bit set were input
9363         as 0x80 char when use_8th_bit_as_meta was set
9365 1998-05-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9367         * ext.h (MC_USER_EXT): New name for the per-user extension file
9368         (this needs redoing to concatenate this + the system stuff instead
9369         of the overwrite stuff we have now).  Now it is called the ~/.mc/ext-n
9371 Mon May 25 23:32:35 1998  Norbert Warmuth  <k3190@fh-sw.de>
9373         * editdraw.c (print_to_widget): Ifdef'd SLang specific code in order
9374         to make it compile with ncurses. Syntax highlighting in the
9375         internal editor is already disabled when SLang isn't used.
9377 1998-05-24  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9379         * widget.c (port_region_marked_for_delete): New per-port
9380         piece of code:  Provides a way for good selection killing.
9382 Sun May 24 02:45:03 1998  Norbert Warmuth  <k3190@fh-sw.de>
9384         * utilunix.c, util.h (errno_dir_not_empty): deleted
9386 Sat May 23 22:29:57 1998  Norbert Warmuth  <k3190@fh-sw.de>
9388         * file.c (check_dir_is_empty): New function which takes a path and
9389         returns -1 on error, 1 if there are no entries besides "." and
9390         ".."  in the directory path points to, 0 else. This function
9391         actually opens and reads the directory and doesn't do tricks we
9392         used to do with rmdir.
9394         * file.c (erase_dir, erase_dir_iff_empty): Use check_dir_is_empty
9395         to detect non empty directories. The old code tried to remove the
9396         directory and decided on errno whether the failure of rmdir was
9397         caused by a non empty directory or whether there was a different
9398         error.
9399         Unfortunately not every filesystem sets errno to EDIRNOTEMPTY if
9400         you try to delete a non empty directory. Namely the linux user
9401         space nfs server sets errno to EIO, Suns nfs server sets it to
9402         EEXIST and the AIX nfs server sets it to ??? (Steve reported
9403         problems on AIX so I guess AIX sets errno to a value we currently
9404         don't check).
9406 1998-05-18  Tamasi Gyorgy (gt_cosy@usa.net)
9408         * lib/mc.menu: 'Z' on 'tar.Z' and 'tar.z' files: '%f' -> '$1'.
9410         * lib/mc.ext.in.qnx.diff, lib/mc.menu.qnx.diff (QNX): modified
9411         'mc.ext.in' (tar -t: output to stderr); modified 'mc.menu' (tar is
9412         not GNU tar: doesn't know '-z'); support for '*.tar.F':
9413         'freeze'-compressed tar files [No automatic configure/install
9414         implemented: patches must be applied before running 'configure'
9415         (mc.ext.in.qnx.diff: this patch can be not only QNX-specific...)]
9417         * lib/Makefile.in: 'mc.ext.in.qnx.diff' and 'mc.menu.qnx.diff' added
9418         to DISTLIB.
9420         * slang/sldisply.c:
9422           SLTT_TRANSP_ACS_PATCH dependent code:
9424           The problem: some terminals (QNX/qansi*, SCO OS5/ansi [?]) map the
9425           whole upper half of the ASCII table to the lower half, when
9426           alt-char-set is activated with the smacs/as string-sequence. This
9427           means, that if 0 <= ch < 128 written to the terminal, it will be
9428           translated to (ch+128) automatically by the terminal: so not only
9429           the line-drawing characters can be written, when the alt-char-set
9430           is activated. It implicitly means, that space, NL, CR, etc.
9431           characters (exactly: anything besides the "standard" line drawing
9432           characters) can not be written directly to the terminal, when the
9433           alt-char-set is activated, because writing these characters
9434           doesn't cause an implicit/temporary switching-back to the standard
9435           char-set!
9437           The original code in SLang assumes that space, NL, CR, etc. can be
9438           printed when alt-char-set is activated. If SLTT_TRANSP_ACS_PATCH
9439           is defined, the modified code will not use this assumption.
9440           [Remark: the patch-code is not the most exact solution, but
9441           works...]
9443           QNX_QANSI_SLANG_COMPAT_ACS_PATCH dependent code:
9445           A more OS/terminal-specific solution for the problem mentioned
9446           above (->SLTT_TRANSP_ACS_PATCH).
9448           If QNX_QANSI_SLANG_COMPAT_ACS is defined, the default smacs/sa,
9449           rmacs/ae, acsc/ac [and sgr/sa, if it would be used!] command
9450           sequences will be replaced internally with the "old style"
9451           (pre-QNX 4.23) sequences in case of QNX/qansi terminals. Using
9452           these optional command sequences the terminal remains compatible
9453           with the original SLang code (without using the workaround-code
9454           enabled by defining SLTT_TRANSP_ACS_PATCH).
9456           Remark:
9458           Currently SLTT_TRANSP_ACS_PATCH is not auto-configured by
9459           'configure'. (Must be manually defined...)
9461           There is some (QNX-specific) auto-configuration hand-coded in the
9462           source:
9464             #ifdef SLTT_TRANSP_ACS_PATCH
9465             # if defined(__QNX__) && defined(QNX_QANSI_SLANG_COMPAT_ACS)
9466             #  undef SLTT_TRANSP_ACS_PATCH
9467             # endif
9468             #else
9469             # if defined(__QNX__) && !defined(QNX_QANSI_SLANG_COMPAT_ACS)
9470             #  define QNX_QANSI_SLANG_COMPAT_ACS 1
9471             # endif
9472             #endif
9474         * slang/slutty.c: "newtty.c_iflag &= ~(ECHO | INLCR | ICRNL);"
9475         ECHO(0x08) is a c_lflag bit, it means PARMRK(0x08) in c_iflag. (!?!)
9477         * src/file.c: 'do_reget' can be extern if (USE_VFS && USE_NETCODE),
9478         not if (USE_VFS).
9480         * src/find.c (search_content()): Variable 'i' "must be" 'int', not
9481         'char'. ["i == -1": (buggy?) WCC 10.6 doesn't convert automatically
9482         (int)(-1) to (char)(-1) (GCC does), so "comparison result always 0"
9483         warning produced. It is cleaner to define 'i' as 'int', than cast
9484         '-1' to 'char', because 'read()' returns 'int'.]
9486         * src/key.c (init_key()): Call load_xtra_key_defines() and clear
9487         'use_8th_bit_as_meta' by default under QNX, if a 'qnx*' terminal
9488         detected. (A saved config file (mc.ini) can override it later...)
9490         * src/key.h: Declare load_xtra_key_defines().
9492         * src/keyxdef.c: Provides a method to define some platform-specific
9493         additional key mappings. (e.g. QNX terminals can handle most of
9494         META-? combinations as ALT-?...) ('keyxdef.c' currently not listed
9495         in doc/FILES...)
9497         * src/layout.c: TIOCGWINSZ must be available (so <sys/ioctl.h> (?)
9498         included), because window-resizing code doesn't work, if not defined.
9500         * src/main.c: 'print_usage()' is reserved name in the QNX run-time
9501         library, so 'print_usage()' renamed to 'print_mc_usage()'
9503         * src/mouse.c (QNX): ncurses 1.9.8a ported to QNX doesn't provide the
9504         'SP' pointer as a global symbol in the library, so the keyok()
9505         emulation currently can not be used under QNX (4.24 & Watcom C 10.6
9506         release version).
9508         * src/slint.c (QNX): 'qansi*' terminals added to the color_terminals[]
9509         list.
9511         * src/subshell.c, src/utilunix.c (QNX): include <unix.h> to get
9512         prototype for exec*()!!! [See README.QNX/Section 1.4 about the
9513         dangerous "No prototype for <function>" warnings emitted by Watcom C,
9514         if <function> is a 'printf()'-style function having variable number
9515         of arguments and you compile your source with the default register
9516         calling convention!!!]
9518         * Makefile.in: 'keyxdef' module added to SRCS and OBJS.
9520         * <mc-root>/README.QNX: QNX-specific notes.
9522         * <mc-root>/configure (line 3369), <mc-root>/configure.in (line 88):
9523         'test x$CCOPTS = x;' modified to 'test "x$CCOPTS" = x;'
9525         * <mc-root>/Makefile.in: README.QNX added to DISTMAIN.
9527 Thu May 21 00:09:45 1998  Norbert Warmuth  <k3190@fh-sw.de>
9529         * menu.c (menubar_event): Don't set menubar->selected to the
9530         invalid value -1. Fix for the bug reported by root@liepa.soften.ktu.lt
9532         * menu.c (menubar_drop_compute): removed the check for inrange
9533         items which isn't necessary any longer.
9535 Wed May 20 16:27:56 1998  Norbert Warmuth  <k3190@fh-sw.de>
9537         * widget.c (history_put): input line history was defunct because
9538         there was an #ifndef where an #ifdef should be.
9539         Btw. PORT_WIDGET_WANTS_HISTORY seems incomplete because a lot of
9540         history code is included even when this define is undefined.
9542 1998-05-19  Tamasi Gyorgy  <gt_cosy@usa.net>
9544         * src/*: Until I get a better ChangeLog:  Tamasi's port of the
9545         code to QNX.
9547 1998-05-19  Alexander Lukyanov  <lav@yars.free.net>
9549         * Makefile.in: Distribution fix so that people are not forced to
9550         install gettext.
9552 1998-05-19  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9554         * ext.c: Memory leak fixed.
9556 Mon May 18 22:24:09 1998  Norbert Warmuth  <k3190@fh-sw.de>
9557         * lib/mc.ini.in: s/reges/regex/
9559         * main.c (process_args): return void, the return value was only
9560         used once but wrong (-h displayed help twice).
9561         (handle_args): -h: don't display help twice
9562         (print_usage): Don't print program name and version, that's
9563         already done by version(0).
9565         * menu.c (menubar_paint_idx): Highlight Hotkeys also on slow
9566         terminals (hotkeys were not displayed at all).
9568 1998-05-18  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9570         * menu.c (menubar_drop_compute): Check for inrange items.
9572 1998-05-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9574         * color.c (init_colors): Provide X-only version of color
9575         initialization.
9577 Thu May 14 01:56:11 1998  Norbert Warmuth  <k3190@fh-sw.de>
9579         * configure.in: Don't add -lintl to LIBS when included gettext is
9580         used (further checks for libraries would fail because libintl.a
9581         isn't build, yet). Instead use and substitute LINTL.
9583         * Makefile.in (OURLIBS): add @LINTL@
9585 Tue May 12 17:45:49 1998  <psheer@obsidian.co.za>
9587         * syntax.c: yet more minor modifications.
9589 1998-05-11  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9591         * main.c: New default: auto-save setup.
9593         * screen.c (move_right, move_left): Add support for icon-view movement.
9595 1998-05-09  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9597         * setup.c (panel_load_setup): On non-icon editions, fall back to
9598         list_full
9600 Sun May 10 13:27:50 1998  Norbert Warmuth  <k3190@fh-sw.de>
9602         * widget.c (handle_char): Don't try to to delete default text in
9603         input widget more than once. Right after MC's start copy_filename
9604         (ESC Enter) failed because a flag wasn't cleared while characters
9605         were stuffed into the command line (Andrej reported this bug).
9607         * main.c (copy_readlink): usr mc_readlink instead of readlink
9609         * file.c: Changed default for the copy/move option "dive into
9610         subdir if exists" to off (note: this was only possible after the
9611         change in setup.c).
9613         (copy_dir_dir): Activated the previously uncommented code which
9614         implements "Dive into subdirs". Even when there's no case where we
9615         actually would like that behavior it is a documented feature.
9616         Though I didn't want to change the default behavior. Hence the
9617         option change.
9619         (file_mask_defaults): set dive_into_subdirs
9621         (file_mask_dialog): Fix for debian Bug #20727: Move operation with
9622         "[ ] Dive into subdir if exists" and destination filename not
9623         wildcarded. If destination is an existing directory then files
9624         will be moved into this directory. If destination is not an
9625         existing directory then src file will be renamed (one file
9626         selected) or an error will be displayed (more than one file
9627         selected).
9629         (file_mask_dialog): made the option "Using shell patterns" local
9630         to the current copy/move operation, i.e. this option is always
9631         initialized with the global option's value. Previously it affected
9632         the global Options/Configuration/shell Patterns.
9633         Another possibility would be to make the global option a default
9634         option on startup and keep changes in the copy/move dialog
9635         (without saving these changes with save setup).
9637         * setup.c: Don't save and load options which can be changed
9638         outside the options menu. For example I don't like that
9639         preserve_uid_gid and dive_into_subdirs from the copy/move dialog
9640         are saved and restored (strange, what about the other options from
9641         this dialog?).
9642         It would be much cleaner to make these option read-only. This way
9643         one could edit ~/.mc/ini to provide default option setting on
9644         startup and "Save setup" wouldn't have side effects outside the
9645         option's menu.
9647 Sun May 10 13:24:20 1998  Norbert Warmuth  <k3190@fh-sw.de>
9649         * doc/mc.1.in, doc/mc.sgml, mc.hlp: Updated to reflect new default
9650         for dive into subdirs.
9652 Sun May 10 13:21:45 1998  Norbert Warmuth  <k3190@fh-sw.de>
9654         * edit/syntax.c: Disable debug messages on stderr.
9656         * edit/edit.h: Added missing _()
9658 1998-05-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9660         * layout.c (flag_winch): Propagate the window change to the slave
9661         pty even when not running our event loop.  The resize_subshell
9662         routine is thread safe.
9664         * dlg.c (update_cursor, dlg_broadcast_msg_to): Do not send
9665         messages if no widgets are on the Dlg_head, this happens now with
9666         the gmc code, as we can have all of the windows shut down.
9668 Wed May  6 13:46:37 1998 Paul Sheer  <psheer@obsidian.co.za>
9670         * syntax.c: more bug fixes.
9672 1998-05-04  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9674         * view.c (view_quit_cmd): Use dlg_stop.
9676         * main.c (ctl_x_cmd): Implement ctl-x handling as a state of the
9677         key press events.  Drop the usage of mi_getch to accomplish this
9678         task.
9679         (midnight_callback): Deal with the current map depending on the
9680         c-x state.
9682 Mon May  4 10:21:31 1998  Norbert Warmuth  <k3190@fh-sw.de>
9684         * background.c (message_1s1d): the unprocessed string with %d was
9685         passed to message_1s; fixed small memory leak
9687         * widget.c (button_callback): WIDGET_CURSOR: make cursor position
9688         dependent on button type (fixes the off by one bug in advanced
9689         changeown).
9691         * file.c (copy_file_file): Schedule deletion of short target file
9692         only when we created or truncated the target file and not already
9693         when we decided to overwrite an existing file.
9695 1998-05-03  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9697         * boxes.c (task_cb): Use kill, not INT, as we are catching INT in
9698         the program.
9700 Sat May  2 14:07:05 1998 Paul Sheer  <psheer@obsidian.co.za>
9702         * setup.c: ALT('H') now shows a directory history - that
9703         ESC SHIFT-h   or   ALT-SHIFT-h
9705 Fri May  1 17:45:58 1998 Paul Sheer  <psheer@obsidian.co.za>
9707         * syntax.c: initial support for LaTeX 2.09 files added,
9709         * syntax.c: some minor bug fixes. and reorganization
9710         of context and keyword priorities.
9712 Fri May  1 11:24:21 1998  Paul Sheer  <psheer@obsidian.co.za>
9714         * syntax.c: syntax highlighting segfaults when editing a binary
9715         file - now fixed.
9717 Thu Apr 30 12:23:50 1998 Alex Tkachenko  <alex@bcs.zp.ua>
9719         * src/file.c: lot of i18n of file Copy/Move/Delete operations. Maintainers
9720         of message catalogs please notice introduced op_names1 and formats for
9721         file operations.
9723         * src/boxes.c: i18n of background jobs control and quick cd
9724         dialog boxes.
9726         * src/menu.c (menubar_arrange): resizing of menubar upon changes of
9727         window size is now controlled by preprocessor symbol RESIZABLE_MENUBAR
9728         (now it's off by default, as requested in mailing list). If it is off,
9729         menubar items are separated with fixed number of spaces (3).
9731         * src/layout.c, edit/editwidget.c: calls to menubar_arrange ifdef'ed
9734 1998-04-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9736         * main.c (parse_an_arg): GNOME edition keeps track of various
9737         --geometry and various directories passed.
9739 1998-04-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9741         * main.c (update_panels): Great API simplification.  update_panels
9742         only cares about the contents of the current panel, every other
9743         panel keeps the current selection (this was the behavior
9744         anyways).
9746         update_panels can be provided in a per-port fashion as well.
9748 Wed Apr 29 03:06:09 1998  Paul Sheer  <psheer@obsidian.co.za>
9750         * syntax.c: some optimizations, as well as support for
9751         syntax highlighting of Makefiles and ChangeLog files.
9752         Fixed some syntax highlighting bugs. All C and C++
9753         keywords added.
9755 Tue Apr 28 06:11:08 1998  Norbert Warmuth  <k3190@fh-sw.de>
9757         * view.c (toggle_wrap_mode, toggle_hex_mode): Force recalculation
9758         of bottom_first (we mustn't use an already calculated and cached
9759         value because it is invalid for the new mode and the End key would
9760         not move to the end of the file).
9762         * configure.in: Renamed the option `--with-our-slang' to
9763         `--with-included-slang' (this one looks better because we also
9764         have an `--with-included-gettext').
9765         Make the option `--with-ext2undel' recognize a given path.
9767         * cmd.c (view_file_at_line): In plain view (F13) set the default
9768         magic flag to zero in order to view the file content unprocessed
9769         (esp. don't uncompress files if they are compressed). The
9770         view_simple_cmd got broken when the default magic flag in view.c
9771         was changed from 0 to 1.
9773         * view.c (do_view_init, goto_line): Set wrap mode temporary off
9774         to make goto line number work, i.e. `line number' now always means
9775         line number in file and not line number on screen (in wrap mode
9776         one long line wrapped once is displayed in two lines on the screen).
9777         That's important when the viewer is invoked from the find file
9778         dialog to display even in wrap mode approximately the part of the
9779         file where we found the content we searched for.
9781         (move_forward2): In wrap mode lines were sometimes counted wrong
9782         causing cursor up to move more than one line.
9784         (move_backward2): Fixed the movement in wrap mode.
9786         (change_viewer): Always re-init viewer when we have a filename,
9787         i. e. if the viewer is invoked with simple_view_cmd then we can switch
9788         with the F8 key between unprocessed file content and uncompressed
9789         file content.
9790         (view_init): re-init view also when magic flag was altered
9792 1998-04-27  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9794         * screen.c (is_a_panel): Added a routine to determine if a widget
9795         is a panel.
9797 1998-04-27  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9799         * screen.c (file_entry_color): Check if fe->fname has something.
9801 Sun Apr 26 00:21:12 1998  Norbert Warmuth  <k3190@fh-sw.de>
9803         * slint.c: Applied the patch from Bill Nottingham <wen1@cec.wustl.edu>
9804         to make it link against SLang >=1.0.
9805         I reviewed the diffs to the part of SLang we use and there are no
9806         further changes to MC necessary (one function's return value
9807         changed it's meaning but we don't use this return value).
9809         * configure.in: Undone the change which prevented linkage against
9810         SLang >=1.0
9812 Sat Apr 25 13:41:43 1998  Paul Sheer  <psheer@obsidian.co.za>
9814         * edit.h, syntax.h: some optimizations to improve syntax
9815         highlighting speed.
9817 1998-04-24  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9819         * color.h: Move the CTYPE definition
9821 Fri Apr 24 16:43:25 1998  Paul Sheer  <psheer@obsidian.co.za>
9823         * main.h, setup.c: editor_syntax_highlighting option added
9824         for ini file.
9826 Fri Apr 24 14:54:06 1998  Paul Sheer  <psheer@obsidian.co.za>
9828         * syntax.c: added. this files reads ~/.cedit/mcsyntax and
9829         processes generic rules for syntax highlighting of different
9830         file types. Syntax highlighting does not store an attribute byte
9831         for each byte of the edit buffer. Rather, it calculates colors
9832         on the fly, with an optimized algorithm, as the text is being
9833         rendered.
9835         * edit.c, edit.h, editwidget.c, editdraw.c: changes to facilitate
9836         syntax highlighting.
9838         * editoptions.c: dialog box updated with a syntax highlighting
9839         checkbox.
9841         * slint.c: new function alloc_color_pair(). This allocates a new
9842         color index. init_pair() itself now records the last color index
9843         so that colors can be added on to the end of the color list
9844         with alloc_color_pair().
9846         * slint.c: new function try_alloc_color_pair() returns a new index
9847         for a color with named fg and bg. Checks if that named color
9848         already exists before setting a new index.
9850 1998-04-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9852         * user.c (execute_menu_command): Create temporary file exclusively
9853         as well.
9855         * main.c (do_execute), utilunix.c (my_system), gutil.c, ext.c:
9856         Changed the way we execute programs.  Now a new set of flags exist
9857         that indicates how the execution is done.  In ports that execute
9858         by sending the process to background, when executing temporary
9859         files, we have to remove the files after the child process has
9860         finished executing the code not after the calling do_execute.
9862         * ext.c (exec_extension): Create temporary file exclusively.
9864 Mon Apr 20 01:32:20 1998  Norbert Warmuth  <k3190@fh-sw.de>
9866         * configure.in: Don't try to link MC against SLang >= 1.0. I will
9867         remove this restriction when I'm sure that it's save to use the new
9868         version (the documentation to SLang mentions some changes of
9869         return values).
9871 1998-04-16  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9873         * file.h: Added prototype for copy_dir_dir.
9875         * file.c (real_do_file_error): use the proper flags, this is not a
9876         D_INSERT dialog box, for what it is worth.  Important bug fix.
9878         * utilunix.c (get_owner): Declare.
9880         * widget.h: Added various missing prototypes for the X edition.
9881         * view.h: Added various missing prototypes for the X edition.
9882         * widget.c (x_radio_toggle): New per-port variable: PORT_HAS_RADIO_TOGGLE
9884 1998-04-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9886         * screen.c (GT): Assign two spaces for the minimum size of the
9887         "type" field for the GNOME edition.  This gives some extra space
9888         for the icon that gets displayed.
9890         * dlg.c (remove_widget): New function:  used to remove a widget
9891         from an existing Dlg_head;
9892         (destroy_widget): Destroy a specific Widget.
9893         (add_widgetl): Extended to deal with the fact that a running
9894         Dlg_head can become empty.
9896         * panelize.c (l_call): Update the input line every time the user
9897         selects the entry with the mouse (pretty common in the gnome
9898         edition).
9900         * hotlist.c (add_new_group_input): Removed an extra field that was
9901         causing problems.
9903         * find.c (find_parameters): Tree button is gone for gnome until we
9904         get the tree function working on gnome.
9906         * cmd.c (save_setup_cmd): Per Elliot's suggestion, do not pop up a
9907         dialog box to inform the user about the saved setup.
9909 1998-04-15  Pavel Machek  <pavel@elf.ucw.cz>
9911         * cmd.c: Report failed chdir attempts.
9913 Wed Apr 15 10:48:41 1998 Alex Tkachenko  <alex@bcs.zp.ua>
9915         * src/hotlist.c: changes to hotlist boxes i18n.
9917         * src/panelize.c: changes to panelize boxes i18n.
9919         * src/wtools.c (query_dialog): Take care about possible '&' in
9920         button names while calculating window sizes and button positions.
9922 1998-04-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9924         * screen.c (string_file_nlinks): The buffer was too small and we
9925         were overwriting parts of it.
9927         * subshell.c (do_subshell_chdir): Memory leak fix.
9929         * find.c (do_search): Do not use undefined order of evaluation.
9931         * user.c: Do not use undefined order of evaluation.
9933         * dlg.c (init_dlg): Do init the default return value.
9935 Sun Apr 12 03:09:17 1998  Norbert Warmuth  <k3190@fh-sw.de>
9937         * cmd.c (view_other_cmd): #ifdef'd application_keypad_mode and
9938         numeric_keypad_mode (don't include it in non text editions)
9940 Sun Apr 12 02:48:26 1998  Norbert Warmuth  <k3190@fh-sw.de>
9942         * xv/xvscreen.c: removed duplicate (conflicting) definition
9943         of do_enter()
9945 Sun Apr 12 02:24:57 1998  Norbert Warmuth  <k3190@fh-sw.de>
9947         * text.c (edition_post_exec), cmd.c (view_other_cmd): Don't change
9948         the keypad mode when we don't use the alternate plus minus. Pavel
9949         forgot an if-clause when he replaced the escape sequences (or
9950         another point of view: I forgot one if-clause at different place).
9952 Fri Apr 10 17:35:23 1998  Philippe De Muyter  <phdm@macqel.be>
9954         * configure.in (AC_NCURSES): When checking for library location,
9955         put -L option before -l option, not after.
9957 Fri Apr 10 10:35:06 1998  Norbert Warmuth  <k3190@fh-sw.de>
9959         * file.c (file_mask_dialog): When the shell patterns option was
9960         off source_mask was freed twice.
9962 1998-04-10  Marc Ewing  <marc@redhat.com>
9964         * panel.h: added up_b
9966 1998-04-08  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9968         * widget.c (update_input): Set the used flag early in update_input
9969         to allow X widget to catch the right value
9971         * screen.c (do_enter): Return the status for the operation.
9973         * main.c (main): Sigh.  This was hard. I added support for argp.
9974         Right now we support both argp for the GNOME edition and popt for
9975         the other editions.  I will remove popt support in the future and
9976         only keep argp.
9978         * dlg.c (add_widgetl): Adding widgets to an already running dialog
9979         had some flaws.  Fix this.
9981 Wed Apr  8 11:15:29 1998 Alex Tkachenko  <alex@bcs.zp.ua>
9983         * src/find.c: changes to find_parameters/find_file i18n.
9985         * src/widget.c: new function introduced, button_scan_hotkey();
9986         button_new() and button_set_text() fixed to use mentioned function.
9988         * src/key.[ch], src/dlg.c: changes to make recognition of ESC char as
9989         ALT(c) possible for 8-bit chars. (By replacing 'A'/'Z' comparisons with
9990         call to isalpha() in the way proposed by Norbert).
9992         * src/boxes.c: changes to display box i18n
9994         * src/learn.c: changes to learn key dialog i18n
9996 1998-04-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>
9998         * main.c (update_one_panel_widget): New routine: Updates a panel
9999         based on the widget, not the index.  Used by the GUI versions.
10001         * find.c (find_file): Cancel idle tasks before we destroy the find
10002         dialog.
10004         * dlg.c (destroy_dlg): Call x_destroy_dlg_start, a new hook that
10005         is invoked to allow the frontend code to prepare for dialog
10006         destruction.  Only the Gnome edition is using this: it uses this
10007         to hide the dialog and avoid flickering.
10009         * main.c: dtterm also has mouse support.
10011 1998-04-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>
10013         * wtools.c (quick_callback): Process DLG_KEY events on X.
10015         * utilunix.c (max_open_files): new routine;  Used to figure out
10016         the number of available file descriptors.
10018 Sat Apr  4 00:16:49 1998 Alex Tkachenko  <alex@bcs.zp.ua>
10020         * src/layout.c: changes to layout dialog box i18n
10022         * src/option.c: changes to configure box i18n
10024         * src/cmd.c: added N_() macro for machine_str
10026         * src/wtools.c (real_input_dialog_help): ok/cancel buttons are places
10027         symmetrically spaced relatively to center of the box. It produces
10028         nicer appearance with i18n (IMO :)
10030         * src/boxes.c (confirm_box): i18n stuff added.
10032 Mon Apr  6 07:48:22 1998  Pavel Roskin  <pavel_roskin@geocities.com>
10034         * Makefile.in: "make dist" works with bash 1.x again
10036 Fri Apr  3 05:23:20 1998 Alex Tkachenko  <alex@bcs.zp.ua>
10038         * configure.in: ALL_LINGUAS test added, to allow specify list
10039         of languages to be installed by setting env variable before
10040         configure. If it is empty, it defaults to full list.
10042         * src/menu.h menu_entry.{hot_pos, is_dupped} dropped
10044         * src/menu.c: consistency fixes: pull-down menu items are now
10045         accessible either with arrow keys or with hotkeys, denoted with &
10046         (and highlighted). (key combinations, placed to the right of items
10047         intended to be used from outside the menus). Freeing menu entries
10048         removed as it no longer needed
10050         * src/main.c, edit/editmenu.c: menubar init code is changed to conform
10051         above fixes.
10053         * edit/edit.h: use of "Cancel" in error_dialogs replaced with
10054         "Dismiss", to avoid collisions in translation of "Cancel" in other
10055         places with this case.
10057         * src/boxes.c: select_format() and it's support removed, as it is
10058         obsoleted by input line history feature. display_init()/display_callback
10059         fixed to suite i18n changes. sort_box() - alike.
10061         * src/option.c: pause_options added &'s and gettext calls to expand
10062         statically assigned values.
10064         * src/widget.c: (radio_callback) hotkey recognition is changed to
10065         &-notation, rather than simple uppercase.
10067         * src/dlg.c: (dlg_try_hotkey) plain symbol comparison replaced with
10068         call to isalpha(), this fixes erroneous exit from input line, when
10069         button hotkey is 8-bit NLS char.
10071 Fri Apr  3 12:23:28 1998  Norbert Warmuth  <k3190@fh-sw.de>
10073         * TODO: Removed obsolete entries: Similar entries in tree view
10074         are displayed correct; user specific files has been moved
10075         to ~/.mc/
10076         Added: Check what to do with menubar_arrange/destroy_menu stubs
10077         in tk/tkmenu.c; the internal editor (not ported yet) adds entries
10078         to the wrong menubar
10080 Wed Apr  1 00:15:30 1998  Norbert Warmuth  <k3190@fh-sw.de>
10082         * key.c, key.h (numeric_keypad_mode, application_keypad_mode): New
10083         functions which encapsulate two hardcoded escape sequences from main.c.
10085         * main.c (main): Use the two new functions from key.c
10087         * main.c, screen.c: Moved all file selection keys from the default
10088         keymap to the keymap for panels in listing mode.
10089         Changed *_selection_cmd to *_selection_cmd_panel in panel_keymap
10090         (functions in panel_keymap get a WPanel * as first parameter,
10091         i.e. the indirection with cpanel isn't necessary).
10093         * main.c (midnight_callback): Keys '*' and '-' were not treated
10094         when only_leading_plus_minus==0;
10095         Optimized the if-clauses a little bit (i.e. removed duplicate
10096         checks). More optimization is possible but it would make the whole
10097         stuff completely unreadable.
10099         * key.c (correct_key_code): KP_ADD, KP_SUBTRACT and KP_MULTIPLY
10100         will be translated to +, - and * only if the option
10101         alternate_plus_minus is turned off.
10103         * learn.c (learn_keys): Turn alternate_plus_minus temporarily on
10104         to avoid translation of KP_ADD, KP_SUBTRACT and KP_MULTIPLY in
10105         correct_key_code/make sure keypad is in application mode (makes it
10106         possible to learn this keys).
10108         * cmd.c (reverse_selection_cmd_panel): New function (renamed from
10109         reverse_selection_cmd, takes a WPanel * as parameter, references to
10110         cpanel changed to panel/the passed parameter).
10111         reverse_selection_cmd now simply calls this function with cpanel.
10112         This pair was missing among the *_selection_cmd* functions.
10114         * cmd.h: Added function prototypes.
10116 1998-03-31  Paul Sheer  <psheer@obsidian.co.za>
10118         * cmd.c (nice_cd): Forgot to invoke the history registration in
10119         one spot.
10121 1998-03-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>
10123         * menu.c (destroy_menu): Implement destroy_menu for all of the
10124         ports as a routine that frees the menu entries if
10125         internationalization has been enabled.
10127         * wtools.c (quick_dialog_skip): Do not i18n any string that is empty.
10129 Sun Mar 29 23:02:09 1998 Alex Tkachenko  <alex@bcs.zp.ua>
10131         * src/menu.[ch]: new member to menu_entry (hot_pos) introduced to make
10132         internationalized version of menu use externally defined hotkeys
10133         (denoted with preceding &). create_menu() fixed to load intl text of
10134         the entries. Some fixes around menu.c to enable usage of reloaded
10135         hotkeys.
10137         * main.c, editmenu.c: menu initialization code fixed to conform new
10138         menu structure. editmenu init code includes N_(..) now.
10140         * menu.c, layout.c, editwidget.c: bar menu items displacement is made
10141         dynamically upon initialization and window size changes. Mouse event
10142         processing is fixed accordingly.
10144 Sat Mar 28 13:18:36 1998 Alex Tkachenko  <alex@bcs.zp.ua>
10146         * src/screen.c: (repaint_file) last patches to format_file() in the
10147         same file broke appearance of panels in brief mode -- fixed.
10149 Mon Mar 30 20:02:49 1998  Paul Sheer  <psheer@obsidian.co.za>
10151         * main.c, screen.c, dirhist.c, dirhist.h, main.h, widget.c,
10152         main.h and others?: Directory history added. The previous
10153         directory history code was removed. The directory history now
10154         loads and saves using the same routines as the input widget. The
10155         keys meta-y, and meta-u are used to go backward and forward
10156         through the history. The buttons to the right and left of the
10157         current directory display on the panel can be used as well. The
10158         v button brings up a history, but no key is assigned to this.
10159         Discussion as to correct color and shape of these buttons is
10160         open. show_hist() in widget.c is made generic to be called for
10161         any widget. Help pages still needed to be added for the
10162         directory history.
10164 Wed Mar 25 19:05:31 1998  Norbert Warmuth  <k3190@fh-sw.de>
10166         * view.c (view_done): Set monitor off before deleting the view
10167         file dialog.
10169         * subshell.c (init_subshell): Added ':q' to $cwd in the precmd for
10170         tcsh. It prevents command and filename substitution (e.g. for
10171         a directory named "[word] words")
10173 Mon Mar 23 18:06:10 1998  Norbert Warmuth  <k3190@fh-sw.de>
10175         * main.c: Deleted some old and unused code
10177 1998-03-24  Miguel de Icaza  <miguel@nuclecu.unam.mx>
10179         * All over the src/ directory: Internationalization changes.
10181         * background.c: Avoid buffer over-runs and reduce number of
10182         internationalization strings.
10184 Mon Mar 23 14:04:07 1998  Philippe De Muyter  <phdm@macqel.be>
10186         * configure.in (nlink_t): Check it using AC_CHECK_TYPE.
10187         * acconfig.h (nlink_t): New define slot.
10189 Mon Mar 23 08:17:55 1998  Pavel Roskin  <pavel_roskin@geocities.com>
10191         * src/main.c: mcedit can be named mce or mcedit.exe - only
10192         3 first letters are significant. The same for mcview.
10193         Console is always saved in do_execute() if it was saved there.
10195         * src/util.h: STRNOMP introduced (strncmp on unix and strnicmp
10196         on OS2_NT)
10198         * slang/slgetkey.c: SLang_getkey() and SLang_input_pending()
10199         enabled for OS2_NT
10201         * myslang.h: using fast one_vline() and one_hline() for OS2_NT
10203 Mon Mar 23 00:47:51 1998  Norbert Warmuth  <k3190@fh-sw.de>
10205         * autogen.sh: added support for builddir != srcdir
10207         * doc/Makefile.in: The manual pages are generated files and
10208         located in the builddir and not in the srcdir.
10210         * find.c (find_file): Use the same hotkey for the panelize button
10211         as we use with the external panelize command.
10213 Fri Mar 20 17:51:01 1998  Norbert Warmuth  <k3190@fh-sw.de>
10215         * myslang.h: --with-ncurses didn't compile: renamed
10216         KEY_BACKTAB to KEY_BTAB (the name ncurses uses)
10218         * dlg.c (dlg_key_event): likewise
10220 1998-03-19  Miguel de Icaza  <miguel@nuclecu.unam.mx>
10222         * screen.c: Remove KEY_DC forever.  This should have never been
10223         here.
10225 Wed Mar 18 22:08:34 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>
10227         * achown.c (do_enter_key): call endgrent, endpwent.
10229         * chown.c (init_chown): call endgrent, endpwent.
10231 Tue Mar 17 23:58:40 1998  Pavel Machek  <pavel@elf.ucw.cz>
10233         * src/file.c: Fix for the case where the disk gets full.
10235 Tue Mar 16 18:35:53 1998 Stas Maximov  <stmax@u213.srcc.msu.su>
10237         * src/hotlist.c default values for dialogs which add entries to hotlist
10238         are now set to the current directory.
10240 Tue Mar 10 14:42:01 1998 Stas Maximov  <stmax@u213.srcc.msu.su>
10242         * vfs/extfs.c, lib/mc.ext, vfs/extfs/extfs.ini, vfs/extfs/cpio.in
10243         Added support for cpio extfs including compressed and gzipped
10244         cpio archives. compress and gzip handled separately because I saw
10245         a lot of systems which have compress, but don't have gzip.
10247 Sat Feb 21 16:46:49 1998 Stas Maximov  <stmax@u213.srcc.msu.su>
10249         * src/subshell.c: failed to grantpt on SVR4 due to zero-initialized
10250         subshell_pid. sigaction handler for SIGCHLD does waitpid(subshell_pid,
10251         ...) and when subshell_pid == 0 it steals the zombie from grantpt(3)
10252         which does fork/exec/waitpid for suid program to set the permissions on
10253         pty. It's enough to initialize it to 1 or -2.
10255 1998-03-16  Federico Mena Quintero  <federico@nuclecu.unam.mx>
10257         * util.c (convert_pattern): Now the internal buffer is malloc()ed
10258         instead of being static.  This is required for long patterns.
10259         (regexp_match): Free the pattern after calling convert_pattern().
10261         * file.c (file_mask_dialog): Free the source_mask after calling
10262         convert_pattern().
10264 Mon Mar 16 13:03:45 1998  Pavel Roskin  <pavel_roskin@geocities.com>
10266         * cmd.c: Internal edit is used by default. vi may be
10267         confusing for some users.
10269         * tree.c: tree_rmdir_cmd() should not return any value,
10270         because it is not analyzed for errors.
10272         * main.c: NT code: use O_BINARY instead of _O_BINARY
10274         * util.c: DO not test for arguments that do not make sense under
10275         Windows NT.
10277         * file.c: utime.h always included for Windows NT port.
10279         * view.c: Events are flushed only if the ports supports it.
10281 Mon Mar 16 12:30:39 1998  Stas Maximov  <stmax@u213.srcc.msu.su>
10283         * hotlist.c: Defaults on the hotlist add-current and new-entry is
10284         the current directory.
10286 Sat Mar 14 17:30:21 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>
10288         * file.c (panel_operate): Why was the flags in query_dialog set to
10289         D_INSERT is a big mystery.  Should be fixed now.
10291 Fri Mar 13 18:10:58 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>
10293         * dlg.c (dlg_stop): New routine used to finish dialog boxes.
10295         * cmd.c (set_panel_filter_to): Implementation split.  To be used
10296         by GNOME.
10298         * widget.c (input_new): GNOME-entry widget is inspired in the
10299         WInput + the history patches from Paul.  Use the GNOME-entry
10300         history, as this makes it easier to deal with the filter button on
10301         the panel.
10303         * setup.c (save_panel_types): Do not use if running on the gnome
10304         edition.   This need a lot of fixing for making this work with
10305         gnome and session management.
10307         * main.c (do_nc): DO not call setup_panels_and_run_mc as
10308         create_panels in gnome edition does all this.
10310         (setup_mc):  Skip part of the setup.
10312         (do_execute): Do not Execute any of the pause code after
10313         run for gnome.
10315 Wed Mar 12 17:46:09 1998  Norbert Warmuth  <k3190@fh-sw.de>
10317         * screen.c (chdir_other_panel, chdir_to_readlink): Use passed
10318         panel instead of cpanel (removed mixed use of panel and cpanel).
10320         * main.c, screen.c: Deleted F13 from the default keymap, added F13
10321         and F14 to the panel's keymap (the keymap for panels in listing
10322         mode). These two keys are only useful for panels in listing mode.
10323         It seems there are even more candidates for such a move. Especially
10324         select_cmd and unselect_cmd which appeared recently for the GNOME
10325         edition in screen.c act unexpected for panels in tree-mode.
10327         * cmd.c (view_simple_cmd): Added WPanel* to the parameter list.
10329         (edit_cmd_new): No need to get a panel because it is not used.
10331         * panelize.c: Changed hotkey of the Panelize button (Alt-p is
10332         already used by the input line history). I wonder if I should
10333         change it in the find dialog, too (just to have a unique hotkey
10334         for the panelize button).
10336 Wed Mar 11 19:02:48 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>
10338         * view.c: Lots of changes:  Split the X11 code from the main view
10339         program.  This is needed to cleanly support the addition of the
10340         Gnome version of the file viewer;
10342         New names for old functions (just a view_ prefix):
10343         view_add_character, view_add_string, view_gotoyx, view_set_color,
10344         view_display_clean.  Now all of them take a WView argument (which
10345         is ignored in the macro for the text edition).  This is to support
10346         multiple open views at once.
10348         * boxes.c (symlink_dialog): Enable ok/cancel buttons for the Gnome edition.
10350         * cmd.c (link_cmd, symlink_cmd): Provide the filename to operate
10351         on.
10353 Tue Mar 10 20:41:45 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>
10355         * cmd.c (unselect_cmd_panel, select_cmd_panel): To avoid races on
10356         the X11 version, these routines now take a panel argument at
10357         invocation time.
10359         * widget.c (radio_callback): Call x_radio_focus for FOCUS/UNFOCUS
10360         events.
10361         (button_callback): Fallback to default_msg on WIDGET_FOCUS
10362         messages.
10364 1998-03-10  Federico Mena Quintero  <federico@nuclecu.unam.mx>
10366         * xslint.c (getch): Added missing "return".
10368         * utilunix.c (init_groups): Added parentheses around
10369         assignment/truth value.
10371         * boxes.c: #include <stdlib.h>
10373         * screen.c (string_inode): Cast fe->buf.st_ino to long to be
10374         consistent with sprintf format.
10376         * main.c (handle_args): Added parentheses around assignment/truth value.
10378 Sat Mar  7 14:33:38 1998  Pavel Roskin  <pavel_roskin@geocities.com>
10380         * src/complete.c: obsolete hack for OS/2 and NT removed.
10381         Completion works for NT now (not very good)
10383         * src/main.c: HOME variable is respected by NT and OS/2
10384         versions. If it is missing, we use LIBDIR on OS2_NT and "/"
10385         on Unix.
10387         * src/key.h: SHIFT_PRESSED is set to 0x0010 on NT. This value
10388         doesn't conflict with definitions for ALT and CTRL, but it is
10389         SDK-compatible.
10391         * vfs/vfs.h: Minor changes for OS/2. EMX defines mkdir with
10392         2 arguments
10394         * vfs/tcputil.c, vfs/utilvfs.c: signal.h was includes twice.
10396         * vfs/Makefile.in: undelfs.h is not used and should disappear
10398         * slang/slos2tty.c: new file, copied from SLang-0.99.38,
10399         needed for OS/2 port
10401         * slang/Makefile.in: added slos2tty.c
10403         * vfs/extfs/README: annoying spell errors corrected
10405         * src/main.c: --termcap disabled for OS2_NT because it doesn't
10406         (and cannot) work. ARCH_FLAGS is not needed anymore.
10408         * src/text.c: most includes removed. Added a warning is someone
10409         compiles this file with HAVE_X. Improved color scheme for
10410         consoles with 16 background colors (e.g. OS/2). Hack for OS/2
10411         removed.
10413         * src/util.c, src/util.h: STRCOMP and MC_ARCH_FLAGS are moved
10414         to util.h. It may be useful to use them for filenames' completion
10415         on OS2_NT
10417 Fri Mar  6 19:29:54 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>
10419         * find.c: Simplify header files: use the fs.h include file.
10421         (use x_flush_events).
10423         * screen.c (string_file_name): In GNOME, the CList widget does the
10424         filename truncation, so we do not do it here.
10426         (panel_new): Initialize all of the wpanel contents to zero.  This
10427         will is required by the GNOME X ports (to figure out if a field
10428         has been inited or not).
10430 Thu Mar  5 10:28:40 1998  Norbert Warmuth  <k3190@fh-sw.de>
10432         * popt.c (poptParseArgvString): make it compile with the native
10433         compiler on AIX 4.1.3
10435 1998-03-04  Federico Mena Quintero  <federico@nuclecu.unam.mx>
10437         * cmd.c: Added #include "x.h"
10439 Wed Mar  4 14:49:55 1998  Norbert Warmuth  <k3190@fh-sw.de>
10441         * doc/mc.1.in, mc.hlp: updated (these files haven't been updated
10442         at the last change to mc.sgml)
10444         * doc/mc.sgml: spelling error corrected
10446         * Makefile.in: renamed all references of mc.1 to mc.1.in
10448         * find.c (locate_egrep): Don't use an absolute path if egrep isn't
10449         found at the usual places. Then execvp will search the directories
10450         passed in the environment PATH variable (a little bit slower but
10451         better than a defunct find content).
10453         * tree.c: removed the include file I mistakenly added with my
10454         last patch.
10456 Tue Mar  3 20:00:36 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>
10458         * file.c (get_file): Take a panel argument.  I am pretty sure that
10459         this is broken for the case where we are copying from a WTree.
10461         (panel_operate): take a panel argument instead of defaulting to
10462         cpanel.
10464 Mon Mar  2 15:54:55 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>
10466         * dlg.c (create_dlg): Set running to 0 on creation;
10467         (add_widgetl): do widget initialization if the dialog is already
10468         running when this dialog box is created.
10470 Mon Mar  2 12:11:37 1998  Norbert Warmuth  <k3190@fh-sw.de>
10472         * vfs/ftpfs.c (changetype): Removed the hack which always forced
10473         sending the command "TYPE I" when changing to binary transfer mode
10474         was requested even when MC thought the connection was already in
10475         binary mode (bucket->isbinary == 1). The correct fix is now in
10476         login_server.
10478         * vfs/ftpfs.c (login_server): Set the transfer mode stored in
10479         the bucket to UNKNOWN (the bucket might be reused and the old
10480         transfer mode isn't valid any longer).
10482         * screen.c (panel_key): Cleanup: deleted if-clause with -1 (EV_NONE)
10483         which isn't delivered to widgets by the dialog manager; always
10484         return 1 when key was handled; removed the function keys from the
10485         panel's keymap (the function keys are always handled by the
10486         buttonbar); don't eat characters below ' ' (C-l and Shift-F3 now
10487         work even when quick search was started); characters between 32 and
10488         255 start quick search if there is no command line (no C-s necessary
10489         to start search).
10491         * tree.c (tree_key): likewise
10493 Tue Feb 24 18:37:36 1998  Stas Maximov  <stmax@u213.srcc.msu.su>
10495         * subshell.c: Set subshell_pid to 1 on startup
10497 Fri Feb 13 19:59:39 1998  Alexander Savelyev  <fano@VCom.kiev.ua>
10499         * screen.c: KEY_DC is also handled by delete_cmd.
10501         * vfs/ftpfs.c (chdir): sending the CWD command is not necessary
10502         (imho).
10504         (ftpfs_connection_close): Do not use WAIT_REPLY, closes
10505         connections faster.
10507         (open_data_connection): implement the reget command.
10509         * boxes.c: bigger VFS dialog box.
10511         * file.c (init_replace): Add support for copying files only if the
10512         size differs, and support for regetting ftp files.
10514 Wed Feb 11 20:08:50 1998  Norbert Warmuth  <k3190@fh-sw.de>
10516         * user.c (execute_menu_command): Extended the syntax of %-macros
10517         used in the user menu in order to switch quoting on (default) and
10518         off, e.g. %0f means don't quote the expanded macro, %f and %1f mean
10519         quote the expanded macro.
10522 Fri Jan 30 16:43:47 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>
10524         * dlg.c (create_dlg): Now we pass the flags parameter to the
10525         create_dialog routine.
10527         * tkmain.c (xtoolkit_create_dialog): Check for the grided value
10529 Fri Jan 23 07:28:54 1998  Peter Daum  <gator@cs.tu-berlin.de>
10531         * extfs.c (open_extfs_archive): Pass the filename to the list
10532         command.
10534         * extfs/mailfs: New file system for browsing mail files (support
10535         for compressed mail files as well).
10537 Fri Jan 23 07:19:18 1998  Pavel Roskin  <pavel_roskin@geocities.com>
10539         * edit/edit.h: mc_mkdir requires 2 arguments for any operation
10540         system. Obsolete #ifdef's removed.
10542         * edit/editwidget.c: ansi standard violation removed
10544         * nt/Makefile.NT: default SLang directory is now ../slang. Most
10545         of SLang sources are no more compiled for MC.
10547         * nt/drive.h: new file. Copied from os2/drive.h with minor changes
10549         * nt/ket.nt.c: new way for handling conflicting SHIFT_PRESSED
10550         definitions. get_event can work without blocking. Copy, move
10551         and delete operations work normally.
10553         * nt/slint.nt.c: SLang_getkey2 and Slang_input_pending2 are
10554         copied from src/slint.c
10556         * nt/sys/param.h: annoying warnings temporarily suppressed.
10558         * slang/slvideo.c, slang/slw32tty.c: new files. They contain
10559         changes by Alexander Dong.
10561         * src/myslang.h: definitions for ASCII symbols removed, since
10562         they are available in slang.h. Double lines are not used anymore.
10564         * src/panelize.c: sys/wait.h is included only if HAVE_SYS_WAIT_H
10565         is defined
10567         * nt/Makefile.NT: text.c is added
10569         * nt/Makefile.VC4: "-debug" switch for linker is not used for
10570         release version
10572         * src/screen.c (show_dir): double lines are no more used by NT and
10573         OS/2 ports.
10575         * src/wtools.c (real_input_dialog_help): layout of input dialog for
10576         XView port is corrected
10578         * edit/edit.h: mc_mkdir requires 2 arguments for any operation
10579         system. Obsolete #ifdef's removed.
10581         * edit/editwidget.c: ansi standard violation removed
10583 Wed Jan 21 14:01:29 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>
10585         * ext.c (regex_command): reverted the patch that changed tests for
10586         *p == ' ' || *p == '\t' to isspace().  isspace() is true for tabs,
10587         newlines, carriage-returns and vertical tabs as well.  Which is
10588         not what we want.
10590 Wed Jan 21 11:58:39 1998  Sung-Hyun Nam  <namsh@lgic.co.kr>
10592         * ftpfs.c (retrieve_dir): Avoid compiler warning by testing
10593         explicitly the value.
10595         screen.c (format_file): color not initialized when we met
10596         empty_line.
10598 Wed Jan 21 11:28:21 1998  Alex Tkachenko  <alex@bcs.zp.ua>
10600         * cmd.c, utilunix.c: cosmetic changes to reduce compiler warnings
10602         * utilunix.c (my_system): small fix for SCO zombies moved here;
10603         now it returns WEXITSTATUS(status) instead of status itself. While
10604         missing it may not hurt on i.e., linux, on SCO it gives incorrect
10605         value.
10607         * vfs/extfs.c system() calls replaced with my_system() call; this
10608         allows a greater degree of control - fixes SCO system() return value
10609         processing. Notice: plain replacement system() with WEXITSTATUS(system)
10610         does not produce correct behavior (don't ask me why).
10612         * panelize.c (do_external_panelize): similar fixes for pclose()
10613         return value on SCO.
10615         view.c (load_view_file): inverted value of viewer_magic_flag to
10616         put viewer decompression state in accordance with F8 label text.
10617         Also default_nroff_flag is initialized to be 1; thus enabling all
10618         filter processing by default easies mc usage for novice users.
10620 Sun Jan 18 13:47:37 1998  Sung-Hyun Nam  <namsh@lgic.co.kr>
10622         * main.c
10623         * panel.h, tkscreen.h : error when compile dlg.c
10624         * tkconf.h : paint_frame
10625         * screen.c : to include paint_frame
10626         * tkmain.c : I just copied clr_scr() from the text.c
10628 Fri Jan 16 16:19:59 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>
10630         * screen.c (format_file): Do not invoke the file_compute_color
10631         routine for empty lines.
10633         * gmain.c: Color scheme for Gnome
10635         * gscreen.c: Color setup now allocated the GdkColor *.
10637         * color.c: Moved the default color setting to a per-port
10638         location (text.c for the text mode edition);  new color
10639         configuration: core;  Fixed the case where the color spec was
10640         buggy and we kept on a infinite loop;
10642 Fri Jan 16 13:47:13 1998  Pavel Roskin  <pavel_roskin@geocities.com>
10644         * nt/drive.nt.c, nt/chmod.nt.c: Updated button_new and check_new
10645         calls
10647 Fri Jan 16 12:47:39 1998  Norbert Warmuth  <k3190@fh-sw.de>
10649         * vfs/ftpfs.c (command): Don't log passwords when the dialog between
10650         server and client is logged to a file (mc -l logfile).
10652         * vfs/ftpfs.c (resolve_symlink, retrieve_dir): When a directory
10653         contains spaces send two commands ("CWD path" and  "LIST .") instead of
10654         one command ("LIST path") in order to get directory listings.