1 2002-08-14 Pavel Roskin <proski@gnu.org>
3 * view.c (display): Use only declared color pairs to fix hex
4 editor appearance with ncurses. Eliminate some useless defines.
6 2002-08-10 Pavel Roskin <proski@gnu.org>
8 * key.c (delete_select_channel): Avoid using freed memory.
10 2002-08-09 Pavel Roskin <proski@gnu.org>
12 * ext.c (exec_extension): Eliminate unused argument.
13 (regex_command): Remove support for user actions. Return int.
14 Adjust all dependencies.
16 * ext.c (exec_extension): Make static. Remove support for Drop,
17 Title and Icon actions. Adjust all dependencies.
19 * main.c (sigchld_handler_no_subshell) [linux]: SIGTSTP is
20 always defined on Linux.
21 * subshell.c (sigchld_handler): No need to use SIGTSTP
22 explicitly when we really care about SIGCONT.
24 * ncurses.patch: Remove, it's obsolete.
25 * Makefile.am: Remove ncurses.patch.
27 2002-08-04 Pavel Roskin <proski@gnu.org>
29 * subshell.c: Assume that SIGTSTP and SIGCONT are always
30 defined. This is now checked in configure. Otherwise
31 synchronize() would hang until subshell exits.
33 2002-08-01 Pavel Roskin <proski@gnu.org>
35 * charsets.c: Unconditionally enable finalization code that was
36 only used with HAVE_MAD.
42 * subshell.c (exit_subshell): Free subshell_prompt.
46 * Makefile.am (SRCS): Remove mad.c and mad.h.
47 * cmd.c: Remove references to MAD.
49 * dlg.c: Use inline, not INLINE.
50 * hotlist.c: Likewise.
52 * global.h: Don't include mad.h.
54 2002-07-31 Andrew V. Samoilov <kai@cmail.ru>
56 * man2hlp.c (main): Don't use freed structure member.
58 * ext.c (regex_command): Don't check same condition twice.
59 (exec_extension): Comment out useless loop.
60 * key.h (key_code_name_t): Typedef const.
62 2002-07-30 Pavel Roskin <proski@gnu.org>
64 * man2hlp.c (main): Use only stream I/O. Fix checks for error
65 conditions. Reformat the whole file.
67 * man2hlp.c: Avoid the need to use gindex.pl.
68 From Andrew V. Samoilov <sav@bcs.zp.ua>
69 * Makefile.am: Use man2hlp directly.
70 (EXTRA_DIST): Remove gindex.pl.
73 * ext.c (regex_command): Additional check to prevent reading
74 unallocated memory when matching "shell/". Found by Valgrind.
76 2002-07-29 Pavel Roskin <proski@gnu.org>
78 * setup.c: Eliminate all PORT* macros.
81 * subshell.c (feed_subshell): Reading 0 bytes in a channel with
82 FD_ISSET being set is a sign of something being wrong - exit
83 immediately. Observed when mc is run under su in xterm and
84 xterm is closed while the subshell is running.
85 Reported by Vlad Harchev <hvv@hippo.ru>
87 * color.h: Replace PORT_COLOR macro with BEST_COLOR, which uses
90 * util.c: Remove unused functions.
91 * utilunix.c: Likewise.
92 * util.h: Update to match.
94 * cons.saver.c: Use SEEK_SET instead of 0 in lseek().
97 * main.c (do_execute): Add newline after "Press any key to
100 * cons.saver.c: Eliminate some global variables. Further
101 cleanup. Make sure that console_fd is always closed.
103 2002-07-28 Pavel Roskin <proski@gnu.org>
105 * cons.saver.c: Remove support for Linux kernels before 2.0.
107 (send_contents): Remove incorrect optimization - restore even
108 empty lines because they may be touched by the viewer.
109 From Denis Vlasenko <vda_unique@iname.com>
111 2002-07-26 Pavel Roskin <proski@gnu.org>
113 * utilunix.c (canonicalize_pathname): Don't extend empty path
114 to "." - it can corrupt memory.
116 * cmd.c (copymove_cmd_with_default): Remove, it's unused.
117 (copy_cmd_local): New function, copy within panel.
118 (ren_cmd_local): New function, rename within panel.
119 * cmd.h: Adjust to match.
120 * screen.c (panel_keymap): Associate F15 with copy_cmd_local and
121 F16 with ren_cmd_local.
123 * view.c (display): Don't highlight characters as bold if the
124 character before the backspace was different.
125 From Roland Illig <roland.illig@gmx.de>
127 2002-07-25 Andrew V. Samoilov <kai@cmail.ru>
129 * wtools.c (message): Fix possible buffer overflow.
131 * slint.c [HAVE_MAD] (dealloc_color_pairs): Move ...
132 * color.c [HAVE_MAD]: ... here and make accessible from
133 other files to fix compilation.
134 * color.h [HAVE_MAD]: Declare dealloc_color_pairs.
136 2002-07-20 Pavel Roskin <proski@gnu.org>
138 * screen.c (panel_callback): Revert last change, it has bad side
139 effects on the subshell.
141 2002-07-19 Pavel Roskin <proski@gnu.org>
143 * dlg.c: Eliminate all useless x_* functions.
146 * textconf.h: Likewise.
149 * widget.c: Likewise.
150 * main.c: Remove panel_update_marks(). Move try_to_select() ...
151 * screen.c: ... here. Eliminate x_* functions.
152 * main.h: Remove panel_update_marks().
154 * screen.c (panel_callback): Only change directory on
155 WIDGET_FOCUS if current_panel changes.
157 * main.c (handle_args): Don't call mc_get_current_wd().
159 * main.c (directory_history_list): Report error if cannot change
162 2002-07-16 Pavel Roskin <proski@gnu.org>
164 * main.c (do_execute): Don't ask to press any key when the shell
165 is running a command - the user has already pressed Ctrl-O.
167 2002-07-15 Pavel Roskin <proski@gnu.org>
169 * slint.c: Eliminate hardcoded color terminals. Most users no
170 longer need this hack, and those who do have color_terminals
171 option in the config file.
173 2002-07-14 Pavel Roskin <proski@gnu.org>
175 * color.c [USE_NCURSES]: Eliminate division by COLOR, it's 0 in
176 black and white mode.
178 * slint.c: Move functions for allocating color pairs ...
179 * color.c: ... here. Implement ncurses equivalents. Rename
180 init_pair() to mc_init_pair() and keep tack of max_index with
181 ncurses. Adjust all dependencies.
183 * mem.h: Clean up obsolete definitions, incorporate into ...
184 * global.h: ... this.
185 * Makefile.am: Remove mem.h.
187 2002-07-13 Pavel Roskin <proski@gnu.org>
189 * Makefile.am (AM_CPPFLAGS): Remove REGEX_MALLOC, it's now in
192 * tty.h: Use standard autoconf defines to determine which
193 ncurses header to include. Eliminate RENAMED_NCURSES.
195 2002-07-10 Pavel Roskin <proski@gnu.org>
197 * utilunix.c: Cast argument for GUINT_TO_POINTER to int to fix
200 * subshell.c: ioctl() doesn't set errno - don't use perror() to
201 report failures. Use fprintf() instead, ignore errors from
203 (resize_tty): New function - code common for resize_subshell()
204 and init_subshell_child().
206 * global.h: Include vfs.h.
207 * boxes.c (configure_vfs): Ask whether .netrc should be used.
208 From Thomas Zajic <zlatko@gmx.at>
210 2002-07-03 Pavel Roskin <proski@gnu.org>
212 * file.c (do_transform_source): Cast the argument to functions
213 for character classification to unsigned int.
214 * main.c (handle_args): Likewise.
215 * util.c (size_trunc_sep): Likewise.
216 (skip_numbers): Likewise.
218 * subshell.c (sigchld_handler): Remove subshell_pty from the
219 channel list if the subshell has died.
221 2002-07-03 Andrew V. Samoilov <kai@cmail.ru>
223 * mad.[ch] [__GNUC__] (mad_strconcat): Use macro varargs.
224 (mad_strdup_printf): Likewise.
225 (mad_strdup_vprintf): Likewise.
226 * main.c [HAVE_MAD] (main): Release this_dir and other_dir.
228 2002-07-03 Pavel Roskin <proski@gnu.org>
230 * main.c (stop_dialogs): New function to stop all dialogs.
231 (quit_cmd_internal): Use stop_dialogs() instead of stopping
232 midnight_dlg only. This fixes exit from the shell invoked from
233 the internal viewer or editor.
235 * cmd.c (view_other_cmd): Shut down extra select channels before
236 switching to the shell. Restore them afterwards, but not if
237 quit was requested. Skip more code on quit.
239 2002-07-02 Pavel Roskin <proski@gnu.org>
241 * util.c: Eliminate get_small_endian_long() and CHECK macro.
243 * util.h: Rename compression types, add a type for uncompressed
245 * util.c (is_gunzipable): Rename to ...
246 (get_compression_type): this. Don't check archive length, since
247 it's unreliable if there is padding at the end of the file.
248 Eliminate prehistoric Linux workaround. All callers adjusted.
250 2002-07-01 Andrew V. Samoilov <kai@cmail.ru>
252 * utilunix.c (close_error_pipe): Use "%s" in message () to
253 prevent possible crash.
254 (check_error_pipe): Likewise.
256 2002-06-27 Pavel Roskin <proski@gnu.org>
258 * screen.c (do_enter_on_file_entry): Process associations before
259 trying to execute the file.
261 2002-06-20 Pavel Roskin <proski@gnu.org>
263 * dir.c (handle_dirent): Don't process ".." entries.
264 (handle_path): Likewise.
265 From Andrew V. Samoilov <kai@cmail.ru>
267 2002-06-13 Oskar Liljeblad <oskar@osk.mine.nu>
269 * slint.c (has_colors): Don't reset SLtt_Use_Ansi_Colors to 0 if
270 force_colors is not set. This fixes color on unknown terminals.
272 2002-06-13 Andrew V. Samoilov <kai@cmail.ru>
274 * user.c (expand_format): Fix '%b' proccessing.
275 Handle '%k' as documented.
277 2002-05-30 Andrew V. Samoilov <kai@cmail.ru>
279 * view.c (regexp_search): Don't call save_edit_changes
280 if there are no changes.
281 (save_edit_changes): Use messages from ../po/mc.pot.
283 * mad.c (mad_tempnam): Commented out to make linker happy.
284 * main.c [HAVE_MAD && !_OS_NT] (main): G_free mc_home.
286 2002-05-27 Andrew V. Samoilov <kai@cmail.ru>
288 * view.c (save_edit_changes): Handle errors.
289 (do_view_init): Don't open and check file type
290 if _command is not null or _file is empty string.
292 2002-05-22 Pavel Roskin <proski@gnu.org>
294 * Makefile.am: doc/mc.1 is in top_builddir, not in top_srcdir.
296 2002-05-15 Andrew V. Samoilov <kai@cmail.ru>
298 * view.c (do_view_init): Close fd if it is unused.
300 2002-05-14 Andrew V. Samoilov <kai@cmail.ru>
302 * Makefile.am (VFSLIB): Add ../vfs/samba/libsamba.a
303 if USE_SAMBA_FS is true.
305 2002-05-07 Pavel Roskin <proski@gnu.org>
307 * hotlist.c (hotlist_button_callback): Don't process B_REMOVE
308 for VFS list - it would crash.
309 From Andrey Panov <pav@metib.ru>
311 2002-04-19 Andrew V. Samoilov <kai@cmail.ru>
313 * main.c [!WITH_MCFS] (PanelMenu): Eliminate mcfs related entry.
314 (RightMenu): Likewise.
315 * textconf.c (features): Likewise.
316 * cmd.c (netlink_cmd) [!WITH_MCFS]: Eliminate.
318 2002-04-03 Pavel Roskin <proski@gnu.org>
320 * Makefile: mc.hlp should be in MAINTAINERCLEANFILES, not in
321 CLEANFILES, because "make clean" should not make the source
322 directory useless on systems without Perl.
324 2002-03-26 Andrew V. Samoilov <kai@cmail.ru>
326 * eregex.h [!USE_INCLUDED_REGEX]: Include <regex.h>.
327 * regex.c: Compile only if USE_INCLUDED_REGEX is defined.
329 2002-03-25 Andrew V. Samoilov <kai@cmail.ru>
331 * complete.c (insert_text): Fix buffer overflow.
333 * cmd.[ch] [USE_INTERNAL_EDIT] (edit_syntax_cmd:) New dialog
334 to edit Syntax Highlighting definitions file.
335 * main.c (CmdMenu) [USE_INTERNAL_EDIT]: Add 'Syntax file edit'
337 (process_args): Print mc's library directory to stdout.
339 2002-03-21 Andrew V. Samoilov <kai@cmail.ru>
341 * man2hlp.c (handle_command): Handle backslash quoting
343 (handle_link): Strip .B and .I
344 * gindex.pl: Use fifth argument as man2hlp location.
346 2002-03-20 Andrew V. Samoilov <kai@cmail.ru>
348 * man2hlp.c (handle_command): Handle '.\"TOPICS' comment.
349 Use it for translated 'Topics:' message.
350 * gindex.pl: Use first line of man2hlp output as
351 translated 'Topics:' message if fourth argument
353 * Makefile.am (mc.hlp.ru): Use empty string as gindex.pl's
356 * textconf.c (version): Write to stdout.
357 * main.c (print_mc_usage): Add "stream" parameter to specify
359 (process_args): Use print_mc_usage() with stdout as stream.
360 (handle_args): Use print_mc_usage() with stderr as stream.
361 (print_color_usage): Write to stdout.
363 2002-03-18 Pavel Roskin <proski@gnu.org>
365 * eregex.h: Update from glibc-2.2.5.
367 * find.c: Use eregex.h, not regex.h.
370 From Alexander Varakin <avarakin00@hotmail.com>
372 * find.c (find_parameters): Invert condition when find is case
375 2002-03-04 Andrew V. Samoilov <kai@cmail.ru>
377 * Makefile.am (mc.hlp.ru): Use mc.1 instead of mc.1.in.
380 * file.c (copy_file_file): Chmod destination only if
381 ctx->preserve is on. Eliminate gotos.
383 2002-03-01 Andrew V. Samoilov <kai@cmail.ru>
385 * Makefile.am (mc.hlp.ru): New rule to compile translated
387 (mclib_DATA): Add mc.hlp.ru.
388 (EXTRA_DIST): Likewise.
390 * gindex.pl: Add optional 4th argument for translated
391 Content section name.
393 2002-02-28 Andrew V. Samoilov <kai@cmail.ru>
395 * mad.c: Make mem_areas dynamically growing.
396 (mad_init): Allocate memory for mem_areas.
397 (mad_alloc): Grow mem_areas if it is exhausted.
399 * filegui.c (file_mask_dialog): Enable 'follow Links'
400 and 'preserve Attributes' features in Move dialog.
401 (file_bps_show): Translate messages.
402 (file_eta_show): Likewise.
404 * man2hlp.c (main): Don't crash if called without argument(s).
405 Make buffer char pointer.
406 (handle_command): Handle '.\"NODE' comment. Use it for
407 nodename in translated manual pages.
409 * gindex.pl: Use [nodename] as user visible section name
410 only if next line is empty. Elsewhere use this nonempty line.
412 * find.c (find_parameters): Compile content_pattern here.
413 Inform user about malformed regular expression.
414 (search_content): Use compiled regular expression.
415 (do_find): Eliminate `done'. Call regfree for compiled
418 2002-02-24 Pavel Roskin <proski@gnu.org>
420 * chown.c (chown_cmd): Use size_trunc_len() to show the file
421 size. Eliminate c_fsize, which wasn't properly initialized.
423 2002-02-22 Pavel Roskin <proski@gnu.org>
425 * man2hlp.c (string_len): Don't exclude characters with codes
426 above 128 from the string length.
428 2002-02-21 Andrew V. Samoilov <kai@cmail.ru>
430 * ext.c (exec_extension): Use "#! /bin/sh".
432 2002-02-20 Pavel Roskin <proski@gnu.org>
434 * background.c (background_attention): Cast pointer to long
435 instead of int because it's unsafe of 64-bit systems.
436 * main.c (init_xterm_support): Likewise.
438 2002-02-18 Pavel Roskin <proski@gnu.org>
440 * utilunix.c (canonicalize_pathname) [__QNX__]: Fix detection
441 of Qnet names. Disable support of Qnet names under QNX Netrino.
442 Reported by Maurizio Rossi <MRossi@system-group.it>
444 * global.h: Include unix.h under "classical" QNX.
445 * subshell.c: Don't include unix.h.
446 * utilunix.c: Likewise.
448 2002-02-07 Andrew V. Samoilov <kai@cmail.ru>
450 * main.c (update_one_panel_widget): Call ftpfs_flushdir().
452 2002-02-05 Pavel Roskin <proski@gnu.org>
454 * key.c [USE_NCURSES] (get_key_code): Ignore KEY_RESIZE.
455 * layout.c [USE_NCURSES] (flag_winch): Don't call
456 low_level_change_screen_size() from signal handler.
457 From Thomas Dickey <dickey@herndon4.his.com>
459 * screen.c (format_file): Add a new parameter (size of the
460 output buffer) to prevent buffer overflow on very wide
462 From Thomas Dickey <dickey@herndon4.his.com>
464 2002-02-04 Andrew V. Samoilov <kai@cmail.ru>
466 * util.c [!HAVE_TRUNCATE] (truncate): Close fd if my_ftruncate
469 * util.c [HAVE_CHARSET] (is_printable): Eliminate printable.
470 * setup.c [HAVE_CHARSET] (load_setup): Don't use
471 init_printable_table.
473 * charsets.h: Don't declare init_printable_table ().
474 * charset.c (printable): Removed.
475 (init_printable_table): Removed.
477 2002-01-30 Andrew V. Samoilov <kai@cmail.ru>
479 * file.c (recursive_erase): Use mc_closedir() if mc_lstat()
480 fails. Eliminate goto.
481 (erase_dir): Eliminate goto.
482 (erase_dir_iff_empty): Likewise.
484 2002-01-29 Andrew V. Samoilov <kai@cmail.ru>
486 * dir.c (handle_dirent): Use MSG_ERROR.
487 * charsets.c (translate_character): Use ICONV_CONST.
489 2002-01-22 Pavel Roskin <proski@gnu.org>
491 * screen.c: Don't try to paint anything if width is 0 or less.
492 Reported by Pawel Sakowski <pawel@sakowski.eu.org>
494 * screen.c: Make functions static whenever possible. Remove
496 * panel.h: Remove corresponding declarations.
498 2002-01-21 Pavel Roskin <proski@gnu.org>
500 * util.c: Move replacements for permission bits ...
501 * fs.h: ... here. Add more replacements.
502 * global.h: Include direct.h only with MSVC.
504 * main.c: Include "drive.h", not <drive.h>, do it after panel.h.
505 Use _OS_NT as the condition for including drive.h.
506 * screen.c: Use _OS_NT as the condition for including drive.h.
508 * global.h [_OS_NT]: Include io.h, direct.h and windows.h.
509 Don't redefine struct timeval.
511 * fs.h [_MSC_VER]: Use dirent provided by glib.
513 * global.h [!HAVE_SYS_TIME_H]: Provide a replacement for struct
516 * findme.c: Respect HAVE_UNISTD_H.
519 * global.h: Fallback to sys/utime.h if utime.h is missing.
521 * global.h: Provide fallbacks for getuid(), getgid(), geteuid()
523 * fs.h: Fully trust HAVE_DIRENT_H.
524 * complete.c: Don't include dirent.h directly, fs.h takes care
527 * filegui.c: Likewise.
529 * treestore.c: Likewise.
531 * global.h [!__GNUC__]: Define __attribute__ with one argument.
533 2002-01-20 Pavel Roskin <proski@gnu.org>
535 * screen.c (string_file_size): Translate "UP--DIR".
536 (string_file_size_brief): Translate "SUB-DIR" and "SYMLINK".
538 * dir.c (add_dotdot_to_list): Don't use costly stat() - just put
539 realistic (i.e. bogus) data to the list.
541 * screen.c (string_file_size): Don't display size of ".." - it
542 may take too much time to calculate it on VFS. Show "UP--DIR"
544 (string_file_size_brief): Remove ".." handling - it's now done
545 in string_file_size(). Show "SUB-DIR" for links to directories,
546 "SYMLINK" for other links.
548 2002-01-17 Pavel Roskin <proski@gnu.org>
550 * cmd.c: Remove OS/2 specific code.
554 * main.h: Remove dead declarations.
555 * setup.c: Remove defunct extension alignment support.
559 * main.c: Remove unused toggle_* functions.
561 * dir.c: Show backups by default.
563 2002-01-15 Andrew V. Samoilov <kai@cmail.ru>
565 * file.c (copy_dir_dir): Check the destination is a directory
566 if it exists. Reported by Thomas <metaf4@pseudonym.org>.
568 2002-01-09 Andrew V. Samoilov <kai@cmail.ru>
570 * util.c (string_perm) [S_IFDOOR]: Support Solaris doors.
571 * screen.c (string_file_type) [S_IFDOOR]: Likewise.
573 2001-12-21 Pavel Roskin <proski@gnu.org>
575 * hotlist.c (hotlist_callback): Recognize "delete" key.
577 * myslang.h [!HAVE_SYSTEM_SLANG]: Include slang/slang-mc.h to
579 [HAVE_SYSTEM_SLANG]: Use angle brackets for slang.h.
581 * myslang.h [!HAVE_SYSTEM_SLANG]: Include slang-mc.h directly
582 to avoid relying on symlinks.
584 2001-12-18 Pavel Roskin <proski@gnu.org>
586 * utilunix.c (init_groups): Don't return prematurely if the
587 primary group cannot be found (it can happen on Cygwin).
589 2001-12-10 Pavel Roskin <proski@gnu.org>
591 * dir.c (do_reload_dir): Hash-table added.
592 From Björn Eriksson <mdeans@algonet.se>
594 2001-12-03 Pavel Roskin <proski@gnu.org>
596 * dir.c (do_reload_dir): Optimize the logic - count the marks
597 and only match new entries against old entries if at least one
598 mark has not been transferred.
599 From Björn Eriksson <mdeans@algonet.se>
601 2001-11-29 Pavel Roskin <proski@gnu.org>
603 * main.c (midnight_callback): Implement "auto menus".
605 * layout.c: Make more variables static.
607 * cons.saver.c: Define LINUX_CONS_SAVER_C so that some parts
608 of cons.saver.h can be omitted.
609 * cons.saver.h: Declare nothing but constants if
610 LINUX_CONS_SAVER_C is defined.
612 2001-11-14 Pavel Roskin <proski@gnu.org>
614 Fully eliminate all references to HAVE_X and HAVE_GNOME.
616 * dir.c (do_sort): Correctly handle the case when there is no
617 ".." entry (i.e. panelized mode).
619 2001-11-14 Andrew V. Samoilov <kai@cmail.ru>
621 * view.c (do_view_init): Make sure _file is not
622 an empty string before mc_stat and mc_open.
625 2001-11-14 Pavel Roskin <proski@gnu.org>
627 * panelize.c (do_external_panelize): Re-sort the panel according
628 to the current settings.
630 * find.c (do_find): Re-sort the panel according to the current
631 settings when doing panelizing.
633 * dir.c (sort_type_to_name): Remove, it's unused in the text
635 (sort_name_to_type): Likewise.
636 * dir.h: Adjust to match.
638 * mouse.c: Add default cases to fix warnings with gcc-2.96.
640 2001-11-12 Pavel Roskin <proski@gnu.org>
642 * main.c: Remove support for subshell debugging. Firstly, it
643 was broken. Secondly, every developer should be able to add
644 this code when needed. Finally, there is no need to expose the
645 option to the user and translate it into 30 languages.
646 * subshell.h: Remove debug_subshell.
647 * subshell.c: Likewise.
649 2001-11-12 Andrew V. Samoilov <kai@cmail.ru>
651 * mad.h: Enable glib support.
653 * mad.[ch] (mad_get_current_dir): New function to use instead
654 of g_get_current_dir.
655 (mad_tempnam): Add file and line parameters.
656 (mad_alloc0): Make file parameter const.
657 (mad_realloc): Likewise.
658 (mad_strdup): Likewise.
659 (mad_strndup): Likewise.
660 (mad_free): Likewise.
661 (mad_finalize): Likewise.
663 2001-11-07 Andrew V. Samoilov <kai@cmail.ru>
665 * cmd.c (guess_message_value): Make val static const array.
666 (smblink_cmd) [!WITH_SAMBA]: Eliminated.
668 * dlg.c (add_widget): Check for what is not NULL
669 before everything else.
671 * slint.c (slang_reset_softkeys): Make display static const
672 array. Use sizeof (display) - 1 instead of strlen display.
673 (color_terminals): Make static const array.
674 (key_table): Make const.
676 (dealloc_color_pairs) [HAVE_MAD]: New function. Release
677 memory allocated in try_alloc_color_pair.
678 (slang_shutdown) [HAVE_MAD]: Call dealloc_color_pairs.
679 (try_alloc_color_pair): Move struct c outside function.
681 2001-10-29 Andrew V. Samoilov <kai@cmail.ru>
683 * charsets.c (load_codepages_list): Use glib memory allocation
685 (free_codepages_list) [HAVE_MAD]: New function to release
686 memory allocated in load_codepages_list.
687 * charsets.h: Declare free_codepages_list.
689 * main.c [HAVE_CHARSET]: Include charsets.h.
690 (main) [HAVE_MAD && HAVE_CHARSET]: Call free_codepages_list.
691 (program_name): Commented out.
693 2001-10-26 Andrew V. Samoilov <kai@cmail.ru>
695 * key.c (push_char): Fix buffer length calculation.
696 By David Kaelbling <drk@sgi.com>.
697 http://bugzilla.gnome.org/show_bug.cgi?id=60932
699 (define_sequence): Likewise.
700 (key_define_t): Add const declaration.
702 2001-10-22 Pavel Roskin <proski@gnu.org>
704 * main.h: Declare view_one_file and edit_one_file.
706 2001-10-22 Andrew V. Samoilov <kai@cmail.ru>
708 * dialog.h: Include global.h.
709 (message): Specify __attribute__.
711 2001-10-20 Pavel Roskin <proski@gnu.org>
713 * main.h (print_vfs_message): Specify __attribute__.
715 2001-10-19 Pavel Roskin <proski@gnu.org>
717 * global.h: Define __attribute__ to an empty string for non-gcc
718 compilers so that it's safe to use.
720 2001-10-18 Pavel Roskin <proski@gnu.org>
722 * view.c (init_growing_view): Revert last change, it was wrong.
723 (view_hook): Don't check that the file is regular - it's now
724 done in do_view_init(). This fixes update problem in quick view
725 when moving cursor from a regular file to a directory.
727 * view.c (do_view_init): Only accept regular files. Use stat(),
728 not fstat() because open() would hang on pipes. Avoid opening
730 (init_growing_view): Take file descriptor, not the filename.
731 (load_view_file): Likewise.
733 2001-10-01 Pavel Roskin <proski@gnu.org>
735 * boxes.c (tree): Rename to tree_box() to avoid confusion.
736 Adjust all callers and headers.
737 * main.c (tree_box): Rename to tree_box_cmd().
739 * tree.c (set_navig_label): Get argument "tree".
740 (set_navig_label): Likewise. Adjust all callers. Don't cast
741 function tree() to (Widget *) - it's wrong and dangerous.
743 * widget.h: Use type "buttonbarfn" more consistently.
744 * widget.c: Likewise.
746 * setup.c [!USE_VFS]: Warning fix.
747 * hotlist.c [!USE_VFS]: Likewise.
749 * tree.c (tree_navigation_flag): Should not be static.
751 * screen.c (panel_format_modified): Use more portable cast.
753 * fileopctx.h: Define new type mc_stat_fn.
754 * filegui.c (file_mask_dialog): Cast mc_stat and mc_lstat to
755 mc_stat_fn to prevent warnings without VFS support.
756 * fileopctx.c (file_op_context_new): Likewise.
758 2001-09-23 Andrew V. Samoilov <kai@cmail.ru>
760 * find.c: Include rx.h or regex.h
761 (get_line_at): New function. Returns malloc()ed null-terminated
762 line from file file_fd. Input is buffered in buf_size long
764 (search_content): Don't use external egrep.
765 Use get_line_at and regexp.
767 2001-09-21 Pavel Roskin <proski@gnu.org>
769 * cmd.c: Change all "long" variables to "off_t" whenever they
770 are used to store file sizes.
773 * fileopctx.h: Likewise.
775 * filegui.c: Likewise.
776 (show_bar): Take "double" arguments. Normalize arguments of
777 gauge_set_value() before converting them to "int".
779 2001-09-17 Pavel Roskin <proski@gnu.org>
781 * mouse.h: Major cleanup and interface change. init_mouse()
782 should only be called once, disable_mouse() and enable_mouse()
783 should be used later. Distinguish between disabled and
784 undetected mouse. Remove debugging stuff. Adjust all users.
785 * mouse.c: Implementation of the above.
786 * key.c: Don't use gpm_flag - check mouse_enabled instead.
788 2001-09-15 Pavel Roskin <proski@gnu.org>
790 * view.c: Cleanup of preprocessor directives.
792 * widget.c: Likewise.
793 * widget.h: Likewise.
795 * textconf.h: Get rid of all PORT_HAS_*. Adjust all users.
796 Continued eliminating GNOME code.
798 * cmd.c: Clean up unused GNOME code and some ifdef's.
804 * cmd.c (guess_message_value): Remove the argument. Adjust all
807 * textconf.c (features): Remove "edition", minor fixes.
808 (version): Don't report the current locale - it's meaningless,
809 especially if ENABLE_NLS is not defined.
811 * textconf.h: Remove status_using_ncurses - it's useless now.
812 Adjust all users. Call do_exit_ca_mode() and do_enter_ca_mode()
815 * main.c (init_xterm_support): Don't enable xterm_flag just
816 because of "kmous" in terminfo. Setiing this flag means much
817 more than just mouse support. Recognize terminals beginning
818 with "rxvt" and set xterm_flag for them.
820 * cmd.c (view_other_cmd): Don't check use_mouse_p before calling
821 init_mouse() and shut_mouse(), since those functions decide
822 themselves what to do.
823 * layout.c (done_screen): Likewise.
824 * main.c (setup_mc): Likewise.
825 * text.c (edition_post_exec): Likewise.
826 (edition_pre_exec): Likewise.
828 * user.h: Fix location of the home editor menu.
829 Reported by David Martin <dmartina@excite.es>
831 * mouse.h: Export xmouse_seq.
832 * mouse.c (init_mouse): Use xmouse_seq instead of hardcoded
833 xterm mouse sequence.
834 * main.c (setup_post): Join with setup_mc().
835 (init_xterm_support): New function. Check mouse capability.
836 (OS_Setup): Remove parts that are now in init_xterm_support().
838 2001-09-14 Pavel Roskin <proski@gnu.org>
840 * key.c (get_event): Recognize KEY_MOUSE, not just MCKEY_MOUSE.
841 * mouse.c: Don't use or emulate keyok(), since MC understands
844 2001-09-11 Pavel Roskin <proski@gnu.org>
846 * cmd.c (check_for_default): Make accessible from other files.
847 * cmd.h: Declare check_for_default().
849 2001-09-10 Pavel Roskin <proski@gnu.org>
851 * layout.c: Use HAVE_TERMIOS_H and HAVE_SYS_IOCTL_H more
854 * subshell.c: Likewise.
856 * util.c: Remove unused includes.
858 * Makefile.am (mc_LDADD): Don't use LSLANG and LGPM, since they
859 are now included into MCLIBS.
861 * Makefile.am (mc_LDADD): Use INTLLIBS provided by gettext
864 2001-09-09 Pavel Roskin <proski@gnu.org>
866 * hotlist.c (load_hotlist): If cannot open hotlist, don't assume
867 that it needs to be migrated and don't warn the user.
869 2001-09-08 Pavel Roskin <proski@gnu.org>
871 * Makefile.am: Fix definitions of CONFDIR and LOCALEDIR.
873 * subshell.c: Move definitions of WEXITSTATUS and WIFEXITED
874 below all includes so that they can be defined elsewhere.
876 2001-09-07 Pavel Roskin <proski@gnu.org>
878 * myslang.h: Specify arguments to function-like macros or remove
879 them if they are unused.
881 * main.c: Remove old debugging code. Remove external function
883 (menu_bar_event): Remove, it's unused.
884 * main.h: Declare get_mc_lib_dir() and force_ugly_line_drawing.
885 * layout.c: Remove all external declarations.
887 * main.c (main): Call save_stop_handler() - it was ifdef'd out
890 * main.c: Remove all GNOME code.
892 * cmd.c: No need to define "MIDNIGHT" before including vfs.h.
894 * user.h: Remove all dirty tricks with "MIDNIGHT" - they are not
897 * global.h: Include io.h, pwd.h, grp.h and utime.h. Adjust all
898 sources not to include them and to include global.h at the right
901 * global.h: Include all time-related system includes, since
902 it's non-trivial (order, conflicts) and is better handled in one
905 2001-09-06 Pavel Roskin <proski@gnu.org>
907 * fsusage.c: Include sys/param.h before sys/mount.h - it's
908 required on some systems.
909 * mountlist.c: Likewise.
910 From Timur Bakeyev <mc@bat.ru>
912 2001-09-04 Pavel Roskin <proski@gnu.org>
914 * Makefile.am: Don't use substituted values directly. Define
915 CHARSET_SRC unconditionally. Join SRCS and HDRS.
917 2001-09-03 Pavel Roskin <proski@gnu.org>
919 * widget.c (label_new): Don't calculate dimensions of multiline
920 labels, since they cannot be changed and msglen() is already
921 used when the dialog is created.
923 * Makefile.in: Converted to ...
924 * Makefile.am: ... this.
926 * slint.c: Make more data and function static.
927 * key.h: Remove declarations that are now static.
928 * myslang.h: Likewise.
930 * x.h: Remove. Adjust all users. Make sure that global.h is
931 included instead. Don't include sys/param.h unconditionally -
932 rely on global.h taking care of it.
933 * Makefile.in: Remove x.h.
935 * color.c: Remove unused code.
938 2001-09-02 Pavel Roskin <proski@gnu.org>
940 * key.c: Remove support for BUGGY_CURSES.
942 * tty.h: Remove support for old curses and GNOME.
943 * global.h: Likewise.
945 * widget.c (label_new): Set initial width of the widget based on
948 * view.c (hex_search): Don't use sscanf() to search for quoted
949 strings - use strchr instead.
951 2001-08-31 23:14:21 Timur Bakeyev <mc@bat.ru>
953 * utilunix.c: init_groups(), destroy_groups(), get_user_permissions()
954 rewritten to use GTree structure and functions. Add new static helper
955 functions mc_gid_compare() and mc_gid_destroy().
957 * util.h: Removed deprecated structure user_in_groups.
959 * screen.c: Fixed typo in format report error string.
961 2001-08-31 23:14:21 Timur Bakeyev <mc@bat.ru>
963 * utilunix.c: get_user_rights() renamed into get_user_permissions().
964 delete_groups() renamed into destroy_groups().
966 * screen.c: Likewise.
969 2001-08-27 Pavel Roskin <proski@gnu.org>
971 * cmd.c (dirsizes_cmd): Don't cast st_size to long - use off_t
972 instead, since off_t can be longer.
973 Reported by Radovan Bukoci <rado@autoparts.sk>
975 2001-08-30 David Martin <dmartina@excite.es>
977 * info.c (info_show_info): Use size_trunc_len() instead of
978 print_bytesize(). Don't assume English word ordering. Add
979 singular message when single block.
980 * win.c (print_bytesize): Remove.
981 (sprint_bytesize): Remove.
982 * win.h: Remove print_bytesize() and sprint_bytesize().
984 * util.c (size_trunc_len): Add units parameter. Change all
987 * util.c (size_trunc_len): Print size values with some (little)
988 sense for tiny and even wee lengths (i.e. squeezed X terminals).
990 * info.c (info_show_info): Move comment line just before
991 translatable message so it's shown in .po files to alert
992 translators. The message (translated) is used to set the start
993 column (so the available width) for some "truncatable" strings.
995 2001-08-27 Pavel Roskin <proski@gnu.org>
997 * key.c (learn_key): Turn off keypad to disable intepreting keys
999 Reported by Frederic L. W. Meunier <fredlwm@pervalidus.net>
1001 2001-08-26 Pavel Roskin <proski@gnu.org>
1003 * xcurses.c: Remove.
1004 * Makefile.in: Remove all references to xcurses.c.
1006 2001-08-24 Pavel Roskin <proski@gnu.org>
1008 * user.h: Include "../edit/edit-widget.h", not
1009 "../gtkedit/edit-widget.h".
1011 * subshell.c: Use standard Autoconf symbols to determine whether
1012 to include <stropts.h> and <grp.h>.
1014 2001-08-23 Pavel Roskin <proski@gnu.org>
1016 * subshell.c (feed_subshell): Don't wait forever after the first
1017 select() call if fail_on_error is true. This alleviates hang
1018 with zsh on QNX Neutrino.
1020 2001-08-21 Pavel Roskin <proski@gnu.org>
1022 * view.h: Declare view_dlg.
1023 * main.h: Declare edit_dlg.
1024 * layout.c (change_screen_size): Remove external declarations
1025 inside the function.
1027 2001-08-20 Pavel Roskin <proski@gnu.org>
1029 * view.c (load_view_file) [!HAVE_MMAP]: Warning fix.
1031 2001-08-19 Pavel Roskin <proski@gnu.org>
1033 * main.c (mc_maybe_editor_or_viewer) [!USE_INTERNAL_EDIT]:
1034 Reenable to make "mc -v" possible.
1035 (do_nc): Call mc_maybe_editor_or_viewer() even if the editor
1037 (argument_table) [!USE_INTERNAL_EDIT]: Disable "-e".
1039 2001-08-19 Andrew V. Samoilov <sav@bcs.zp.ua>
1041 * view.c (view_handle_key) [HAVE_CHARSET]: Remove unneeded
1044 2001-08-19 Pavel Roskin <proski@gnu.org>
1046 * screen.c [HAVE_X]: Disable unused code.
1048 * fs.h: Correctly include <sys/param.h>.
1049 * x.h: Include "global.h". Move all contents ...
1052 * regex.c (regex_compile): Warning fix for ambiguous else.
1054 2001-08-18 Pavel Roskin <proski@gnu.org>
1056 * key.c (xmouse_get_event): Filter out GPM_UP events that don't
1057 follow a GPM_DOWN event. Filter out events with unknown button
1058 numbers, such as mouse wheel events.
1059 (get_event): Return EV_NONE if xmouse_get_event() decided to
1062 * main.c (init_sigchld): Disable subshell if SIGCHLD handler
1063 cannot be installed.
1065 * x.h: Instead of undefining MIX and MAX after <gnome.h> make
1066 sure that <sys/param.h> is included before <gnome.h>.
1068 2001-08-17 Pavel Roskin <proski@gnu.org>
1070 * key.c (mc_bindings) [linux]: Remove old hack - recognizing
1071 "\e[2~" on all terminals.
1073 2001-08-16 Pavel Roskin <proski@gnu.org>
1075 * charsets.c (load_codepages_list): Print a warning if
1076 mc.charset cannot be opened.
1077 * setup.c (load_setup) [HAVE_CHARSET]: Remove all popup messages
1078 because it's to early to use them - ncurses would crash.
1080 2001-08-15 Pavel Roskin <proski@gnu.org>
1082 * util.c (strip_ctrl_codes): Rewrite using pointers. Fix
1083 stripping sequences beginning with "\e[". Check is_printable().
1085 * man2hlp.c: Remove HTML support. Remove old link support.
1087 (print_string): Handle backslashes in verbatim mode too.
1089 * main.c (setup_pre) [HAVE_CHARSET]: Fix compilation with
1092 * textconf.c (features): Fix interpretation of
1094 From David Martin <dmartina@excite.es>
1096 2001-08-14 Pavel Roskin <proski@gnu.org>
1098 * key.h (define_sequence): Change declaration to return int.
1099 * key.c (define_sequence): Return 1 on success, 0 on error.
1100 * learn.c (learn_button): Don't accept sequence if
1101 define_sequence() has failed.
1103 2001-08-12 Pavel Roskin <proski@gnu.org>
1105 * learn.c (learn_save): Fix memory leak.
1107 * dir.c (string_sortcomp) [HAVE_STRCOLL]: Make static.
1109 * cmd.c (guess_message_value): Typo - replace "LC_MESSAGE" with
1112 * dir.c (string_sortcomp) [HAVE_STRCOLL]: Always use strcmp()
1113 for case sensitive sort. For case insensitive sort use
1114 strcoll() if it's case insensitive for ASCII and g_strcasecmp()
1117 2001-08-11 Pavel Roskin <proski@gnu.org>
1119 * achown.c (chown_advanced_cmd): Remove dead code.
1120 * chown.c (chown_cmd): Likewise.
1121 * chmod.c (chmod_cmd): Likewise.
1123 * charsets.c (load_codepages_list): Use concat_dir_and_file().
1125 * mad.h: Disable glib support - it doesn't work properly.
1127 2001-08-07 Pavel Roskin <proski@gnu.org>
1129 * view.c: Warning fixes. Include "cmd.h". Rename help_cmd()
1131 (view_handle_key) [HAVE_X]: Disable '!' and Ctrl-O.
1133 * main.c (do_execute): Don't show prompt if the command is empty
1134 and the subshell is not running.
1135 * view.c (view_handle_key): Add support for Ctrl-O in the viewer.
1136 Suggested by Walery Studennikov <despair@sama.ru>
1138 2001-08-06 Pavel Roskin <proski@gnu.org>
1140 * boxes.c (display_init): Associate correct help topic.
1141 (sort_box): Likewise.
1142 (set_panel_filter): Likewise.
1143 * option.c (init_configure): Likewise.
1144 * menu.c (menubar_handle_key): Show help dependent on the active
1147 2001-08-06 Andrew V. Samoilov <kai@cmail.ru>
1149 * mad.c (mad_strdup): Return NULL if NULL is passed.
1151 * view.c (block_search): Return the position where the block was
1152 found as declared in comment.
1153 (hex_search): Don't increase pos, block_search returns now right
1156 2001-08-03 Andrew V. Samoilov <kai@cmail.ru>
1158 * mad.[ch] (mad_check): Declare file parameter const.
1159 (mad_alloc): Likewise. Don't truncate it.
1160 (mad_abort): Declare message and file parameters const.
1162 2001-08-03 Pavel Roskin <proski@gnu.org>
1164 * file.c: Warning fix. Include global.h before other local
1166 * filegui.c: Likewise.
1167 (fmd_init_i18n) [!ENABLE_NLS]: Completely disable.
1168 * i18n.h [!ENABLE_NLS]: Warning fix.
1169 * learn.c (init_learn): Move do_refresh() call immediately
1170 before cleate_dlg(). Warning fix.
1172 2001-07-31 Pavel Roskin <proski@gnu.org>
1174 * Makefile.in: "install" now depends on "all".
1175 Reported by Walery Studennikov <despair@sama.ru>
1177 2001-07-31 Andrew V. Samoilov <kai@cmail.ru>
1179 * util.c [!HAVE_X] (is_printable): Don't duplicate declarations from
1181 (load_file): Use fopen and fstat to prevent race conditions.
1182 (size_trunc): Make suffix const array.
1183 (strip_password): Make prefixes const array.
1184 (file_date): Make fmt auto variable.
1185 * color.c (color_table): Make constant array.
1186 * widget.[ch] (label_new): Make text parameter const.
1187 * menu.c (create_menu): Don't localize name, it is always done.
1188 * find.c (find_parameters): Fix hotkeys duplication.
1189 * complete.c (command_completion_function): Don't stop $PATH
1190 processing on empty entry. Interpret it as current directory.
1192 2001-07-31 Pavel Roskin <proski@gnu.org>
1194 * charsets.c: Warning fixes.
1195 * charsets.h: Likewise.
1196 * selcodepage.c: Likewise.
1197 * selcodepage.h: Likewise.
1199 * Makefile.in: Move most logic around gindex.pl into gindex.pl.
1200 Don't use maintainer-only rules since mc.hlp won't be removed
1201 now if perl is missing or gindex.pl fails.
1202 * gindex.pl: Run man2hlp internally. Use files given as
1203 arguments instead of stdin and stdout.
1205 2001-07-30 Pavel Roskin <proski@gnu.org>
1207 * mad.c: Don't use g_calloc - it's missing in glib 1.2.x.
1208 * mad.h: Likewise. Use mad_alloc0() to emulate calloc().
1210 * view.h: Simplify, respect WANT_WIDGETS setting.
1212 2001-07-28 Pavel Roskin <proski@gnu.org>
1214 * view.c (view_ok_to_quit): Make global - it's needed for GMC.
1215 * view.h: Declare view_ok_to_quit().
1217 2001-07-27 Pavel Roskin <proski@gnu.org>
1219 * util.c [!USE_VFS] (get_current_wd): Resurrect, this time using
1220 g_get_current_dir().
1222 * background.h: Remove WITH_BACKGROUND, it's now in extraconf.h.
1223 * background.c: Use WITH_BACKGROUND instead of USE_NETCODE.
1225 * util.c (mc_mkstemps): Don't prepend $TMPDIR if prefix contains
1228 2001-07-26 Pavel Roskin <proski@gnu.org>
1230 * cmd.c (do_link): Append filename to the default symlink
1231 target. Don't add path separator if there is no listing on
1232 the other panel. Avoid using fixed size buffers.
1233 From Max Schedriviy <max@tavrida.net>
1235 * main.c [HAVE_X]: Disable eight_bit_clean and full_eight_bits.
1236 * util.c (is_printable) [HAVE_X]: Simplify.
1238 2001-07-25 Pavel Roskin <proski@gnu.org>
1240 * cmd.c (do_link): Simplify. Don't silently exit if the source
1241 file is not regular - let user see the error if any.
1243 2001-07-24 Pavel Roskin <proski@gnu.org>
1245 * achown.c (ch_perm): Make constant array.
1246 (chown_info_update): Use set_perm_by_flags(), not set_perm().
1249 * achown.c: Make all global variables static. Fix help.
1250 * complete.c: Likewise.
1251 * chmod.c: Make all global variables static.
1252 * chown.c: Likewise.
1253 * chmod.h: Remove all variables.
1255 2001-07-23 Pavel Roskin <proski@gnu.org>
1257 * user.c: Eliminate static variable s_editwidget. Pass
1258 edit_widget as argument. All callers changed.
1259 (expand_format): Fix expansion of %n and %b for the editor.
1260 * util.c: Remove dead code.
1262 * setup.c (load_keys_from_section): Give terminal-specific
1263 settings preference over settings from [terminal:general].
1265 2001-07-22 Pavel Roskin <proski@gnu.org>
1267 * setup.c (load_keys_from_section): Give ~/.mc/ini preference
1270 2001-07-20 Pavel Roskin <proski@gnu.org>
1272 * dlg.c: Remove dependency on definitions in gconf.h.
1274 * widget.c (input_callback) [HAVE_X]: Disable Ctrl-q - it
1277 * file.c (panel_get_file): Use g_assert_not_reached().
1278 * key.c (xgetch_second): Make static.
1280 2001-07-19 Pavel Roskin <proski@gnu.org>
1282 * user.c (check_format_view): Match "unform" instead of
1283 "unformated" because some users may spell this word correctly.
1285 2001-07-17 Pavel Roskin <proski@gnu.org>
1287 * util.c (get_current_wd): Remove. It's obsoleted by
1288 g_get_current_dir() from glib.
1290 * ext.c (exec_extension): Add the `rm' command to the end of
1291 temporary scripts so that they erase themselves.
1293 * util.c (mc_mkstemps): Always use "unsigned long" for enthropy,
1294 since gcc-2.7.2.1 on SunOS doesn't understand __extension__ and
1295 checking for "long long" is not worth the trouble.
1296 Reported by David Martin <dmartina@excite.es>
1298 2001-07-16 Pavel Roskin <proski@gnu.org>
1300 * utilunix.c (mc_doublepopen): Use _exit() instead of exit()
1301 and don't close any unrelated file descriptors. Explicitly
1304 2001-07-15 Pavel Roskin <proski@gnu.org>
1306 * mad.h: Include stdio.h to prevent redefining mad_tempnam().
1307 * main.c [HAVE_X && HAVE_MAD]: Don't call done_key().
1309 * dlg.h: Remove declarations of non-existent functions.
1310 [HAVE_X]: Disable color constants - they shouldn't be used.
1312 * boxes.c [WITH_SMBFS] (vfs_smb_get_authinfo): Copied from
1313 vfs/smbfs.c, function authinfo_get_authinfo_from_user().
1315 * cmd.c [HAVE_X]: Disable source routing dialog and panel
1317 * main.c (ctl_x_map): Simplify preprocessor directives.
1319 2001-07-14 Pavel Roskin <proski@gnu.org>
1321 * screen.c (panel_keymap) [HAVE_X]: Disable Alt-H - it's not
1322 implemented properly for GNOME.
1323 * main.c (directory_history_list) [HAVE_X]: Disable.
1325 * panelize.c [HAVE_X]: Disable unused code.
1327 * main.c [HAVE_X]: Disable Ctrl-X sequences.
1329 * find.c: Remove code unused in the text edition.
1331 * main.c [HAVE_X]: Eliminate setup_post() and partly done_mc().
1333 * utilunix.c (uid_cache): Make static.
1334 (gid_cache): Likewise.
1335 (init_uid_gid_cache): Remove.
1336 * main.c (setup_post): Don't call init_uid_gid_cache().
1338 * main.c (default_map) [HAVE_X]: Disable Alt-T.
1339 * cmd.c [HAVE_X]: Eliminate set_basic_panel_listing_to() and
1340 toggle_listing_cmd().
1342 2001-07-13 Pavel Roskin <proski@gnu.org>
1344 * utilunix.c (canonicalize_pathname): Don't handle PATH_SEP
1345 after backslash in a special way.
1347 2001-07-12 Pavel Roskin <proski@gnu.org>
1349 * subshell.c (init_subshell): Run "set echo_style=both" at
1350 startup to ensure that echo in tcsh understands octal numbers.
1351 Reported by Francis Kwok <francis.kwok@alcatel.com>
1353 * Makefile.in (OURLIBS): Merge with ...
1354 (LIBS): ... this. Add @LIBICONV@.
1355 Reported by Libor Motyèka <l_motycka@ortex.cz>
1357 * subshell.c (subshell_name_quote): New function. Quote all
1358 characters as octals, use command substitution.
1359 (do_subshell_chdir): Use subshell_name_quote(). Don't change
1360 terminal settings when the quoted path is sent to the shell -
1363 2001-07-12 Andrew V. Samoilov <kai@cmail.ru>
1365 * main.c: Eliminate iconify_on_exec.
1366 [!HAVE_GNOME]: Eliminate nowindows, nodesktop, twopanel,
1367 display_linksdir and cmdline_geometry.
1368 (sigchld_handler_no_subshell): Comment fixes.
1369 (midnight_callback): Likewise.
1370 (print_mc_usage): Use fputs, not fprintf.
1371 (print_color_usage): Likewise.
1372 (argument_table): Assign 'r' with force_subshell_execution and 'U'
1374 (process_args): Don't deal with 'r', 'U' and 'X' options.
1375 (setup_mc) [HAVE_GNOME]: Eliminate more code.
1377 setup.c (options): Eliminate iconify_on_exec.
1379 2001-07-10 Andrew V. Samoilov <kai@cmail.ru>
1381 * view.c (hex_search): Release buffer after use.
1383 2001-07-09 Pavel Roskin <proski@gnu.org>
1385 * view.c (hex_search): Reimplement parser using sscanf. Add
1386 support for decimal and octal numbers. Add error reporting.
1387 Allocate buffer dynamically.
1389 * hotlist.c: Add comments to avoid confusion between
1390 done_hotlist() and hotlist_done().
1391 (hotlist_done): Set l_hotlist to NULL.
1392 (add2hotlist): Load hotlist if it's neither loaded nor loading.
1393 This fixes Ctrl-x h. Fix compiler warning.
1395 * hotlist.c: Make more variables and functions static.
1397 2001-07-08 Pavel Roskin <proski@gnu.org>
1399 * ext.c (exec_extension) [HAVE_X]: Free file_name. Add comment
1400 explaining why it cannot be unlinked there.
1402 2001-07-06 Pavel Roskin <proski@gnu.org>
1404 * ext.c (exec_extension): Unlink temporary file earlier if it's
1405 not going to be used.
1408 * Makefile.in: Use additional quotes to preserve @prefix@ when
1409 Makefile is generated.
1411 * Makefile.in: Don't use SEDCMD2, use sed.
1413 * cons.saver.c: New variable console_minor. Eliminate variables
1415 (check_file): Set console_minor to the minor device number of
1416 the console. Disallow /dev/tty0.
1417 (detect_console): Don't parse tty_name, instead make sure that
1418 it corresponds to console_minor. Check console first. Fallback
1419 to /dev/vcc/a* if /dev/vcsa* cannot be opened.
1420 (save_console): Use console_minor.
1421 (restore_console): Likewise.
1423 * cons.saver.c (check_file): Eliminate using text messages to
1424 indicate errors. Improve debug messages.
1425 (detect_console): Likewise.
1426 (main): Adjust call to detect_console.
1428 * main.c (sigchld_handler_no_subshell): Don't restart cons.saver
1430 * subshell.c (sigchld_handler): Likewise.
1432 2001-07-05 Pavel Roskin <proski@gnu.org>
1434 * main.c (midnight_callback): Don't handle any events except
1435 Ctrl-x combinations on DLG_KEY event if the menu is active.
1437 * main.c (load_prompt): Don't change prompt if midnight_dlg is
1438 not the current dialog.
1440 2001-06-28 Pavel Roskin <proski@gnu.org>
1442 * util.c (size_trunc_len): New function - print file size to
1443 a buffer of limited length.
1444 * util.h: Declare size_trunc_len().
1445 * screen.c (string_file_size): Use size_trunc_len().
1447 2001-06-26 Pavel Roskin <proski@gnu.org>
1450 * Makefile.in (SRCS): Remove xslint.c.
1452 2001-06-25 Pavel Roskin <proski@gnu.org>
1454 * key.c (ctrl_pressed): Don't limit functionality to Linux.
1455 * screen.c (prev_page_key): Don't require console_flag to be set
1456 to use ctrl_pressed(), only require that HAVE_X is undefined.
1457 (next_page_key): Likewise.
1458 * widget.c (key_left): Don't limit functionality to Linux.
1459 (key_right): Likewise.
1461 * main.h: Use "ifdef HAVE_GNOME", not "if HAVE_GNOME". Fix the
1462 order of conditionals and put comments on endifs.
1464 2001-06-25 Andrew V. Samoilov <sav@bcs.zp.ua>
1466 * view.c [HAVE_CHARSET]: Include selcodepage.h.
1467 (view_new): Use g_new0.
1468 (ruler): Make static.
1470 * complete.c (filename_completion_function): Clean it up.
1471 (command_completion_function): Make words, bash_reserved and
1472 bash_builtins const, use concat_dir_and_file.
1473 (fetch_hosts): Fix typo, style fixes.
1475 2001-06-23 Pavel Roskin <proski@gnu.org>
1477 * mem.h: Undefine bcopy(), bcmp() and bzero() before redefining
1480 2001-06-22 Pavel Roskin <proski@gnu.org>
1482 * ext.c (exec_extension) [HAVE_X]: Disable console handling.
1484 * cons.handler.c: Reorganize includes. Fix warnings on BSD.
1485 * rxvt.c (rxvt_extensions): Make static.
1486 * main.c (sigchld_handler_no_subshell) [!__linux__]: Don't try
1487 to restart cons.saver.
1488 * subshell.c (sigchld_handler) [!__linux__]: Likewise.
1490 * fsusage.c: Use HAVE_INFOMOUNT.
1491 * mountlist.c: Likewise. Fix condition when mount_list is
1493 (fstype_to_string): Rename mount_list to mlist to avoid
1494 confusion with the file-scoped static variable.
1496 * cmd.c [HAVE_X]: Disable more code. Reorder includes.
1498 2001-06-20 Pavel Roskin <proski@gnu.org>
1500 * main.c: Remove MenuBarEmpty. From Andrew V. Samoilov.
1502 * wtools.c [HAVE_X]: Disable quick dialog routines.
1504 * setup.c (save_setup) [HAVE_X]: Don't save the [Dirs] section.
1505 (load_setup) [HAVE_X]: Don't load the [Dirs] section.
1506 * main.c [HAVE_X]: Disable other_dir and boot_current_is_left.
1509 2001-06-19 Pavel Roskin <proski@gnu.org>
1511 * background.h: Correct condition when WITH_BACKGROUND is
1513 * fsusage.c: Rearrange the includes. Define HAVE_QNX_MOUNT
1514 for old QNX and use it instead of __QNX__.
1515 * mountlist.c: Likewise.
1516 * keyxdef.c: Define HAVE_QNX_KEYS for old QNX and use it instead
1519 2001-06-18 Pavel Roskin <proski@gnu.org>
1521 * main.c [HAVE_X]: Disable change_panel(),
1522 copy_current_readlink() and copy_other_readlink().
1523 Don't do anything with cmdline and command_prompt.
1524 * screen.c [HAVE_X]: Disable panel_event(), chdir_other_panel()
1525 and chdir_to_readlink(). Adjust all callers.
1526 (panel_key) [HAVE_X]: Don't use command_prompt - always
1527 start search on alphanumeric keys.
1528 * setup.c [HAVE_X]: Disable save_layout(), load_layout(), struct
1529 layout. Adjust all dependencies.
1531 * utilunix.c (init_my_statfs): Move this ...
1532 * util.c (my_statfs): ... and this ...
1533 * mountlist.c: ... here.
1534 * util.h: Move mountlist-related declarations ...
1535 * mountlist.h: ... here.
1536 * info.c: Include mountlist.h.
1538 2001-06-17 David Martin <dmartina@excite.es>
1540 * hotlist.c (init_movelist): Don't assume English word ordering
1543 2001-06-16 Andrew V. Samoilov <sav@bcs.zp.ua>
1545 * wtools.c (message): Possible buffer overflow fixed.
1546 (query_callback) [HAVE_X]: Disable more code.
1547 (listbox_refresh) [!HAVE_X]: Became a macro.
1548 * hotlist.c (init_i18n_stuff): Mark cancel_but for translation.
1550 * tree.c (tree_copy, tree_move): Possible memory leaking fixed.
1551 (tree_keymap): Constified.
1553 2001-06-15 Pavel Roskin <proski@gnu.org>
1555 * panelize.c: Define DIR_H_INCLUDE_HANDLE_DIRENT earlier, since
1556 the GNOME edition includes dir.h from other headers.
1558 * background.c: Include "x.h".
1559 * panelize.c: Likewise.
1560 * treestore.c: Likewise.
1563 * command.c: Reorder includes. Include "x.h".
1564 * complete.c: Likewise.
1566 * user.h: Declare user_menu_cmd() unconditionally.
1567 * i18n.h [GAVE_GNOME]: Remove code that is now in x.h.
1569 * tty.h [HAVE_X]: Define beep() to gdk_beep().
1571 2001-06-14 Pavel Roskin <proski@gnu.org>
1573 * xtty.h: Remove, move contents ...
1575 [HAVE_X]: Define attrset(), mc_refresh(), enable_interrupt_key()
1576 and disable_interrupt_key(). Don't declare mc_refresh().
1577 * view.c: Use braces around widget_move() since it's empty in
1579 * xslint.c: Eliminate attrset() and mc_refresh().
1580 * Makefile.in: Remove xtty.h.
1582 * cons.handler.c (handle_console): Remove useless default.
1583 * ext.c (regex_command): Initialize include_target_len.
1584 * find.c [HAVE_GNOME]: Eliminate untyped declarations.
1585 * fsusage.c: Remove untyped declaration of statfs().
1586 [_AIX && _I386]: Rename statfs to aix_statfs and move
1587 it before get_fs_usage(). Define statfs to aix_statfs.
1589 * achown.c: Eliminate untyped declarations.
1590 * boxes.c: Likewise.
1591 * cons.saver.c: Likewise.
1592 * hotlist.c: Likewise.
1593 * panelize.c: Likewise.
1595 * main.c: Likewise. Make undeclared functions static.
1596 * treestore.c: Make undeclared functions static.
1598 * widget.c: Likewise.
1600 * main.h: Fix prototype of exec_shell.
1601 * tree.c: Make all functions static when possible.
1602 * tree.h: Changes for the above.
1604 * text.c [HAVE_X]: Remove useless #error.
1605 * cons.saver.c: Indent #error to hide it from old compilers.
1607 2001-06-13 Pavel Roskin <proski@gnu.org>
1609 * screen.c (display_mini_info): Avoid nested i18n calls.
1610 (parse_panel_size): Warning fix.
1611 * user.c [HAVE_X]: Warning fix.
1612 (check_format_var): Avoid nested i18n calls. Improve messages.
1614 * screen.c (user_file_menu_cmd) [HAVE_X]: Disable.
1615 (panel_callback) [HAVE_X]: Don't define labels, they are unused.
1616 * user.c [HAVE_X]: Disable all user menu code.
1618 * color.c (color_table): Make static. Only use in text edition.
1619 * xtty.h: Remove unused definitions.
1621 * slint.c (slang_init): Check screen dimensions and exit if they
1622 are abnormal. This may happen due to a S-Lang bug when the TERM
1623 is set to a value not listed in termcap or terminfo.
1625 2001-06-12 Pavel Roskin <proski@gnu.org>
1627 * boxes.c [HAVE_CHARSET]: Localize more strings. Lay out the
1628 encoding dialog using the translated title length. Remove
1629 useless preprocessor directives.
1630 From David Martin <dmartina@excite.es>
1632 2001-06-11 Andrew V. Samoilov <sav@bcs.zp.ua>
1634 * dlg.[ch] (x_set_dialog_title): title constified.
1635 (create_dlg): Use g_new0 instead of g_new.
1637 * selcodepage.c (do_select_codepage): Fix compilation.
1639 2001-06-09 Pavel Roskin <proski@gnu.org>
1641 * util.c (load_mc_home_file): New function. Load file from
1642 mc_home, but try localized version of that file first.
1643 * util.h: Declare load_mc_home_file().
1644 * help.c (interactive_display): Use load_mc_home_file(). If the
1645 first argument is NULL assume mc.hlp.
1646 * dlg.c (dialog_handle_key): Use interactive_display() without
1647 specifying the help file.
1648 * tree.c (tree_copy): Likewise.
1649 * cmd.c (help_cmd): Likewise.
1650 (get_random_hint): Use load_mc_home_file().
1651 From Andrew V. Samoilov.
1653 2001-06-07 Andrew V. Samoilov <sav@bcs.zp.ua>
1655 * charsets.h: Define CHARSETS_INDEX without leading LIBDIR.
1657 * charsets.c (translate_character): Warning fix.
1658 (init_translation_table): Don't deal with printable.
1659 This one is initialized by init_printable_table ().
1660 (load_codepages_list): Use CHARSETS_INDEX.
1662 * selcodepage.c (do_select_codepage): Messages marked for i18n.
1663 * setup.c (load_setup): Eliminate errbuf. Fix error message.
1665 2001-06-07 Pavel Roskin <proski@gnu.org>
1667 * setup.c (load_setup): Call init_printable_table() and
1668 init_translation_table() regardless of other failures.
1670 * charsets.c (get_codepage_index): Warning fix.
1671 (init_printable_table): New function.
1672 * charsets.h: Declare init_printable_table().
1673 * setup.c (load_setup): Uncomment init_printable_table().
1675 * cons.saver.c: Make all functions except main() static.
1676 * mfmt.c (omain): Remove, it's unused.
1678 2001-06-06 Pavel Roskin <proski@gnu.org>
1680 * main.c (done_mc) [HAVE_X]: Don't use xterm_flag.
1681 (midnight_callback) [HAVE_X]: Don't handle any keys except
1683 Remove useless preprocessor conditionals.
1684 * win.c [HAVE_X]: Disable unused functions.
1686 * file.c: Add comments after every endif.
1687 [HAVE_GNOME] [!WITH_BACKGROUND]: Fix compilation.
1689 2001-06-06 Andrew V. Samoilov <sav@bcs.zp.ua>
1691 * main.c [HAVE_CHARSET]: Remove source_codepage and display_codepage.
1692 They are declared in selcodepage.c.
1693 * setup.c [USE_VFS]: Remove declarations for variables which are
1694 declared in vfs/ftpfs.c.
1695 (load_setup) [HAVE_CHARSET]: init_printable_table commented
1696 out to enable compilation. Error strings tagged for translation.
1697 (init_setup): Optimized.
1698 * boxes.c (sel_charset_button): Eliminate C++ comment.
1699 (new_display_codepage): Made static.
1700 (display_bits_box): Use "%s" for plain string in message.
1702 2001-06-05 Pavel Roskin <proski@gnu.org>
1704 * boxes.c [HAVE_CHARSET]: New charset selection dialog.
1705 * main.c [HAVE_CHARSET]: Don't use eight_bit_clean and
1706 full_eight_bits. Use source_codepage and display_codepage to
1707 deduce the terminal 8-bitness.
1708 * main.h [HAVE_CHARSET]: Change to match main.c.
1709 * setup.c [HAVE_CHARSET]: Implement saving and loading charset
1711 * util.c (is_printable) [HAVE_CHARSET]: Use charset settings.
1712 * view.c [HAVE_CHARSET]: Implement charset support.
1713 From Walery Studennikov <hqsoftware@mail.ru>.
1715 * selcodepage.c (do_select_codepage): New function.
1716 * selcodepage.h: Declare it.
1717 From Walery Studennikov <hqsoftware@mail.ru>.
1719 * mfmt.c (omain): Warning fix.
1721 * key.c [HAVE_TEXTMODE_X11_SUPPORT]: Rename `display' to
1722 `x11_display' and `w' to `x11_window'. Make them static.
1723 (init_textmode_x11_support): Include into init_key().
1724 (done_textmode_x11_support): Include into done_key().
1725 (k_dispose): Make static.
1726 (s_dispose): Likewise.
1727 * key.h: Remove init_textmode_x11_support() and
1728 done_textmode_x11_support().
1729 * main.c: Don't call init_textmode_x11_support() and
1730 done_textmode_x11_support().
1732 * achown.c: Make global variables static if possible. Remove now
1733 useless preprocessor directives, since this file is now used in
1734 the text edition only.
1735 * boxes.c: Remove useless ifdefs.
1736 [USE_VFS]: Don't undef USE_NETCODE - it's done in extraconf.h.
1737 * cmd.c [USE_VFS]: Don't undef USE_NETCODE.
1738 * chmod.c: Remove useless ifdefs.
1739 * filegui.c: Likewise.
1740 * hotlist.c: Likewise.
1742 * layout.c: Likewise.
1743 * listmode.c: Likewise.
1744 * option.c: Likewise.
1745 * subshell.c: Likewise.
1746 * help.c: Remove useless ifdefs. Make global variables static if
1749 * learn.c: Likewise.
1751 2001-06-04 Andrew V. Samoilov <sav@bcs.zp.ua>
1753 * charsets.c (load_codepages_list): Lines in mc.charset beginning
1754 with a # are comments. Use "default character_set_name" in mc.charset
1755 to set default codepage for your system.
1756 (xstrncpy): Eliminate.
1758 2001-06-04 Pavel Roskin <proski@gnu.org>
1760 * cmd.c (edit_symlink_cmd) [!HAVE_GNOME]: Warn if the current
1761 selection is not a symbolic link.
1763 2001-06-02 Pavel Roskin <proski@gnu.org>
1765 * cmd.c (free_vfs_now) [HAVE_GNOME]: Eliminate.
1766 (reselect_vfs) [HAVE_GNOME]: Likewise.
1767 * main.c (ctl_x_map) [HAVE_GNOME]: Disable add2hotlist_cmd.
1768 (done_mc) [HAVE_X]: Don't call save_hotlist().
1769 * setup.c (save_setup) [HAVE_X]: Likewise.
1770 (done_setup) [HAVE_X]: Don't call done_hotlist().
1772 2001-06-01 Pavel Roskin <proski@gnu.org>
1774 * hotlist.c [HAVE_X]: Don't use ctrl_pressed().
1775 * widget.c [HAVE_X]: Likewise.
1776 * main.c [HAVE_X]: Likewise. Don't call init_key() and
1777 init_key_input_fd().
1778 * setup.c [HAVE_X]: Remove some variables that make no sence
1779 for the GNOME edition. Eliminate save_panel_types().
1780 * view.c [!PORT_WANTS_VIEW]: Eliminate view_mode_callback().
1782 * view.c [HAVE_X]: Define is_idle() to 1. Warning fix.
1784 * file.c (copy_file_file): Initialize src_uid, src_gid, src_mode
1785 and file_size to avoid a warning.
1787 2001-05-31 Pavel Roskin <proski@gnu.org>
1789 * charsets.c: Include config.h before everything else.
1790 * selcodepage.c: Likewise.
1792 * textconf.c (features): Use longer strings to avoid enforcing
1793 english word ordering on the translations. Capitalize sentences.
1794 From Walery Studennikov: Indicate charset support.
1795 (version): Use fputs, not fprintf.
1797 * Makefile.in: Add charsets.c, charsets.h, selcodepage.c and
1798 selcodepage.h. Compile them if the charset support is enabled.
1799 Distribute them always.
1801 2001-05-30 Pavel Roskin <proski@gnu.org>
1803 * charsets.c: New file for charset conversion support.
1804 From Walery Studennikov.
1805 * charsets.h: Likewise.
1806 * selcodepage.c: Likewise.
1807 * selcodepage.h: Likewise.
1809 * layout.c (init_curses) [!HAVE_SLANG]: Set ESCDELAY to 0 if
1810 possible to prevent ncurses from waiting after escape.
1812 2001-05-29 Pavel Roskin <proski@gnu.org>
1814 * cmd.c (quick_cd_cmd) [HAVE_GNOME]: Disable.
1815 * main.c (sort_cmd) [HAVE_GNOME]: Likewise.
1816 (ctl_x_map) [HAVE_GNOME]: Disable "Ctrl-x j" - background jobs.
1818 * color.c (init_colors) [HAVE_SLANG]: Use "default" instead of
1819 NULL as color names - this works even if COLORFGBG is unset.
1820 Don't check HAS_DIRECT_COLOR_ACCESS - it's now meaningless.
1822 * color.h: Define DEFAULT_COLOR_INDEX and DEFAULT_COLOR in the
1823 same way regardless of HAVE_SLANG.
1824 * color.c (init_colors) [USE_NCURSES]: Initialize the default
1827 * subshell.c (pty_open_master) [!HAVE_SCO && HAVE_GRANTPT]:
1828 Don't try to close a file that wasn't opened.
1830 * xslint.c: Remove slang_init() and FIXME in the comment.
1831 * main.c (main) [!HAVE_SLANG]: Don't call slang_init().
1833 2001-05-28 Pavel Roskin <proski@gnu.org>
1835 * myslang.h: Use HAVE_SLANG_SLANG_H instead of non-standard
1836 SLANG_H_INSIDE_SLANG_DIR.
1838 * xslint.c: Remove unused functions.
1840 * color.c (init_colors) [HAVE_SLANG]: Use SLtt_set_color() to
1841 associate the default colors with DEFAULT_COLOR_INDEX. The old
1842 code would unset alternative charset without making S-Lang aware
1844 Thanks to John E. Davis <davis@space.mit.edu>
1845 * widget.c (update_input) [HAVE_SLANG]: Revert last change - it
1848 2001-05-28 Andrew V. Samoilov <sav@bcs.zp.ua>
1850 * main.c: Correct some comments after #endif
1851 (shell): Remove comment and #ifdef around shell variable.
1852 (process_args) [HAVE_SUBSHELL_SUPPORT]: All related args enclosed
1853 between one #ifdef ... #endif pair.
1854 (process_args): smbfs_set_debug () takes a debug level as argument,
1857 2001-05-27 Pavel Roskin <proski@gnu.org>
1859 * main.c (OS_Setup) [!HAVE_X]: Exit immediately if TERM
1860 environment variable is unset or empty.
1862 2001-05-25 Pavel Roskin <proski@gnu.org>
1864 * cmd.c: Clean up useless preprocessor directives.
1865 (symlink_cmd): Warning fix.
1866 * dlg.c (dialog_handle_key) [HAVE_X]: Disable suspend on Ctrl-z.
1867 * main.c (do_suspend_cmd) [HAVE_GNOME]: Remove.
1868 (suspend_cmd) [HAVE_GNOME]: Likewise.
1870 2001-05-24 Pavel Roskin <proski@gnu.org>
1872 * widget.c (update_input) [HAVE_SLANG]: Work around a bug in
1873 SLang 1.x - set charset to alternative when printing spaces.
1875 2001-05-22 Pavel Roskin <proski@gnu.org>
1877 * ext.c (exec_extension): Use g_free() on the result of
1878 mc_mkstemps(). Don't free it if mc_mkstemps() fails - it's not
1880 * user.c (execute_menu_command): Likewise.
1881 * util.c (mc_mkstemps): Return NULL in the filename in the case
1882 of failure. Remove support for NULL as the first argument.
1883 From Andrew V. Samoilov.
1885 2001-05-21 Pavel Roskin <proski@gnu.org>
1887 * ext.c (exec_extension): Use mc_mkstemps().
1888 * user.c (execute_menu_command): Use mc_mkstemps().
1889 * util.c (mc_mkstemps): New function - safely create and
1890 open temporary file. Return the handle and the name.
1891 * util.h: Declarations for init_tmpdir() and mc_mkstemps().
1892 Define TMPDIR_DEFAULT and SCRIPT_SUFFIX.
1894 2001-05-18 Pavel Roskin <proski@gnu.org>
1896 * TODO: Remove Tk-related entries.
1897 * boxes.c [HAVE_TK]: Remove. Don't need INPUT_INDEX anymore.
1898 * screen.c [HAVE_TK]: Remove.
1899 (panel_event): Made static.
1900 * chmod.c [HAVE_TK]: Remove.
1901 * cmd.c [HAVE_TK]: Likewise.
1902 * help.c [HAVE_TK]: Likewise.
1903 * hotlist.c [HAVE_TK]: Likewise.
1904 * info.c [HAVE_TK]: Likewise.
1905 * view.c [HAVE_TK]: Likewise.
1906 * view.h [HAVE_TK]: Likewise.
1907 * widget.c [HAVE_TK]: Likewise.
1908 * wtools.c [HAVE_TK]: Likewise.
1910 * TODO: Remove XView-related entries.
1911 * menu.h [HAVE_XVIEW]: Remove all XView-related code.
1913 2001-05-17 Pavel Roskin <proski@gnu.org>
1915 * subshell.c (pty_open_master) [HAVE_SCO]: Fix ambigous `else'.
1916 [!HAVE_SCO && !HAVE_GRANTPT]: Likewise.
1918 2001-05-16 Pavel Roskin <proski@gnu.org>
1920 * subshell.c: Define _GNU_SOURCE to enable prototypes for
1921 allocating pseudo-terminals on GNU systems.
1923 * subshell.c (init_subshell_child): New function to initialize
1924 child process and run subshell. Code moved from ...
1925 (init_subshell): ... here.
1927 * subshell.c (init_subshell): Don't close pty_slave if is wasn't
1928 open. Initialize it with -1.
1930 2001-05-14 Pavel Roskin <proski@gnu.org>
1932 * main.c [HAVE_GNOME]: Disable more code.
1933 * cmd.c [HAVE_GNOME]: Likewise.
1935 * background.h: Omit definitions that require FileOpContext if
1936 fileopctx.h has not been included yet.
1938 * background.c (real_message_2s): Declare arguments "const" when
1940 (real_message_3s): Likewise.
1941 * wtools.c (message): Likewise.
1942 * background.h: Change declarations to match.
1943 * dialog.h: Likewise.
1945 * boxes.c [HAVE_GNOME]: Disable unused code.
1946 * find.c [HAVE_GNOME]: Likewise.
1947 * complete.c [HAVE_GNOME]: Likewise.
1948 * main.c [HAVE_GNOME]: Likewise.
1950 * screen.c (adjust_top_file): Enable only if it's used, i.e.
1951 when PORT_HAS_PAINT_FRAME in undefined.
1952 * wtools.c (listbox_refresh): Disable for HAVE_X, define to
1953 an empty macro instead.
1954 (listbox_callback): Call listbox_refresh() regardless of HAVE_X.
1955 (create_listbox_window): Likewise.
1957 * fsusage.c: Include stdlib.h for abort().
1958 * tree.c (tree_mkdir_cmd): Disable tree_mkdir_cmd() since it's
1960 * widget.c: Declare x_radio_toggle() with arguments.
1962 * util.h: Remove declarations of some functions defined in
1965 2001-05-14 Andrew V. Samoilov <sav@bcs.zp.ua>
1967 * background.c (real_message_1s, message_1s): third parameter is
1968 used by message () as printf pattern, so "%s" has to be added
1969 if plain string must be shown but printf conversion
1970 specification(s) may be there.
1971 * view.c (do_view_init): ditto
1972 * user.c (debug_out): ditto
1973 * utilunux.c (close_error_pipe, check_error_pipe): ditto
1975 * background.[ch], vfs/util-alone.c (message_1s): third parameter
1978 2001-04-27 Andrew V. Samoilov <sav@bcs.zp.ua>
1980 * find.c (search_content): Redo recent change without infinite loop ;-),
1981 egrep_path hardcoded to "egrep" as it is done in locate_egrep ()
1983 (locate_egrep): commented out
1985 (rotating_dash) [!HAVE_X]: moved into do_search to prevent warning
1987 2001-04-26 Pavel Roskin <proski@gnu.org>
1989 * find.c (search_content): Undo a recent change that caused an
1992 2001-04-24 Andrew V. Samoilov <sav@bcs.zp.ua>
1994 * view.c (get_line_at): previous newline is right condition
1995 for regexp '^' pattern also, fixed
1997 (search) [HAVE_GNOME]: gnome_message_box_new doesn't expand printf
1998 pattern, so g_strdup_printf used
2000 * find.c (find_parameters): don't use stat structure if mc_stat failed
2002 2001-04-17 Pavel Roskin <proski@gnu.org>
2004 * subshell.c (init_raw_mode): New function, separated from ...
2005 (invoke_subshell): ... this.
2006 (init_subshell): Initialize raw_mode here instead of delayng it
2007 until invoke_subshell(). Otherwise the current mode may have
2008 been changed by edition_pre_exec(), which caused Ctrl-O to be
2009 ignored on FreeBSD if a command has been run before switching
2012 2001-04-06 Pavel Roskin <proski@gnu.org>
2014 * chmod.c (stat_file): Allow chmod and chown on special files.
2016 * cons.handler.c: Include "global.h" for exit().
2018 * Makefile.in: Add dependencies between mc and static libraries
2021 2001-04-06 Andrew V. Samoilov <sav@bcs.zp.ua>
2023 * find.c (find_parameters): Add a checkbox for case insensitive
2025 (search_content): Pass `-i' to egrep for case insensitive
2028 2001-03-30 Andrew V. Samoilov <sav@bcs.zp.ua>
2030 * panel.h, screen.c (panel_new): panel_name constified to do gcc
2031 some more happy when gmc is compiled
2033 2001-03-18 Miguel de Icaza <miguel@ximian.com>
2035 * widget.c (forward_word, backward_word): Revert Timur's patch
2036 from last year which made the behaviour for advancing words not
2037 match the one in Emacs.
2039 2001-03-02 Pavel Roskin <proski@gnu.org>
2041 * key.c (mi_getch): Discard non-events (EV_NONE), but not
2044 2001-02-26 Pavel Roskin <proski@gnu.org>
2046 * cmd.c (edit_cmd) [HAVE_GNOME]: Use gmc_edit(). Don't use
2048 (ext_cmd) [HAVE_GNOME]: Don't compile for GNOME.
2049 * ext.c (regex_command) [HAVE_GNOME]: Likewise.
2050 * ext.h [HAVE_GNOME]: Don't define MC_USER_EXT and MC_LIB_EXT.
2052 * main.c (main): Don't call edit_init_file() - the editor should
2053 care about its files itself.
2055 2001-02-09 Pavel Roskin <proski@gnu.org>
2057 * main.c (main): Fix compilation error when configured without
2060 2001-02-07 Andrew V. Samoilov <sav@bcs.zp.ua>
2062 * main.c (main): Do not fork subshell for mcedit/mcview.
2064 2001-01-27 Pavel Roskin <proski@gnu.org>
2066 * cons.handler.c (handle_console): Check the result of ttyname().
2068 * main.c (handle_args): Exit if no arguments are given to mcview.
2069 [HAVE_GNOME]: Don't examine argv[0] - it's done separately.
2071 * dir.c: Respect HAVE_STRCOLL. Added a comment about strcoll().
2073 2001-01-26 Pablo Saratxaga <pablo@mandrakesoft.com>
2075 * file.c: moved a comment one line down so it becomes visible on the
2076 translators' po files. Also added gettext:no-c-format comments for
2077 a few strings with % in them that are not C format printf codes.
2079 2001-01-21 Andrew V. Samoilov <sav@bcs.zp.ua>
2081 * subshell.c (do_subshell_chdir): temporary patch to prevent command
2082 execution for directory names containing 0x03 (intr) 0x14.
2083 See http://www.securityfocus.com/vdb/?id=2016 for details.
2084 Subshell still can't chdir to such directories :(
2086 * subshell.[ch] (do_subshell_chdir): directory constified
2088 2001-01-17 Pavel Roskin <proski@gnu.org>
2090 * Makefile.in: Respect LDFLAGS when linking cons.saver.
2092 2000-11-20 Andrew V. Samoilov <sav@bcs.zp.ua>
2094 * view.c: Fixed long existed bugs in internal viewer. When search is
2095 doing in binary file it ignore skipped zero(es), so cursor is before
2096 searched expression and next search find the same string. Also regexp
2097 search could return wrong results for '^ ?' expressions.
2099 (get_line_at): skipped: new parameter for number of skipped zero(es)
2101 (search): new features of get_line_at used.
2103 2000-11-16 Andrew V. Samoilov <sav@bcs.zp.ua>
2105 * cons.saver.c (check_file): close fd on error. There was a bug, which
2106 allowed luser to write '\0' char to any symlinkable file in Linux
2107 system which don't ensure that fd's 0, 1, and 2 are open on startup
2108 of a SUID/SGID binary.
2109 Based on patch from bugtrack by Maurycy Prodeus <z33d@ETH-SECURITY.NET>.
2111 2000-11-14 Andrew V. Samoilov <sav@bcs.zp.ua>
2113 * layout.c (print_vfs_message): format string vulnerability fixed
2115 2000-11-03 Andrew V. Samoilov <sav@bcs.zp.ua>
2117 * main.c (CmdMenu): don't include edit_user_menu_cmd ()
2118 if USE_INTERNAL_EDIT is not defined
2119 (main): call edit_init_file () if USE_INTERNAL_EDIT is defined only
2120 (listmode_cmd): messages are localized
2122 2000-11-02 Pavel Roskin <proski@gnu.org>
2124 * layout.c [PORT_NEEDS_CHANGE_SCREEN_SIZE]: Declare
2125 low_level_change_screen_size().
2126 (flag_winch) [PORT_NEEDS_CHANGE_SCREEN_SIZE]: Call
2127 low_level_change_screen_size(). From Andrew V. Samoilov.
2129 2000-10-04 Pavel Roskin <proski@gnu.org>
2131 * user.c (expand_format): Fixed processing of "%s".
2133 2000-09-30 Pavel Roskin <proski@gnu.org>
2135 * Makefile.in: Added an explicit rule for man2hlp.
2137 2000-09-26 Pavel Roskin <proski@gnu.org>
2139 * listmode.c, listmode.h, main.c: Consistently using define
2140 LISTMODE_EDITOR to enable the experimental listmode editor.
2141 * main.c: Don't allow two adjacent separators in the Command
2144 2000-09-22 Pavel Roskin <proski@gnu.org>
2146 * fixhlp.c: Removed.
2147 * Makefile.in: Removed all references to fixhlp.c
2149 2000-09-14 Pavel Roskin <proski@gnu.org>
2151 * features.h: Joined with textconf.h to avoid name clash with
2153 * features.c: Renamed to ...
2154 * textconf.c: ... this
2155 * Makefile.in, cmd.c, main.c, text.c: necessary adjustments
2157 * Makefile.in: Don't make softlinks to the libraries
2159 2000-09-13 Pavel Roskin <proski@gnu.org>
2161 * Makefile.in: Only rebuild mc.hlp in the maintainer mode.
2163 2000-09-01 Pavel Roskin <proski@gnu.org>
2165 * fixhlp.c: fixed compile errors and warnings
2167 2000-08-30 Pavel Roskin <proski@gnu.org>
2169 * dirhist.c, dirhist.h: removed
2171 * features.h, keys.h, textconf.h, x.h: added protection against
2174 2000-08-23 Pavel Roskin <proski@gnu.org>
2176 * features.c: include <sys/param.h> to avoid a warning
2178 * main.c [HAVE_X]: print_mc_usage() and print_color_usage()
2180 version() moved to ...
2181 * features.inc: ... here, renamed to features.c
2182 * main.h: status_using_ncurses moved to ...
2183 * features.h: ... here
2184 * cmd.c, text.c: include "features.h"
2185 * cmd.h: include "panel.h"
2186 * Makefile.in: changed to use features.h and features.c
2188 2000-08-22 Pavel Roskin <proski@gnu.org>
2190 * main.c [HAVE_GNOME]: disable chmod and chown - they were
2191 broken and obsoleted by the "Properties" dialog
2193 * cmd.c [HAVE_X]: Removed dependency on status_using_ncurses
2195 * man2hlp.c: Removed undocumented feature - when converting
2196 to HTML some output would go to index.html instead of stdout
2198 2000-08-16 Pavel Roskin <proski@gnu.org>
2200 * gindex.pl: Enable warnings. Existing warnings fixed.
2202 * Makefile.in: mc.hlp now depends on man2hlp.c instead of
2203 man2hlp - this avoids some rebuilds of mc.hlp
2205 2000-08-15 Pavel Roskin <proski@gnu.org>
2207 * mc.hlp: removed. It's a derived file
2208 * Makefile.in: Fixed dependencies for $(srcdir)/mc.hlp
2209 Build $(srcdir)/mc.hlp but allow a failure (e.g. no perl)
2211 2000-08-11 Frederic L. W. Meunier <fredlwm@pervalidus.net>
2213 * Makefile.in: Don't compile mfmt, compile mcmfmt directly.
2215 2000-08-08 Andrew V. Samoilov <sav@bcs.zp.ua>
2217 * hotlist.c (done_hotlist): static tkn_buf, tkn_buf_length and
2218 tkn_length nullified after tkn_buf is freed to prevent crashes.
2220 (new_hotlist): became a macro
2222 * background.c (real_message_[123]s): title is really prepended
2223 by "Background process:" string now if mode == Background
2225 (background_attention): resstr NULLified to prevent warning
2227 2000-06-26 Andrew V. Samoilov <sav@bcs.zp.ua>
2229 * screen.c (display_mini_info): two different patterns are
2230 used now: for one file and for other cases
2232 2000-06-16 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2234 * cons_saver: support linux with devfs, patch by pavenis@lanet.lv
2236 2000-06-14 Andrew V. Samoilov <sav@bcs.zp.ua>
2238 * panel.h, util.[ch] (struct WPanel, size_trunc, size_trunc_sep): size
2239 parameters and WPanel.total field became double, thus, total size
2240 of selected files/directories is shown in the mini status correctly
2241 when it exceeds 2 GB.
2243 2000-05-25 Andrew V. Samoilov <sav@bcs.zp.ua>
2245 * slint.c (init_pair): segfault fixed when mcedit -b called
2247 * user.c (check_format_var): error messages are localized
2249 (expand_format, user_menu_cmd): memory leaking for %e and %k macro
2250 fixed; segfault fixed when %m macro is used outside user_menu_cmd ()
2252 * ext.c (regex_command): memory leaking fixed when user extension
2255 (exec_extension): error message for changed mc.ext file format
2256 are localized -- does we really must be worry about mc 3.0 ?
2258 * widget.c (history_put): counter is initialized again
2260 2000-05-11 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2262 * src/user.c: fix segfault when Shift-F4, Shift-F1, so when menu
2263 content condition y, macro %y
2265 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2267 * src/user.c: Add macro %k it is block file name
2268 Add macro %e it is error file name
2269 Add macro %i it is cursor column indent of spaces, only for edit
2270 Add macro %y, it is syntax of current file in editor, only for edit
2271 Add condition y, it is syntax pattern of current file in edit
2272 Add macro %x it is extension of current file
2273 Add macro %m it is current menu filename
2275 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2277 * gtkedit/editcmd.c: Modify External Formatter (was C indent formatter) .
2278 Autocreate a scripts in home, from templates /usr/lib/mc/edit.indent.rc,
2279 edit.ispell.rc, etc. Remove leading and trailing spaces into _(""),
2280 (the message of David H. Martin <dmartina@usa.net>)
2282 2000-05-05 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2284 * src/user.c: Add condition (x filename) into mc.menu .
2285 for "Open next a free console" and like.
2287 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2289 * src/user.c: fix segfault in chunk_alloc of glibc, when into condition
2290 of .mnu we have quoted space. (~.mc/menu: + f \.\ test$).
2292 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2295 Add ability user edit menus: system: /usr/lib/mc/cedit.menu,
2296 * gtkedit/editmenu.c: home: ~/.cedit.menu, local: .cedit.menu
2297 Marked block is access now from an user edit menu
2298 Access ~/.cedit/cooledit.block for insert to cursor place from
2300 Created system cedit.menu
2302 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2304 * gtkedit/editdraw.c:
2305 Improved a status string of cool editor for best understand,
2306 and to add char,hex view.
2308 2000-04-17 Andrew V. Samoilov <sav@bcs.zp.ua>
2310 * widget.c: (history_put): profile is free()d if chmod failed,
2311 (input_map): added const qualifier
2312 * utilunix.c, util.h: (tilde_expand): added const qualifier
2313 * cmd.c: (nice_cd): i18n update,
2314 (source_routing): typo fixed, source is free()d after use
2315 * screen.c: i18n changes, (panel_keymap): added const qualifier
2316 * view.[ch]: (view, view_init, do_view_init): added const qualifier
2318 2000-04-15 Timur Bakeyev <mc@bat.ru>
2320 * dir.c (string_sortcomp): strcmp() replaced with strcoll() to make
2321 directory listing LOCALE sensitive. I assume, strcoll exists everywhere,
2324 2000-04-15 Timur Bakeyev <mc@bat.ru>
2326 * dlg.c: Commited at last patch, that fixes screwed up right panel in
2327 a long format. Occasionaly, all my colors problems also gone. All thanks
2328 to Norbert Warmuth <nwarmuth@privat.circular.de>, who tracked down the
2329 problem, blames to me and Federico :)
2331 2000-04-12 Timur Bakeyev <mc@bat.ru>
2333 * widget.c ([forward|backward]_word): Changed one more time - now it
2334 skips alpnums and THEN spaces+punct. That gives almost the same re-
2335 sults, but twice quicker. Hope, this will be accepted.
2337 2000-04-06 Timur Bakeyev <mc@bat.ru>
2339 * widget.c ([forward|backward]_word): Changed logic of moving - now,
2340 it skips only spaces+punct OR alnum. Reason to do it so - deleting lines
2341 like "lynx http://www.gnome.org", where "lynx http:" part was erased
2342 in one operation. That's nasty, IMHO. Made this a separate commit, so,
2343 if it seriously breaks compatability it's easy to revert it. Still hope,
2346 2000-04-06 Timur Bakeyev <mc@bat.ru>
2348 * file.c, widget.[ch]: Fixed long existing problems with filenames
2349 and input widgets, then char is greater than 128. They were processed
2350 incorrectly. As usual, char != unsigned char problem.
2352 2000-03-03 Björn Eriksson <mdeans@algonet.se>
2354 * Similar patches came from Andrew V. Samoilov <sav@bcs.zp.ua>.
2356 * mad.[ch]: Some functions wrongly by-passed mad_alloc*() (causing
2357 problems when later g_free()ed.
2359 * Added mad_strndup().
2361 * Repeated code collected in mad_fatal_error().
2363 * The gcc-extension/C99-standard variable argument macros (adding
2364 __FILE__, __LINE__ before ', ...') would be nice.
2366 * Alloc_idx_hint and code added, the mad code was way too slow for my
2367 poor computer. A hash-table would be nice.
2369 * (mad_strconcat, mad_strdup_vprintf): g_malloc and g_new are
2370 undefined at the top of mad.c, so mad_alloc must be used.
2372 2000-02-23 Norbert Warmuth <nwarmuth@privat.circular.de>
2374 * main.c (parse_control_file): add missing right parentheses
2376 * boxes.c: fix incorrect initialization of array of structure (gcc
2377 version 2.96 20000131 chokes on it).
2379 2000-02-18 Paul Sheer <psheer@obsidian.co.za>
2381 * gtkedit/*.[ch], edit.c et al: updates to reflect
2382 cooledit-3.13.0. See CVS commits and cooledit ChangeLog
2385 2000-02-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2387 * setup.c (load_setup): remove duplicate loading of anonymous
2388 passwd by do_load_string(), it is doing by
2389 ftpfs_init_passwd. (Patch by sav@bcs.zp.ua)
2391 2000-02-04 "David H.Martin" <dmartina@usa.net>
2393 * src/widget.c (input_new): Change NULL to empty strings and avoid
2394 crashing when string functions are called.
2395 * src/boxes.c (configure_vfs): Remove local change to empty string.
2396 * src/setup.c (load setup): Load anonymous password
2398 2000-02-03 Andrew V. Samoilov <sav@bcs.zp.ua>
2400 * setup.c (load_setup): call ftpfs_init_passwd to avoid segfault
2402 2000-01-24 Andrew V. Samoilov <sav@bcs.zp.ua>
2404 * main.c (parse_control_file): add extra secutity checks for
2405 control file. It cannot be group/world writable;
2406 (ctl_x_map, default_map, argument_table): added const qualifier.
2408 * fixed segfault in print_mc_usage
2410 2000-01-24 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2412 * cmd.c (nice_cd): disabled ability to go to home.
2414 2000-01-02 viro@math.psu.edu
2416 * src/subshell.c: Reason: in feed_subshell() we are trying to read
2417 from shell pty,check for retval==-1 && errno != EIO. In that case
2418 we flame and exit. Otherwise we are trying to write what we've
2419 read. Good luck doing it if we got errno==EIO, which is _normal_
2420 for situation when shell just died. Resulting write(1,foo,~0U) is
2421 somewhat excessively, erm, verbose.
2423 1999-12-21 Pavel Roskin <pavel_roskin@geocities.com>
2425 * src/main.c, src/view.c: #warning's replaced with FIXME's.
2426 They were not for users, but for developers
2428 1999-11-11 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2430 * main.c, cmd.c: add possibility to free VFS now
2432 1999-11-03 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2434 * layout.c: always display status line. It contains vital
2435 information for ftpfs
2437 1999-03-19 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2439 * profile.c (str_translate_newline_dup): someone likes to pass
2440 NULL's around. Warn instead of segfault.
2442 1999-11-02 Miguel de Icaza <miguel@gnu.org>
2444 * main.c (OS_Setup): Do not warn if TERM is not set for the GNOME edition.
2446 1999-09-21 Federico Mena Quintero <federico@redhat.com>
2448 * dlg.c (dlg_broadcast_msg_to): Sigh. Put in a GrossHack(tm) to
2449 unfocus what will be a WInput when a panel is initialized.
2451 1999-09-21 Federico Mena Quintero <federico@redhat.com>
2453 * dlg.c (init_dlg): Walk the list of widgets only if it exists.
2454 (dlg_broadcast_msg_to): Use safer list-walking code for if someone
2455 inserts a widget inside the message broadcast.
2457 1999-09-20 Federico Mena Quintero <federico@redhat.com>
2459 The following is a patch from Volker Braun
2460 <volker.braun@physik.hu-berlin.de> to fix column resizing in the
2463 * setup.c (options): Declare the column width option values.
2464 (save_configure): Save the default user format.
2465 (load_setup): Load the default user format.
2467 * panel.h (WPanel): Added a field for the column widths.
2469 1999-09-19 Andrew V. Samoilov <sav@bcs.zp.ua>
2471 * user.c (check_patterns): char* is used instead of char [] in sizeof
2473 * util.c (string_perm): prefix named pipes by 'p' and not by `s'
2475 1999-09-19 Norbert Warmuth <nwarmuth@privat.circular.de>
2477 * mad.c, mad.h, util.c, util.h: Move mad-functions from util.[ch]
2480 * option.c: Include files reordered in order to make it compile with
2483 * mad.c (mad_init): New function. Initialize debug FILE pointer to
2484 stderr (moved to a function because not on every system stderr is
2486 (mad_set_debug): added const qualifier
2488 * main.c (main): call mad_init
2490 1999-09-14 Norbert Warmuth <nwarmuth@privat.circular.de>
2492 * widget.[ch] (input_new): added const qualifier
2494 * util.c (wipe_password): Check for NULL.
2496 1999-09-13 Federico Mena Quintero <federico@redhat.com>
2498 * treestore.c: Removed tree_store_destroy(), renamed
2499 tree_store_init() to tree_store_get().
2501 * tree.c (tree_destroy): Do not destroy the tree store.
2502 (tree_new): Get the tree store, do not initialize it.
2504 * treestore.c (tree_store_init): Do not set the linked list
2507 * panel.h (WPanel): Added a new field that indicates whether the
2508 user is dragging something over the tree.
2510 1999-08-31 Federico Mena Quintero <federico@redhat.com>
2512 * main.c: In the GNOME version, we want cd_symlinks to be FALSE.
2513 The VFS should never have to look at this variable, but alas, it
2514 does. BUGFIX: Red Hat Bugzilla #2344.
2516 * setup.c: Disable cd_symlinks in the GNOME version.
2518 1999-08-30 Norbert Warmuth <nwarmuth@privat.circular.de>
2520 * main.c (print_mc_usage): Print the bug reporting address.
2521 (main): Put prompt in a new line at termination.
2523 1999-08-27 Federico Mena Quintero <federico@redhat.com>
2525 * ext.c (quote_block): How did this ever work? People, if you
2526 realloc() things, don't keep pointers to stuff inside the original
2529 * screen.c (do_enter_on_file_entry): Pass in the full name to
2532 * dir.[ch] (if_link_is_exe): Take in the full name, not the directory
2535 1999-08-15 Norbert Warmuth <nwarmuth@privat.circular.de>
2537 * cmd.c (guess_message_value): New function. Determine locale used
2540 (get_random_hint): use guess_message_value
2542 1999-08-15 David Martin <dmartina@usa.net>
2544 * boxes.c: (symlink_dialog): Move dialog misaligned elements
2546 * cmd.c (get_random_hint): Look for localized hint files
2548 1999-08-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
2550 * ext.c: Added missing include file.
2552 1999-08-08 David Martin <dmartina@usa.net>
2554 * menu.c: (create_menu): Adjust "#ifdef ENABLE_NLS" so that menus
2555 get the right size even when NLS is disabled.
2557 1999-08-06 Norbert Warmuth <nwarmuth@privat.circular.de>
2559 * screen.c (string_file_[amc]time): These three functions use
2560 file_date which returns a pointer to a static buffer. In the
2561 Gnome edition this buffer has to be coppied to a static buffer
2562 which isn't used in the other two functions (Fix Bug #1766).
2564 * util.c, util.h: Moved some constants to util.h
2566 1999-08-04 Norbert Warmuth <nwarmuth@privat.circular.de>
2568 * widget.c (push_history): Add SMB Link to the list of input dialogs
2569 where urls are input without vfs prefix.
2571 Translate the titles of these input dialogs only once.
2573 Removed Gnome specific code because the Gnome edition doesn't use
2574 the input history any more.
2576 * util.c (strip_password): Add /#smb: to the list of urls which might
2577 be input with password.
2579 1999-08-03 Norbert Warmuth <nwarmuth@privat.circular.de>
2581 * poptalloca.h: New file with definitions for alloca. Note: alloca
2582 is defined as malloc on systems which fail to support alloca. Don't
2583 include this file if you frequently use alloca.
2585 * findme.c, popt*.c: include poptalloca.h
2587 * Makefile.in: added poptalloca.h
2589 * menu.c (create_menu): set minimum menu width to 20 characters as
2590 it used to be (this was part of davids patches but I haven't
2593 1999-08-01 David Martin <dmartina@usa.net>
2595 * menu.c (create_menu, menubar_drop_compute, menubar_paint_idx):
2596 Discount '&' for hotkeys when checking menu widths to avoid the
2598 Moved this accounting from the drawing to the creating function.
2600 * widget.c: Translate History box tittle.
2602 1999-07-21 Norbert Warmuth <nwarmuth@privat.circular.de>
2604 * popt.c, popt.h, poptconfig.c, popthelp.c, poptparse.c: updated
2605 to the version found in the popt module
2607 * features.inc: added report information for smbfs
2609 1999-06-01 Robert Brady <rwb197@ecs.soton.ac.uk>
2611 * file.c (move_dir_dir): Give an error when an attempt is made to
2612 move an empty directory into itself.
2614 1999-06-24 smil@linuxfan.com
2616 * view.c (view_update_bytes_per_line, display): show correctly the
2617 offset of the file (full 8 digit), display offset in bold colour
2619 (view_labels): use goto_addr instead of goto_line in hex mode
2621 (goto_addr): New function. Goto offset address in hex mode.
2623 * view.h: use unsigned long for hexedit cursor position in file
2625 1999-06-24 Norbert Warmuth <nwarmuth@privat.circular.de>
2627 * menu.c (menubar_execute): Now needs an additional do_refresh in order
2628 to make layout changes visible.
2630 1999-06-01 Robert Brady <rwb197@ecs.soton.ac.uk>
2632 * file.c (move_dir_dir): Give an error when an attempt is made to
2633 move an empty directory into itself.
2635 1999-06-22 Norbert Warmuth <nwarmuth@privat.circular.de>
2637 * cmd.c (quick_view_cmd): Change panel when the file we want to
2638 view isn't in the current panel (prevents a "file not found"
2641 * menu.c (menubar_execute): De-activate the menubar previous to
2642 invoking the callback. This is needed to make change_panel in
2643 quick_view_cmd work (the activated menubar doesn't allow unfocus,
2644 i.e. dlg_one_down|up don't change anything).
2646 * view.c (do_view_init): improved error handling w.r.t quick view
2647 (mc used to dump core when the file to view couldn't be opened).
2649 1999-06-22 David Martin <dmartina@usa.net>
2651 * view.c (display): added view_gotoxy's in order to make the gnome
2652 edition operational in hex mode.
2654 Fri Jun 18 11:29:56 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2656 * user.c (user_menu_cmd): Allow national characters as hotkeys.
2657 Don't dump core when the menu file contains only empty lines
2659 * view.c (search, block_search): Use the correct column for the
2660 percent display while searching.
2662 1999-06-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
2664 * complete.c (complete_engine): Put an #ifndef HAVE_GNOME around
2665 the completion/query engine. Make the Gnome version just beep
2666 instead. We do not have the completion/query engine for Gtk.
2668 1999-06-09 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2670 * cmd.c (configure_panel_listing): no more code duplication
2672 * screen.c (panel_new): no more code duplication
2673 (set_panel_formats): warn user when he gives bogus format, move
2674 checks into set_panel_formats
2676 1999-06-01 Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
2678 * util.c (is_printable): in GNOME all characters are printable.
2680 1999-05-31 Miguel de Icaza <miguel@nuclecu.unam.mx>
2682 * main.c (handle_args): Handle --desktop-linksdir without using X
2684 1999-05-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
2686 * treestore.c (should_skip_directory): Add fix from Wayne Roberts
2687 to actually acknowledge the settings of mc.global.
2689 1999-05-24 Brandon S. Allbery <allbery@ece.cmu.edu>
2691 * subshell.c (pty_open_master): Added missing comma.p
2693 Mon May 17 07:37:12 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2695 * subshell.c (pty_open_master): use getpt () if available to open
2696 the master side of the pty. getpt () is a glibc extension and is
2697 needed when glibc 2.1.x is used with a (linux) kernel without unix98
2698 style ptys (if there is no /dev/ptmx getpt falls back to bsd style
2701 * filegui.c (check_progress_buttons): Don't update the Gpm mouse
2702 cursor when we check for events. It causes a flickering cursor on a
2703 different virtual console.
2705 1999-05-12 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2707 * cons.saver.c (main): change cons.saver so it can be run without
2708 root privileges. It is well possible to run cons.saver with
2709 privileges only to /dev/vcsa: create new user and make vcsa's
2710 owned by that user instead of root.
2712 Distribution maintainers please take this text as idea of what you
2713 should do to make your system more secure.
2715 1999-05-05 Miguel de Icaza <miguel@nuclecu.unam.mx>
2717 * cmd.c (view_file_at_line): gmc_view never fails, so we handle
2720 1999-04-29 Federico Mena Quintero <federico@nuclecu.unam.mx>
2722 * chmod.c (chmod_cmd): Missing _ in _().
2723 (chmod_cmd): Added braces around nested if/else.
2725 * widget.c (is_in_input_map): Added braces around nested if/else.
2726 (listbox_remove_current): Likewise.
2728 * subshell.c (read_subshell_prompt): Likewise.
2730 * view.c (view_status): Likewise.
2732 Tue Apr 27 20:31:13 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2734 * util.c (strip_home_and_password): Don't split the path in the
2735 middle of a directory, e.g. "/home/bofh" will not be translated to
2736 "~h" (fixes the bug reported by Alex Fortuna <alex@rdc.ru>)
2738 1999-04-25 Sergei Ivanov <svivanov@pdmi.ras.ru>
2740 * find.c: The origin of the bug is in the function do_search (file
2741 find.c). It limits the number of subdirectories to scan by the
2742 number stat.st_nlink-2, or infinite if st_nlink<2. On tar vfs,
2743 st_nlink is always 1, so it should be the second case.
2745 But before doing stat, do_search does opendir. And opendir on tar
2746 vfs (vfs_s_opendir in vfs/direntry.c) increases the st_nlink value
2747 in the stat data! So mc_stat called after mc_opendir on tar vfs
2748 returns st_nlink==2 instead of 1. This is interpreted as if the
2749 directory had no subdirs, thus subdirs are not searched in.
2751 Changing the order of calls to mc_stat and mc_opendir fixes the
2754 1999-03-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
2756 * setup.c (save_setup): Only save this if there is a current panel
2758 Wed Apr 21 21:47:15 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2760 * ext.c (exec_extension): Use tempnam instead of tmpnam (AIX doesn't
2761 like the latter when compiled with -mthreads).
2763 * user.c (execute_menu_command): ditto.
2765 Wed Apr 21 20:40:38 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2767 * Makefile.in: use MCCFLAGS and MCLIBS
2769 Wed Apr 21 20:19:45 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2771 * key.c (get_modifier): Query the state of the modifier keys when
2772 running inside a terminal emulation under X11.
2774 * key.c (init_textmode_x11_support, done_textmode_x11_support): new
2775 functions, only used in the text edition. Connect to and disconnect
2776 from the X Server when DISPLAY is set.
2778 * key.h: added prototypes for the new functions
2780 * main.c (main): call (init|done)_textmode_x11_support
2782 Sat Apr 17 13:04:19 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2784 * view.c (do_view_init): Enable viewing of files with negative
2785 st_size (This reverts parts of a patch I commited recently. Miguel
2786 provided a better fix for this issue).
2788 1999-04-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
2790 * view.c (regexp_search): Use unsigned longs for all of the
2791 offsets here. Fixes crash reported on bugtraq.
2793 1999-04-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
2795 * treestore.c (tree_store_save_to): Moved the functionality from
2796 tree_store_save() to here.
2797 (tree_store_save): Save the tree in the default location in an
2799 (tree_store_load_from): Moved the functionality from
2800 tree_store_load() to here.
2801 (tree_store_load): Load the tree from the default location.
2803 * treestore.h (MC_TREE_TMP): Added a #define for the temporary
2804 name we'll use when saving the tree. Moved the #defines from
2805 tree.h over to here.
2807 * main.c (main): Use tree_store_load() and tree_store_save().
2808 Removed the mc_tree_store_load/save() versions.
2810 * tree.c (load_tree): Use tree_store_load().
2811 (save_tree): Use tree_store_save().
2813 Fri Apr 16 07:51:42 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2815 * wtools.c (message): Use g_vsnprintf instead of vsprintf.
2817 Fri Apr 16 07:50:59 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2819 * view.c (do_view_init): Don't view files with negative file size.
2820 Added some error checking (I'm not sure whether this is needed).
2822 1999-04-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
2824 * panel.h (WPanel): Added a drag_tree_row field to the WPanel
2825 structure. This is used to keep track of the highlighted row in
2826 the tree for drag and drop. Also, added drag_tree_timeout_id to
2827 hold the node expand timeout. Also, added drag_tree_fe to hold
2828 the file_entry for the currently highlighted row in the tree.
2830 1999-04-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
2832 * utilunix.c (my_system): Set up default signal handlers for childs.
2834 Tue Apr 13 07:14:10 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2836 * slint.c (getch): Quit MC when SLang_getkey returns an error. Looking
2837 at the code that's only the case when we read EOF from stdin.
2839 This fixes the problem where MC consumes a lot of cpu time while
2840 reading EOF from stdin in a tight loop. This situation arises when the
2841 terminal line/connection drops without MC being sent SIGHUP.
2843 Tue Apr 13 07:13:10 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2845 * slint.c (SLang_input_pending2): don't store SLANG_GETKEY_ERROR (int)
2846 in the input buffer (char).
2848 1999-04-12 Andrew T. Veliath <andrewtv@usa.net>
2850 * main.c (_do_panel_cd): If we are using GNOME, and the panel is a
2851 desktop panel, open up a new panel for the contents.
2853 1999-04-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
2855 * tree.c (tree_start_search): Renamed from start_search() to avoid
2856 collisions with screen.c:start_search().
2858 * panel.h: Added prototype for start_search().
2860 1999-04-09 Rosanna Yuen <rwsy@mit.edu>
2862 * screen.c (do_enter_on_file_entry): split GNOME version and
2864 (parse_display_format): listen to the warning.
2866 1999-04-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
2868 * treestore.c (tree_store_load): Do not load non-local file
2870 (tree_store_save): Do not save non-local file systems
2872 1999-04-07 Jonathan Blandford <jrb@redhat.com>
2874 * screen.c (do_enter_on_file_entry): added a consistent behaviour
2877 1999-04-06 David Martin <dmartina@usa.net>
2879 * info.c (text out of box and locale layout).
2881 * util.c: If gmc uses strftime() why mc doesn't?
2883 * view.c: a) Tune status line so it does fit in a Quick View Panel
2884 b) Let Hex View resize cleanly. I think it's fixed for panel
2885 re-split and SIGWINCH signal in xterm. gmc still fails. There was
2886 a tiny risk of division by zero when pressing F4 in a very small
2887 box. True hard work... Must try and check it.
2889 1999-04-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
2891 * main.c (main): Call mc_tree_store_save() when the program
2894 1999-04-05 Miguel de Icaza <miguel@nuclecu.unam.mx>
2896 * find.c (setup_gui): Do not scroll horizontally. Why does the
2897 CList behave like this?
2899 * setup.c: Save desktop information.
2901 1999-04-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
2903 * cons.saver.c (main): dup2() may be interrupted; take this into
2904 account. Do we need to fcntl() stderr, or is it enough to close()
2905 it before recreating it?
2907 1999-03-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
2909 * dlg.c (dlg_run_done): Do not call the callback of a NULL current
2912 * setup.h: Added missing prototype for setup_init().
2914 * filegui.c (check_progress_buttons): Added a missing return
2917 * dlg.c (remove_widget): Added a missing return value.
2919 * main.c: Removed the global directory_list variable.
2920 Removed the main_corba_register_server() function.
2922 * main.h: Removed the global run_desktop variable.
2924 * panel.h: Now the panel structure has a unique numerical ID used
2925 for session management.
2927 * screen.c (panel_new): Maintain a unique ID for each panel.
2929 * main.c (maybe_display_linksdir): Handle display of the desktop
2931 (main): Call gnome_check_super_user().
2932 (init_corba_with_args): Call corba_init_server().
2934 * main.c (init_corba_with_args): Do CORBA initialization here. Also
2935 removed the global force_activation option.
2937 1999-03-29 Jonathan Blandford <jrb@redhat.com>
2939 * main.c (main): updated message.
2941 Sun Mar 28 23:52:08 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2943 * util.c (is_printable): Character 155 is non printable even when
2944 full eight bit output is enabled (on the linux console 155 is
2945 interpreted as "ESC [").
2947 1999-03-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
2949 Patch courtesy of John Bley (jbb6@acpub.duke.edu):
2951 * background.c (do_background): Use pid_t instead of int.
2953 * subshell.c (sigchld_handler): Likewise.
2955 1999-03-24 Federico Mena Quintero <federico@nuclecu.unam.mx>
2957 * Makefile.in: Use mcsrclibdir where appropriate.
2959 1999-03-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
2961 * treestore.c (process_special_dirs): Free memory here.
2963 Fix test: Skip only "." and "..", before it could skip "?.".
2965 1999-03-22 David Martin <dmartina@mailexcite.com>
2967 * wtools.c (real_input_dialog_help): Do a strncmp with the lenght
2968 of th same translated "Password:" string.
2970 Mon Mar 22 02:05:28 1999 Timur Bakeyev <mc@bat.ru>
2972 * screen.c (file_entry_color): Dropped. Code went to file_compute_color.
2974 * screen (format_file): Add check, that avoids reported error, when
2975 long file list -> quick view -> brief file list gives core dump.
2977 1999-03-19 Jonathan Blandford <jrb@redhat.com>
2979 * main.c (main): We don't want to restart if we hit cancel.
2981 * file.c (panel_operate): Ugly hack for GNOME. We only treat the
2982 copy as if it were many files, and skip the only_one branch.
2984 1999-03-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
2986 * utilunix.c (close_error_pipe): Inform parent of the return value
2987 of any command here. This allows the desktop to launch a terminal
2988 only if it succeeded in mounting the directory.
2990 Thu Mar 18 16:09:09 1999 Timur Bakeyev <mc@bat.ru>
2992 * panel.h, screen.c: Add an ability to center justify fields in the
2993 panel, in addition to left and right justification. Just for fun.
2994 Try =name in user format.
2996 * util.c (name_quote): Quote "~@^|;:". Hope, that's all :)
2998 1999-03-17 Jonathan Blandford <jrb@redhat.com>
3000 * main.c (main): Put in a warning when run as root.
3002 1999-03-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
3004 * boxes.c (symlink_dialog): Put this inside an "#ifndef
3005 HAVE_GNOME" since we now provide a nicer version of the dialog.
3007 * wtools.c (real_input_dialog_help): Removed un-needed #ifdef.
3009 * cmd.c (edit_symlink_cmd): Generate the title of the dialog after
3010 we have computed the source filename.
3011 (edit_symlink_cmd): Use g_strdup_printf() instead of g_strconcat()
3012 for better internationalization.
3014 * wtools.c: Removed unused function input_dialog_help_2().
3015 (real_input_dialog_help): Put this inside an "#ifndef HAVE_GNOME",
3016 because now the Gnome version implements its own pretty dialog.
3018 1999-03-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
3020 * dlg.c (dlg_select_nth_widget): Handle the case where h->current
3023 1999-03-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
3025 * file.c (erase_file): Here we need to mc_lstat(), not mc_stat().
3026 Since we use the resulting buf.st_size to update the progress, we
3027 need the size of unresolved links. This also makes it consistent
3028 with screen.c:do_file_mark().
3030 * screen.c (select_item): Return immediately if this is a desktop
3033 1999-03-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
3035 * subshell.c (pty_open_slave): Glibc-2.1-based Linux kernels have
3036 grantpt() but they do lack SysV streams. Handle this. Noticed by
3039 1999-03-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
3041 * util.h: Added prototype for g_readlink(). Miggie boy should add
3042 prototypes when he adds public functions.
3044 1999-03-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
3046 * utilunix.c (g_readlink): Fixed two bugs spotted by Morten
3047 Wellinder. Boy, Morten has such a good eye!
3049 1999-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
3051 * file.c (erase_dir): Erase metadata for directories as well.
3052 (erase_dir_iff_empty): Likewise.
3053 (copy_file_file): Delete/copy the metadata even for
3054 char/block/sock/fifo files. Same thing for when copying symlinks.
3055 (copy_dir_dir): Delete/copy the metadata.
3056 (move_dir_dir): Delete/move the metadata.
3057 (recursive_erase): Delete the metadata.
3059 1999-03-08 Federico Mena Quintero <federico@nuclecu.unam.mx>
3061 * file.c (real_query_recursive): Removed an unused variable.
3063 1999-03-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
3065 * utilunix.c (g_readlink): New function. Wraps all the nonsense
3066 of readlink into a nice routine.
3068 * filegui.c: Support ui->ctx to be NULL, as file.c will set this
3069 to NULL for background operations.
3071 * background.c (do_background): Handle EINTR in dup2.
3073 Wed Mar 10 22:21:19 1999 David Martin <dmartina@usa.net>
3075 * util.c (my_putenv): char* was used to store the length of a string
3077 * info.c (info_show_info): cast st_dev and st_ino when passing
3080 1999-03-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
3082 * file.c (panel_operate): Always create the ctx->ui. Federico,
3083 can you see if this change is correct from your point of view?
3085 * cmd.c (edit_symlink_cmd): Small fix to improve the messages
3088 Tue Mar 2 22:54:50 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3090 * util.c (name_quote): Quote '<' and '>'.
3092 Tue Mar 2 22:28:39 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3094 * main.c (panel_clean_dir): New function: reset all counters of a
3095 WPanel and clean directory list.
3097 * various places: Use panel_clean_dir instead of clean_dir whenever
3098 a WPanel is available. This solves the problem reported by Enrico
3099 Scholz (screen refresh while panel reload with an old/now invalid
3102 Mon Mar 1 00:18:48 1999 Timur Bakeyev <mc@bat.ru>
3104 * mad.c: Tempnam() returns malloced buffer, so, free() it, not g_free().
3106 1999-02-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
3108 * view.c (view_percent, view_update): Take an extra argument:
3109 update_gui, which controls whether we want to update the displayed
3110 region in the GUI version.
3112 1999-02-25 Jonathan Blandford <jrb@redhat.com>
3114 * cmd.c (symlink_cmd): little change to handle the case when a
3115 desktop panel is passed in.
3117 1999-02-25 Owen Taylor <otaylor@redhat.com>
3119 * fileopctx.h file.c: Moved recursive delete query
3120 dialog into gdialogs.c for GNOME.
3122 1999-02-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
3124 * file.c: Moved FileCopyMode here (thanks to Wolfgang Scherer for
3125 pointing this out) and made it a typedef.
3127 * treestore.c (process_special_dirs): New function.
3128 (should_skip_directory): Load the settings from the global
3129 special.dirs file and from the
3131 * util.c: Test for glibc/linux and if so, do not use getwd, but
3132 getcwd as on this system it is better than popen ("pwd").
3134 1999-02-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
3136 * setup.c: Declare extern int tree_panel_visible for the GNOME
3139 1999-02-17 Federico Mena Quintero <federico@nuclecu.unam.mx>
3141 * dir.c (if_link_is_exe): Made this function take in a directory
3142 argument as well -- the sought file may not be in the cwd, and
3143 file entries do not carry the directory the file refers to.
3145 * screen.c (do_enter_on_file_entry): Pass in the cpanel->cwd to
3148 1999-02-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
3150 * treestore.c (tree_store_rescan): Add code to skip scanning
3151 specially slow directories (/afs, /coda, /...). It is of course,
3154 * setup.c: Export the profile_name setup routine.
3156 Tue Feb 16 21:21:32 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3158 * popt.c: Compilation fix: on systems without setreuid use setuid.
3160 Tue Feb 16 21:18:08 1999 David Martin <dmartina@usa.net>
3162 * achown.c: Make buttons fit in the (new) translated
3163 Advanced Chown dialog.
3165 1999-02-16 Alexaander Savelyev <fano@ham.kiev.ua>
3167 * subshell.c (exit_subshell): Use the size of the buffer, not
3168 sizeof of the pointer to the buffer.
3170 Sun Feb 14 02:59:09 1999 Timur Bakeyev <mc@bat.ru>
3172 * utilunix.c (my_system): Fix the order of preferenses, as setuid
3173 more desirable on BSD systems. Terminate execl[p]() with NULL, as
3174 this is formally correct.
3176 1999-02-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
3178 * dir.c (do_load_dir): Added missing calls to tree_store_end_check.
3180 * find.c (add_to_list): Pass the data pointer as well.
3182 Fri Feb 12 06:36:58 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3184 * utilunix.c (my_system): Compilation fix: on systems without
3185 setreuid use setuid.
3187 1999-02-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
3189 * panel.h (WPanel): Removed unused field "corbadat".
3191 1999-02-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
3193 * screen.c: Make delete key delete files.
3195 * dir.c (do_reload_dir): Add a couple of missing calls to tree_store_end_check.
3197 1999-02-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
3199 * main.h: Added prototype for main_corba_register_server().
3201 1999-02-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
3203 * view.c (search): Provide GNOME specific code for the search progress
3205 * treestore.c: Add a new hook system to hint a tree freeze/thaw.
3207 * setup.c: In the GNOME version, we do not show the dot files by default.
3209 1999-02-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
3211 * file.c (copy_file_file): Add support for the GNOME metadata here.
3212 (move_file_file): Add support for the GNOME metadata here.
3214 1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
3216 * treestore.c (tree_store_add_entry): Use g_new0 to allocate the tree_entry.
3218 (tree_store_notify_add): Close, but no cigar. The
3219 bug was deeper: This list keeps names, not tree_entries.
3221 1999-02-07 Federico Mena Quintero <federico@nuclecu.unam.mx>
3223 * treestore.c (tree_store_notify_add): A tree_store_add_fn wants a
3224 string, not a tree_entry, so pass a string to it.
3226 1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
3228 * treestore.c: Revert all of the stack changes. Now the treestore
3229 is again non-re-entrant. Being re-entrat was only covering up for
3230 bugs in other places.
3232 Now we postpone notifications for additions at
3233 tree_store_end_check, not before.
3235 1999-02-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
3237 * treestore.c (tree_store_remove_entry): Removed unused code for
3238 base_sublevel computation.
3240 Sun Feb 7 06:11:48 1999 Timur Bakeyev <mc@bat.ru>
3242 * Makefile.in: Change calls to xmkdir to mkinstalldirs - this is more
3245 * xmkdir removed - we have mkinstalldirs.
3247 1999-02-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
3249 * cmd.c (view_other_cmd): Do not use \r in translatable strings.
3251 1999-02-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
3253 * widget.c (push_history): Only do check the history headings if
3254 the widget has a history entry bound to it.
3256 1999-02-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
3258 * treestore.c (tree_store_start_check, tree_store_mark_checked,
3259 tree_store_end_check): Use a stack for check_name. There are far
3260 too many instances that might call the end_check.
3262 Wed Feb 3 23:55:54 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3264 * widget.c (history_put): set the access rights correctly when
3265 the history file is created initially. Don't save the history
3266 if we can't set the access rights.
3268 1999-02-01 Jonathan Blandford <jrb@redhat.com>
3270 * setup.c: save we_can_afford_the_speed
3272 Wed Feb 3 22:27:04 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3274 * util.c (strip_password): Extented to find the url in the first
3275 parameter. The second parameter tells whether it should search the
3276 url (indicated by known prefixes) in the first parameter or whether
3277 the first parameter is a url without a prefix ("ftp://", "/#ftp:",
3280 * main.c (directory_history_add): Strip the password (if any) from
3281 the freshly added value.
3283 * widget.c (push_history): ditto. There's a ugly special casing
3284 necessary for the network and ftp link dialogs (urls are entered
3287 * widget.c (history_put): Restrict read and write access to the
3288 history file to the owner (Just in case I forgot to strip passwords
3291 Mon Feb 1 00:43:15 1999 Timur Bakeyev <mc@bat.ru>
3293 * screen.c (to_buffer): Code of the function rewritten, as a side
3294 effect added J_CENTER (who needs this?). Also, justification flags
3295 got twins with _FIT suffix, which tries to fit name in the field with-
3296 out truncation (uses name_trunc()). This unifies behaviour of CList
3297 variants and text-bases widgets.
3299 * screen.c: Remove HAVE_GNOME wrappers around string_file_[name|owner|
3300 group]() - not necessary, to_buffer() doing this work.
3302 Sun Jan 31 19:49:00 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3304 * hotlist.c (add_new_entry_input, add_new_group_input): Make the
3305 quick_widget arrays static and various changes needed because they
3306 are now static. add_widgets_i18n recalculates button positions
3307 which get lost when the quick_widget arrays are non static.
3309 * screen.c (to_buffer): nul terminate string when using strncpy
3311 * setup.c: Save and restore new option ftpfs_first_cd_then_ls.
3313 1999-01-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
3315 * file.c (panel_operate_generate_prompt): Removed the cmd_buf
3316 argument, since it is a global variable anyway (this function is
3317 only called once from file.c, and the global cmd_buf was being
3319 (panel_operate): Do not pass cmd_buf to
3320 panel_operate_generate_prompt().
3321 Thanks to Alexander Savelyev <fano@vcom.kiev.ua> for noticing this.
3323 1999-01-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
3325 * achown.c (XTRACT): Add missing call to _().
3327 1999-01-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
3329 * panel.h: Fixup #includes.
3331 1999-01-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
3333 * cons.saver.c: Removed glib from the suid app
3335 Wed Jan 27 03:17:44 1999 Timur Bakeyev <mc@bat.ru>
3337 * Converted memory managment to Glib. Now we use g_new()/g_malloc()/
3338 g_strdup()/g_free() routings. Also, copy_strings() replaced by
3339 g_strconcat(), strcasecmp() -> g_strcasecmp(),and sprintf() by
3342 * Some sequences of malloc()/sprintf() changed to g_strdup_printf().
3344 * mad.[ch]: Modified, to work with new GLib's memory managment. Fixed
3345 a missing #undef for tempnam, which caused dead loop. Add several new
3346 functions to emulate GLib memory managment.
3348 *main.c, mad.[ch]: Add a new switch "-M", which allows to redirect MAD
3349 messages to the file.
3351 * util.[ch], utilunix.c: Modified, deleted our variants of strcasecmp()
3352 and strdup() - we have g_ equivalences. Remove get_full_name() - it is
3353 similar to concat_dir_and_file(). Some other tricks with g_* functions.
3355 * global.h: Modified, extended. Now it is main memory mangment include -
3356 i.e. all inclusions of <stdlib.h>, <malloc.h>, <glib.h>, "fs.h", "mem.h",
3357 "util.h" and "mad.h" done there. This elimanates problem with proper or-
3360 * All around the source - changed order of #include's, most of them gone
3361 to global.h (see above), minor changes, like "0" -> NULL in string func-
3364 1999-01-25 Alexander Savelyev <fano@vcom.kiev.ua>
3366 * ext.c (exec_extension): Always use /bin/sh. Not the user
3369 1999-01-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
3371 * treestore.c (tree_store_remove_entry_remove_hook): Missing
3372 function. To remove a notification hook.
3373 (tree_store_notify_add, tree_store_add_entry_add_hook,
3374 tree_store_remove_entry_add_hook): New functions to notify of
3375 additions to the treestore.
3377 * tree.c (tree_destroy): Remove the callback hook when we go
3380 1999-01-21 Miguel de Icaza <miguel@nuclecu.unam.mx>
3382 * option.c (init_configure): One line patch from Alexander
3383 Savelyev to transalate all strings.
3385 1999-01-18 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3387 * file.c: Killed operation_names: they seemed same to op_names to
3388 me, and compilation failed on them (initializer element is not a
3389 constant). Maybe miguel tagged too many strings for localization?
3392 * ext.c: we use /tmp in "creative" way: creating there file and
3393 then executing it. I do not see how it is needed. Marked with FIXME.
3395 Thu Jan 21 01:11:24 1999 Timur Bakeyev <mc@bat.ru>
3397 * mad.[ch], util.[ch]: commit changes, that allow coexist (temporary)
3398 GLib'ed VFS and not still converted MC itself.
3400 1999-01-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
3402 * treestore.c (tree_store_start_check): Use mc_stat(), not stat().
3403 (tree_store_rescan): Use mc_lstat(), not lstat().
3405 Tue Jan 19 05:28:04 1999 Timur Bakeyev <mc@bat.ru>
3407 * ext.c, filenot.c, main.c, screen.c, treestore.c: add missed #include's
3408 and moved glib.h so, it follows "fs.h", but preceed "util.h" and "mad.h".
3409 There were conflicts during compilation with MAD and GLibed vfs.
3411 Mon Jan 18 21:23:29 1999 Paul Sheer <psheer@obsidian.co.za>
3413 * cmd.c: update_panels (UP_OPTIMIZE, UP_KEEPSEL); instead
3414 of reread after editing a file.
3416 1999-01-18 Arturo Espinosa <arturo@nuclecu.unam.mx>
3418 * file.c: Use N_ instead of _ for some of miguel's last tags.
3420 1999-01-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
3422 * file.c: Tag some more strings for localization.
3424 1999-01-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
3426 * cmd.c (mkdir_cmd): Please, check your pointer usage.
3428 Thu Jan 14 13:18:58 1999 Timur Bakeyev <mc@bat.ru>
3430 * screen.c (string_file_[owner|group]): Workaround the fact, that some
3431 systems have user and group names greater than 8 symbols. Now we trun-
3434 1999-01-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
3436 * treestore.c (tree_store_load): Use g_return_val_if_fail(), not
3438 (tree_store_rescan): Added parentheses to clarify || and &&.
3440 * tree.c (tree_add_entry): Removed unused variable.
3442 * treestore.h: Added prototype for tree_store_start_check_cwd().
3444 1999-01-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
3446 * view.c (search): Missing condition.
3448 * treestore.c (tree_store_opendir): Simplistic fix. This is not
3451 1999-01-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
3453 * panelize.h: Added prototype for do_external_panelize().
3455 * screen.c (move_selection): Unused variable fixes for HAVE_X.
3457 * boxes.c (configure_vfs): Removed an unused variable.
3459 1999-01-12 Jonathan Blandford <jrb@redhat.com>
3461 * cmd.c (mkdir_cmd): now mkdir_cmd will accept relative, and
3462 absolute directories.
3464 Tue Jan 12 13:40:46 1999 Timur Bakeyev <mc@bat.ru>
3466 * gtkedit(syntax.c): Fixed a typo in Pascal syntax.
3468 1999-01-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
3470 * treestore.c (tree_store_save): Add signature for version 2.0 of
3473 1999-01-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
3475 * file.c (do_file_error): Made static.
3476 (query_recursive): Have cases for background/foreground operation.
3477 (do_file_error): Likewise.
3479 * background.c: Removed the bg_ctx global, since now all the
3480 contexts are carried around by the functions that actually need
3483 * fileopctx.h (FileOpContext): Moved the op_preserve field to here.
3485 * filegui.c (file_mask_dialog): Removed the ui assertion, since
3486 now the op_preserve field is kept in the main context structure.
3488 1999-01-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
3490 * util.c: Provide workarounds for Linux kernel bug.
3492 Sun Jan 10 02:18:33 1999 Timur Bakeyev <mc@bat.ru>
3494 * screen.c(string_file_size): Fixed (incorrect?) printing of device num-
3495 bers. Major should never be greater 255.
3497 1999-01-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
3499 * dir.c (handle_dirent): Use the tree_store now.
3500 (handle_path): ditto.
3501 (do_load_dir): ditto.
3502 (do_load_dir): ditto.
3503 (do_reload_dir): ditto.
3504 (do_reload_dir): ditto.
3506 * treestore.c (tree_store_save): New file
3507 (encode): New routine used to encode pathnames in a safe way that
3508 are saved to the mc/.tree file.
3509 (decode): New routine, used to decode the pathnames we encoded in
3510 the step above. Aint love grand?
3512 * tree.c (load_tree): Kill dead code.
3514 Moved all of the tree store information into a new file:
3515 treestore. To be reused by the Gnome code.
3517 1999-01-08 Ilya Zakharevich <ilya@math.ohio-state.edu>
3519 * popt.c: OS/2 and Windows NT portability fix.
3521 1999-01-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
3523 * file.c (panel_operate_flags): Only show this dialog box if it is
3524 a copy or move operation
3526 1999-01-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
3528 * background.c (do_background): Make it a bit saner. Now we store
3529 a per-child-process FileOpContext structure.
3531 * fileopctx.h: New file with declarations for the file operation
3534 * fileopctx.c (file_op_context_new): New function to create a file
3535 operation context with the default file mask values.
3536 (file_op_context_destroy): New function to destroy a file
3537 operation context and its associated UI, if appropriate.
3539 * filegui.h: Use complete prototype for fmd_init_i18n().
3541 * filegui.c (FileOpContextUI): New structure that describes the UI
3542 and internal data for file operation contexts in the text mode
3544 (file_op_context_create_ui): Renamed from create_op_win() and
3545 made it use a context instead of global variables.
3546 (file_op_context_destroy_ui): Likewise, renamed from
3548 (fmd_widgets): Removed an #ifdef HAVE_XVIEW bit and moved the
3549 initialization of the result pointers to file_mask_dialog(), as we
3550 need to use the pointers to the fields inside the file op context now.
3551 Made all the functions use a file operation context.
3552 (file_mask_dialog): Always call fmd_init_i18n(); it will take care
3553 of idempotence by itself.
3554 (fmd_init_i18n): Now the code that makes sure this function is
3555 only called once is here.
3557 * cmd.c (check_for_default): Make it use a file operation context.
3558 * tree.c (tree_copy): Likewise.
3559 (tree_move): Likewise.
3560 (tree_rmdir_cmd): Likewise.
3562 * file.c: Removed file_progress_replace_progress and
3563 file_progress_replace_filename -- they are only used in filegui.c
3564 as part of the UI for the file operation context.
3565 (panel_operate_generate_prompt): Made static.
3566 (panel_operate_generate_prompt): Always call fmd_init_i18n(); it
3567 will take care of idempotence by itself.
3568 (panel_operate): Removed the panel_operate_def() function, and
3569 made panel_operate() take an extra "ask_user" argument.
3570 (query_recursive): Made static.
3572 * background.c (background_attention): Made static.
3573 (register_task_running): Made static.
3574 (do_background): Now takes a file operation context as an
3575 argument. It stores the pid of the child there.
3577 * Makefile.in: Added fileopctx.[ch].
3579 1999-01-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
3581 * widget.c (listbox_new): Assing l->height.
3583 1999-01-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
3585 * main.c (update_one_panel_widget): GNOME version does the panel
3586 update here (this is an optimization, as we do not want do_refresh
3589 * dialog.c (do_refresh): Remove this optimization as it was
3590 disabling the repainting of the screen contents.
3592 * hotlist.c (done_hotlist): The hotlist might not be loaded
3595 1999-01-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
3597 * widget.c (listbox_new): Under GNOME, height of the listbox might
3598 be less than zero (due to LINES/COLS being set to zero there). So
3599 for bow, set the height to 1. This needs to be propery computed
3600 in x_create_listbox.
3602 * main.c (main): Do not load the hotlist here anymore. We
3603 auto-load it on the setup(?).
3605 1998-12-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
3607 * main.c (main): Removed old, unused code.
3608 (setup_panels_and_run_mc): Register the corba server here, not
3609 before, as the program is not ready to accept any commands yet.
3611 * screen.c (panel_set_sort_order): New routine to set the sorting
3613 (panel_re_sort): New routine to force a resort on a panel.
3615 * main.c (sort_cmd): Use the new routines.
3617 1998-12-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
3619 * cmd.c (check_for_default): Make this compile.
3621 Tue Dec 29 22:25:34 1998 Timur Bakeyev <mc@bat.ru>
3623 * mountlist.c: Compress all xBSD systems to one line and add check
3624 for MOUNT_UFS - it seems, that 4.4BSD and 4.4BSD2 systems different-
3625 ly handles FS names. (currently affects BSDI and FreeBSD)
3627 Tue Dec 29 16:34:02 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3629 * file.c (progress_update_one): Ignore files in subdirectories
3630 when panel totals haven't been computed.
3632 (erase_dir, erase_file): update progress bar (i.e. make it work
3635 (panel_operate_flags): Don't compute panel totals for OP_MOVE.
3636 When moving files on the same filesystem computing totals might
3637 last much longer than the actual move operation.
3639 (various places): adpations for the above changes.
3641 Mon Dec 28 22:15:43 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3643 * slint.c (try_alloc_color_pair): Changed hardcoded values into
3646 Mon Dec 28 20:22:59 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3648 * color.c, text.c: Added color "stalledlink" which is used for
3649 stalled symbolic links. Formerly "viewunderline" was used for
3650 this (IMO bad because function and name didn't match).
3651 According to the man page the color keyword for executable files
3652 is `executable' and not `execute' -- changed.
3654 * color.c, color.h: When using SLang some color indexes are not
3655 freely choosable (DEFAULT_COLOR clashed with A_BOLD_REVERSE).
3656 Solved by adding holes in color_map.
3658 * find.c (do_search): fixed possible memory leak
3660 Sat Dec 26 09:53:39 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3662 * layout.c: include sys/ioctl.h to get definition of TIOCGWINSZ
3663 (fixes problem with screen resize).
3665 Fri Dec 25 20:19:57 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3667 * file.c (panel_operate_flags): Don't change file progress count and
3668 size twice for every file.
3670 (panel_compute_totals): Initialize return values to zero before
3671 calculating anything.
3673 (panel_operate_def, panel_operate): return a value
3675 Thu Dec 24 19:00:05 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3677 * screen.c (recalculate_panel_summary): new function which recalculates
3678 the summary information for the mini-status.
3680 * screen.c (panel_reload): use recalculate_panel_summary
3682 * screen.c (do_file_mark): Honour that dirsizes computed is now a
3685 Thu Dec 24 18:53:16 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3687 * option.c: Added Compute Totals to the configuration dialog.
3689 * file.c (compute_dir_size): made non static
3691 (panel_operate_flags): Don't compute directory sizes if verbose
3694 Thu Dec 24 18:42:52 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3696 * cmd.c (dirsizes_cmd): Rewritten to use compute_dir_size as suggested
3697 by Miguel, i.e. get rid of du. Now the dirsizes_cmd honours a
3698 selection and computes sizes only for marked directories. Possible
3699 improvement: add a dialog (or C-C?) to abort computation.
3701 * dir.h (file_entry), panel.h (WPanel): Made the dirsizes computed
3702 flag a per file flag.
3704 * dir.c, find.c, panelize.c, screen.c: Adapted to new file_entry and
3707 * features.inc: Deleted DUSUM information
3709 * mc.hlp: remade because of changes in doc/mc.1.in
3711 1998-12-22 Jonathan Blandford <jrb@redhat.com>
3713 * file.c: add a HAVE_GNOME only function
3715 Mon Dec 21 22:39:35 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3717 * mountlist.c: Define xBSD on FreeBSD.
3719 * main.c (parse_an_arg): New function, popt callback. Option
3720 parsing in gmc was broken. The gnome*_init_with_popt_table free
3721 the option tables and gmc tried to use the option tables later.
3723 * main.c (handle_args): In the Gnome edition don't parse the
3724 options a second time.
3726 * boxes.c (configure_vfs), setup.c: Deleted obsolete options.
3727 tar.gz files are now always unzipped to a temporary file on disk.
3729 Mon Dec 21 14:28:55 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3731 * filenot.c (my_mkdir_rec): Someone broke this completely by deleting
3732 a line. Funny things happen if you use an already freed pointer.
3733 Improved error handling: try to make directories recursivly until
3734 mkdir succeeds or fails with errno != ENOENT. Now you will get the
3735 correct error message when you don't have permission to create a
3738 * mountlist.c: Deleted function prototypes for strdup and strstr,
3739 they might conflict with definitions in the system header files.
3741 Wed Dec 16 14:41:15 1998 Paul Sheer <psheer@obsidian.co.za>
3743 * gtkedit.c, editwidget.c: gnome selection now works with the
3746 Wed Dec 16 06:27:00 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3748 * screen.c (Xtry_to_select): Don't select a similar file when
3749 "name" can't be found in the panel (when deleting files the
3750 selection jumpped from the deleted "file" to a directory which
3751 started with the same character as "file", annoying).
3752 Strip known vfs suffixes from "name" before trying to select
3753 (I think Timur made this suggestion a few months ago). Know the
3754 vfs is mature enough to do this.
3756 1998-12-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
3758 * dir.c (link_isdir): Remove unused variable.
3760 Sun Dec 13 18:35:05 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3762 * screen.c (panel_reload): Don't set panel->selected to zero here,
3763 keep it's value if possible or set it to panel->count - 1 (I disliked
3764 the jumping cursor when deleting files).
3766 1998-12-11 Michael Fulbright <msf@majestic.labs.redhat.com>
3768 * file.c (panel_operate_generate_prompt): Changes the text
3769 for GNOME dialogs. --jrb
3771 1998-12-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
3773 * main.c (try_to_select): We do not need to select the item
3774 manually in this case, as the X code will do this for us.
3776 Fri Dec 11 00:05:50 1998 Paul Sheer <psheer@obsidian.co.za>
3778 * syntax.c, slint.c, color.c, color.h: editor now has its
3779 own color configuration so you can set editor background
3780 colors with MC_COLOR_TABLE.
3782 1998-12-10 Paul Sheer <psheer@obsidian.co.za>
3784 * syntax.c: perl syntax highlighting. syntax highlighting
3785 bug fizes for python and sh.
3787 * edit.c: new method of finding line offsets from line
3788 number (for cooledit for python stuff).
3790 Mon Nov 30 21:10:30 1998 Pavel Machek <pavel@bug.ucw.cz>
3792 * file.c (copy_file_file): minor code beatifulling: replace goto's
3793 with while loops (it is both shorter and nicer :-)
3794 (panel_operate): hopefully done WANT_STALE_DATA right. We really
3795 should kill ftpfs_hint_reread hack soon.
3797 * cmd.c (dirsizes_cmd): report error if you are on non-local
3798 filesystem. (As oposed to silently failing.)
3800 1998-12-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
3802 * screen.c (panel_reload): Set panel->selected to zero here, this
3803 will at least guarantee that we do not try to fetch anything
3806 * main.c: The bar2 is gone as well.
3808 Tue Dec 8 19:19:39 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3810 * cmd.c (dirsizes_cmd): Fixed possible buffer overflow
3812 1998-12-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
3814 * screen.c (do_enter): Return the value from this.
3816 1998-12-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
3818 * dir.c (link_isdir): Fetch the information from
3819 file->f.link_to_dir, since we already have it.
3821 * dir.h (file_entry): Removed the `cache' field in this structure,
3822 as it was only used for the deprecated Xview version.
3823 Also, removed the `exists' field, as it was not being used anywhere.
3825 * dir.c: Removed all occurrences of file_entry->cache.
3827 * find.c: Removed all occurrences of file_entry->cache.
3829 * panelize.c: Removed all occurrences of file_entry->cache.
3831 * screen.c (do_enter_on_file_entry): New public function that
3832 implements the functionality in do_enter(), but based on a file
3833 entry rather than on a panel.
3834 (do_enter): Use do_enter_on_file_entry() with the selection of the
3835 panel as an argument.
3837 1998-12-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
3839 * cmd.c, tree.c: Updated to the new file.c api.
3841 * file.c: (copy_file_file, copy_dir_dir, move_file_file,
3842 move_dir_dir): Updated to work with the new updating stuff.
3844 * setup.c: New configuration option to compute the totals to be
3847 * file.c (compute_dir_size, panel_compute_totals): New routines to
3848 compute the total ammount of information that is going to be
3851 1998-12-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
3853 * ext.h: GNOME edition uses a different set of .ext files.
3855 * lib/mc-gnome.ext.in: New file with GNOME-specific bindings.
3857 1998-12-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
3859 * GNORBA integration. We now produce two binaries: gmc and
3860 corba-gmc (that way, I dont interfere with other's work).
3862 * Added prototypes, made private functions static, clean up
3863 various silly warnings.
3865 * main.c (main): Removed crufty init_sigfatal code.
3867 * cmd.c (do_link): More slang dependecies are fixed for the X
3870 * keys.h (enum): Moved key definitions here.
3872 * tty.h: MOve towards slang freedom for the GNOME port.
3874 1998-12-01 Jonathan Blandford <jrb@redhat.com>
3876 * file.c (panel_operate_generate_prompt): moved from filegui.c
3878 1998-11-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
3880 * panel.h (WPanel): Added the missing tree/pane/view_table fields
3881 to the Gnome part of the structure.
3883 1998-11-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
3885 * cons.saver.c (main): Make sure stderr is always valid.
3886 (main): Also check that stderr_fd is not -1.
3888 Wed Nov 25 22:16:19 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3890 * cmd.c (dirsizes_cmd): Quote characters with a special meaning
3891 when passing it to du.
3893 1998-11-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
3895 * dlg.c (dlg_try_hotkey): Removed unused declaration of input_event.
3896 (dlg_key_event): Return 1 if handled the tab key.
3898 * filegui.h: Added prototypes for file_progress_show_{source,target,deleting}().
3900 Sun Nov 22 22:30:50 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3902 * autogen.sh: replaced "cat *.m4" with a call to aclocal. Concatenate
3903 mc-aclocal.m4 and gettext.m4 to acinclude.m4. The other way round
3904 would have been to add three more m4 files to the replaced cat line
3905 (including cond.m4 from automake-1.3b).
3907 Fixed OBJ_DIR handling.
3909 Sun Nov 15 00:37:58 1998 Pavel Machek <pavel@bug.ucw.cz>
3911 * mad.c (mad_tempnam): needed wrapper for tempnam added
3913 1998-11-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
3915 * dlg.c (destroy_dlg): Do not refresh.
3917 * filegui.c: New file. We keep all of the user interface code for
3918 the text edition in this file now. This should be a per-GUI port
3921 1998-11-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
3923 * panel.h (WPanel): Instead of the "#ifdef GNOME" mess in the
3924 WPanel structure, we now have a single opaque pointer to UI data,
3925 called port_ui. GUI stuff specific to each port should be here.
3926 This is a work in progress.
3928 1998-11-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
3930 * setup.c: Removed the icons_snap_to_grid and
3931 want_transparent_{icons,text} options.
3933 Thu Nov 5 12:10:10 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
3935 * file.c (panel_operate): check for null pointer before passing it
3938 Wed Nov 4 17:51:43 1998 Pavel Roskin <pavel_roskin@geocities.com>
3940 * src/findme.h: added from popt-1.2 by RedHat
3942 * src/Makefile.in: appropriate changes to use new popt
3944 Sun Nov 1 20:59:05 1998 Pavel Machek <pavel@bug.ucw.cz>
3946 * file.c (erase_file): translated goto into while loop (it is both
3947 shorter AND cleaner)
3949 * subshell.c (feed_subshell): do NOT print anything if we get
3950 errors/eofs from read(subshell) - this fixes (or at least hides)
3951 nasty bug where typing "exit" on mc prompt prints lots of garbage
3952 and falls into infinite loop. Someone with better knowledge should
3953 read feed_subshell(), and make it handle errors properly. (Why do
3954 we ignore EIO for example?)
3956 Sun Oct 18 22:56:17 1998 Pavel Machek <pavel@bug.ucw.cz>
3958 * view.c: we now rely on sfs to do file decompressing for us. That
3959 has advantage of displaying #ugz at first line, so user knows what
3960 we are doing behind his back
3962 * view.c: fix indentation, fallback to read whole file if mmap fails.
3964 1998-11-01 Federico Mena Quintero <federico@nuclecu.unam.mx>
3966 * setup.c: #ifdef'ed out stuff in the menus that will get changed
3967 as I rewrite the desktop part.
3969 1998-10-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
3971 * layout.c (print_vfs_message): Use g_snprintf instead of
3975 1998-10-30 Sung-Hyun Nam <namsh@lgic.co.kr>
3977 * color.c, slint.c: support transparent background if user use
3978 'default' keyword for background color.
3980 Mon Oct 26 00:31:53 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3982 * configure.in, Make.common.in: Split CPPFLAGS into CPPFLAGS and
3983 MCCPPFLAGS. The last one contains references to variables which are
3984 not available in every Makefile.in (namely intl/Makefile.in). Without
3985 the split `-I ' was passed to the compiler (the compiler on DU 4.0
3986 interprets -I as "don't search include files in /usr/include").
3988 Thu Oct 22 20:41:50 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3990 * configure.in (subshell): Don't define inline to be empty
3991 when compiling with non-gcc compiler. AC_C_INLINE (invoked in
3992 AM_GETTEXT_GNU) already defines inline if necessary.
3994 Thu Oct 22 20:41:16 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3996 * panelize.c (do_external_panelize): Not zeroing some fields
3997 in cpanel led sometimes to segfaults.
3999 Thu Oct 22 20:31:17 1998 Pavel Roskin <pavel_roskin@geocities.com>
4001 * lib/mc.ext.in: *.jar and *.JAR treated like *.zip and *.ZIP
4003 Fri Oct 16 12:10:56 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4005 * cmd.c (quick_chdir_cmd): you must check for return code of
4006 do_cd(). (Fixed error for here, but more such bugs are present in
4007 src/ tree. Or maybe move error checking into do_cd?)
4009 * command.c: warn user if he is pressing enter while on non-local
4010 filesystem. (Prev. behaviour was fail silently to do anything,
4013 Mon Oct 12 22:47:53 1998 Pavel Machek <pavel@bug.ucw.cz>
4015 * file.c (copy_file_file): MCCTL_SETREMOTECOPY is no longer used
4017 * file.c (copy_file_file): do_reget is now correctly done using
4020 Wed Oct 7 22:20:37 1998 Pavel Machek <pavel@bug.ucw.cz>
4022 * file.c: Ask user if (s)he wants to delete incomplete file
4024 Sun Oct 11 20:21:20 1998 Peter Kleiweg <kleiweg@let.rug.nl>
4026 * mfmt.c (main): When there are an even number of empty lines
4027 between messages, all goes well, but when the number of empty
4028 lines between messages is odd, the program fails.
4030 Sun Oct 11 20:11:16 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4032 * setup.c: Option ftpfs_use_unix_list_options was saved from
4033 and restored to the wrong variable (ftpfs_use_passive_connections).
4035 Mon Oct 5 21:33:14 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4037 * screen.c (parse_display_format): Don't dereference NULL pointer
4038 when format string is an empty string.
4040 Mon Oct 5 19:59:56 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4042 * main.c (translate_url_to_new_syntax): Translate ftp:// to an
4043 absolute path instead of a relative path (fix to "hotlist" bug
4044 reported by Andrej). This means we drop the "return to last dir"
4045 feature for ftpfs (when leaving ftpfs with ".." returns to the
4046 directory visited before entering the ftpfs).
4048 Sat Oct 3 00:54:23 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4050 * gtkedit/Makefile.in (EDITOBJS): removed one wrong \\ (line
4053 Thu Oct 1 18:43:34 1998 Pavel Roskin <pavel_roskin@geocities.com>
4055 * file.c: Commented out search for egrep because execvp() does
4058 * utilunix.c: vfs_uid should not be used if VFS is disabled
4060 Tue Sep 29 17:53:56 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4062 * main.c: removed stupid reference to {sfs,extfs}_which
4064 * screen.c: fixed higlighting to go for longest match if it does
4065 not find exact match. This is so that it works well with vfs (and
4066 needs _NO_ knowledge about vfs layer).
4068 Tue Sep 29 14:02:56 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4070 * layout.c (print_vfs_message): fixed buffer overrun by
4071 vsnprintf. Unfortunately I have no clue how to do this portably.
4073 Tue Sep 29 11:42:32 1998 Pavel Roskin <pavel_roskin@geocities.com>
4075 * setup.c: Corrected code which prevents using icon view by
4076 ports which don't support it
4078 Mon Sep 28 21:55:13 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4080 * find.c: Changed hotkey of the continue-button (both Chdir and
4083 * Makefile.in: search config.status in builddir and not in rootdir,
4084 i.e. make it compile for builddir != srcdir
4086 Wed Sep 23 14:06:44 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4088 * src/file.c: Made file.c use new O_LINEAR mode (so copying from
4089 ftp works nicely, again)
4091 Fri Sep 18 14:15:43 1998 Pavel Roskin <pavel_roskin@geocities.com>
4093 * src/mad.c: All messages are sent to stderr and terminate with \r\n
4095 * src/hotlist.c: Harmless memory leak fixed
4097 * xv/Makefile.in, xv/xvmain.c, xv/xvscreen.c: Minor fixes to
4098 make compilation of the XV port possible (currently without
4101 Thu Sep 17 07:32:23 1998 Norbert Warmuth <k3190@fh-sw.de>
4103 * Makefile.in: After creating symlinks invoke another instance of
4104 make to build libvfs.a. Otherwise make will not know how to build
4105 the object files if symlinks have been created.
4106 Added target cleansourcelinks (invoked with make distclean).
4108 Tue Sep 15 22:41:24 1998 Paul Sheer <psheer@obsidian.co.za>
4110 * edit.c, editwidget.c, gtkedit.c: fixed segfault when trying to
4111 edit a non-file under gmc.
4113 Tue Sep 15 21:52:00 1998 Norbert Warmuth <k3190@fh-sw.de>
4115 * mc.hlp, doc/mc.1.in, doc/mc.sgml: updated my EMail address
4117 Tue Sep 15 20:51:42 1998 Norbert Warmuth <k3190@fh-sw.de>
4119 * setup.c: save and restore new global variable/option
4120 ftp_use_unix_list_options
4122 Tue Sep 15 01:02:34 1998 Paul Sheer <psheer@obsidian.co.za>
4124 * gtkedit: Directory added. This directory contains all the editor
4125 code modified to work with gnome. Mcedit now works properly under
4126 gnome with a slightly reduced set of features.
4128 * gscreen.c gscreen.h screen.c: Modified to respond to F4 on a file
4129 and start the new gtkedit internal editor.
4131 1998-09-14 Norbert Warmuth <k3190@fh-sw.de>
4133 * file.c (move_dir_dir): Fixed severe bug reported by Andrew Pechenov
4134 <zx80@demo.ru> (losing files when moving directories cross filesystem
4135 boundaries): make sure erase_list is emptied always not only when we
4138 Sat Sep 12 02:59:43 1998 Timur Bakeyev <mc@bat.ru>
4140 * screen.c: Xtry_to_select() Remove extfs hack to the main.c. Change
4141 for() cycle to the x_basename() call (Thanks to Pavel Roskin).
4142 Add (key_callback) do_enter() to prevent warnings.
4144 * main.c: Rename cd_try_to_select() to the get_parent_dir_name(). Now
4145 it process VFS postfixes too. Reduced number of loops against prev hack.
4147 Fri Sep 11 15:27:59 1998 Pavel Machek <pavel@ucw.cz>
4149 * screen.c: make cd .. from extfs file highlight it
4151 Tue Sep 8 13:10:32 1998 Pavel Roskin <pavel_roskin@geocities.com>
4153 * autogen.sh: Don't destroy aclocal.m4 if "macros" directory
4156 * layout.c: Use stdout instead of stderr in set_hintbar()
4158 Mon Aug 31 12:40:29 1998 Pavel Machek <pavel@ucw.cz>
4160 * cmd.c: added view_file_cmd which asks user which file to view -
4161 _very_ usefull with vfs (now you can browse web with mc: try
4162 /#url:http:||atrey.karlin.mff.cuni.cz|~pavel#uhtml)
4164 Thu Aug 27 19:52:45 1998 Pavel Roskin <pavel_roskin@geocities.com>
4166 * Make.common.in: Don't define VERSION anymore
4168 * configure.in: this is the right place for VERSION definition
4170 * acconfig.h: does not include file "VERSION" anymore
4172 * config.h.in: rebuilt by autoheader
4174 * VERSION: removed from CVS and added to .cvsignore since it
4175 is rebuilt every time as configure is run
4177 1998-08-20 Raja R Harinath <harinath@cs.umn.edu>
4179 * mad.h: Include stdlib.h/malloc.h first, to prevent prototypes
4180 from being clobbered by the subsequent macro defines.
4182 Wed Aug 12 15:56:46 1998 Pavel Roskin <pavel_roskin@geocities.com>
4184 * edit.h: added "../" before some includes to avoid unnecessary
4185 "-I" options for the PC port makefiles.
4187 Sun Aug 9 22:39:12 1998 Janne Kukonlehto <jtklehto@paju.oulu.fi>
4189 * mad.h (calloc): Added parentheses around the arguments as
4190 suggested by Steef Boerrigter <sxmboer@sci.kun.nl>.
4192 Fri Jul 31 09:04:35 1998 Pavel Roskin <pavel_roskin@geocities.com>
4194 * syntax.c: makefile* will be highlighted as Makefile*
4196 1998-07-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
4198 * main.c (translated_mc_chdir): Quick hack to make the old
4199 url-like pathnames to be used on the command line.
4201 1998-06-22 T.E.Dickey <dickey@clark.net>
4203 * keyxdef.c: Fix for compiling with ncurses.
4205 Fri Jul 24 00:44:37 1998 Tom Tromey <tromey@cygnus.com>
4207 * mc-local.m4 (AC_STRUCT_LINGER): Moved into macros/linger.m4.
4208 * autogen.sh: Include linger.m4 in aclocal.m4.
4209 * Makefile.in (GNOME_M4_FILES): Include linger.m4.
4211 Thu Jul 23 22:44:16 1998 Tom Tromey <tromey@cygnus.com>
4213 * Makefile.in (aclocal.m4): Depend on all source files. Include
4214 gnome-vfs.m4 and gnome-undelfs.m4.
4215 (GNOME_M4_FILES): New macro.
4216 * autogen.sh: Include gnome-vfs.m4 and gnome-undelfs.m4 in
4218 * configure.in: Use GNOME_VFS_CHECKS and GNOME_UNDELFS_CHECKS
4219 macros instead of in-line checks. Create vfs/Makefile from
4222 Thu Jul 23 19:49:12 1998 Pavel Roskin <pavel_roskin@geocities.com>
4224 * hotlist.c: corrected layout of the warning which appears
4225 if ~/.mc doesn't exist. Appropriate changes in translations.
4227 Wed Jul 15 00:41:01 1998 Paul Sheer <psheer@obsidian.co.za>
4229 * edit.c, editwidget.c, * syntax.c: Syntax
4230 editdraw.c, editmenu, editcmd.c: highlighting for Pascal
4231 Added column text highlighting added.
4232 and block movements.
4234 1998-07-04 Carsten Schaar <nhadcasc@fs-maphy.uni-hannover.de>
4236 * main.c (main): 'session_management_setup' will be called after
4239 Wed Jun 18 Pavel Machek <pavel@ucw.cz>
4241 * i18n.h: we do not want i18n in case of compiling standalone
4244 Fri Jun 5 23:34:20 1998 Timur I. Bakeyev <timur@comtat.kazan.ru>
4246 * screen.c (file_entry_color): take care about BSD core dumps
4247 which have names program.core instead of core
4249 Mon Jun 1 15:41:20 1998 Norbert Warmuth <k3190@fh-sw.de>
4251 * main.c (translate_url_to_new_syntax): translate the common
4252 ftp url syntax to the syntax used by the new vfs code.
4254 (_do_panel_cd): First translate the path if necessary. This makes
4255 it possible to enter ftp://host on the commandline and in the
4256 directory hotlist. We might need to move the translation code
4257 to the vfs layer if there are other places where we want to enter
4260 Mon Jun 1 12:33:08 1998 Alexander V. Lukyanov <lav@yars.free.net>
4262 * configure.in: allowed to use `configure --with-included-gettext'
4263 on systems (like solaris) that have their own libintl
4265 1998-05-31 Miguel de Icaza <miguel@nuclecu.unam.mx>
4267 * complete.c (filename_completion_function): Use the vfs routines
4268 for name completion.
4270 1998-05-31 Jakub Jelinek <jj@ultra.linux.cz>
4272 * complete.c (complete_engine): Fix completions.
4274 Sun May 31 10:23:01 1998 Norbert Warmuth <k3190@fh-sw.de>
4276 * key.c (define_sequence): If a sequence clashes the last
4277 definition made will be used. This makes it possible to override
4278 wrong definitions in terminfo/termcap database with learn keys (or
4279 the appropriate entries in mc.lib and ~/.mc/ini).
4281 * widget.c (show_hist): Don't display the listbox partly
4282 off screen (the left panel's history started in column - 2).
4284 * keyxdef.c: include tty.h instead of myslang.h as suggested by
4285 Tamasi Gyorgy <gt_cosy@usa.net>
4287 Fri May 29 15:41:19 1998 Alexander V. Lukyanov <lav@yars.free.net>
4289 * widget.c (update_input): this patch allows entering 8-bit
4290 characters in input fields without screwing attributes. (the
4291 same old sign extension...)
4293 Wed May 27 22:23:48 1998 Ed Cogburn <ecogburn@greene.xtn.net>
4295 * lib/xterm.ti: The 'xterm-color' definition needs 'sgr0'. The tic
4296 program from ncurses 4.2 doesn't like the xterm.ti file that comes
4299 Wed May 27 15:29:01 1998 Alexander V. Lukyanov <lav@yars.free.net>
4301 * key.c (get_key_code): characters with high bit set were input
4302 as 0x80 char when use_8th_bit_as_meta was set
4304 1998-05-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
4306 * ext.h (MC_USER_EXT): New name for the per-user extension file
4307 (this needs redoing to concatenate this + the system stuff instead
4308 of the overwrite stuff we have now). Now it is called the ~/.mc/ext-n
4310 Mon May 25 23:32:35 1998 Norbert Warmuth <k3190@fh-sw.de>
4312 * editdraw.c (print_to_widget): Ifdef'd SLang specific code in order
4313 to make it compile with ncurses. Syntax highlighting in the
4314 internal editor is already disabled when SLang isn't used.
4316 1998-05-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
4318 * widget.c (port_region_marked_for_delete): New per-port
4319 piece of code: Provides a way for good selection killing.
4321 Sun May 24 02:45:03 1998 Norbert Warmuth <k3190@fh-sw.de>
4323 * utilunix.c, util.h (errno_dir_not_empty): deleted
4325 Sat May 23 22:29:57 1998 Norbert Warmuth <k3190@fh-sw.de>
4327 * file.c (check_dir_is_empty): New function which takes a path and
4328 returns -1 on error, 1 if there are no entries besides "." and
4329 ".." in the directory path points to, 0 else. This function
4330 actually opens and reads the directory and doesn't do tricks we
4331 used to do with rmdir.
4333 * file.c (erase_dir, erase_dir_iff_empty): Use check_dir_is_empty
4334 to detect non empty directories. The old code tried to remove the
4335 directory and decided on errno whether the failure of rmdir was
4336 caused by a non empty directory or whether there was a different
4338 Unfortunatly not every filesystem sets errno to EDIRNOTEMPTY if
4339 you try to delete a non empty directory. Namely the linux user
4340 space nfs server sets errno to EIO, Suns nfs server sets it to
4341 EEXIST and the AIX nfs server sets it to ??? (Steve reported
4342 problems on AIX so I guess AIX sets errno to a value we currently
4345 1998-maj-18 Tamasi Gyorgy (gt_cosy@usa.net)
4347 * lib/mc.menu: 'Z' on 'tar.Z' and 'tar.z' files: '%f' -> '$1'.
4349 * lib/mc.ext.in.qnx.diff, lib/mc.menu.qnx.diff (QNX): modified
4350 'mc.ext.in' (tar -t: output to stderr); modified 'mc.menu' (tar is
4351 not GNU tar: doesn't know '-z'); support for '*.tar.F':
4352 'freeze'-compressed tar files [No automatic configure/install
4353 implemented: patches must be applied before running 'configure'
4354 (mc.ext.in.qnx.diff: this patch can be not only QNX-specific...)]
4356 * lib/Makefile.in: 'mc.ext.in.qnx.diff' and 'mc.menu.qnx.diff' added
4361 SLTT_TRANSP_ACS_PATCH dependant code:
4363 The problem: some terminals (QNX/qansi*, SCO OS5/ansi [?]) map the
4364 whole upper half of the ASCII table to the lower half, when
4365 alt-char-set is activated with the smacs/as string-sequence. This
4366 means, that if 0 <= ch < 128 written to the terminal, it will be
4367 translated to (ch+128) automatically by the terminal: so not only
4368 the line-drawing characters can be written, when the alt-char-set
4369 is activated. It implicitly means, that space, NL, CR, etc.
4370 characters (exactly: anything besides the "standard" line drawing
4371 characters) can not be written directly to the terminal, when the
4372 alt-char-set is activated, because writing these characters
4373 doesn't cause an implicit/temporary switching-back to the standard
4376 The original code in SLang assumes that space, NL, CR, etc. can be
4377 printed when alt-char-set is activated. If SLTT_TRANSP_ACS_PATCH
4378 is defined, the modified code will not use this assumption.
4379 [Remark: the patch-code is not the most exact solution, but
4382 QNX_QANSI_SLANG_COMPAT_ACS_PATCH dependant code:
4384 A more OS/terminal-specific solution for the problem mentioned
4385 above (->SLTT_TRANSP_ACS_PATCH).
4387 If QNX_QANSI_SLANG_COMPAT_ACS is defined, the default smacs/sa,
4388 rmacs/ae, acsc/ac [and sgr/sa, if it would be used!] command
4389 sequences will be replaced internally with the "old style"
4390 (pre-QNX 4.23) sequences in case of QNX/qansi terminals. Using
4391 these optional command sequences the terminal remains compatible
4392 with the original SLang code (without using the workaround-code
4393 enabled by defining SLTT_TRANSP_ACS_PATCH).
4397 Currently SLTT_TRANSP_ACS_PATCH is not auto-configured by
4398 'configure'. (Must be manually defined...)
4400 There is some (QNX-specific) auto-configuration hand-coded in the
4403 #ifdef SLTT_TRANSP_ACS_PATCH
4404 # if defined(__QNX__) && defined(QNX_QANSI_SLANG_COMPAT_ACS)
4405 # undef SLTT_TRANSP_ACS_PATCH
4408 # if defined(__QNX__) && !defined(QNX_QANSI_SLANG_COMPAT_ACS)
4409 # define QNX_QANSI_SLANG_COMPAT_ACS 1
4413 * slang/slutty.c: "newtty.c_iflag &= ~(ECHO | INLCR | ICRNL);"
4414 ECHO(0x08) is a c_lflag bit, it means PARMRK(0x08) in c_iflag. (!?!)
4416 * src/file.c: 'do_reget' can be extern if (USE_VFS && USE_NETCODE),
4419 * src/find.c (search_content()): Variable 'i' "must be" 'int', not
4420 'char'. ["i == -1": (buggy?) WCC 10.6 doesn't convert automatically
4421 (int)(-1) to (char)(-1) (GCC does), so "comparison result always 0"
4422 warning produced. It is cleaner to define 'i' as 'int', than cast
4423 '-1' to 'char', because 'read()' returns 'int'.]
4425 * src/key.c (init_key()): Call load_xtra_key_defines() and clear
4426 'use_8th_bit_as_meta' by default under QNX, if a 'qnx*' terminal
4427 detected. (A saved config file (mc.ini) can override it later...)
4429 * src/key.h: Declare load_xtra_key_defines().
4431 * src/keyxdef.c: Provides a method to define some platform-specific
4432 additional key mappings. (e.g. QNX terminals can handle most of
4433 META-? combinations as ALT-?...) ('keyxdef.c' currently not listed
4436 * src/layout.c: TIOCGWINSZ must be available (so <sys/ioctl.h> (?)
4437 included), because window-resizing code doesn't work, if not defined.
4439 * src/main.c: 'print_usage()' is reserved name in the QNX run-time
4440 library, so 'print_usage()' renamed to 'print_mc_usage()'
4442 * src/mouse.c (QNX): ncurses 1.9.8a ported to QNX doesn't provide the
4443 'SP' pointer as a global symbol in the library, so the keyok()
4444 emulation currently can not be used under QNX (4.24 & Watcom C 10.6
4447 * src/slint.c (QNX): 'qansi*' terminals added to the color_terminals[]
4450 * src/subshell.c, src/utilunix.c (QNX): include <unix.h> to get
4451 prototype for exec*()!!! [See README.QNX/Section 1.4 about the
4452 dangerous "No prototype for <function>" warnings emitted by Watcom C,
4453 if <function> is a 'printf()'-style function having variable number
4454 of arguments and you compile your source with the default register
4455 calling convention!!!]
4457 * Makefile.in: 'keyxdef' module added to SRCS and OBJS.
4459 * <mc-root>/README.QNX: QNX-specific notes.
4461 * <mc-root>/configure (line 3369), <mc-root>/configure.in (line 88):
4462 'test x$CCOPTS = x;' modified to 'test "x$CCOPTS" = x;'
4464 * <mc-root>/Makefile.in: README.QNX added to DISTMAIN.
4466 Thu May 21 00:09:45 1998 Norbert Warmuth <k3190@fh-sw.de>
4468 * menu.c (menubar_event): Don't set menubar->selected to the
4469 invalid value -1. Fix for the bug reported by root@liepa.soften.ktu.lt
4471 * menu.c (menubar_drop_compute): removed the check for inrange
4472 items which isn't necessary any longer.
4474 Wed May 20 16:27:56 1998 Norbert Warmuth <k3190@fh-sw.de>
4476 * widget.c (history_put): input line history was defunct because
4477 there was an #ifndef where an #ifdef should be.
4478 Btw. PORT_WIDGET_WANTS_HISTORY seems incomplete because a lot of
4479 history code is included even when this define is undefined.
4481 1998-05-19 Tamasi Gyorgy <gt_cosy@usa.net>
4483 * src/*: Until I get a better ChangeLog: Tamasi's port of the
4486 1998-05-19 Alexander Lukyanov <lav@yars.free.net>
4488 * Makefile.in: Distirbution fix so that people are not forced to
4491 1998-05-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
4493 * ext.c: Memory leak fixed.
4495 Mon May 18 22:24:09 1998 Norbert Warmuth <k3190@fh-sw.de>
4496 * lib/mc.ini.in: s/reges/regex/
4498 * main.c (process_args): return void, the return value was only
4499 used once but wrong (-h displayed help twice).
4500 (handle_args): -h: don't display help twice
4501 (print_usage): Don't print program name and version, that's
4502 already done by version(0).
4504 * menu.c (menubar_paint_idx): Highlight Hotkeys also on slow
4505 terminals (hotkeys were not displayed at all).
4507 1998-05-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
4509 * menu.c (menubar_drop_compute): Check for inrange items.
4511 1998-05-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
4513 * color.c (init_colors): Provide X-only version of color
4516 Thu May 14 01:56:11 1998 Norbert Warmuth <k3190@fh-sw.de>
4518 * configure.in: Don't add -lintl to LIBS when included gettext is
4519 used (further checks for libraries would fail because libintl.a
4520 isn't build, yet). Instead use and substitute LINTL.
4522 * Makefile.in (OURLIBS): add @LINTL@
4524 Tue May 12 17:45:49 1998 <psheer@obsidian.co.za>
4526 * syntax.c: yet more minor modifications.
4528 1998-05-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
4530 * main.c: New default: auto-save setup.
4532 * screen.c (move_right, move_left): Add support for icon-view movement.
4534 1998-05-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
4536 * setup.c (panel_load_setup): On non-icon editions, fall back to
4539 Sun May 10 13:27:50 1998 Norbert Warmuth <k3190@fh-sw.de>
4541 * widget.c (handle_char): Don't try to to delete default text in
4542 input widget more than once. Right after MC's start copy_filename
4543 (ESC Enter) failed because a flag wasn't cleared while characters
4544 were stuffed into the commandline (Andrej reported this bug).
4546 * main.c (copy_readlink): usr mc_readlink instead of readlink
4548 * file.c: Changed default for the copy/move option "dive into
4549 subdir if exists" to off (note: this was only possible after the
4552 (copy_dir_dir): Activated the previously uncommented code which
4553 implements "Dive into subdirs". Even when there's no case where we
4554 actually would like that behaviour it is a documented feature.
4555 Though I don't wanted to change the default behavour. Hence the
4558 (file_mask_defaults): set dive_into_subdirs
4560 (file_mask_dialog): Fix for debian Bug #20727: Move operation with
4561 "[ ] Dive into subdir if exists" and destination filename not
4562 wildcarded. If destination is an existing directory then files
4563 will be moved into this directory. If destination is not an
4564 existing directory then src file will be renamed (one file
4565 selected) or an error will be displayed (more than one file
4568 (file_mask_dialog): made the option "Using shell patterns" local
4569 to the current copy/move operation, i.e. this option is always
4570 initialized with the global options's value. Previously it affected
4571 the global Options/Configuration/shell Patterns.
4572 Another possiblilty would be to make the global option a default
4573 option on startup and keep changes in the copy/move dialog
4574 (without saving these changes with save setup).
4576 * setup.c: Don't save and load options which can be changed
4577 outside the options menu. For example I don't like that
4578 preserve_uid_gid and dive_into_subdirs from the copy/move dialog
4579 are saved and restored (strange, what about the other options from
4581 It would be much cleaner to make these option read-only. This way
4582 one could edit ~/.mc/ini to provide default option setting on
4583 startup and "Save setup" wouldn't have side effects outside the
4586 Sun May 10 13:24:20 1998 Norbert Warmuth <k3190@fh-sw.de>
4588 * doc/mc.1.in, doc/mc.sgml, mc.hlp: Updated to reflect new default
4589 for dive into subdirs.
4591 Sun May 10 13:21:45 1998 Norbert Warmuth <k3190@fh-sw.de>
4593 * edit/syntax.c: Disable debug messages on stderr.
4595 * edit/edit.h: Added missing _()
4597 1998-05-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
4599 * layout.c (flag_winch): Propagate the window change to the slave
4600 pty even when not running our event loop. The resize_subshell
4601 routine is thread safe.
4603 * dlg.c (update_cursor, dlg_broadcast_msg_to): Do not send
4604 messages if no widgets are on the Dlg_head, this happens now with
4605 the gmc code, as we can have all of the windows shut down.
4607 Wed May 6 13:46:37 1998 Paul Sheer <psheer@obsidian.co.za>
4609 * syntax.c: more bug fixes.
4611 1998-05-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
4613 * view.c (view_quit_cmd): Use dlg_stop.
4615 * main.c (ctl_x_cmd): Implement ctl-x handling as a state of the
4616 key press events. Drop the usage of mi_getch to acomplish this
4618 (midnight_callback): Deal with the current map depending on the
4621 Mon May 4 10:21:31 1998 Norbert Warmuth <k3190@fh-sw.de>
4623 * background.c (message_1s1d): the unprocessed string with %d was
4624 passed to message_1s; fixed small memory leak
4626 * widget.c (button_callback): WIDGET_CURSOR: make cursor position
4627 dependend from button type (fixes the off by one bug in advanced
4630 * file.c (copy_file_file): Schedule deletion of short target file
4631 only when we created or truncated the target file and not already
4632 when we decided to overwrite an existing file.
4634 1998-05-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
4636 * boxes.c (task_cb): Use kill, not INT, as we are catching INT in
4639 Sat May 2 14:07:05 1998 Paul Sheer <psheer@obsidian.co.za>
4641 * setup.c: ALT('H') now shows a directory history - that
4642 ESC SHIFT-h or ALT-SHIFT-h
4644 Fri May 1 17:45:58 1998 Paul Sheer <psheer@obsidian.co.za>
4646 * syntax.c: initial support for LaTeX 2.09 files added,
4648 * syntax.c: some minor bug fixes. and reorganisation
4649 of context and keyword priorities.
4651 Fri May 1 11:24:21 1998 Paul Sheer <psheer@obsidian.co.za>
4653 * syntax.c: syntax highlighting segfaults when editing a binary
4656 Thu Apr 30 12:23:50 1998 Alex Tkachenko <alex@bcs.zp.ua>
4658 * src/file.c: lot of i18n of file Copy/Move/Delete operations. Maintainers
4659 of message catalogs please notice introduced op_names1 and formats for
4662 * src/boxes.c: i18n of background jobs control and quick cd
4665 * src/menu.c (menubar_arrange): resizing of menubar upon changes of
4666 window size is now controlled by preprocessor symbol RESIZABLE_MENUBAR
4667 (now it's off by default, as requested in mailing list). If it is off,
4668 menubar items are separated with fixed number of spaces (3).
4670 * src/layout.c, edit/editwidget.c: calls to menubar_arrange ifdef'ed
4673 1998-04-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
4675 * main.c (parse_an_arg): GNOME edition keeps track of various
4676 --geometry and various directories passed.
4678 1998-04-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
4680 * main.c (update_panels): Great API simplification. update_panels
4681 only cares about the contents of the current panel, every other
4682 panel keeps the current selection (this was the behaviour
4685 update_panels can be provided in a per-port fashion as well.
4687 Wed Apr 29 03:06:09 1998 Paul Sheer <psheer@obsidian.co.za>
4689 * syntax.c: some optimisations, as well as support for
4690 syntax highlighting of Makefiles and ChangeLog files.
4691 Fixed some syntax highlighting bugs. All C and C++
4694 Tue Apr 28 06:11:08 1998 Norbert Warmuth <k3190@fh-sw.de>
4696 * view.c (toggle_wrap_mode, toggle_hex_mode): Force recalculation
4697 of bottom_first (we mustn't use an already calculated and cached
4698 value because it is invalid for the new mode and the End key would
4699 not move to the end of the file).
4701 * configure.in: Renamed the option `--with-our-slang' to
4702 `--with-included-slang' (this one looks better because we also
4703 have an `--with-included-gettext').
4704 Make the option `--with-ext2undel' recognice a given path.
4706 * cmd.c (view_file_at_line): In plain view (F13) set the default
4707 magic flag to zero in order to view the file content unprocessed
4708 (esp. don't uncompress files if they are compressed). The
4709 view_simple_cmd got broken when the default magic flag in view.c
4710 was changed from 0 to 1.
4712 * view.c (do_view_init, goto_line): Set wrap mode temporary off
4713 to make goto line number work, i.e. `line number' now always means
4714 line number in file and not line number on screen (in wrap mode
4715 one long line wrapped once is displayed in two lines on the screen).
4716 That's important when the viewer is invoked from the find file
4717 dialog to display even in wrap mode approxiamtly the part of the
4718 file where we found the content we searched for.
4720 (move_forward2): In wrap mode lines were sometimes counted wrong
4721 causing cursor up to move more than one line.
4723 (move_backward2): Fixed the movement in wrap mode.
4725 (change_viewer): Always re-init viewer when we have a filename,
4726 i. e. if the viewer is invoked with simple_view_cmd then we can switch
4727 with the F8 key between unprocessed file content und uncompressed
4729 (view_init): re-init view also when magic flag was altered
4731 1998-04-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
4733 * screen.c (is_a_panel): Added a routine to determine if a widget
4736 1998-04-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
4738 * screen.c (file_entry_color): Check if fe->fname has something.
4740 Sun Apr 26 00:21:12 1998 Norbert Warmuth <k3190@fh-sw.de>
4742 * slint.c: Applied the patch from Bill Nottingham <wen1@cec.wustl.edu>
4743 to make it link against SLang >=1.0.
4744 I reviewed the diffs to the part of SLang we use and there are no
4745 further changes to MC necessary (one function's return value
4746 changed it's meaning but we don't use this return value).
4748 * configure.in: Undone the change which prevented linkage against
4751 Sat Apr 25 13:41:43 1998 Paul Sheer <psheer@obsidian.co.za>
4753 * edit.h, syntax.h: some optimisations to improve syntax
4756 1998-04-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
4758 * color.h: Move the CTYPE definition
4760 Fri Apr 24 16:43:25 1998 Paul Sheer <psheer@obsidian.co.za>
4762 * main.h, setup.c: editor_syntax_highlighting option added
4765 Fri Apr 24 14:54:06 1998 Paul Sheer <psheer@obsidian.co.za>
4767 * syntax.c: added. this files reads ~/.cedit/mcsyntax and
4768 processes generic rules for syntax highlighting of different
4769 file types. Syntax highlighting does not store an attribute byte
4770 for each byte of the edit buffer. Rather, it calculates colours
4771 on the fly, with an optimised algorithm, as the text is being
4774 * edit.c, edit.h, editwidget.c, editdraw.c: changes to facilitate
4775 syntax highlighting.
4777 * editoptions.c: dialog box updated with a syntax highlighting
4780 * slint.c: new function alloc_color_pair(). This allocates a new
4781 color index. init_pair() itself now records the last colour index
4782 so that colours can be added on to the end of the colour list
4783 with alloc_color_pair().
4785 * slint.c: new function try_alloc_color_pair() returns a new index
4786 for a color with named fg and bg. Checks if that named colour
4787 already exists before setting a new index.
4789 1998-04-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
4791 * user.c (execute_menu_command): Create temporary file exclusively
4794 * main.c (do_execute), utilunix.c (my_system), gutil.c, ext.c:
4795 Changed the way we execute programs. Now a new set of flags exist
4796 that indicates how the execution is done. In ports that execute
4797 by sending the process to background, when executing temporary
4798 files, we have to remove the files after the child process has
4799 finished executing the code not after the calling do_execute.
4801 * ext.c (exec_extension): Create temporary file exclusively.
4803 Mon Apr 20 01:32:20 1998 Norbert Warmuth <k3190@fh-sw.de>
4805 * configure.in: Don't try to link MC against SLang >= 1.0. I will
4806 remove this restriction when I'm sure that it's save to use the new
4807 version (the documentation to SLang mentions some changes of
4810 1998-04-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
4812 * file.h: Added prototype for copy_dir_dir.
4814 * file.c (real_do_file_error): use the proper flags, this is not a
4815 D_INSERT dialog box, for what it is worth. Important bug fix.
4817 * utilunix.c (get_owner): Declare.
4819 * widget.h: Added various missing prototypes for the X edition.
4820 * view.h: Added various missing prototypes for the X edition.
4821 * widget.c (x_radio_toggle): New per-port variable: PORT_HAS_RADIO_TOGGLE
4823 1998-04-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
4825 * screen.c (GT): Assign two spaces for the minimum size of the
4826 "type" field for the GNOME edition. This gives some extra space
4827 for the icon that gets displayed.
4829 * dlg.c (remove_widget): New function: used to remove a widget
4830 from an existing Dlg_head;
4831 (destroy_widget): Destroy a specific Widget.
4832 (add_widgetl): Extended to deal with the fact that a running
4833 Dlg_head can become empty.
4835 * panelize.c (l_call): Update the input line every time the user
4836 selects the entry with the mouse (pretty common in the gnome
4839 * hotlist.c (add_new_group_input): Removed an extra field that was
4842 * find.c (find_parameters): Tree button is gone for gnome until we
4843 get the tree function working on gnome.
4845 * cmd.c (save_setup_cmd): Per Elliot's suggestion, do not pop up a
4846 dialog box to inform the user about the saved setup.
4848 1998-04-15 Pavel Machek <pavel@elf.ucw.cz>
4850 * cmd.c: Report failed chdir attempts.
4852 Wed Apr 15 10:48:41 1998 Alex Tkachenko <alex@bcs.zp.ua>
4854 * src/hotlist.c: changes to hotlist boxes i18n.
4856 * src/panelize.c: changes to panelize boxes i18n.
4858 * src/wtools.c (query_dialog): Take care about possible '&' in
4859 button names while calculating window sizes and button positions.
4861 1998-04-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
4863 * screen.c (string_file_nlinks): The buffer was too small and we
4864 were overwriting parts of it.
4866 * subshell.c (do_subshell_chdir): Memory leak fix.
4868 * find.c (do_search): Do not use undefined order of evaluation.
4870 * user.c: Do not use undefined order of evaluation.
4872 * dlg.c (init_dlg): Do init the default return value.
4874 Sun Apr 12 03:09:17 1998 Norbert Warmuth <k3190@fh-sw.de>
4876 * cmd.c (view_other_cmd): #ifdef'd application_keypad_mode and
4877 numeric_keypad_mode (don't include it in non text editions)
4879 Sun Apr 12 02:48:26 1998 Norbert Warmuth <k3190@fh-sw.de>
4881 * xv/xvscreen.c: removed duplicate (conflicting) definition
4884 Sun Apr 12 02:24:57 1998 Norbert Warmuth <k3190@fh-sw.de>
4886 * text.c (edition_post_exec), cmd.c (view_other_cmd): Don't change
4887 the keypad mode when we don't use the alternate plus minus. Pavel
4888 forgot an if-clause when he replaced the escape sequences (or
4889 another point of view: I forgot one if-clause at different place).
4891 Fri Apr 10 17:35:23 1998 Philippe De Muyter <phdm@macqel.be>
4893 * configure.in (AC_NCURSES): When checking for library location,
4894 put -L option before -l option, not after.
4896 Fri Apr 10 10:35:06 1998 Norbert Warmuth <k3190@fh-sw.de>
4898 * file.c (file_mask_dialog): When the shell patterns option was
4899 off source_mask was freed twice.
4901 1998-04-10 Marc Ewing <marc@redhat.com>
4903 * panel.h: added up_b
4905 1998-04-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
4907 * widget.c (update_input): Set the used flag early in update_input
4908 to allow X widget to catch the right value
4910 * screen.c (do_enter): Return the status for the operation.
4912 * main.c (main): Sigh. This was hard. I added support for argp.
4913 Right now we support both argp for the GNOME edition and popt for
4914 the other editions. I will remove popt support in the future and
4917 * dlg.c (add_widgetl): Adding widgets to an already running dialog
4918 had some flaws. Fix this.
4920 Wed Apr 8 11:15:29 1998 Alex Tkachenko <alex@bcs.zp.ua>
4922 * src/find.c: changes to find_parameters/find_file i18n.
4924 * src/widget.c: new function introduced, button_scan_hotkey();
4925 button_new() and button_set_text() fixed to use mentioned function.
4927 * src/key.[ch], src/dlg.c: changes to make recognition of ESC char as
4928 ALT(c) possible for 8-bit chars. (By replacing 'A'/'Z' comparisons with
4929 call to isalpha() in the way proposed by Norbert).
4931 * src/boxes.c: changes to display box i18n
4933 * src/learn.c: changes to learn key dialog i18n
4935 1998-04-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
4937 * main.c (update_one_panel_widget): New routine: Updates a panel
4938 based on the widget, not the index. Used by the GUI versions.
4940 * find.c (find_file): Cancel idle tasks before we destroy the find
4943 * dlg.c (destroy_dlg): Call x_destroy_dlg_start, a new hook that
4944 is invoked to allow the frontend code to prepare for dialog
4945 destruction. Only the Gnome edition is using this: it uses this
4946 to hide the dialog and avoid flickering.
4948 * main.c: dtterm also has mouse support.
4950 1998-04-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
4952 * wtools.c (quick_callback): Process DLG_KEY events on X.
4954 * utilunix.c (max_open_files): new routine; Used to figure out
4955 the number of available file descriptors.
4957 Sat Apr 4 00:16:49 1998 Alex Tkachenko <alex@bcs.zp.ua>
4959 * src/layout.c: changes to layout dialog box i18n
4961 * src/option.c: changes to configure box i18n
4963 * src/cmd.c: added N_() macro for machine_str
4965 * src/wtools.c (real_input_dialog_help): ok/cancel buttons are places
4966 symmetrically spaced relatively to center of the box. It produces
4967 nicer appearance with i18n (IMO :)
4969 * src/boxes.c (confirm_box): i18n stuff added.
4971 Mon Apr 6 07:48:22 1998 Pavel Roskin <pavel_roskin@geocities.com>
4973 * Makefile.in: "make dist" works with bash 1.x again
4975 Fri Apr 3 05:23:20 1998 Alex Tkachenko <alex@bcs.zp.ua>
4977 * configure.in: ALL_LINGUAS test added, to allow specify list
4978 of languages to be installed by setting env variable before
4979 configure. If it is empty, it defaults to full list.
4981 * src/menu.h menu_entry.{hot_pos, is_dupped} dropped
4983 * src/menu.c: consistency fixes: pull-down menu items are now
4984 accessible either with arrow keys or with hotkeys, denoted with &
4985 (and highlighted). (key combinations, placed to the right of items
4986 intended to be used from outside the menus). Freeing menu entries
4987 removed as it no longer needed
4989 * src/main.c, edit/editmenu.c: menubar init code is changed to conform
4992 * edit/edit.h: use of "Cancel" in error_dialogs replaced with
4993 "Dismiss", to avoid collisions in translation of "Cancel" in other
4994 places with this case.
4996 * src/boxes.c: select_format() and it's support removed, as it is
4997 obsoleted by input line history feature. display_init()/display_callback
4998 fixed to suite i18n changes. sort_box() - alike.
5000 * src/option.c: pause_options added &'s and gettext calls to expand
5001 statically assigned values.
5003 * src/widget.c: (radio_callback) hotkey recognition is changed to
5004 &-notation, rather than simple uppercase.
5006 * src/dlg.c: (dlg_try_hotkey) plain symbol comparison replaced with
5007 call to isalpha(), this fixes errorneous exit from input line, when
5008 button hotkey is 8-bit NLS char.
5010 Fri Apr 3 12:23:28 1998 Norbert Warmuth <k3190@fh-sw.de>
5012 * TODO: Removed obsolete entries: Similar entries in tree view
5013 are displayed correct; user specific files has been moved
5015 Added: Check what to do with menubar_arrange/destroy_menu stubs
5016 in tk/tkmenu.c; the interal editor (not portet yet) adds entries
5017 to the wrong menubar
5019 Wed Apr 1 00:15:30 1998 Norbert Warmuth <k3190@fh-sw.de>
5021 * key.c, key.h (numeric_keypad_mode, application_keypad_mode): New
5022 functions which encapsulate two hardcoded escape sequences from main.c.
5024 * main.c (main): Use the two new functions from key.c
5026 * main.c, screen.c: Moved all file selection keys from the default
5027 keymap to the keymap for panels in listing mode.
5028 Changed *_selection_cmd to *_selection_cmd_panel in panel_keymap
5029 (functions in panel_keymap get a WPanel * as first parameter,
5030 i.e. the indirection with cpanel isn't necessary).
5032 * main.c (midnight_callback): Keys '*' and '-' were not treated
5033 when only_leading_plus_minus==0;
5034 Optimized the if-clauses a little bit (i.e. removed duplicate
5035 checks). More optimation is possible but it would make the whole
5036 stuff completly unreadable.
5038 * key.c (correct_key_code): KP_ADD, KP_SUBTRACT and KP_MULTIPLY
5039 will be translated to +, - and * only if the option
5040 alternate_plus_minus is turned off.
5042 * learn.c (learn_keys): Turn alternate_plus_minus temporarily on
5043 to avoid translation of KP_ADD, KP_SUBTRACT and KP_MULTIPLY in
5044 correct_key_code/make sure keypad is in application mode (makes it
5045 possible to learn this keys).
5047 * cmd.c (reverse_selection_cmd_panel): New function (renamed from
5048 reverse_selection_cmd, takes a WPanel * as parameter, references to
5049 cpanel changed to panel/the passed parameter).
5050 reverse_selection_cmd now simply calls this function with cpanel.
5051 This pair was missing among the *_selection_cmd* functions.
5053 * cmd.h: Added function prototypes.
5055 1998-03-31 Paul Sheer <psheer@obsidian.co.za>
5057 * cmd.c (nice_cd): Forgot to invoke the history registration in
5060 1998-03-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
5062 * menu.c (destroy_menu): Implement destroy_menu for all of the
5063 ports as a routine that frees the menu entries if
5064 internationalization has been enabled.
5066 * wtools.c (quick_dialog_skip): Do not i18n any string that is empty.
5068 Sun Mar 29 23:02:09 1998 Alex Tkachenko <alex@bcs.zp.ua>
5070 * src/menu.[ch]: new member to menu_entry (hot_pos) introduced to make
5071 internationalized version of menu use externally defined hotkeys
5072 (denoted with preceding &). create_menu() fixed to load intl text of
5073 the entries. Some fixes around menu.c to enable usage of reloaded
5076 * main.c, editmenu.c: menu initialization code fixed to conform new
5077 menu structure. editmenu init code includes N_(..) now.
5079 * menu.c, layout.c, editwidget.c: bar menu items displacement is made
5080 dynamically upon initialization and window size changes. Mouse event
5081 processing is fixed accordingly.
5083 Sat Mar 28 13:18:36 1998 Alex Tkachenko <alex@bcs.zp.ua>
5085 * src/screen.c: (repaint_file) last patches to format_file() in the
5086 same file broke appearance of panels in brief mode -- fixed.
5088 Mon Mar 30 20:02:49 1998 Paul Sheer <psheer@obsidian.co.za>
5090 * main.c, screen.c, dirhist.c, dirhist.h, main.h, widget.c,
5091 main.h and others?: Directory history added. The previous
5092 directory history code was removed. The directory history now
5093 loads and saves using the same routines as the input widget. The
5094 keys meta-y, and meta-u are used to go backward and forward
5095 through the history. The buttons to the right and left of the
5096 current directory display on the panel can be used as well. The
5097 v button brings up a history, but no key is assigned to this.
5098 Discussion as to correct color and shape of these buttons is
5099 open. show_hist() in widget.c is made generic to be called for
5100 any widget. Help pages still needed to be added for the
5103 Wed Mar 25 19:05:31 1998 Norbert Warmuth <k3190@fh-sw.de>
5105 * view.c (view_done): Set monitor off before deleting the view
5108 * subshell.c (init_subshell): Added ':q' to $cwd in the precmd for
5109 tcsh. It preventes command and filename substitution (e.g. for
5110 a directory named "[word] words")
5112 Mon Mar 23 18:06:10 1998 Norbert Warmuth <k3190@fh-sw.de>
5114 * main.c: Deleted some old and unused code
5116 1998-03-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
5118 * All over the src/ directory: Internationalization changes.
5120 * background.c: Avoid buffer over-runs and reduce number of
5121 internationalization strings.
5123 Mon Mar 23 14:04:07 1998 Philippe De Muyter <phdm@macqel.be>
5125 * configure.in (nlink_t): Check it using AC_CHECK_TYPE.
5126 * acconfig.h (nlink_t): New define slot.
5128 Mon Mar 23 08:17:55 1998 Pavel Roskin <pavel_roskin@geocities.com>
5130 * src/main.c: mcedit can be named mce or mcedit.exe - only
5131 3 first letters are significant. The same for mcview.
5132 Console is always saved in do_execute() if it was saved there.
5134 * src/util.h: STRNOMP introduced (strncmp on unix and strnicmp
5137 * slang/slgetkey.c: SLang_getkey() and SLang_input_pending()
5140 * myslang.h: using fast one_vline() and one_hline() for OS2_NT
5142 Mon Mar 23 00:47:51 1998 Norbert Warmuth <k3190@fh-sw.de>
5144 * autogen.sh: added support for builddir != srcdir
5146 * doc/Makefile.in: The manual pages are generated files and
5147 located in the builddir and not in the srcdir.
5149 * find.c (find_file): Use the same hotkey for the panelize button
5150 as we use with the external panelize command.
5152 Fri Mar 20 17:51:01 1998 Norbert Warmuth <k3190@fh-sw.de>
5154 * myslang.h: --with-ncurses didn't compile: renamed
5155 KEY_BACKTAB to KEY_BTAB (the name ncurses uses)
5157 * dlg.c (dlg_key_event): likewise
5159 1998-03-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
5161 * screen.c: Remove KEY_DC forever. This should have never been
5164 Wed Mar 18 22:08:34 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5166 * achown.c (do_enter_key): call endgrent, endpwent.
5168 * chown.c (init_chown): call endgrent, endpwent.
5170 Tue Mar 17 23:58:40 1998 Pavel Machek <pavel@elf.ucw.cz>
5172 * src/file.c: Fix for the case where the disk gets full.
5174 Tue Mar 16 18:35:53 1998 Stas Maximov <stmax@u213.srcc.msu.su>
5176 * src/hotlist.c default values for dialogs which add entries to hotlist
5177 are now set to the current directory.
5179 Tue Mar 10 14:42:01 1998 Stas Maximov <stmax@u213.srcc.msu.su>
5181 * vfs/extfs.c, lib/mc.ext, vfs/extfs/extfs.ini, vfs/extfs/cpio.in
5182 Added support for cpio extfs including compressed and gziped
5183 cpio archives. compress and gzip handled separately because I saw
5184 a lot of systems which have compress, but don't have gzip.
5186 Sat Feb 21 16:46:49 1998 Stas Maximov <stmax@u213.srcc.msu.su>
5188 * src/subshell.c: failed to grantpt on SVR4 due to zero-initialized
5189 subshell_pid. sigaction handler for SIGCHLD does waitpid(subshell_pid,
5190 ...) and when subshell_pid == 0 it steals the zombie from grantpt(3)
5191 which does fork/exec/waitpid for suid program to set the permissions on
5192 pty. It's enough to initialize it to 1 or -2.
5194 1998-03-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
5196 * util.c (convert_pattern): Now the internal buffer is malloc()ed
5197 instead of being static. This is required for long patterns.
5198 (regexp_match): Free the pattern after calling convert_pattern().
5200 * file.c (file_mask_dialog): Free the source_mask after calling
5203 Mon Mar 16 13:03:45 1998 Pavel Roskin <pavel_roskin@geocities.com>
5205 * cmd.c: Internal edit is used by default. vi may be
5206 confusing for some users.
5208 * tree.c: tree_rmdir_cmd() should not return any value,
5209 because it is not analyzed for errors.
5211 * main.c: NT code: use O_BINARY instead of _O_BINARY
5213 * util.c: DO not test for arguments that do not make sense under
5216 * file.c: utime.h always included for Windows NT port.
5218 * view.c: Events are flushed only if the ports supports it.
5220 Mon Mar 16 12:30:39 1998 Stas Maximov <stmax@u213.srcc.msu.su>
5222 * hotlist.c: Defaults on the hotlist add-current and new-entry is
5223 the current directory.
5225 Sat Mar 14 17:30:21 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5227 * file.c (panel_operate): Why was the flags in query_dialog set to
5228 D_INSERT is a big mistery. Should be fixed now.
5230 Fri Mar 13 18:10:58 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5232 * dlg.c (dlg_stop): New routine used to finish dialog boxes.
5234 * cmd.c (set_panel_filter_to): Implementation split. To be used
5237 * widget.c (input_new): GNOME-entry widget is inspired in the
5238 WInput + the history patches from Paul. Use the GNOME-entry
5239 history, as this makes it easier to deal with the filter button on
5242 * setup.c (save_panel_types): Do not use if running on the gnome
5243 edition. This need a lot of fixing for making this work with
5244 gnome and session management.
5246 * main.c (do_nc): DO not call setup_panels_and_run_mc as
5247 create_panels in gnome edition does all this.
5249 (setup_mc): Skip part of the setup.
5251 (do_execute): Do not Execute any of the pause code after
5254 Wed Mar 12 17:46:09 1998 Norbert Warmuth <k3190@fh-sw.de>
5256 * screen.c (chdir_other_panel, chdir_to_readlink): Use passed
5257 panel instead of cpanel (removed mixed use of panel and cpanel).
5259 * main.c, screen.c: Deleted F13 from the default keymap, added F13
5260 and F14 to the panel's keymap (the keymap for panels in listing
5261 mode). These two keys are only useful for panels in listing mode.
5262 It seems there are even more candidates for such a move. Especially
5263 select_cmd and unselect_cmd which appeared recently for the GNOME
5264 edition in screen.c act unexpected for panels in tree-mode.
5266 * cmd.c (view_simple_cmd): Added WPanel* to the parameter list.
5268 (edit_cmd_new): No need to get a panel because it is not used.
5270 * panelize.c: Changed hotkey of the Panelize button (Alt-p is
5271 already used by the input line history). I wonder if I should
5272 change it in the find dialog, too (just to have a unique hotkey
5273 for the panelize button).
5275 Wed Mar 11 19:02:48 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5277 * view.c: Lots of changes: Split the X11 code from the main view
5278 program. This is needed to cleanly support the addition of the
5279 Gnome version of the file viewer;
5281 New names for old functions (just a view_ prefix):
5282 view_add_character, view_add_string, view_gotoyx, view_set_color,
5283 view_display_clean. Now all of them take a WView argument (which
5284 is ignored in the macro for the text edition). This is to support
5285 multiple open views at once.
5287 * boxes.c (symlink_dialog): Enable ok/cancel buttons for the Gnome edition.
5289 * cmd.c (link_cmd, symlink_cmd): Provide the filename to operate
5292 Tue Mar 10 20:41:45 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5294 * cmd.c (unselect_cmd_panel, select_cmd_panel): To avoid races on
5295 the X11 version, these routines now take a panel argument at
5298 * widget.c (radio_callback): Call x_radio_focus for FOCUS/UNFOCUS
5300 (button_callback): Fallback to default_msg on WIDGET_FOCUS
5303 1998-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
5305 * xslint.c (getch): Added missing "return".
5307 * utilunix.c (init_groups): Added parentheses around
5308 assignment/truth value.
5310 * boxes.c: #include <stdlib.h>
5312 * screen.c (string_inode): Cast fe->buf.st_ino to long to be
5313 consistent with sprintf format.
5315 * main.c (handle_args): Added parentheses around assignment/truth value.
5317 Sat Mar 7 14:33:38 1998 Pavel Roskin <pavel_roskin@geocities.com>
5319 * src/complete.c: obsolete hack for OS/2 and NT removed.
5320 Completion works for NT now (not very good)
5322 * src/main.c: HOME variable is respected by NT and OS/2
5323 versions. If it is missing, we use LIBDIR on OS2_NT and "/"
5326 * src/key.h: SHIFT_PRESSED is set to 0x0010 on NT. This value
5327 doesn't conflict with definitions for ALT and CTRL, but it is
5330 * vfs/vfs.h: Minor changes for OS/2. EMX defines mkdir with
5333 * vfs/tcputil,c, vfs/utilvfs.c: signal.h was includes twice.
5335 * vfs/Makefile.in: undelfs.h is not used and should disapper
5337 * slang/slos2tty.c: new file, copied from SLang-0.99.38,
5338 needed for OS/2 port
5340 * slang/Makefile.in: added slos2tty.c
5342 * vfs/extfs/README: annoying spell errors corrected
5344 * src/main.c: --termcap disabled for OS2_NT because it doesn't
5345 (and cannot) work. ARCH_FLAGS is not needed anymore.
5347 * src/text.c: most includes removed. Added a warning is someone
5348 compiles this file with HAVE_X. Improved color scheme for
5349 consoles with 16 background colors (e.g. OS/2). Hack for OS/2
5352 * src/util.c, src/util.h: STRCOMP and MC_ARCH_FLAGS are moved
5353 to util.h. It may be useful to use them for filenames' completion
5356 Fri Mar 6 19:29:54 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5358 * find.c: Simplify header files: use the fs.h include file.
5360 (use x_flush_events).
5362 * screen.c (string_file_name): In GNOME, the CList widget does the
5363 filename truncation, so we do not do it here.
5365 (panel_new): Initialize all of the wpanel contents to zero. This
5366 will is required by the GNOME X ports (to figure out if a field
5367 has been inited or not).
5369 Thu Mar 5 10:28:40 1998 Norbert Warmuth <k3190@fh-sw.de>
5371 * popt.c (poptParseArgvString): make it compile with the native
5372 compiler on AIX 4.1.3
5374 1998-03-04 Federico Mena Quintero <federico@nuclecu.unam.mx>
5376 * cmd.c: Added #include "x.h"
5378 Wed Mar 4 14:49:55 1998 Norbert Warmuth <k3190@fh-sw.de>
5380 * doc/mc.1.in, mc.hlp: updated (these files haven't been updated
5381 at the last change to mc.sgml)
5383 * doc/mc.sgml: spelling error corrected
5385 * Makefile.in: renamed all references of mc.1 to mc.1.in
5387 * find.c (locate_egrep): Don't use an absolute path if egrep isn't
5388 found at the usual places. Then execvp will search the directories
5389 passed in the environment PATH variable (a little bit slower but
5390 better than a defunct find content).
5392 * tree.c: removed the include file I mistakenly added with my
5395 Tue Mar 3 20:00:36 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5397 * file.c (get_file): Take a panel argument. I am pretty sure that
5398 this is broken for the case where we are copying from a WTree.
5400 (panel_operate): take a panel argument instead of defaulting to
5403 Mon Mar 2 15:54:55 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5405 * dlg.c (create_dlg): Set running to 0 on creation;
5406 (add_widgetl): do widget initialization if the dialog is already
5407 running when this dialog box is created.
5409 Mon Mar 2 12:11:37 1998 Norbert Warmuth <k3190@fh-sw.de>
5411 * vfs/ftpfs.c (changetype): Removed the hack which always forced
5412 sending the command "TYPE I" when changing to binary transfer mode
5413 was requested even when MC thought the connection was already in
5414 binary mode (bucket->isbinary == 1). The correct fix is now in
5417 * vfs/ftpfs.c (login_server): Set the transfer mode stored in
5418 the bucket to UNKNOWN (the bucket might be reused and the old
5419 transfer mode isn't valid any longer).
5421 * screen.c (panel_key): Cleanup: deleted if-clause with -1 (EV_NONE)
5422 which isn't delivered to widgets by the dialog manager; always
5423 return 1 when key was handled; removed the function keys from the
5424 panel's keymap (the function keys are always handled by the
5425 buttonbar); don't eat characters below ' ' (C-l and Shift-F3 now
5426 work even when quick search was started); characters between 32 and
5427 255 start quick search if there is no commandline (no C-s necessary
5430 * tree.c (tree_key): likewise
5432 Tue Feb 24 18:37:36 1998 Stas Maximov <stmax@u213.srcc.msu.su>
5434 * subshell.c: Set subshell_pid to 1 on startup
5436 Fri Feb 13 19:59:39 1998 Alexander Savelyev <fano@VCom.kiev.ua>
5438 * screen.c: KEY_DC is also handled by delete_cmd.
5440 * vfs/ftpfs.c (chdir): sending the CWD command is not necessary
5443 (ftpfs_connection_close): Do not use WAIT_REPLY, closes
5446 (open_data_connection): implement the reget command.
5448 * boxes.c: bigger VFS dialog box.
5450 * file.c (init_replace): Add support for copying files only if the
5451 size differs, and support for regetting ftp files.
5453 Wed Feb 11 20:08:50 1998 Norbert Warmuth <k3190@fh-sw.de>
5455 * user.c (execute_menu_command): Extented the syntax of %-macros
5456 used in the user menu in order to switch quoting on (default) and
5457 off, e.g. %0f means don't quote the expanded macro, %f and %1f mean
5458 quote the expanded macro.
5461 Fri Jan 30 16:43:47 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5463 * dlg.c (create_dlg): Now we pass the flags parameter to the
5464 create_dialog routine.
5466 * tkmain.c (xtoolkit_create_dialog): Check for the grided value
5468 Fri Jan 23 07:28:54 1998 Peter Daum <gator@cs.tu-berlin.de>
5470 * extfs.c (open_extfs_archive): Pass the filename to the list
5473 * extfs/mailfs: New file system for browsing mail files (support
5474 for compressed mail fiels as well).
5476 Fri Jan 23 07:19:18 1998 Pavel Roskin <pavel_roskin@geocities.com>
5478 * edit/edit.h: mc_mkdir requires 2 arguments for any operation
5479 system. Obsolete #ifdef's removed.
5481 * edit/editwidget.c: ansi standard violation removed
5483 * nt/Makefile.NT: default SLang directory is now ../slang. Most
5484 of SLang sources are no more compiled for MC.
5486 * nt/drive.h: new file. Copied from os2/drive.h with minor changes
5488 * nt/ket.nt.c: new way for handling conflicting SHIFT_PRESSED
5489 definitions. get_event can work without blocking. Copy, move
5490 and delete operations work normally.
5492 * nt/slint.nt.c: SLang_getkey2 and Slang_input_pending2 are
5493 copied from src/slint.c
5495 * nt/sys/param.h: annoying warnings temporaly suppressed.
5497 * slang/slvideo.c, slang/slw32tty.c: new files. They contain
5498 changes by Alexander Dong.
5500 * src/myslang.h: definitions for acsii symbols removed, since
5501 they are available in slang.h. Double lines are not used anymore.
5503 * src/panelize.c: sys/wait.h is included only if HAVE_SYS_WAIT_H
5506 * nt/Makefile.NT: text.c is added
5508 * nt/Makefile.VC4: "-debug" switch for linker is not used for
5511 * src/screen.c (show_dir): double lines are no more used by NT and
5514 * src/wtools.c (real_input_dialog_help): layout of input dialog for
5515 XView port is corrected
5517 * edit/edit.h: mc_mkdir requires 2 arguments for any operation
5518 system. Obsolete #ifdef's removed.
5520 * edit/editwidget.c: ansi standard violation removed
5522 Wed Jan 21 14:01:29 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5524 * ext.c (regex_command): reverted the patch that changed tests for
5525 *p == ' ' || *p == '\t' to isspace(). isspace() is true for tabs,
5526 newlines, carriage-returns and vertical tabs as well. Which is
5529 Wed Jan 21 11:58:39 1998 Sung-Hyun Nam <namsh@lgic.co.kr>
5531 * ftpfs.c (retrieve_dir): Avoid compiler warning by testing
5532 explicitly the value.
5534 screen.c (format_file): color not initialized when we met
5537 Wed Jan 21 11:28:21 1998 Alex Tkachenko <alex@bcs.zp.ua>
5539 * cmd.c, utilunix.c: cosmetic changes to reduce compiler warnings
5541 * utilunix.c (my_system): small fix for SCO zombies moved here;
5542 now it returns WEXITSTATUS(status) instead of status itself. While
5543 missing it may not hurt on i.e., linux, on SCO it gives incorrect
5546 * vfs/extfs.c system() calls replaced with my_system() call; this
5547 allows a greater degree of control - fixes SCO system() return value
5548 processing. Notice: plain replacement system() with WEXITSTATUS(system)
5549 does not produce correct behavior (don't ask me why).
5551 * panelize.c (do_external_panelize): similar fixes for pclose()
5552 return value on SCO.
5554 view.c (load_view_file): inverted value of viewer_magic_flag to
5555 put viewer decompression state in accordance with F8 label text.
5556 Also default_nroff_flag is initialized to be 1; thus enabling all
5557 filter processing by default easies mc usage for novice users.
5559 Sun Jan 18 13:47:37 1998 Sung-Hyun Nam <namsh@lgic.co.kr>
5562 * panel.h, tkscreen.h : error when compile dlg.c
5563 * tkconf.h : paint_frame
5564 * screen.c : to include paint_frame
5565 * tkmain.c : I just copied clr_scr() from the text.c
5567 Fri Jan 16 16:19:59 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5569 * screen.c (format_file): Do not invoke the file_compute_color
5570 routine for empty lines.
5572 * gmain.c: Color scheme for Gnome
5574 * gscreen.c: Color setup now allocated the GdkColor *.
5576 * color.c: Moved the default color setting to a per-port
5577 location (text.c for the text mode edition); new color
5578 configuration: core; Fixed the case where the color spec was
5579 buggy and we kept on a infinite loop;
5581 Fri Jan 16 13:47:13 1998 Pavel Roskin <pavel_roskin@geocities.com>
5583 * nt/drive.nt.c, nt/chmod.nt.c: Updated button_new and check_new
5586 Fri Jan 16 12:47:39 1998 Norbert Warmuth <k3190@fh-sw.de>
5588 * vfs/ftpfs.c (command): Don't log passwords when the dialog between
5589 server and client is logged to a file (mc -l logfile).
5591 * vfs/ftpfs.c (resolve_symlink, retrieve_dir): When a directory
5592 contains spaces send two commands ("CWD path" and "LIST .") instead of
5593 one command ("LIST path") in order to get directory listings.