1 2002-09-23 Pavel Roskin <proski@gnu.org>
3 * global.h: Move fcntl.h inclusion here. Define O_BINARY.
4 * mountlist.c: Remove more includes already handled in global.h.
6 2002-09-22 Pavel Roskin <proski@gnu.org>
8 * man2hlp.c (handle_alt_font): Implement .BR, .IR, .RB, .RI, .BI
10 (handle_command): Call handle_alt_font().
12 * man2hlp.c: Take text width from help.h, not from the command
14 * help.h: Declare HELP_TEXT_WIDTH.
15 * help.c: Use HELP_TEXT_WIDTH.
17 * help.h: Replace CHAR_BOLD_ON, CHAR_BOLD_OFF and CHAR_ITALIC_ON
18 with CHAR_FONT_BOLD, CHAR_FONT_NORMAL and CHAR_FONT_ITALIC
19 respectively for better consistency.
21 * util.c (is_printable): Disable "Full 8 bits output" on xterm,
22 fall back to "ISO 8859-1" due to problems with gnome-terminal,
23 which identifies itself as xterm.
24 Reported by Miven Dooligan <dooligan@intergate.ca>
26 * mouse.h: Put return codes from the mouse callback to an enum.
27 Remove MOU_ENDLOOP and MOU_LOCK - they are interpreted like
28 MOU_NORMAL. Adjust all dependencies.
29 * dlg.c: Use MOU_NORMAL instead of 0 for mouse_status.
31 2002-09-21 Pavel Roskin <proski@gnu.org>
33 * main.c (process_args): Print only data directory and nothing
34 else for the "-f" argument.
35 (argument_table): Rename --libdir to --datadir, adjust its
38 * Makefile.am: Rename LIBDIR to DATADIR, since it refers to
39 pkgdatadir now. Install cons.saver to pkglibdir, pass it to the
41 * cons.handler.c (handle_console): Use LIBDIR.
42 * main.c (OS_Setup): Use DATADIR instead of LIBDIR. Rename
43 MC_LIBDIR to MC_DATADIR.
45 * panelize,c: Remove unused variable panelize_title.
47 * view.c (view_event): Add mouse wheel support.
49 2002-09-20 Pavel Roskin <proski@gnu.org>
51 * mouse.h: Define events for the mouse wheel.
52 * key.c (xmouse_get_event): Recognize mouse wheel events.
54 * command.c: (command_insert): New function - insert quoted
55 text into the command line.
56 * main.c: Use command_insert() instead of stuff(). This ensures
57 that the names in the command line are quoted.
58 Reported by Arpad Biro <biro_arpad@yahoo.com>
60 * command.c: Make `command' a standard WInput widget, just
61 change its callback. Eliminate input_w(). Adjust all
63 * widget.c (input_callback): Remove static attribute.
65 2002-09-19 Pavel Roskin <proski@gnu.org>
67 * main.c (argument_table): Improve help for "+number" - it has
68 to be re-translated anyway.
70 * main.c (argument_table): Add missing descriptions.
72 * main.c [NATIVE_WIN32]: Remove -S option, it's useless.
74 * main.c (print_mc_usage): Use poptPrintHelp() instead of
75 manually formatted help text. Adjust callers to pass popt
78 * poptint.h: Use i18n.h instead of most own replacement macros.
80 2002-09-18 Pavel Roskin <proski@gnu.org>
82 * cmd.c (other_symlink_cmd): Remove, this function is
83 undocumented and poorly implemented.
84 * main.c: Remove call to other_symlink_cmd() on C-x C-l.
86 2002-09-16 Pavel Roskin <proski@gnu.org>
88 * wtools.c (real_input_dialog_help): Trim spaces from the label
89 text. Align label with the input field.
91 * cmd.c (do_link): Avoid using g_strconcat() on translatable
93 (other_symlink_cmd): Likewise.
95 2002-09-13 Pavel Roskin <proski@gnu.org>
97 * main.c: Remove advanced_chfns variable. Adjust all
100 * option.c: Make "Configure options" dialog more flexible,
101 readjust layout. Remove "advanced chown" option - it's unused.
103 2002-09-13 Andrew V. Samoilov <sav@bcs.zp.ua>
105 * main.c (process_args) [WITH_SMBFS]: Call smbfs_set_debugf()
108 2002-09-13 Pavel Roskin <proski@gnu.org>
110 * main.c: Fully remove obsolete "-m" option.
112 2002-09-11 Andrew V. Samoilov <sav@bcs.zp.ua>
114 * main.c [WITH_SMBFS]: Include ../vfs/smbfs.h.
115 (argument_table) [WITH_SMBFS]: Add -D, --debuglevel option for
117 (process_args) [WITH_SMBFS]: Handle new -D option.
118 (print_mc_usage) [WITH_SMBFS]: Describe -D, --debuglevel option.
120 2002-09-11 Pavel Roskin <proski@gnu.org>
122 * subshell.c: Move tcsh_fifo to the file scope. Use mc_tmpdir()
123 to calculate tcsh_fifo.
125 * utilunix.c (mc_tmpdir): New function that returns temporary
127 * util.c (mc_mkstemps): Use mc_tmpdir().
128 * main.c (main): Call mc_tmpdir().
130 2002-09-10 Pavel Roskin <proski@gnu.org>
132 * util.c (trim): Handle short strings even better - don't use
133 dots unless necessary.
135 * main.c (load_prompt): Don't shorten the prompt if COLS is 8 or
138 * screen.c (show_dir): Don't call trim() with negative length.
139 * util.c (trim): Better handle short length. Make sure that the
140 destination is always 0-terminated.
142 2002-09-09 Andrew V. Samoilov <sav@bcs.zp.ua>
144 * screen.c (string_file_name): Fix possible off-by-one
146 (string_file_size): Avoid unsafe strcpy().
147 (string_file_size_brief): Likewise. Eliminate buffer array.
149 2002-09-08 Pavel Roskin <proski@gnu.org>
151 * color.c: Move hascolors variable into init_colors(). Adjust
154 * myslang.h: Remove definition of initscr(), it's unused.
156 * tty.h [!HAVE_SLANG]: Remove all slang_* definitions.
157 * main.c (main) [!HAVE_SLANG]: Don't call slang_shutdown().
158 * myslang.h: Remove slang_done_screen(), it's unused.
160 2002-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
162 * key.c (get_event): Check gpm_fd only if gpm is actually used.
163 * layout.c (done_screen): Move disable_mouse() call ...
164 * main.c (done_mc): ... here.
166 2002-09-08 Pavel Roskin <proski@gnu.org>
168 * view.c (init_growing_view): Avoid reporting the same error
169 twice. Reported by Moritz Barsnick <moritz@barsnick.net>
171 2002-09-07 Pavel Roskin <proski@gnu.org>
173 * textconf.c: Don't use SLANG_TERMINFO, which is unused anywhere
174 else. Assume that terminfo is used if USE_TERMCAP is undefined.
176 2002-09-06 Pavel Roskin <proski@gnu.org>
178 * subshell.c (subshell_name_quote): Return NULL if we are out of
179 memory. Use "echo -e" with zsh (Debian bug #150996).
180 (do_subshell_chdir): Be prepared to get NULL from
181 subshell_name_quote().
183 * profile.c: Remove unused code. Eliminate global variables.
184 (is_loaded): Rename to find_loaded(). return matching profile.
185 Adjust all dependencies.
187 * fs.h: Only redefine S_IS* macros if they are undefined, and
188 then define them to 0. S_IF* constants should be avoided.
189 * util.c: Whenever possible, use standard POSIX macros to test
191 Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
193 2002-09-05 Pavel Roskin <proski@gnu.org>
195 * cmd.c (nice_cd): Fix conditions when this function is
198 * fs.h: Replace S_IFFIFO with S_IFIFO, which is the right name.
200 * fs.h: Correct S_IS* definitions to use S_IFMT. Add fallback
201 definitions for S_IFDOOR and S_ISDOOR.
202 * screen.c (string_file_type): Remove unnesessary ifdefs, fs.h
204 (file_compute_color): Add support for Solaris doors.
205 * util.c (string_perm): Remove unnesessary ifdef.
207 * man2hlp.c (handle_command): Make clear that unsupported
208 command is a warning, not an error. Avoid unsafe strcat().
210 * view.c (view_mode_callback): Eliminate, use the default
213 * main.c (load_hint): Don't hardcode copyright years. Use a
216 * main.c (midnight_callback): Avoid calling the default DLG_DRAW
217 handler. From David Martin <dmartina@excite.com>
219 * help.c (help_handle_key): Sanity check for broken help files.
220 From David Martin <dmartina@excite.com>
222 2002-09-03 Pavel Roskin <proski@gnu.org>
224 * global.h: Eliminate xgetch, update all dependencies.
226 * boxes.c: Fix remaining old-style calls to create_dlg().
227 * complete.c: Likewise.
231 * wtools.c: Remove Chooser, its unused.
233 * dlg.c: Fix the case when the dialog has no title.
235 * wtools.c (real_input_dialog_help): Use a more reliable way
236 to indicate password input.
238 * boxes.c (display_widgets) [!HAVE_CHARSET]: Fix initialization.
239 (vfs_smb_get_authinfo): Reuse another translated string.
241 * wtools.h (QuickDialog): Eliminate the "class" field - it's not
242 used and it can clash with C++ code. Adjust all dependencies.
244 * dlg.c (x_set_dialog_title): Completely eliminate. Adjust all
247 * help.c (interactive_display): Fallback to node "[main]" if the
248 requested node cannot be found.
250 * help.c (help_index_cmd): Eliminate unneeded search for
251 "[Help]", which always fails. Fix crash if "[Contents]" cannot
252 be found. Reuse more generic error message.
254 * filegui.c: Eliminate x_set_dialog_title().
255 * hotlist.c: Likewise.
257 (interactive_display): Default to node "[main]" if the given
260 2002-09-02 Pavel Roskin <proski@gnu.org>
262 * dlg.c (create_dlg): Take title instead of unused name as the
264 (x_set_dialog_title): Free old title. Mark this function
266 * achown.c: Use new create_dlg().
267 (do_enter_key): Provide titles for popups.
269 * dlg.c: Remove unused code, make functions static if possible.
271 * chmod.c: Use common_dialog_repaint().
273 * layout.c: Likewise.
274 * option.c: Likewise.
276 * wtools.c (common_dialog_callback): Fold into ...
277 * dlg.c (default_dlg_callback): ... this. Don't redraw dialogs
278 that don't have colors. Adjust all dependencies.
279 (std_callback): Elimitate.
281 * panelize.c (panelize_refresh): Eliminate in favor of
282 common_dialog_callback().
284 * widget.c (history_callback): Eliminate in favor of
285 common_dialog_callback().
286 (show_hist): Set dialog title and flag DLG_COMPACT.
288 * help.c (help_callback): Use common_dialog_callback().
289 (interactive_display): Set dialog title.
291 * wtools.c (listbox_callback): Eliminate in favor of
292 common_dialog_callback().
294 * wtools.c (dialog_repaint): Eliminate, nobody should be using
295 non-standard colors. Adjust all dependencies.
296 (common_dialog_repaint): Fix return code.
297 (query_callback): Eliminate, use common_dialog_callback()
300 * listmode.c (listmode_refresh): Use common_dialog_repaint().
301 Eliminate all global variables. Reformat the whole file.
303 * boxes.c (init_disp_bits_box): Use common_dialog_callback().
304 Return the new dialog.
306 * boxes.c (display_callback): Use common_dialog_repaint().
307 (display_init): Avoid using two different translations.
309 2002-09-01 Pavel Roskin <proski@gnu.org>
311 * help.c (interactive_display): Don't reuse the old value of
312 help_lines - LINES could have changed. Scale height better for
313 terminals with many lines - use 2/3 of the full screen.
315 * man2hlp.c: Move handling of .SH and NODE to a separate
316 function handle_node(). Don't output empty nodes except in the
319 2002-09-01 Andrew V. Samoilov <sav@bcs.zp.ua>
321 * man2hlp.c (print_error): Print input filename.
322 (handle_command): Handle .P, .LP, .IP and .br.
323 Ignore comments and .TH (Title header).
324 Report about unsupported commands.
327 * ext.c (regex_command): Use "%s" as text argument.
328 * user.c (debug_out): Likewise.
330 * win.c (key_name_conv_tab): Fix initialization.
332 2002-08-31 Pavel Roskin <proski@gnu.org>
334 * help.c (show): Fix segfault on unterminated help files.
335 From David Martin <dmartina@excite.com>
337 * key.c (get_event): Reduce scope of select_set. Don't check
338 mouse_enabled all the time, instead break out of the loop if it
341 * main.c (do_nc): Make midnight_colors[] local to do_nc().
342 Initialize normal color - it's used by the tree.
343 * boxes.c (tree_box): Use standard dialog_colors.
344 * tree.c: Use NORMALC for normal entries.
346 * view.c (view): Avoid passing an uninitialized color array to
347 create_dlg() - pass NULL instead.
349 2002-08-30 Pavel Roskin <proski@gnu.org>
351 * color.c: Define global array alarm_colors for the colors used
352 in the dialogs that should be most visible (error messages,
353 request to delete or overwrite).
354 (load_dialog_colors): Initialize alarm_colors.
355 * filegui.c: Use alarm_colors.
356 * wtools.c: Likewise.
357 * dlg.c (create_dlg): Make the color_set array constant.
359 * wtools.c (common_dialog_repaint): Use colors specific to the
360 current dialog, not fixed colors for "normal" dialogs.
361 * filegui.c (replace_callback): Eliminate, use
362 common_dialog_callback() instead.
364 * filegui.c (file_op_context_create_ui): Use
365 common_dialog_callback(). Set title to the operation name.
366 (op_win_callback): Remove, it's unused.
368 2002-08-27 Pavel Roskin <proski@gnu.org>
370 * view.c: Make static whatever possible.
371 * view.h: Remove internal view routines.
373 2002-08-27 Andrew V. Samoilov <sav@bcs.zp.ua>
375 * selcodepage.c (select_charset): Use snprintf instead of sprintf.
376 (do_select_codepage) [!HAVE_ICONV]: Remove.
378 2002-08-27 Pavel Roskin <proski@gnu.org>
380 * charsets.c: Add disclaimer of warranty.
381 * filenot.c: Likewise.
382 * fileopctx.c: Likewise.
384 * selcodepage.c: Likewise.
386 * textconf.c: Likewise.
388 * man2hlp.c (main): Factor error checks in fopen() and fclose(),
389 eliminate reuse of variables for different purposes, add more
390 comments. Correctly process "\&" escape.
391 The last part is from David Martin <dmartina@excite.com>
393 2002-08-26 Pavel Roskin <proski@gnu.org>
395 * main.c (init_xterm_support): Force xterm-style screen saving
396 and no mouse on "cygwin" terminal.
398 2002-08-25 Pavel Roskin <proski@gnu.org>
400 * man2hlp.c: Change default from the English string for TOPICS,
403 * man2hlp.c (handle_command): Remove quotes from TOPIC.
405 * key.c (get_event): Check gpm_fd before using it in FD_SET. If
406 gpm_fd is -1 (gpm has died), disable mouse support.
408 * key.c: Use the maximal file descriptor, not FD_SETSIZE in all
410 * subshell.c: Likewise.
411 From Pavel Tsekov <ptsekov@gmx.net>
413 2002-08-24 Pavel Roskin <proski@gnu.org>
415 * user.c (expand_format): Remove support for error file in the
417 * utilunix.c (close_error_pipe): Fix the condition when nothing
418 needs to be dislayed.
420 * dlg.c (x_set_dialog_title): Force uniform spacing.
421 From Andrew Borodin <borodin@zarya-k.ru>
423 * utilunix.c (check_error_pipe): Check error_pipe[0], not
424 stdout. From Pavel Tsekov <ptsekov@gmx.net>
426 * achown.c (chown_refresh): Use common_dialog_repaint().
428 * dlg.h (struct Dlg_head): Separate user flags and internal
429 flags. Make "direction" a user flag. Adjust all dependencies.
430 * dlg.c (run_dlg): Return ret_value.
432 2002-08-23 Pavel Roskin <proski@gnu.org>
434 * text.c (default_edition_colors): Use more rxvt-friendly color
437 * Makefile.am: Remove definition of CONFDIR, it's not used.
439 2002-08-22 Pavel Roskin <proski@gnu.org>
441 * layout.c (print_vfs_message): Set normal color, don't use
442 random current attributes.
444 * dlg.h (struct Dlg_head): Eliminate "data" field, it duplicated
445 functionality of "title".
446 * wtools.c (query_callback): Use dialog_repaint().
447 (quick_callback): Use common_dialog_repaint().
449 * learn.c (learn_callback): Use common_dialog_repaint().
450 * achown.c (chl_callback): Likewise.
452 * dialog.h: Cleanup unused functions.
453 * dialog.c: Cleanup unused headers.
455 * dlg.h (struct Dlg_head): Fold fields "raw" and "has_menubar"
456 into one field "flags". Adjust all dependencies. Add new flag
458 * wtools.c (dialog_repaint): Draw frame without spaces if
459 DLG_COMPACT flag is set.
460 * complete.c (complete_engine): Set DLG_COMPACT.
461 (query_callback): Use common_dialog_repaint().
463 * keys.h: Remove, include ...
464 * myslang.h: ... here.
465 * Makefile.am: Remove keys.h.
467 * dlg.h: Remove unused fields in struct Dlg_head.
468 * dlg.c: Adjust for the above.
470 2002-08-21 Pavel Roskin <proski@gnu.org>
472 * dlg.h: Remove unused fields in struct Widget.
473 * dlg.c: Adjust for the above.
474 * layout.c: Likewise.
476 * cmd.c (info_cmd_no_menu): Toggle info screen.
477 (quick_cmd_no_menu): Toggle quick view.
479 * help.c (interactive_display): Always show button bar.
481 * widget.c (buttonbar_callback): Fix a bug that prevented the
482 last byte from being redrawn.
483 Reported by David Martin <dmartina@excite.com>
485 * layout.c (setup_panels): Make the button bar 0 lines high if
486 it's invisible, so that mouse click on the history button works
487 with invisible button bar.
489 * widget.c: Make more functions static.
491 * ext.c: (regex_check_type): Further split. Restore caching
492 broken in the previous commit.
494 * ext.c (regex_command): Separate checking for "type/" into ...
495 (regex_check_type): ... this.
497 * global.h: Move include for rx.h and eregex.h here.
499 * learn.c (learn_button): Don't allow Tab to be learned.
501 2002-08-20 David Martin <dmartina@excite.com>
503 * menu.c (create_menu): Get help node as an argument.
504 * main.c: Use new create_menu() interface.
506 2002-08-20 Pavel Roskin <proski@gnu.org>
508 * man2hlp.c: Don't redirect stdout. Check result of ftell.
509 Drop support for invocation with 2 arguments.
511 2002-08-19 Pavel Roskin <proski@gnu.org>
513 * cons.handler.c (handle_console): Use _exit(), not exit() in
516 * main.c (handle_args): Set POPT_CONTEXT_NO_EXEC flag for
518 * popt.c: Call abort() in execCommand() - we should not execute
521 * util.h: Remove unused and dangerous flags for my_system():
522 EXECUTE_TEMPFILE, EXECUTE_SETUID and EXECUTE_WAIT.
523 * utilunix.c: Corresponding adjustments.
524 * ext.c: Don't use EXECUTE_TEMPFILE, it has no effect.
526 * subshell.c (synchronize): Workaround for Cygwin (should not be
527 needed for the next version) - remove SIGCHLD blocking from
530 * dlg.h: Remove all unused flags for create_dlg(). Adjust all
533 * cmd.c (fishlink_cmd): Implement user interface for FiSH.
534 * main.c: Add it to the menu.
536 * help.c (help_follow_link): Made static.
538 2002-08-18 Pavel Roskin <proski@gnu.org>
540 * subshell.c (synchronize): Discard all remaining data from
541 stdin to the subshell.
543 * subshell.c (exit_subshell) [AIX_TCSH_CODE_BELOW_IS_IT_FIXED]:
544 Remove. Nobody has fixed this code for years.
546 * main.h [USE_INTERNAL_EDIT]: Don't include declarations from
548 * setup.c [USE_INTERNAL_EDIT]: Include edit.h.
550 * boxes.h: Remove user_format.
551 * boxes.c: Make more variables static, remove all extern
553 * setup.c: Remove some extern declarations.
555 * mountlist.h: Move some internals ...
556 * mountlist.c: ... here.
558 * main.c: Remove extremely unsafe and poorly designed support
559 for /tmp/mc.$PID.control file.
560 * util.c (my_putenv): Remove, it's unused now.
562 * panel.h (struct format_e): Make string_fn return const char *.
563 Adjust all dependencies.
564 * screen.c (string_file_mtime): Return empty string for "..".
565 (string_file_atime): Likewise.
566 (string_file_ctime): Likewise.
568 * view.c (display): Use enum for boldflag values. Fix cursor
569 highlighting for the ASCII part of the hex editor.
571 * layout.c (init_curses) [!HAVE_SLANG]: Add support for
572 stickchars - fill acs_map[] with ASCII approximations.
573 * main.c [!HAVE_SLANG]: Enable --stickchars (-a) for ncurses.
575 2002-08-16 Pavel Roskin <proski@gnu.org>
577 * setup.c: New variable global_profile_name to hold full name of
579 (load_setup): Calculate global_profile_name.
580 (done_setup): Free global_profile_name.
581 (load_key_defs): Use global_profile_name.
582 * treestore.c (should_skip_directory): Likewise.
584 * man2hlp.c: Implement persistent fread and fwrite to make sure
585 that all output is read and written.
587 2002-08-16 Andrew V. Samoilov <sav@bcs.zp.ua>
589 * help.c (show): Cast *paint_start to unsigned char to display
590 Cyrillic with ncurses.
591 [HAS_ACS_AS_PCCHARS] (acs2pc_table): Make const.
593 * user.c (expand_format): Cast the argument to functions
594 for character classification to unsigned int.
595 (execute_menu_command): Likewise.
597 2002-08-15 Pavel Roskin <proski@gnu.org>
599 * treestore.c (tree_store_remove_entry): Don't use ts.check_name
602 * treestore.c: Remove unused code, reformat.
603 * treestore.h: Remove unused declarations.
605 * fs.h (compute_namelen): New inline function to take care of
606 the d_namlen field if and only if it's needed.
608 * screen.c (string_file_name): Replace non-printable characters
611 * subshell.c (read_subshell_prompt): Remove argument "how", it's
612 never set to VISIBLY. Adjust all dependencies. Eliminate hack
613 with "clear_now" - it causes invalid memory access and hides the
615 * util.c (strip_ctrl_codes): Fix possible invalid memory access
616 if the escape sequence ends unexpectedly.
618 2002-08-14 Pavel Roskin <proski@gnu.org>
620 * dir.c (do_load_dir): Fix leaking of file descriptors - always
621 call mc_closedir() before return.
623 * main.c (do_execute) [!HAVE_SUBSHELL_SUPPORT]: Compile fix.
625 * view.c (display): Use only declared color pairs to fix hex
626 editor appearance with ncurses. Eliminate some useless defines.
628 2002-08-10 Pavel Roskin <proski@gnu.org>
630 * key.c (delete_select_channel): Avoid using freed memory.
632 2002-08-09 Pavel Roskin <proski@gnu.org>
634 * ext.c (exec_extension): Eliminate unused argument.
635 (regex_command): Remove support for user actions. Return int.
636 Adjust all dependencies.
638 * ext.c (exec_extension): Make static. Remove support for Drop,
639 Title and Icon actions. Adjust all dependencies.
641 * main.c (sigchld_handler_no_subshell) [linux]: SIGTSTP is
642 always defined on Linux.
643 * subshell.c (sigchld_handler): No need to use SIGTSTP
644 explicitly when we really care about SIGCONT.
646 * ncurses.patch: Remove, it's obsolete.
647 * Makefile.am: Remove ncurses.patch.
649 2002-08-04 Pavel Roskin <proski@gnu.org>
651 * subshell.c: Assume that SIGTSTP and SIGCONT are always
652 defined. This is now checked in configure. Otherwise
653 synchronize() would hang until subshell exits.
655 2002-08-01 Pavel Roskin <proski@gnu.org>
657 * charsets.c: Unconditionally enable finalization code that was
658 only used with HAVE_MAD.
664 * subshell.c (exit_subshell): Free subshell_prompt.
668 * Makefile.am (SRCS): Remove mad.c and mad.h.
669 * cmd.c: Remove references to MAD.
671 * dlg.c: Use inline, not INLINE.
672 * hotlist.c: Likewise.
674 * global.h: Don't include mad.h.
676 2002-07-31 Andrew V. Samoilov <kai@cmail.ru>
678 * man2hlp.c (main): Don't use freed structure member.
680 * ext.c (regex_command): Don't check same condition twice.
681 (exec_extension): Comment out useless loop.
682 * key.h (key_code_name_t): Typedef const.
684 2002-07-30 Pavel Roskin <proski@gnu.org>
686 * man2hlp.c (main): Use only stream I/O. Fix checks for error
687 conditions. Reformat the whole file.
689 * man2hlp.c: Avoid the need to use gindex.pl.
690 From Andrew V. Samoilov <sav@bcs.zp.ua>
691 * Makefile.am: Use man2hlp directly.
692 (EXTRA_DIST): Remove gindex.pl.
695 * ext.c (regex_command): Additional check to prevent reading
696 unallocated memory when matching "shell/". Found by Valgrind.
698 2002-07-29 Pavel Roskin <proski@gnu.org>
700 * setup.c: Eliminate all PORT* macros.
701 * screen.c: Likewise.
703 * subshell.c (feed_subshell): Reading 0 bytes in a channel with
704 FD_ISSET being set is a sign of something being wrong - exit
705 immediately. Observed when mc is run under su in xterm and
706 xterm is closed while the subshell is running.
707 Reported by Vlad Harchev <hvv@hippo.ru>
709 * color.h: Replace PORT_COLOR macro with BEST_COLOR, which uses
712 * util.c: Remove unused functions.
713 * utilunix.c: Likewise.
714 * util.h: Update to match.
716 * cons.saver.c: Use SEEK_SET instead of 0 in lseek().
719 * main.c (do_execute): Add newline after "Press any key to
722 * cons.saver.c: Eliminate some global variables. Further
723 cleanup. Make sure that console_fd is always closed.
725 2002-07-28 Pavel Roskin <proski@gnu.org>
727 * cons.saver.c: Remove support for Linux kernels before 2.0.
729 (send_contents): Remove incorrect optimization - restore even
730 empty lines because they may be touched by the viewer.
731 From Denis Vlasenko <vda_unique@iname.com>
733 2002-07-26 Pavel Roskin <proski@gnu.org>
735 * utilunix.c (canonicalize_pathname): Don't extend empty path
736 to "." - it can corrupt memory.
738 * cmd.c (copymove_cmd_with_default): Remove, it's unused.
739 (copy_cmd_local): New function, copy within panel.
740 (ren_cmd_local): New function, rename within panel.
741 * cmd.h: Adjust to match.
742 * screen.c (panel_keymap): Associate F15 with copy_cmd_local and
743 F16 with ren_cmd_local.
745 * view.c (display): Don't highlight characters as bold if the
746 character before the backspace was different.
747 From Roland Illig <roland.illig@gmx.de>
749 2002-07-25 Andrew V. Samoilov <kai@cmail.ru>
751 * wtools.c (message): Fix possible buffer overflow.
753 * slint.c [HAVE_MAD] (dealloc_color_pairs): Move ...
754 * color.c [HAVE_MAD]: ... here and make accessible from
755 other files to fix compilation.
756 * color.h [HAVE_MAD]: Declare dealloc_color_pairs.
758 2002-07-20 Pavel Roskin <proski@gnu.org>
760 * screen.c (panel_callback): Revert last change, it has bad side
761 effects on the subshell.
763 2002-07-19 Pavel Roskin <proski@gnu.org>
765 * dlg.c: Eliminate all useless x_* functions.
768 * textconf.h: Likewise.
771 * widget.c: Likewise.
772 * main.c: Remove panel_update_marks(). Move try_to_select() ...
773 * screen.c: ... here. Eliminate x_* functions.
774 * main.h: Remove panel_update_marks().
776 * screen.c (panel_callback): Only change directory on
777 WIDGET_FOCUS if current_panel changes.
779 * main.c (handle_args): Don't call mc_get_current_wd().
781 * main.c (directory_history_list): Report error if cannot change
784 2002-07-16 Pavel Roskin <proski@gnu.org>
786 * main.c (do_execute): Don't ask to press any key when the shell
787 is running a command - the user has already pressed Ctrl-O.
789 2002-07-15 Pavel Roskin <proski@gnu.org>
791 * slint.c: Eliminate hardcoded color terminals. Most users no
792 longer need this hack, and those who do have color_terminals
793 option in the config file.
795 2002-07-14 Pavel Roskin <proski@gnu.org>
797 * color.c [USE_NCURSES]: Eliminate division by COLOR, it's 0 in
798 black and white mode.
800 * slint.c: Move functions for allocating color pairs ...
801 * color.c: ... here. Implement ncurses equivalents. Rename
802 init_pair() to mc_init_pair() and keep tack of max_index with
803 ncurses. Adjust all dependencies.
805 * mem.h: Clean up obsolete definitions, incorporate into ...
806 * global.h: ... this.
807 * Makefile.am: Remove mem.h.
809 2002-07-13 Pavel Roskin <proski@gnu.org>
811 * Makefile.am (AM_CPPFLAGS): Remove REGEX_MALLOC, it's now in
814 * tty.h: Use standard autoconf defines to determine which
815 ncurses header to include. Eliminate RENAMED_NCURSES.
817 2002-07-10 Pavel Roskin <proski@gnu.org>
819 * utilunix.c: Cast argument for GUINT_TO_POINTER to int to fix
822 * subshell.c: ioctl() doesn't set errno - don't use perror() to
823 report failures. Use fprintf() instead, ignore errors from
825 (resize_tty): New function - code common for resize_subshell()
826 and init_subshell_child().
828 * global.h: Include vfs.h.
829 * boxes.c (configure_vfs): Ask whether .netrc should be used.
830 From Thomas Zajic <zlatko@gmx.at>
832 2002-07-03 Pavel Roskin <proski@gnu.org>
834 * file.c (do_transform_source): Cast the argument to functions
835 for character classification to unsigned int.
836 * main.c (handle_args): Likewise.
837 * util.c (size_trunc_sep): Likewise.
838 (skip_numbers): Likewise.
840 * subshell.c (sigchld_handler): Remove subshell_pty from the
841 channel list if the subshell has died.
843 2002-07-03 Andrew V. Samoilov <kai@cmail.ru>
845 * mad.[ch] [__GNUC__] (mad_strconcat): Use macro varargs.
846 (mad_strdup_printf): Likewise.
847 (mad_strdup_vprintf): Likewise.
848 * main.c [HAVE_MAD] (main): Release this_dir and other_dir.
850 2002-07-03 Pavel Roskin <proski@gnu.org>
852 * main.c (stop_dialogs): New function to stop all dialogs.
853 (quit_cmd_internal): Use stop_dialogs() instead of stopping
854 midnight_dlg only. This fixes exit from the shell invoked from
855 the internal viewer or editor.
857 * cmd.c (view_other_cmd): Shut down extra select channels before
858 switching to the shell. Restore them afterwards, but not if
859 quit was requested. Skip more code on quit.
861 2002-07-02 Pavel Roskin <proski@gnu.org>
863 * util.c: Eliminate get_small_endian_long() and CHECK macro.
865 * util.h: Rename compression types, add a type for uncompressed
867 * util.c (is_gunzipable): Rename to ...
868 (get_compression_type): this. Don't check archive length, since
869 it's unreliable if there is padding at the end of the file.
870 Eliminate prehistoric Linux workaround. All callers adjusted.
872 2002-07-01 Andrew V. Samoilov <kai@cmail.ru>
874 * utilunix.c (close_error_pipe): Use "%s" in message () to
875 prevent possible crash.
876 (check_error_pipe): Likewise.
878 2002-06-27 Pavel Roskin <proski@gnu.org>
880 * screen.c (do_enter_on_file_entry): Process associations before
881 trying to execute the file.
883 2002-06-20 Pavel Roskin <proski@gnu.org>
885 * dir.c (handle_dirent): Don't process ".." entries.
886 (handle_path): Likewise.
887 From Andrew V. Samoilov <kai@cmail.ru>
889 2002-06-13 Oskar Liljeblad <oskar@osk.mine.nu>
891 * slint.c (has_colors): Don't reset SLtt_Use_Ansi_Colors to 0 if
892 force_colors is not set. This fixes color on unknown terminals.
894 2002-06-13 Andrew V. Samoilov <kai@cmail.ru>
896 * user.c (expand_format): Fix '%b' proccessing.
897 Handle '%k' as documented.
899 2002-05-30 Andrew V. Samoilov <kai@cmail.ru>
901 * view.c (regexp_search): Don't call save_edit_changes
902 if there are no changes.
903 (save_edit_changes): Use messages from ../po/mc.pot.
905 * mad.c (mad_tempnam): Commented out to make linker happy.
906 * main.c [HAVE_MAD && !_OS_NT] (main): G_free mc_home.
908 2002-05-27 Andrew V. Samoilov <kai@cmail.ru>
910 * view.c (save_edit_changes): Handle errors.
911 (do_view_init): Don't open and check file type
912 if _command is not null or _file is empty string.
914 2002-05-22 Pavel Roskin <proski@gnu.org>
916 * Makefile.am: doc/mc.1 is in top_builddir, not in top_srcdir.
918 2002-05-15 Andrew V. Samoilov <kai@cmail.ru>
920 * view.c (do_view_init): Close fd if it is unused.
922 2002-05-14 Andrew V. Samoilov <kai@cmail.ru>
924 * Makefile.am (VFSLIB): Add ../vfs/samba/libsamba.a
925 if USE_SAMBA_FS is true.
927 2002-05-07 Pavel Roskin <proski@gnu.org>
929 * hotlist.c (hotlist_button_callback): Don't process B_REMOVE
930 for VFS list - it would crash.
931 From Andrey Panov <pav@metib.ru>
933 2002-04-19 Andrew V. Samoilov <kai@cmail.ru>
935 * main.c [!WITH_MCFS] (PanelMenu): Eliminate mcfs related entry.
936 (RightMenu): Likewise.
937 * textconf.c (features): Likewise.
938 * cmd.c (netlink_cmd) [!WITH_MCFS]: Eliminate.
940 2002-04-03 Pavel Roskin <proski@gnu.org>
942 * Makefile: mc.hlp should be in MAINTAINERCLEANFILES, not in
943 CLEANFILES, because "make clean" should not make the source
944 directory useless on systems without Perl.
946 2002-03-26 Andrew V. Samoilov <kai@cmail.ru>
948 * eregex.h [!USE_INCLUDED_REGEX]: Include <regex.h>.
949 * regex.c: Compile only if USE_INCLUDED_REGEX is defined.
951 2002-03-25 Andrew V. Samoilov <kai@cmail.ru>
953 * complete.c (insert_text): Fix buffer overflow.
955 * cmd.[ch] [USE_INTERNAL_EDIT] (edit_syntax_cmd:) New dialog
956 to edit Syntax Highlighting definitions file.
957 * main.c (CmdMenu) [USE_INTERNAL_EDIT]: Add 'Syntax file edit'
959 (process_args): Print mc's library directory to stdout.
961 2002-03-21 Andrew V. Samoilov <kai@cmail.ru>
963 * man2hlp.c (handle_command): Handle backslash quoting
965 (handle_link): Strip .B and .I
966 * gindex.pl: Use fifth argument as man2hlp location.
968 2002-03-20 Andrew V. Samoilov <kai@cmail.ru>
970 * man2hlp.c (handle_command): Handle '.\"TOPICS' comment.
971 Use it for translated 'Topics:' message.
972 * gindex.pl: Use first line of man2hlp output as
973 translated 'Topics:' message if fourth argument
975 * Makefile.am (mc.hlp.ru): Use empty string as gindex.pl's
978 * textconf.c (version): Write to stdout.
979 * main.c (print_mc_usage): Add "stream" parameter to specify
981 (process_args): Use print_mc_usage() with stdout as stream.
982 (handle_args): Use print_mc_usage() with stderr as stream.
983 (print_color_usage): Write to stdout.
985 2002-03-18 Pavel Roskin <proski@gnu.org>
987 * eregex.h: Update from glibc-2.2.5.
989 * find.c: Use eregex.h, not regex.h.
992 From Alexander Varakin <avarakin00@hotmail.com>
994 * find.c (find_parameters): Invert condition when find is case
997 2002-03-04 Andrew V. Samoilov <kai@cmail.ru>
999 * Makefile.am (mc.hlp.ru): Use mc.1 instead of mc.1.in.
1002 * file.c (copy_file_file): Chmod destination only if
1003 ctx->preserve is on. Eliminate gotos.
1005 2002-03-01 Andrew V. Samoilov <kai@cmail.ru>
1007 * Makefile.am (mc.hlp.ru): New rule to compile translated
1009 (mclib_DATA): Add mc.hlp.ru.
1010 (EXTRA_DIST): Likewise.
1012 * gindex.pl: Add optional 4th argument for translated
1013 Content section name.
1015 2002-02-28 Andrew V. Samoilov <kai@cmail.ru>
1017 * mad.c: Make mem_areas dynamically growing.
1018 (mad_init): Allocate memory for mem_areas.
1019 (mad_alloc): Grow mem_areas if it is exhausted.
1021 * filegui.c (file_mask_dialog): Enable 'follow Links'
1022 and 'preserve Attributes' features in Move dialog.
1023 (file_bps_show): Translate messages.
1024 (file_eta_show): Likewise.
1026 * man2hlp.c (main): Don't crash if called without argument(s).
1027 Make buffer char pointer.
1028 (handle_command): Handle '.\"NODE' comment. Use it for
1029 nodename in translated manual pages.
1031 * gindex.pl: Use [nodename] as user visible section name
1032 only if next line is empty. Elsewhere use this nonempty line.
1034 * find.c (find_parameters): Compile content_pattern here.
1035 Inform user about malformed regular expression.
1036 (search_content): Use compiled regular expression.
1037 (do_find): Eliminate `done'. Call regfree for compiled
1040 2002-02-24 Pavel Roskin <proski@gnu.org>
1042 * chown.c (chown_cmd): Use size_trunc_len() to show the file
1043 size. Eliminate c_fsize, which wasn't properly initialized.
1045 2002-02-22 Pavel Roskin <proski@gnu.org>
1047 * man2hlp.c (string_len): Don't exclude characters with codes
1048 above 128 from the string length.
1050 2002-02-21 Andrew V. Samoilov <kai@cmail.ru>
1052 * ext.c (exec_extension): Use "#! /bin/sh".
1054 2002-02-20 Pavel Roskin <proski@gnu.org>
1056 * background.c (background_attention): Cast pointer to long
1057 instead of int because it's unsafe of 64-bit systems.
1058 * main.c (init_xterm_support): Likewise.
1060 2002-02-18 Pavel Roskin <proski@gnu.org>
1062 * utilunix.c (canonicalize_pathname) [__QNX__]: Fix detection
1063 of Qnet names. Disable support of Qnet names under QNX Netrino.
1064 Reported by Maurizio Rossi <MRossi@system-group.it>
1066 * global.h: Include unix.h under "classical" QNX.
1067 * subshell.c: Don't include unix.h.
1068 * utilunix.c: Likewise.
1070 2002-02-07 Andrew V. Samoilov <kai@cmail.ru>
1072 * main.c (update_one_panel_widget): Call ftpfs_flushdir().
1074 2002-02-05 Pavel Roskin <proski@gnu.org>
1076 * key.c [USE_NCURSES] (get_key_code): Ignore KEY_RESIZE.
1077 * layout.c [USE_NCURSES] (flag_winch): Don't call
1078 low_level_change_screen_size() from signal handler.
1079 From Thomas Dickey <dickey@herndon4.his.com>
1081 * screen.c (format_file): Add a new parameter (size of the
1082 output buffer) to prevent buffer overflow on very wide
1084 From Thomas Dickey <dickey@herndon4.his.com>
1086 2002-02-04 Andrew V. Samoilov <kai@cmail.ru>
1088 * util.c [!HAVE_TRUNCATE] (truncate): Close fd if my_ftruncate
1091 * util.c [HAVE_CHARSET] (is_printable): Eliminate printable.
1092 * setup.c [HAVE_CHARSET] (load_setup): Don't use
1093 init_printable_table.
1095 * charsets.h: Don't declare init_printable_table ().
1096 * charset.c (printable): Removed.
1097 (init_printable_table): Removed.
1099 2002-01-30 Andrew V. Samoilov <kai@cmail.ru>
1101 * file.c (recursive_erase): Use mc_closedir() if mc_lstat()
1102 fails. Eliminate goto.
1103 (erase_dir): Eliminate goto.
1104 (erase_dir_iff_empty): Likewise.
1106 2002-01-29 Andrew V. Samoilov <kai@cmail.ru>
1108 * dir.c (handle_dirent): Use MSG_ERROR.
1109 * charsets.c (translate_character): Use ICONV_CONST.
1111 2002-01-22 Pavel Roskin <proski@gnu.org>
1113 * screen.c: Don't try to paint anything if width is 0 or less.
1114 Reported by Pawel Sakowski <pawel@sakowski.eu.org>
1116 * screen.c: Make functions static whenever possible. Remove
1118 * panel.h: Remove corresponding declarations.
1120 2002-01-21 Pavel Roskin <proski@gnu.org>
1122 * util.c: Move replacements for permission bits ...
1123 * fs.h: ... here. Add more replacements.
1124 * global.h: Include direct.h only with MSVC.
1126 * main.c: Include "drive.h", not <drive.h>, do it after panel.h.
1127 Use _OS_NT as the condition for including drive.h.
1128 * screen.c: Use _OS_NT as the condition for including drive.h.
1130 * global.h [_OS_NT]: Include io.h, direct.h and windows.h.
1131 Don't redefine struct timeval.
1133 * fs.h [_MSC_VER]: Use dirent provided by glib.
1135 * global.h [!HAVE_SYS_TIME_H]: Provide a replacement for struct
1138 * findme.c: Respect HAVE_UNISTD_H.
1141 * global.h: Fallback to sys/utime.h if utime.h is missing.
1143 * global.h: Provide fallbacks for getuid(), getgid(), geteuid()
1145 * fs.h: Fully trust HAVE_DIRENT_H.
1146 * complete.c: Don't include dirent.h directly, fs.h takes care
1149 * filegui.c: Likewise.
1151 * treestore.c: Likewise.
1153 * global.h [!__GNUC__]: Define __attribute__ with one argument.
1155 2002-01-20 Pavel Roskin <proski@gnu.org>
1157 * screen.c (string_file_size): Translate "UP--DIR".
1158 (string_file_size_brief): Translate "SUB-DIR" and "SYMLINK".
1160 * dir.c (add_dotdot_to_list): Don't use costly stat() - just put
1161 realistic (i.e. bogus) data to the list.
1163 * screen.c (string_file_size): Don't display size of ".." - it
1164 may take too much time to calculate it on VFS. Show "UP--DIR"
1166 (string_file_size_brief): Remove ".." handling - it's now done
1167 in string_file_size(). Show "SUB-DIR" for links to directories,
1168 "SYMLINK" for other links.
1170 2002-01-17 Pavel Roskin <proski@gnu.org>
1172 * cmd.c: Remove OS/2 specific code.
1176 * main.h: Remove dead declarations.
1177 * setup.c: Remove defunct extension alignment support.
1181 * main.c: Remove unused toggle_* functions.
1183 * dir.c: Show backups by default.
1185 2002-01-15 Andrew V. Samoilov <kai@cmail.ru>
1187 * file.c (copy_dir_dir): Check the destination is a directory
1188 if it exists. Reported by Thomas <metaf4@pseudonym.org>.
1190 2002-01-09 Andrew V. Samoilov <kai@cmail.ru>
1192 * util.c (string_perm) [S_IFDOOR]: Support Solaris doors.
1193 * screen.c (string_file_type) [S_IFDOOR]: Likewise.
1195 2001-12-21 Pavel Roskin <proski@gnu.org>
1197 * hotlist.c (hotlist_callback): Recognize "delete" key.
1199 * myslang.h [!HAVE_SYSTEM_SLANG]: Include slang/slang-mc.h to
1201 [HAVE_SYSTEM_SLANG]: Use angle brackets for slang.h.
1203 * myslang.h [!HAVE_SYSTEM_SLANG]: Include slang-mc.h directly
1204 to avoid relying on symlinks.
1206 2001-12-18 Pavel Roskin <proski@gnu.org>
1208 * utilunix.c (init_groups): Don't return prematurely if the
1209 primary group cannot be found (it can happen on Cygwin).
1211 2001-12-10 Pavel Roskin <proski@gnu.org>
1213 * dir.c (do_reload_dir): Hash-table added.
1214 From Björn Eriksson <mdeans@algonet.se>
1216 2001-12-03 Pavel Roskin <proski@gnu.org>
1218 * dir.c (do_reload_dir): Optimize the logic - count the marks
1219 and only match new entries against old entries if at least one
1220 mark has not been transferred.
1221 From Björn Eriksson <mdeans@algonet.se>
1223 2001-11-29 Pavel Roskin <proski@gnu.org>
1225 * main.c (midnight_callback): Implement "auto menus".
1227 * layout.c: Make more variables static.
1229 * cons.saver.c: Define LINUX_CONS_SAVER_C so that some parts
1230 of cons.saver.h can be omitted.
1231 * cons.saver.h: Declare nothing but constants if
1232 LINUX_CONS_SAVER_C is defined.
1234 2001-11-14 Pavel Roskin <proski@gnu.org>
1236 Fully eliminate all references to HAVE_X and HAVE_GNOME.
1238 * dir.c (do_sort): Correctly handle the case when there is no
1239 ".." entry (i.e. panelized mode).
1241 2001-11-14 Andrew V. Samoilov <kai@cmail.ru>
1243 * view.c (do_view_init): Make sure _file is not
1244 an empty string before mc_stat and mc_open.
1247 2001-11-14 Pavel Roskin <proski@gnu.org>
1249 * panelize.c (do_external_panelize): Re-sort the panel according
1250 to the current settings.
1252 * find.c (do_find): Re-sort the panel according to the current
1253 settings when doing panelizing.
1255 * dir.c (sort_type_to_name): Remove, it's unused in the text
1257 (sort_name_to_type): Likewise.
1258 * dir.h: Adjust to match.
1260 * mouse.c: Add default cases to fix warnings with gcc-2.96.
1262 2001-11-12 Pavel Roskin <proski@gnu.org>
1264 * main.c: Remove support for subshell debugging. Firstly, it
1265 was broken. Secondly, every developer should be able to add
1266 this code when needed. Finally, there is no need to expose the
1267 option to the user and translate it into 30 languages.
1268 * subshell.h: Remove debug_subshell.
1269 * subshell.c: Likewise.
1271 2001-11-12 Andrew V. Samoilov <kai@cmail.ru>
1273 * mad.h: Enable glib support.
1275 * mad.[ch] (mad_get_current_dir): New function to use instead
1276 of g_get_current_dir.
1277 (mad_tempnam): Add file and line parameters.
1278 (mad_alloc0): Make file parameter const.
1279 (mad_realloc): Likewise.
1280 (mad_strdup): Likewise.
1281 (mad_strndup): Likewise.
1282 (mad_free): Likewise.
1283 (mad_finalize): Likewise.
1285 2001-11-07 Andrew V. Samoilov <kai@cmail.ru>
1287 * cmd.c (guess_message_value): Make val static const array.
1288 (smblink_cmd) [!WITH_SMBFS]: Eliminated.
1290 * dlg.c (add_widget): Check for what is not NULL
1291 before everything else.
1293 * slint.c (slang_reset_softkeys): Make display static const
1294 array. Use sizeof (display) - 1 instead of strlen display.
1295 (color_terminals): Make static const array.
1296 (key_table): Make const.
1298 (dealloc_color_pairs) [HAVE_MAD]: New function. Release
1299 memory allocated in try_alloc_color_pair.
1300 (slang_shutdown) [HAVE_MAD]: Call dealloc_color_pairs.
1301 (try_alloc_color_pair): Move struct c outside function.
1303 2001-10-29 Andrew V. Samoilov <kai@cmail.ru>
1305 * charsets.c (load_codepages_list): Use glib memory allocation
1307 (free_codepages_list) [HAVE_MAD]: New function to release
1308 memory allocated in load_codepages_list.
1309 * charsets.h: Declare free_codepages_list.
1311 * main.c [HAVE_CHARSET]: Include charsets.h.
1312 (main) [HAVE_MAD && HAVE_CHARSET]: Call free_codepages_list.
1313 (program_name): Commented out.
1315 2001-10-26 Andrew V. Samoilov <kai@cmail.ru>
1317 * key.c (push_char): Fix buffer length calculation.
1318 By David Kaelbling <drk@sgi.com>.
1319 http://bugzilla.gnome.org/show_bug.cgi?id=60932
1321 (define_sequence): Likewise.
1322 (key_define_t): Add const declaration.
1324 2001-10-22 Pavel Roskin <proski@gnu.org>
1326 * main.h: Declare view_one_file and edit_one_file.
1328 2001-10-22 Andrew V. Samoilov <kai@cmail.ru>
1330 * dialog.h: Include global.h.
1331 (message): Specify __attribute__.
1333 2001-10-20 Pavel Roskin <proski@gnu.org>
1335 * main.h (print_vfs_message): Specify __attribute__.
1337 2001-10-19 Pavel Roskin <proski@gnu.org>
1339 * global.h: Define __attribute__ to an empty string for non-gcc
1340 compilers so that it's safe to use.
1342 2001-10-18 Pavel Roskin <proski@gnu.org>
1344 * view.c (init_growing_view): Revert last change, it was wrong.
1345 (view_hook): Don't check that the file is regular - it's now
1346 done in do_view_init(). This fixes update problem in quick view
1347 when moving cursor from a regular file to a directory.
1349 * view.c (do_view_init): Only accept regular files. Use stat(),
1350 not fstat() because open() would hang on pipes. Avoid opening
1352 (init_growing_view): Take file descriptor, not the filename.
1353 (load_view_file): Likewise.
1355 2001-10-01 Pavel Roskin <proski@gnu.org>
1357 * boxes.c (tree): Rename to tree_box() to avoid confusion.
1358 Adjust all callers and headers.
1359 * main.c (tree_box): Rename to tree_box_cmd().
1361 * tree.c (set_navig_label): Get argument "tree".
1362 (set_navig_label): Likewise. Adjust all callers. Don't cast
1363 function tree() to (Widget *) - it's wrong and dangerous.
1365 * widget.h: Use type "buttonbarfn" more consistently.
1366 * widget.c: Likewise.
1368 * setup.c [!USE_VFS]: Warning fix.
1369 * hotlist.c [!USE_VFS]: Likewise.
1371 * tree.c (tree_navigation_flag): Should not be static.
1373 * screen.c (panel_format_modified): Use more portable cast.
1375 * fileopctx.h: Define new type mc_stat_fn.
1376 * filegui.c (file_mask_dialog): Cast mc_stat and mc_lstat to
1377 mc_stat_fn to prevent warnings without VFS support.
1378 * fileopctx.c (file_op_context_new): Likewise.
1380 2001-09-23 Andrew V. Samoilov <kai@cmail.ru>
1382 * find.c: Include rx.h or regex.h
1383 (get_line_at): New function. Returns malloc()ed null-terminated
1384 line from file file_fd. Input is buffered in buf_size long
1386 (search_content): Don't use external egrep.
1387 Use get_line_at and regexp.
1389 2001-09-21 Pavel Roskin <proski@gnu.org>
1391 * cmd.c: Change all "long" variables to "off_t" whenever they
1392 are used to store file sizes.
1395 * fileopctx.h: Likewise.
1397 * filegui.c: Likewise.
1398 (show_bar): Take "double" arguments. Normalize arguments of
1399 gauge_set_value() before converting them to "int".
1401 2001-09-17 Pavel Roskin <proski@gnu.org>
1403 * mouse.h: Major cleanup and interface change. init_mouse()
1404 should only be called once, disable_mouse() and enable_mouse()
1405 should be used later. Distinguish between disabled and
1406 undetected mouse. Remove debugging stuff. Adjust all users.
1407 * mouse.c: Implementation of the above.
1408 * key.c: Don't use gpm_flag - check mouse_enabled instead.
1410 2001-09-15 Pavel Roskin <proski@gnu.org>
1412 * view.c: Cleanup of preprocessor directives.
1414 * widget.c: Likewise.
1415 * widget.h: Likewise.
1417 * textconf.h: Get rid of all PORT_HAS_*. Adjust all users.
1418 Continued eliminating GNOME code.
1420 * cmd.c: Clean up unused GNOME code and some ifdef's.
1424 * setup.c: Likewise.
1426 * cmd.c (guess_message_value): Remove the argument. Adjust all
1429 * textconf.c (features): Remove "edition", minor fixes.
1430 (version): Don't report the current locale - it's meaningless,
1431 especially if ENABLE_NLS is not defined.
1433 * textconf.h: Remove status_using_ncurses - it's useless now.
1434 Adjust all users. Call do_exit_ca_mode() and do_enter_ca_mode()
1437 * main.c (init_xterm_support): Don't enable xterm_flag just
1438 because of "kmous" in terminfo. Setiing this flag means much
1439 more than just mouse support. Recognize terminals beginning
1440 with "rxvt" and set xterm_flag for them.
1442 * cmd.c (view_other_cmd): Don't check use_mouse_p before calling
1443 init_mouse() and shut_mouse(), since those functions decide
1444 themselves what to do.
1445 * layout.c (done_screen): Likewise.
1446 * main.c (setup_mc): Likewise.
1447 * text.c (edition_post_exec): Likewise.
1448 (edition_pre_exec): Likewise.
1450 * user.h: Fix location of the home editor menu.
1451 Reported by David Martin <dmartina@excite.es>
1453 * mouse.h: Export xmouse_seq.
1454 * mouse.c (init_mouse): Use xmouse_seq instead of hardcoded
1455 xterm mouse sequence.
1456 * main.c (setup_post): Join with setup_mc().
1457 (init_xterm_support): New function. Check mouse capability.
1458 (OS_Setup): Remove parts that are now in init_xterm_support().
1460 2001-09-14 Pavel Roskin <proski@gnu.org>
1462 * key.c (get_event): Recognize KEY_MOUSE, not just MCKEY_MOUSE.
1463 * mouse.c: Don't use or emulate keyok(), since MC understands
1466 2001-09-11 Pavel Roskin <proski@gnu.org>
1468 * cmd.c (check_for_default): Make accessible from other files.
1469 * cmd.h: Declare check_for_default().
1471 2001-09-10 Pavel Roskin <proski@gnu.org>
1473 * layout.c: Use HAVE_TERMIOS_H and HAVE_SYS_IOCTL_H more
1475 * mouse.c: Likewise.
1476 * subshell.c: Likewise.
1478 * util.c: Remove unused includes.
1480 * Makefile.am (mc_LDADD): Don't use LSLANG and LGPM, since they
1481 are now included into MCLIBS.
1483 * Makefile.am (mc_LDADD): Use INTLLIBS provided by gettext
1486 2001-09-09 Pavel Roskin <proski@gnu.org>
1488 * hotlist.c (load_hotlist): If cannot open hotlist, don't assume
1489 that it needs to be migrated and don't warn the user.
1491 2001-09-08 Pavel Roskin <proski@gnu.org>
1493 * Makefile.am: Fix definitions of CONFDIR and LOCALEDIR.
1495 * subshell.c: Move definitions of WEXITSTATUS and WIFEXITED
1496 below all includes so that they can be defined elsewhere.
1498 2001-09-07 Pavel Roskin <proski@gnu.org>
1500 * myslang.h: Specify arguments to function-like macros or remove
1501 them if they are unused.
1503 * main.c: Remove old debugging code. Remove external function
1505 (menu_bar_event): Remove, it's unused.
1506 * main.h: Declare get_mc_lib_dir() and force_ugly_line_drawing.
1507 * layout.c: Remove all external declarations.
1509 * main.c (main): Call save_stop_handler() - it was ifdef'd out
1512 * main.c: Remove all GNOME code.
1514 * cmd.c: No need to define "MIDNIGHT" before including vfs.h.
1516 * user.h: Remove all dirty tricks with "MIDNIGHT" - they are not
1519 * global.h: Include io.h, pwd.h, grp.h and utime.h. Adjust all
1520 sources not to include them and to include global.h at the right
1523 * global.h: Include all time-related system includes, since
1524 it's non-trivial (order, conflicts) and is better handled in one
1527 2001-09-06 Pavel Roskin <proski@gnu.org>
1529 * fsusage.c: Include sys/param.h before sys/mount.h - it's
1530 required on some systems.
1531 * mountlist.c: Likewise.
1532 From Timur Bakeyev <mc@bat.ru>
1534 2001-09-04 Pavel Roskin <proski@gnu.org>
1536 * Makefile.am: Don't use substituted values directly. Define
1537 CHARSET_SRC unconditionally. Join SRCS and HDRS.
1539 2001-09-03 Pavel Roskin <proski@gnu.org>
1541 * widget.c (label_new): Don't calculate dimensions of multiline
1542 labels, since they cannot be changed and msglen() is already
1543 used when the dialog is created.
1545 * Makefile.in: Converted to ...
1546 * Makefile.am: ... this.
1548 * slint.c: Make more data and function static.
1549 * key.h: Remove declarations that are now static.
1550 * myslang.h: Likewise.
1552 * x.h: Remove. Adjust all users. Make sure that global.h is
1553 included instead. Don't include sys/param.h unconditionally -
1554 rely on global.h taking care of it.
1555 * Makefile.in: Remove x.h.
1557 * color.c: Remove unused code.
1558 * color.h: Likewise.
1560 2001-09-02 Pavel Roskin <proski@gnu.org>
1562 * key.c: Remove support for BUGGY_CURSES.
1564 * tty.h: Remove support for old curses and GNOME.
1565 * global.h: Likewise.
1567 * widget.c (label_new): Set initial width of the widget based on
1570 * view.c (hex_search): Don't use sscanf() to search for quoted
1571 strings - use strchr instead.
1573 2001-08-31 23:14:21 Timur Bakeyev <mc@bat.ru>
1575 * utilunix.c: init_groups(), destroy_groups(), get_user_permissions()
1576 rewritten to use GTree structure and functions. Add new static helper
1577 functions mc_gid_compare() and mc_gid_destroy().
1579 * util.h: Removed deprecated structure user_in_groups.
1581 * screen.c: Fixed typo in format report error string.
1583 2001-08-31 23:14:21 Timur Bakeyev <mc@bat.ru>
1585 * utilunix.c: get_user_rights() renamed into get_user_permissions().
1586 delete_groups() renamed into destroy_groups().
1588 * screen.c: Likewise.
1591 2001-08-27 Pavel Roskin <proski@gnu.org>
1593 * cmd.c (dirsizes_cmd): Don't cast st_size to long - use off_t
1594 instead, since off_t can be longer.
1595 Reported by Radovan Bukoci <rado@autoparts.sk>
1597 2001-08-30 David Martin <dmartina@excite.es>
1599 * info.c (info_show_info): Use size_trunc_len() instead of
1600 print_bytesize(). Don't assume English word ordering. Add
1601 singular message when single block.
1602 * win.c (print_bytesize): Remove.
1603 (sprint_bytesize): Remove.
1604 * win.h: Remove print_bytesize() and sprint_bytesize().
1606 * util.c (size_trunc_len): Add units parameter. Change all
1609 * util.c (size_trunc_len): Print size values with some (little)
1610 sense for tiny and even wee lengths (i.e. squeezed X terminals).
1612 * info.c (info_show_info): Move comment line just before
1613 translatable message so it's shown in .po files to alert
1614 translators. The message (translated) is used to set the start
1615 column (so the available width) for some "truncatable" strings.
1617 2001-08-27 Pavel Roskin <proski@gnu.org>
1619 * key.c (learn_key): Turn off keypad to disable intepreting keys
1621 Reported by Frederic L. W. Meunier <fredlwm@pervalidus.net>
1623 2001-08-26 Pavel Roskin <proski@gnu.org>
1625 * xcurses.c: Remove.
1626 * Makefile.in: Remove all references to xcurses.c.
1628 2001-08-24 Pavel Roskin <proski@gnu.org>
1630 * user.h: Include "../edit/edit-widget.h", not
1631 "../gtkedit/edit-widget.h".
1633 * subshell.c: Use standard Autoconf symbols to determine whether
1634 to include <stropts.h> and <grp.h>.
1636 2001-08-23 Pavel Roskin <proski@gnu.org>
1638 * subshell.c (feed_subshell): Don't wait forever after the first
1639 select() call if fail_on_error is true. This alleviates hang
1640 with zsh on QNX Neutrino.
1642 2001-08-21 Pavel Roskin <proski@gnu.org>
1644 * view.h: Declare view_dlg.
1645 * main.h: Declare edit_dlg.
1646 * layout.c (change_screen_size): Remove external declarations
1647 inside the function.
1649 2001-08-20 Pavel Roskin <proski@gnu.org>
1651 * view.c (load_view_file) [!HAVE_MMAP]: Warning fix.
1653 2001-08-19 Pavel Roskin <proski@gnu.org>
1655 * main.c (mc_maybe_editor_or_viewer) [!USE_INTERNAL_EDIT]:
1656 Reenable to make "mc -v" possible.
1657 (do_nc): Call mc_maybe_editor_or_viewer() even if the editor
1659 (argument_table) [!USE_INTERNAL_EDIT]: Disable "-e".
1661 2001-08-19 Andrew V. Samoilov <sav@bcs.zp.ua>
1663 * view.c (view_handle_key) [HAVE_CHARSET]: Remove unneeded
1666 2001-08-19 Pavel Roskin <proski@gnu.org>
1668 * screen.c [HAVE_X]: Disable unused code.
1670 * fs.h: Correctly include <sys/param.h>.
1671 * x.h: Include "global.h". Move all contents ...
1674 * regex.c (regex_compile): Warning fix for ambiguous else.
1676 2001-08-18 Pavel Roskin <proski@gnu.org>
1678 * key.c (xmouse_get_event): Filter out GPM_UP events that don't
1679 follow a GPM_DOWN event. Filter out events with unknown button
1680 numbers, such as mouse wheel events.
1681 (get_event): Return EV_NONE if xmouse_get_event() decided to
1684 * main.c (init_sigchld): Disable subshell if SIGCHLD handler
1685 cannot be installed.
1687 * x.h: Instead of undefining MIX and MAX after <gnome.h> make
1688 sure that <sys/param.h> is included before <gnome.h>.
1690 2001-08-17 Pavel Roskin <proski@gnu.org>
1692 * key.c (mc_bindings) [linux]: Remove old hack - recognizing
1693 "\e[2~" on all terminals.
1695 2001-08-16 Pavel Roskin <proski@gnu.org>
1697 * charsets.c (load_codepages_list): Print a warning if
1698 mc.charset cannot be opened.
1699 * setup.c (load_setup) [HAVE_CHARSET]: Remove all popup messages
1700 because it's to early to use them - ncurses would crash.
1702 2001-08-15 Pavel Roskin <proski@gnu.org>
1704 * util.c (strip_ctrl_codes): Rewrite using pointers. Fix
1705 stripping sequences beginning with "\e[". Check is_printable().
1707 * man2hlp.c: Remove HTML support. Remove old link support.
1709 (print_string): Handle backslashes in verbatim mode too.
1711 * main.c (setup_pre) [HAVE_CHARSET]: Fix compilation with
1714 * textconf.c (features): Fix interpretation of
1716 From David Martin <dmartina@excite.es>
1718 2001-08-14 Pavel Roskin <proski@gnu.org>
1720 * key.h (define_sequence): Change declaration to return int.
1721 * key.c (define_sequence): Return 1 on success, 0 on error.
1722 * learn.c (learn_button): Don't accept sequence if
1723 define_sequence() has failed.
1725 2001-08-12 Pavel Roskin <proski@gnu.org>
1727 * learn.c (learn_save): Fix memory leak.
1729 * dir.c (string_sortcomp) [HAVE_STRCOLL]: Make static.
1731 * cmd.c (guess_message_value): Typo - replace "LC_MESSAGE" with
1734 * dir.c (string_sortcomp) [HAVE_STRCOLL]: Always use strcmp()
1735 for case sensitive sort. For case insensitive sort use
1736 strcoll() if it's case insensitive for ASCII and g_strcasecmp()
1739 2001-08-11 Pavel Roskin <proski@gnu.org>
1741 * achown.c (chown_advanced_cmd): Remove dead code.
1742 * chown.c (chown_cmd): Likewise.
1743 * chmod.c (chmod_cmd): Likewise.
1745 * charsets.c (load_codepages_list): Use concat_dir_and_file().
1747 * mad.h: Disable glib support - it doesn't work properly.
1749 2001-08-07 Pavel Roskin <proski@gnu.org>
1751 * view.c: Warning fixes. Include "cmd.h". Rename help_cmd()
1753 (view_handle_key) [HAVE_X]: Disable '!' and Ctrl-O.
1755 * main.c (do_execute): Don't show prompt if the command is empty
1756 and the subshell is not running.
1757 * view.c (view_handle_key): Add support for Ctrl-O in the viewer.
1758 Suggested by Walery Studennikov <despair@sama.ru>
1760 2001-08-06 Pavel Roskin <proski@gnu.org>
1762 * boxes.c (display_init): Associate correct help topic.
1763 (sort_box): Likewise.
1764 (set_panel_filter): Likewise.
1765 * option.c (init_configure): Likewise.
1766 * menu.c (menubar_handle_key): Show help dependent on the active
1769 2001-08-06 Andrew V. Samoilov <kai@cmail.ru>
1771 * mad.c (mad_strdup): Return NULL if NULL is passed.
1773 * view.c (block_search): Return the position where the block was
1774 found as declared in comment.
1775 (hex_search): Don't increase pos, block_search returns now right
1778 2001-08-03 Andrew V. Samoilov <kai@cmail.ru>
1780 * mad.[ch] (mad_check): Declare file parameter const.
1781 (mad_alloc): Likewise. Don't truncate it.
1782 (mad_abort): Declare message and file parameters const.
1784 2001-08-03 Pavel Roskin <proski@gnu.org>
1786 * file.c: Warning fix. Include global.h before other local
1788 * filegui.c: Likewise.
1789 (fmd_init_i18n) [!ENABLE_NLS]: Completely disable.
1790 * i18n.h [!ENABLE_NLS]: Warning fix.
1791 * learn.c (init_learn): Move do_refresh() call immediately
1792 before cleate_dlg(). Warning fix.
1794 2001-07-31 Pavel Roskin <proski@gnu.org>
1796 * Makefile.in: "install" now depends on "all".
1797 Reported by Walery Studennikov <despair@sama.ru>
1799 2001-07-31 Andrew V. Samoilov <kai@cmail.ru>
1801 * util.c [!HAVE_X] (is_printable): Don't duplicate declarations from
1803 (load_file): Use fopen and fstat to prevent race conditions.
1804 (size_trunc): Make suffix const array.
1805 (strip_password): Make prefixes const array.
1806 (file_date): Make fmt auto variable.
1807 * color.c (color_table): Make constant array.
1808 * widget.[ch] (label_new): Make text parameter const.
1809 * menu.c (create_menu): Don't localize name, it is always done.
1810 * find.c (find_parameters): Fix hotkeys duplication.
1811 * complete.c (command_completion_function): Don't stop $PATH
1812 processing on empty entry. Interpret it as current directory.
1814 2001-07-31 Pavel Roskin <proski@gnu.org>
1816 * charsets.c: Warning fixes.
1817 * charsets.h: Likewise.
1818 * selcodepage.c: Likewise.
1819 * selcodepage.h: Likewise.
1821 * Makefile.in: Move most logic around gindex.pl into gindex.pl.
1822 Don't use maintainer-only rules since mc.hlp won't be removed
1823 now if perl is missing or gindex.pl fails.
1824 * gindex.pl: Run man2hlp internally. Use files given as
1825 arguments instead of stdin and stdout.
1827 2001-07-30 Pavel Roskin <proski@gnu.org>
1829 * mad.c: Don't use g_calloc - it's missing in glib 1.2.x.
1830 * mad.h: Likewise. Use mad_alloc0() to emulate calloc().
1832 * view.h: Simplify, respect WANT_WIDGETS setting.
1834 2001-07-28 Pavel Roskin <proski@gnu.org>
1836 * view.c (view_ok_to_quit): Make global - it's needed for GMC.
1837 * view.h: Declare view_ok_to_quit().
1839 2001-07-27 Pavel Roskin <proski@gnu.org>
1841 * util.c [!USE_VFS] (get_current_wd): Resurrect, this time using
1842 g_get_current_dir().
1844 * background.h: Remove WITH_BACKGROUND, it's now in extraconf.h.
1845 * background.c: Use WITH_BACKGROUND instead of USE_NETCODE.
1847 * util.c (mc_mkstemps): Don't prepend $TMPDIR if prefix contains
1850 2001-07-26 Pavel Roskin <proski@gnu.org>
1852 * cmd.c (do_link): Append filename to the default symlink
1853 target. Don't add path separator if there is no listing on
1854 the other panel. Avoid using fixed size buffers.
1855 From Max Schedriviy <max@tavrida.net>
1857 * main.c [HAVE_X]: Disable eight_bit_clean and full_eight_bits.
1858 * util.c (is_printable) [HAVE_X]: Simplify.
1860 2001-07-25 Pavel Roskin <proski@gnu.org>
1862 * cmd.c (do_link): Simplify. Don't silently exit if the source
1863 file is not regular - let user see the error if any.
1865 2001-07-24 Pavel Roskin <proski@gnu.org>
1867 * achown.c (ch_perm): Make constant array.
1868 (chown_info_update): Use set_perm_by_flags(), not set_perm().
1871 * achown.c: Make all global variables static. Fix help.
1872 * complete.c: Likewise.
1873 * chmod.c: Make all global variables static.
1874 * chown.c: Likewise.
1875 * chmod.h: Remove all variables.
1877 2001-07-23 Pavel Roskin <proski@gnu.org>
1879 * user.c: Eliminate static variable s_editwidget. Pass
1880 edit_widget as argument. All callers changed.
1881 (expand_format): Fix expansion of %n and %b for the editor.
1882 * util.c: Remove dead code.
1884 * setup.c (load_keys_from_section): Give terminal-specific
1885 settings preference over settings from [terminal:general].
1887 2001-07-22 Pavel Roskin <proski@gnu.org>
1889 * setup.c (load_keys_from_section): Give ~/.mc/ini preference
1892 2001-07-20 Pavel Roskin <proski@gnu.org>
1894 * dlg.c: Remove dependency on definitions in gconf.h.
1896 * widget.c (input_callback) [HAVE_X]: Disable Ctrl-q - it
1899 * file.c (panel_get_file): Use g_assert_not_reached().
1900 * key.c (xgetch_second): Make static.
1902 2001-07-19 Pavel Roskin <proski@gnu.org>
1904 * user.c (check_format_view): Match "unform" instead of
1905 "unformated" because some users may spell this word correctly.
1907 2001-07-17 Pavel Roskin <proski@gnu.org>
1909 * util.c (get_current_wd): Remove. It's obsoleted by
1910 g_get_current_dir() from glib.
1912 * ext.c (exec_extension): Add the `rm' command to the end of
1913 temporary scripts so that they erase themselves.
1915 * util.c (mc_mkstemps): Always use "unsigned long" for enthropy,
1916 since gcc-2.7.2.1 on SunOS doesn't understand __extension__ and
1917 checking for "long long" is not worth the trouble.
1918 Reported by David Martin <dmartina@excite.es>
1920 2001-07-16 Pavel Roskin <proski@gnu.org>
1922 * utilunix.c (mc_doublepopen): Use _exit() instead of exit()
1923 and don't close any unrelated file descriptors. Explicitly
1926 2001-07-15 Pavel Roskin <proski@gnu.org>
1928 * mad.h: Include stdio.h to prevent redefining mad_tempnam().
1929 * main.c [HAVE_X && HAVE_MAD]: Don't call done_key().
1931 * dlg.h: Remove declarations of non-existent functions.
1932 [HAVE_X]: Disable color constants - they shouldn't be used.
1934 * boxes.c [WITH_SMBFS] (vfs_smb_get_authinfo): Copied from
1935 vfs/smbfs.c, function authinfo_get_authinfo_from_user().
1937 * cmd.c [HAVE_X]: Disable source routing dialog and panel
1939 * main.c (ctl_x_map): Simplify preprocessor directives.
1941 2001-07-14 Pavel Roskin <proski@gnu.org>
1943 * screen.c (panel_keymap) [HAVE_X]: Disable Alt-H - it's not
1944 implemented properly for GNOME.
1945 * main.c (directory_history_list) [HAVE_X]: Disable.
1947 * panelize.c [HAVE_X]: Disable unused code.
1949 * main.c [HAVE_X]: Disable Ctrl-X sequences.
1951 * find.c: Remove code unused in the text edition.
1953 * main.c [HAVE_X]: Eliminate setup_post() and partly done_mc().
1955 * utilunix.c (uid_cache): Make static.
1956 (gid_cache): Likewise.
1957 (init_uid_gid_cache): Remove.
1958 * main.c (setup_post): Don't call init_uid_gid_cache().
1960 * main.c (default_map) [HAVE_X]: Disable Alt-T.
1961 * cmd.c [HAVE_X]: Eliminate set_basic_panel_listing_to() and
1962 toggle_listing_cmd().
1964 2001-07-13 Pavel Roskin <proski@gnu.org>
1966 * utilunix.c (canonicalize_pathname): Don't handle PATH_SEP
1967 after backslash in a special way.
1969 2001-07-12 Pavel Roskin <proski@gnu.org>
1971 * subshell.c (init_subshell): Run "set echo_style=both" at
1972 startup to ensure that echo in tcsh understands octal numbers.
1973 Reported by Francis Kwok <francis.kwok@alcatel.com>
1975 * Makefile.in (OURLIBS): Merge with ...
1976 (LIBS): ... this. Add @LIBICONV@.
1977 Reported by Libor Motyèka <l_motycka@ortex.cz>
1979 * subshell.c (subshell_name_quote): New function. Quote all
1980 characters as octals, use command substitution.
1981 (do_subshell_chdir): Use subshell_name_quote(). Don't change
1982 terminal settings when the quoted path is sent to the shell -
1985 2001-07-12 Andrew V. Samoilov <kai@cmail.ru>
1987 * main.c: Eliminate iconify_on_exec.
1988 [!HAVE_GNOME]: Eliminate nowindows, nodesktop, twopanel,
1989 display_linksdir and cmdline_geometry.
1990 (sigchld_handler_no_subshell): Comment fixes.
1991 (midnight_callback): Likewise.
1992 (print_mc_usage): Use fputs, not fprintf.
1993 (print_color_usage): Likewise.
1994 (argument_table): Assign 'r' with force_subshell_execution and 'U'
1996 (process_args): Don't deal with 'r', 'U' and 'X' options.
1997 (setup_mc) [HAVE_GNOME]: Eliminate more code.
1999 setup.c (options): Eliminate iconify_on_exec.
2001 2001-07-10 Andrew V. Samoilov <kai@cmail.ru>
2003 * view.c (hex_search): Release buffer after use.
2005 2001-07-09 Pavel Roskin <proski@gnu.org>
2007 * view.c (hex_search): Reimplement parser using sscanf. Add
2008 support for decimal and octal numbers. Add error reporting.
2009 Allocate buffer dynamically.
2011 * hotlist.c: Add comments to avoid confusion between
2012 done_hotlist() and hotlist_done().
2013 (hotlist_done): Set l_hotlist to NULL.
2014 (add2hotlist): Load hotlist if it's neither loaded nor loading.
2015 This fixes Ctrl-x h. Fix compiler warning.
2017 * hotlist.c: Make more variables and functions static.
2019 2001-07-08 Pavel Roskin <proski@gnu.org>
2021 * ext.c (exec_extension) [HAVE_X]: Free file_name. Add comment
2022 explaining why it cannot be unlinked there.
2024 2001-07-06 Pavel Roskin <proski@gnu.org>
2026 * ext.c (exec_extension): Unlink temporary file earlier if it's
2027 not going to be used.
2030 * Makefile.in: Use additional quotes to preserve @prefix@ when
2031 Makefile is generated.
2033 * Makefile.in: Don't use SEDCMD2, use sed.
2035 * cons.saver.c: New variable console_minor. Eliminate variables
2037 (check_file): Set console_minor to the minor device number of
2038 the console. Disallow /dev/tty0.
2039 (detect_console): Don't parse tty_name, instead make sure that
2040 it corresponds to console_minor. Check console first. Fallback
2041 to /dev/vcc/a* if /dev/vcsa* cannot be opened.
2042 (save_console): Use console_minor.
2043 (restore_console): Likewise.
2045 * cons.saver.c (check_file): Eliminate using text messages to
2046 indicate errors. Improve debug messages.
2047 (detect_console): Likewise.
2048 (main): Adjust call to detect_console.
2050 * main.c (sigchld_handler_no_subshell): Don't restart cons.saver
2052 * subshell.c (sigchld_handler): Likewise.
2054 2001-07-05 Pavel Roskin <proski@gnu.org>
2056 * main.c (midnight_callback): Don't handle any events except
2057 Ctrl-x combinations on DLG_KEY event if the menu is active.
2059 * main.c (load_prompt): Don't change prompt if midnight_dlg is
2060 not the current dialog.
2062 2001-06-28 Pavel Roskin <proski@gnu.org>
2064 * util.c (size_trunc_len): New function - print file size to
2065 a buffer of limited length.
2066 * util.h: Declare size_trunc_len().
2067 * screen.c (string_file_size): Use size_trunc_len().
2069 2001-06-26 Pavel Roskin <proski@gnu.org>
2072 * Makefile.in (SRCS): Remove xslint.c.
2074 2001-06-25 Pavel Roskin <proski@gnu.org>
2076 * key.c (ctrl_pressed): Don't limit functionality to Linux.
2077 * screen.c (prev_page_key): Don't require console_flag to be set
2078 to use ctrl_pressed(), only require that HAVE_X is undefined.
2079 (next_page_key): Likewise.
2080 * widget.c (key_left): Don't limit functionality to Linux.
2081 (key_right): Likewise.
2083 * main.h: Use "ifdef HAVE_GNOME", not "if HAVE_GNOME". Fix the
2084 order of conditionals and put comments on endifs.
2086 2001-06-25 Andrew V. Samoilov <sav@bcs.zp.ua>
2088 * view.c [HAVE_CHARSET]: Include selcodepage.h.
2089 (view_new): Use g_new0.
2090 (ruler): Make static.
2092 * complete.c (filename_completion_function): Clean it up.
2093 (command_completion_function): Make words, bash_reserved and
2094 bash_builtins const, use concat_dir_and_file.
2095 (fetch_hosts): Fix typo, style fixes.
2097 2001-06-23 Pavel Roskin <proski@gnu.org>
2099 * mem.h: Undefine bcopy(), bcmp() and bzero() before redefining
2102 2001-06-22 Pavel Roskin <proski@gnu.org>
2104 * ext.c (exec_extension) [HAVE_X]: Disable console handling.
2106 * cons.handler.c: Reorganize includes. Fix warnings on BSD.
2107 * rxvt.c (rxvt_extensions): Make static.
2108 * main.c (sigchld_handler_no_subshell) [!__linux__]: Don't try
2109 to restart cons.saver.
2110 * subshell.c (sigchld_handler) [!__linux__]: Likewise.
2112 * fsusage.c: Use HAVE_INFOMOUNT.
2113 * mountlist.c: Likewise. Fix condition when mount_list is
2115 (fstype_to_string): Rename mount_list to mlist to avoid
2116 confusion with the file-scoped static variable.
2118 * cmd.c [HAVE_X]: Disable more code. Reorder includes.
2120 2001-06-20 Pavel Roskin <proski@gnu.org>
2122 * main.c: Remove MenuBarEmpty. From Andrew V. Samoilov.
2124 * wtools.c [HAVE_X]: Disable quick dialog routines.
2126 * setup.c (save_setup) [HAVE_X]: Don't save the [Dirs] section.
2127 (load_setup) [HAVE_X]: Don't load the [Dirs] section.
2128 * main.c [HAVE_X]: Disable other_dir and boot_current_is_left.
2131 2001-06-19 Pavel Roskin <proski@gnu.org>
2133 * background.h: Correct condition when WITH_BACKGROUND is
2135 * fsusage.c: Rearrange the includes. Define HAVE_QNX_MOUNT
2136 for old QNX and use it instead of __QNX__.
2137 * mountlist.c: Likewise.
2138 * keyxdef.c: Define HAVE_QNX_KEYS for old QNX and use it instead
2141 2001-06-18 Pavel Roskin <proski@gnu.org>
2143 * main.c [HAVE_X]: Disable change_panel(),
2144 copy_current_readlink() and copy_other_readlink().
2145 Don't do anything with cmdline and command_prompt.
2146 * screen.c [HAVE_X]: Disable panel_event(), chdir_other_panel()
2147 and chdir_to_readlink(). Adjust all callers.
2148 (panel_key) [HAVE_X]: Don't use command_prompt - always
2149 start search on alphanumeric keys.
2150 * setup.c [HAVE_X]: Disable save_layout(), load_layout(), struct
2151 layout. Adjust all dependencies.
2153 * utilunix.c (init_my_statfs): Move this ...
2154 * util.c (my_statfs): ... and this ...
2155 * mountlist.c: ... here.
2156 * util.h: Move mountlist-related declarations ...
2157 * mountlist.h: ... here.
2158 * info.c: Include mountlist.h.
2160 2001-06-17 David Martin <dmartina@excite.es>
2162 * hotlist.c (init_movelist): Don't assume English word ordering
2165 2001-06-16 Andrew V. Samoilov <sav@bcs.zp.ua>
2167 * wtools.c (message): Possible buffer overflow fixed.
2168 (query_callback) [HAVE_X]: Disable more code.
2169 (listbox_refresh) [!HAVE_X]: Became a macro.
2170 * hotlist.c (init_i18n_stuff): Mark cancel_but for translation.
2172 * tree.c (tree_copy, tree_move): Possible memory leaking fixed.
2173 (tree_keymap): Constified.
2175 2001-06-15 Pavel Roskin <proski@gnu.org>
2177 * panelize.c: Define DIR_H_INCLUDE_HANDLE_DIRENT earlier, since
2178 the GNOME edition includes dir.h from other headers.
2180 * background.c: Include "x.h".
2181 * panelize.c: Likewise.
2182 * treestore.c: Likewise.
2185 * command.c: Reorder includes. Include "x.h".
2186 * complete.c: Likewise.
2188 * user.h: Declare user_menu_cmd() unconditionally.
2189 * i18n.h [GAVE_GNOME]: Remove code that is now in x.h.
2191 * tty.h [HAVE_X]: Define beep() to gdk_beep().
2193 2001-06-14 Pavel Roskin <proski@gnu.org>
2195 * xtty.h: Remove, move contents ...
2197 [HAVE_X]: Define attrset(), mc_refresh(), enable_interrupt_key()
2198 and disable_interrupt_key(). Don't declare mc_refresh().
2199 * view.c: Use braces around widget_move() since it's empty in
2201 * xslint.c: Eliminate attrset() and mc_refresh().
2202 * Makefile.in: Remove xtty.h.
2204 * cons.handler.c (handle_console): Remove useless default.
2205 * ext.c (regex_command): Initialize include_target_len.
2206 * find.c [HAVE_GNOME]: Eliminate untyped declarations.
2207 * fsusage.c: Remove untyped declaration of statfs().
2208 [_AIX && _I386]: Rename statfs to aix_statfs and move
2209 it before get_fs_usage(). Define statfs to aix_statfs.
2211 * achown.c: Eliminate untyped declarations.
2212 * boxes.c: Likewise.
2213 * cons.saver.c: Likewise.
2214 * hotlist.c: Likewise.
2215 * panelize.c: Likewise.
2217 * main.c: Likewise. Make undeclared functions static.
2218 * treestore.c: Make undeclared functions static.
2220 * widget.c: Likewise.
2222 * main.h: Fix prototype of exec_shell.
2223 * tree.c: Make all functions static when possible.
2224 * tree.h: Changes for the above.
2226 * text.c [HAVE_X]: Remove useless #error.
2227 * cons.saver.c: Indent #error to hide it from old compilers.
2229 2001-06-13 Pavel Roskin <proski@gnu.org>
2231 * screen.c (display_mini_info): Avoid nested i18n calls.
2232 (parse_panel_size): Warning fix.
2233 * user.c [HAVE_X]: Warning fix.
2234 (check_format_var): Avoid nested i18n calls. Improve messages.
2236 * screen.c (user_file_menu_cmd) [HAVE_X]: Disable.
2237 (panel_callback) [HAVE_X]: Don't define labels, they are unused.
2238 * user.c [HAVE_X]: Disable all user menu code.
2240 * color.c (color_table): Make static. Only use in text edition.
2241 * xtty.h: Remove unused definitions.
2243 * slint.c (slang_init): Check screen dimensions and exit if they
2244 are abnormal. This may happen due to a S-Lang bug when the TERM
2245 is set to a value not listed in termcap or terminfo.
2247 2001-06-12 Pavel Roskin <proski@gnu.org>
2249 * boxes.c [HAVE_CHARSET]: Localize more strings. Lay out the
2250 encoding dialog using the translated title length. Remove
2251 useless preprocessor directives.
2252 From David Martin <dmartina@excite.es>
2254 2001-06-11 Andrew V. Samoilov <sav@bcs.zp.ua>
2256 * dlg.[ch] (x_set_dialog_title): title constified.
2257 (create_dlg): Use g_new0 instead of g_new.
2259 * selcodepage.c (do_select_codepage): Fix compilation.
2261 2001-06-09 Pavel Roskin <proski@gnu.org>
2263 * util.c (load_mc_home_file): New function. Load file from
2264 mc_home, but try localized version of that file first.
2265 * util.h: Declare load_mc_home_file().
2266 * help.c (interactive_display): Use load_mc_home_file(). If the
2267 first argument is NULL assume mc.hlp.
2268 * dlg.c (dialog_handle_key): Use interactive_display() without
2269 specifying the help file.
2270 * tree.c (tree_copy): Likewise.
2271 * cmd.c (help_cmd): Likewise.
2272 (get_random_hint): Use load_mc_home_file().
2273 From Andrew V. Samoilov.
2275 2001-06-07 Andrew V. Samoilov <sav@bcs.zp.ua>
2277 * charsets.h: Define CHARSETS_INDEX without leading LIBDIR.
2279 * charsets.c (translate_character): Warning fix.
2280 (init_translation_table): Don't deal with printable.
2281 This one is initialized by init_printable_table ().
2282 (load_codepages_list): Use CHARSETS_INDEX.
2284 * selcodepage.c (do_select_codepage): Messages marked for i18n.
2285 * setup.c (load_setup): Eliminate errbuf. Fix error message.
2287 2001-06-07 Pavel Roskin <proski@gnu.org>
2289 * setup.c (load_setup): Call init_printable_table() and
2290 init_translation_table() regardless of other failures.
2292 * charsets.c (get_codepage_index): Warning fix.
2293 (init_printable_table): New function.
2294 * charsets.h: Declare init_printable_table().
2295 * setup.c (load_setup): Uncomment init_printable_table().
2297 * cons.saver.c: Make all functions except main() static.
2298 * mfmt.c (omain): Remove, it's unused.
2300 2001-06-06 Pavel Roskin <proski@gnu.org>
2302 * main.c (done_mc) [HAVE_X]: Don't use xterm_flag.
2303 (midnight_callback) [HAVE_X]: Don't handle any keys except
2305 Remove useless preprocessor conditionals.
2306 * win.c [HAVE_X]: Disable unused functions.
2308 * file.c: Add comments after every endif.
2309 [HAVE_GNOME] [!WITH_BACKGROUND]: Fix compilation.
2311 2001-06-06 Andrew V. Samoilov <sav@bcs.zp.ua>
2313 * main.c [HAVE_CHARSET]: Remove source_codepage and display_codepage.
2314 They are declared in selcodepage.c.
2315 * setup.c [USE_VFS]: Remove declarations for variables which are
2316 declared in vfs/ftpfs.c.
2317 (load_setup) [HAVE_CHARSET]: init_printable_table commented
2318 out to enable compilation. Error strings tagged for translation.
2319 (init_setup): Optimized.
2320 * boxes.c (sel_charset_button): Eliminate C++ comment.
2321 (new_display_codepage): Made static.
2322 (display_bits_box): Use "%s" for plain string in message.
2324 2001-06-05 Pavel Roskin <proski@gnu.org>
2326 * boxes.c [HAVE_CHARSET]: New charset selection dialog.
2327 * main.c [HAVE_CHARSET]: Don't use eight_bit_clean and
2328 full_eight_bits. Use source_codepage and display_codepage to
2329 deduce the terminal 8-bitness.
2330 * main.h [HAVE_CHARSET]: Change to match main.c.
2331 * setup.c [HAVE_CHARSET]: Implement saving and loading charset
2333 * util.c (is_printable) [HAVE_CHARSET]: Use charset settings.
2334 * view.c [HAVE_CHARSET]: Implement charset support.
2335 From Walery Studennikov <hqsoftware@mail.ru>.
2337 * selcodepage.c (do_select_codepage): New function.
2338 * selcodepage.h: Declare it.
2339 From Walery Studennikov <hqsoftware@mail.ru>.
2341 * mfmt.c (omain): Warning fix.
2343 * key.c [HAVE_TEXTMODE_X11_SUPPORT]: Rename `display' to
2344 `x11_display' and `w' to `x11_window'. Make them static.
2345 (init_textmode_x11_support): Include into init_key().
2346 (done_textmode_x11_support): Include into done_key().
2347 (k_dispose): Make static.
2348 (s_dispose): Likewise.
2349 * key.h: Remove init_textmode_x11_support() and
2350 done_textmode_x11_support().
2351 * main.c: Don't call init_textmode_x11_support() and
2352 done_textmode_x11_support().
2354 * achown.c: Make global variables static if possible. Remove now
2355 useless preprocessor directives, since this file is now used in
2356 the text edition only.
2357 * boxes.c: Remove useless ifdefs.
2358 [USE_VFS]: Don't undef USE_NETCODE - it's done in extraconf.h.
2359 * cmd.c [USE_VFS]: Don't undef USE_NETCODE.
2360 * chmod.c: Remove useless ifdefs.
2361 * filegui.c: Likewise.
2362 * hotlist.c: Likewise.
2364 * layout.c: Likewise.
2365 * listmode.c: Likewise.
2366 * option.c: Likewise.
2367 * subshell.c: Likewise.
2368 * help.c: Remove useless ifdefs. Make global variables static if
2371 * learn.c: Likewise.
2373 2001-06-04 Andrew V. Samoilov <sav@bcs.zp.ua>
2375 * charsets.c (load_codepages_list): Lines in mc.charset beginning
2376 with a # are comments. Use "default character_set_name" in mc.charset
2377 to set default codepage for your system.
2378 (xstrncpy): Eliminate.
2380 2001-06-04 Pavel Roskin <proski@gnu.org>
2382 * cmd.c (edit_symlink_cmd) [!HAVE_GNOME]: Warn if the current
2383 selection is not a symbolic link.
2385 2001-06-02 Pavel Roskin <proski@gnu.org>
2387 * cmd.c (free_vfs_now) [HAVE_GNOME]: Eliminate.
2388 (reselect_vfs) [HAVE_GNOME]: Likewise.
2389 * main.c (ctl_x_map) [HAVE_GNOME]: Disable add2hotlist_cmd.
2390 (done_mc) [HAVE_X]: Don't call save_hotlist().
2391 * setup.c (save_setup) [HAVE_X]: Likewise.
2392 (done_setup) [HAVE_X]: Don't call done_hotlist().
2394 2001-06-01 Pavel Roskin <proski@gnu.org>
2396 * hotlist.c [HAVE_X]: Don't use ctrl_pressed().
2397 * widget.c [HAVE_X]: Likewise.
2398 * main.c [HAVE_X]: Likewise. Don't call init_key() and
2399 init_key_input_fd().
2400 * setup.c [HAVE_X]: Remove some variables that make no sence
2401 for the GNOME edition. Eliminate save_panel_types().
2402 * view.c [!PORT_WANTS_VIEW]: Eliminate view_mode_callback().
2404 * view.c [HAVE_X]: Define is_idle() to 1. Warning fix.
2406 * file.c (copy_file_file): Initialize src_uid, src_gid, src_mode
2407 and file_size to avoid a warning.
2409 2001-05-31 Pavel Roskin <proski@gnu.org>
2411 * charsets.c: Include config.h before everything else.
2412 * selcodepage.c: Likewise.
2414 * textconf.c (features): Use longer strings to avoid enforcing
2415 english word ordering on the translations. Capitalize sentences.
2416 From Walery Studennikov: Indicate charset support.
2417 (version): Use fputs, not fprintf.
2419 * Makefile.in: Add charsets.c, charsets.h, selcodepage.c and
2420 selcodepage.h. Compile them if the charset support is enabled.
2421 Distribute them always.
2423 2001-05-30 Pavel Roskin <proski@gnu.org>
2425 * charsets.c: New file for charset conversion support.
2426 From Walery Studennikov.
2427 * charsets.h: Likewise.
2428 * selcodepage.c: Likewise.
2429 * selcodepage.h: Likewise.
2431 * layout.c (init_curses) [!HAVE_SLANG]: Set ESCDELAY to 0 if
2432 possible to prevent ncurses from waiting after escape.
2434 2001-05-29 Pavel Roskin <proski@gnu.org>
2436 * cmd.c (quick_cd_cmd) [HAVE_GNOME]: Disable.
2437 * main.c (sort_cmd) [HAVE_GNOME]: Likewise.
2438 (ctl_x_map) [HAVE_GNOME]: Disable "Ctrl-x j" - background jobs.
2440 * color.c (init_colors) [HAVE_SLANG]: Use "default" instead of
2441 NULL as color names - this works even if COLORFGBG is unset.
2442 Don't check HAS_DIRECT_COLOR_ACCESS - it's now meaningless.
2444 * color.h: Define DEFAULT_COLOR_INDEX and DEFAULT_COLOR in the
2445 same way regardless of HAVE_SLANG.
2446 * color.c (init_colors) [USE_NCURSES]: Initialize the default
2449 * subshell.c (pty_open_master) [!HAVE_SCO && HAVE_GRANTPT]:
2450 Don't try to close a file that wasn't opened.
2452 * xslint.c: Remove slang_init() and FIXME in the comment.
2453 * main.c (main) [!HAVE_SLANG]: Don't call slang_init().
2455 2001-05-28 Pavel Roskin <proski@gnu.org>
2457 * myslang.h: Use HAVE_SLANG_SLANG_H instead of non-standard
2458 SLANG_H_INSIDE_SLANG_DIR.
2460 * xslint.c: Remove unused functions.
2462 * color.c (init_colors) [HAVE_SLANG]: Use SLtt_set_color() to
2463 associate the default colors with DEFAULT_COLOR_INDEX. The old
2464 code would unset alternative charset without making S-Lang aware
2466 Thanks to John E. Davis <davis@space.mit.edu>
2467 * widget.c (update_input) [HAVE_SLANG]: Revert last change - it
2470 2001-05-28 Andrew V. Samoilov <sav@bcs.zp.ua>
2472 * main.c: Correct some comments after #endif
2473 (shell): Remove comment and #ifdef around shell variable.
2474 (process_args) [HAVE_SUBSHELL_SUPPORT]: All related args enclosed
2475 between one #ifdef ... #endif pair.
2476 (process_args): smbfs_set_debug () takes a debug level as argument,
2479 2001-05-27 Pavel Roskin <proski@gnu.org>
2481 * main.c (OS_Setup) [!HAVE_X]: Exit immediately if TERM
2482 environment variable is unset or empty.
2484 2001-05-25 Pavel Roskin <proski@gnu.org>
2486 * cmd.c: Clean up useless preprocessor directives.
2487 (symlink_cmd): Warning fix.
2488 * dlg.c (dialog_handle_key) [HAVE_X]: Disable suspend on Ctrl-z.
2489 * main.c (do_suspend_cmd) [HAVE_GNOME]: Remove.
2490 (suspend_cmd) [HAVE_GNOME]: Likewise.
2492 2001-05-24 Pavel Roskin <proski@gnu.org>
2494 * widget.c (update_input) [HAVE_SLANG]: Work around a bug in
2495 SLang 1.x - set charset to alternative when printing spaces.
2497 2001-05-22 Pavel Roskin <proski@gnu.org>
2499 * ext.c (exec_extension): Use g_free() on the result of
2500 mc_mkstemps(). Don't free it if mc_mkstemps() fails - it's not
2502 * user.c (execute_menu_command): Likewise.
2503 * util.c (mc_mkstemps): Return NULL in the filename in the case
2504 of failure. Remove support for NULL as the first argument.
2505 From Andrew V. Samoilov.
2507 2001-05-21 Pavel Roskin <proski@gnu.org>
2509 * ext.c (exec_extension): Use mc_mkstemps().
2510 * user.c (execute_menu_command): Use mc_mkstemps().
2511 * util.c (mc_mkstemps): New function - safely create and
2512 open temporary file. Return the handle and the name.
2513 * util.h: Declarations for init_tmpdir() and mc_mkstemps().
2514 Define TMPDIR_DEFAULT and SCRIPT_SUFFIX.
2516 2001-05-18 Pavel Roskin <proski@gnu.org>
2518 * TODO: Remove Tk-related entries.
2519 * boxes.c [HAVE_TK]: Remove. Don't need INPUT_INDEX anymore.
2520 * screen.c [HAVE_TK]: Remove.
2521 (panel_event): Made static.
2522 * chmod.c [HAVE_TK]: Remove.
2523 * cmd.c [HAVE_TK]: Likewise.
2524 * help.c [HAVE_TK]: Likewise.
2525 * hotlist.c [HAVE_TK]: Likewise.
2526 * info.c [HAVE_TK]: Likewise.
2527 * view.c [HAVE_TK]: Likewise.
2528 * view.h [HAVE_TK]: Likewise.
2529 * widget.c [HAVE_TK]: Likewise.
2530 * wtools.c [HAVE_TK]: Likewise.
2532 * TODO: Remove XView-related entries.
2533 * menu.h [HAVE_XVIEW]: Remove all XView-related code.
2535 2001-05-17 Pavel Roskin <proski@gnu.org>
2537 * subshell.c (pty_open_master) [HAVE_SCO]: Fix ambigous `else'.
2538 [!HAVE_SCO && !HAVE_GRANTPT]: Likewise.
2540 2001-05-16 Pavel Roskin <proski@gnu.org>
2542 * subshell.c: Define _GNU_SOURCE to enable prototypes for
2543 allocating pseudo-terminals on GNU systems.
2545 * subshell.c (init_subshell_child): New function to initialize
2546 child process and run subshell. Code moved from ...
2547 (init_subshell): ... here.
2549 * subshell.c (init_subshell): Don't close pty_slave if is wasn't
2550 open. Initialize it with -1.
2552 2001-05-14 Pavel Roskin <proski@gnu.org>
2554 * main.c [HAVE_GNOME]: Disable more code.
2555 * cmd.c [HAVE_GNOME]: Likewise.
2557 * background.h: Omit definitions that require FileOpContext if
2558 fileopctx.h has not been included yet.
2560 * background.c (real_message_2s): Declare arguments "const" when
2562 (real_message_3s): Likewise.
2563 * wtools.c (message): Likewise.
2564 * background.h: Change declarations to match.
2565 * dialog.h: Likewise.
2567 * boxes.c [HAVE_GNOME]: Disable unused code.
2568 * find.c [HAVE_GNOME]: Likewise.
2569 * complete.c [HAVE_GNOME]: Likewise.
2570 * main.c [HAVE_GNOME]: Likewise.
2572 * screen.c (adjust_top_file): Enable only if it's used, i.e.
2573 when PORT_HAS_PAINT_FRAME in undefined.
2574 * wtools.c (listbox_refresh): Disable for HAVE_X, define to
2575 an empty macro instead.
2576 (listbox_callback): Call listbox_refresh() regardless of HAVE_X.
2577 (create_listbox_window): Likewise.
2579 * fsusage.c: Include stdlib.h for abort().
2580 * tree.c (tree_mkdir_cmd): Disable tree_mkdir_cmd() since it's
2582 * widget.c: Declare x_radio_toggle() with arguments.
2584 * util.h: Remove declarations of some functions defined in
2587 2001-05-14 Andrew V. Samoilov <sav@bcs.zp.ua>
2589 * background.c (real_message_1s, message_1s): third parameter is
2590 used by message () as printf pattern, so "%s" has to be added
2591 if plain string must be shown but printf conversion
2592 specification(s) may be there.
2593 * view.c (do_view_init): ditto
2594 * user.c (debug_out): ditto
2595 * utilunux.c (close_error_pipe, check_error_pipe): ditto
2597 * background.[ch], vfs/util-alone.c (message_1s): third parameter
2600 2001-04-27 Andrew V. Samoilov <sav@bcs.zp.ua>
2602 * find.c (search_content): Redo recent change without infinite loop ;-),
2603 egrep_path hardcoded to "egrep" as it is done in locate_egrep ()
2605 (locate_egrep): commented out
2607 (rotating_dash) [!HAVE_X]: moved into do_search to prevent warning
2609 2001-04-26 Pavel Roskin <proski@gnu.org>
2611 * find.c (search_content): Undo a recent change that caused an
2614 2001-04-24 Andrew V. Samoilov <sav@bcs.zp.ua>
2616 * view.c (get_line_at): previous newline is right condition
2617 for regexp '^' pattern also, fixed
2619 (search) [HAVE_GNOME]: gnome_message_box_new doesn't expand printf
2620 pattern, so g_strdup_printf used
2622 * find.c (find_parameters): don't use stat structure if mc_stat failed
2624 2001-04-17 Pavel Roskin <proski@gnu.org>
2626 * subshell.c (init_raw_mode): New function, separated from ...
2627 (invoke_subshell): ... this.
2628 (init_subshell): Initialize raw_mode here instead of delayng it
2629 until invoke_subshell(). Otherwise the current mode may have
2630 been changed by edition_pre_exec(), which caused Ctrl-O to be
2631 ignored on FreeBSD if a command has been run before switching
2634 2001-04-06 Pavel Roskin <proski@gnu.org>
2636 * chmod.c (stat_file): Allow chmod and chown on special files.
2638 * cons.handler.c: Include "global.h" for exit().
2640 * Makefile.in: Add dependencies between mc and static libraries
2643 2001-04-06 Andrew V. Samoilov <sav@bcs.zp.ua>
2645 * find.c (find_parameters): Add a checkbox for case insensitive
2647 (search_content): Pass `-i' to egrep for case insensitive
2650 2001-03-30 Andrew V. Samoilov <sav@bcs.zp.ua>
2652 * panel.h, screen.c (panel_new): panel_name constified to do gcc
2653 some more happy when gmc is compiled
2655 2001-03-18 Miguel de Icaza <miguel@ximian.com>
2657 * widget.c (forward_word, backward_word): Revert Timur's patch
2658 from last year which made the behaviour for advancing words not
2659 match the one in Emacs.
2661 2001-03-02 Pavel Roskin <proski@gnu.org>
2663 * key.c (mi_getch): Discard non-events (EV_NONE), but not
2666 2001-02-26 Pavel Roskin <proski@gnu.org>
2668 * cmd.c (edit_cmd) [HAVE_GNOME]: Use gmc_edit(). Don't use
2670 (ext_cmd) [HAVE_GNOME]: Don't compile for GNOME.
2671 * ext.c (regex_command) [HAVE_GNOME]: Likewise.
2672 * ext.h [HAVE_GNOME]: Don't define MC_USER_EXT and MC_LIB_EXT.
2674 * main.c (main): Don't call edit_init_file() - the editor should
2675 care about its files itself.
2677 2001-02-09 Pavel Roskin <proski@gnu.org>
2679 * main.c (main): Fix compilation error when configured without
2682 2001-02-07 Andrew V. Samoilov <sav@bcs.zp.ua>
2684 * main.c (main): Do not fork subshell for mcedit/mcview.
2686 2001-01-27 Pavel Roskin <proski@gnu.org>
2688 * cons.handler.c (handle_console): Check the result of ttyname().
2690 * main.c (handle_args): Exit if no arguments are given to mcview.
2691 [HAVE_GNOME]: Don't examine argv[0] - it's done separately.
2693 * dir.c: Respect HAVE_STRCOLL. Added a comment about strcoll().
2695 2001-01-26 Pablo Saratxaga <pablo@mandrakesoft.com>
2697 * file.c: moved a comment one line down so it becomes visible on the
2698 translators' po files. Also added gettext:no-c-format comments for
2699 a few strings with % in them that are not C format printf codes.
2701 2001-01-21 Andrew V. Samoilov <sav@bcs.zp.ua>
2703 * subshell.c (do_subshell_chdir): temporary patch to prevent command
2704 execution for directory names containing 0x03 (intr) 0x14.
2705 See http://www.securityfocus.com/vdb/?id=2016 for details.
2706 Subshell still can't chdir to such directories :(
2708 * subshell.[ch] (do_subshell_chdir): directory constified
2710 2001-01-17 Pavel Roskin <proski@gnu.org>
2712 * Makefile.in: Respect LDFLAGS when linking cons.saver.
2714 2000-11-20 Andrew V. Samoilov <sav@bcs.zp.ua>
2716 * view.c: Fixed long existed bugs in internal viewer. When search is
2717 doing in binary file it ignore skipped zero(es), so cursor is before
2718 searched expression and next search find the same string. Also regexp
2719 search could return wrong results for '^ ?' expressions.
2721 (get_line_at): skipped: new parameter for number of skipped zero(es)
2723 (search): new features of get_line_at used.
2725 2000-11-16 Andrew V. Samoilov <sav@bcs.zp.ua>
2727 * cons.saver.c (check_file): close fd on error. There was a bug, which
2728 allowed luser to write '\0' char to any symlinkable file in Linux
2729 system which don't ensure that fd's 0, 1, and 2 are open on startup
2730 of a SUID/SGID binary.
2731 Based on patch from bugtrack by Maurycy Prodeus <z33d@ETH-SECURITY.NET>.
2733 2000-11-14 Andrew V. Samoilov <sav@bcs.zp.ua>
2735 * layout.c (print_vfs_message): format string vulnerability fixed
2737 2000-11-03 Andrew V. Samoilov <sav@bcs.zp.ua>
2739 * main.c (CmdMenu): don't include edit_user_menu_cmd ()
2740 if USE_INTERNAL_EDIT is not defined
2741 (main): call edit_init_file () if USE_INTERNAL_EDIT is defined only
2742 (listmode_cmd): messages are localized
2744 2000-11-02 Pavel Roskin <proski@gnu.org>
2746 * layout.c [PORT_NEEDS_CHANGE_SCREEN_SIZE]: Declare
2747 low_level_change_screen_size().
2748 (flag_winch) [PORT_NEEDS_CHANGE_SCREEN_SIZE]: Call
2749 low_level_change_screen_size(). From Andrew V. Samoilov.
2751 2000-10-04 Pavel Roskin <proski@gnu.org>
2753 * user.c (expand_format): Fixed processing of "%s".
2755 2000-09-30 Pavel Roskin <proski@gnu.org>
2757 * Makefile.in: Added an explicit rule for man2hlp.
2759 2000-09-26 Pavel Roskin <proski@gnu.org>
2761 * listmode.c, listmode.h, main.c: Consistently using define
2762 LISTMODE_EDITOR to enable the experimental listmode editor.
2763 * main.c: Don't allow two adjacent separators in the Command
2766 2000-09-22 Pavel Roskin <proski@gnu.org>
2768 * fixhlp.c: Removed.
2769 * Makefile.in: Removed all references to fixhlp.c
2771 2000-09-14 Pavel Roskin <proski@gnu.org>
2773 * features.h: Joined with textconf.h to avoid name clash with
2775 * features.c: Renamed to ...
2776 * textconf.c: ... this
2777 * Makefile.in, cmd.c, main.c, text.c: necessary adjustments
2779 * Makefile.in: Don't make softlinks to the libraries
2781 2000-09-13 Pavel Roskin <proski@gnu.org>
2783 * Makefile.in: Only rebuild mc.hlp in the maintainer mode.
2785 2000-09-01 Pavel Roskin <proski@gnu.org>
2787 * fixhlp.c: fixed compile errors and warnings
2789 2000-08-30 Pavel Roskin <proski@gnu.org>
2791 * dirhist.c, dirhist.h: removed
2793 * features.h, keys.h, textconf.h, x.h: added protection against
2796 2000-08-23 Pavel Roskin <proski@gnu.org>
2798 * features.c: include <sys/param.h> to avoid a warning
2800 * main.c [HAVE_X]: print_mc_usage() and print_color_usage()
2802 version() moved to ...
2803 * features.inc: ... here, renamed to features.c
2804 * main.h: status_using_ncurses moved to ...
2805 * features.h: ... here
2806 * cmd.c, text.c: include "features.h"
2807 * cmd.h: include "panel.h"
2808 * Makefile.in: changed to use features.h and features.c
2810 2000-08-22 Pavel Roskin <proski@gnu.org>
2812 * main.c [HAVE_GNOME]: disable chmod and chown - they were
2813 broken and obsoleted by the "Properties" dialog
2815 * cmd.c [HAVE_X]: Removed dependency on status_using_ncurses
2817 * man2hlp.c: Removed undocumented feature - when converting
2818 to HTML some output would go to index.html instead of stdout
2820 2000-08-16 Pavel Roskin <proski@gnu.org>
2822 * gindex.pl: Enable warnings. Existing warnings fixed.
2824 * Makefile.in: mc.hlp now depends on man2hlp.c instead of
2825 man2hlp - this avoids some rebuilds of mc.hlp
2827 2000-08-15 Pavel Roskin <proski@gnu.org>
2829 * mc.hlp: removed. It's a derived file
2830 * Makefile.in: Fixed dependencies for $(srcdir)/mc.hlp
2831 Build $(srcdir)/mc.hlp but allow a failure (e.g. no perl)
2833 2000-08-11 Frederic L. W. Meunier <fredlwm@pervalidus.net>
2835 * Makefile.in: Don't compile mfmt, compile mcmfmt directly.
2837 2000-08-08 Andrew V. Samoilov <sav@bcs.zp.ua>
2839 * hotlist.c (done_hotlist): static tkn_buf, tkn_buf_length and
2840 tkn_length nullified after tkn_buf is freed to prevent crashes.
2842 (new_hotlist): became a macro
2844 * background.c (real_message_[123]s): title is really prepended
2845 by "Background process:" string now if mode == Background
2847 (background_attention): resstr NULLified to prevent warning
2849 2000-06-26 Andrew V. Samoilov <sav@bcs.zp.ua>
2851 * screen.c (display_mini_info): two different patterns are
2852 used now: for one file and for other cases
2854 2000-06-16 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2856 * cons_saver: support linux with devfs, patch by pavenis@lanet.lv
2858 2000-06-14 Andrew V. Samoilov <sav@bcs.zp.ua>
2860 * panel.h, util.[ch] (struct WPanel, size_trunc, size_trunc_sep): size
2861 parameters and WPanel.total field became double, thus, total size
2862 of selected files/directories is shown in the mini status correctly
2863 when it exceeds 2 GB.
2865 2000-05-25 Andrew V. Samoilov <sav@bcs.zp.ua>
2867 * slint.c (init_pair): segfault fixed when mcedit -b called
2869 * user.c (check_format_var): error messages are localized
2871 (expand_format, user_menu_cmd): memory leaking for %e and %k macro
2872 fixed; segfault fixed when %m macro is used outside user_menu_cmd ()
2874 * ext.c (regex_command): memory leaking fixed when user extension
2877 (exec_extension): error message for changed mc.ext file format
2878 are localized -- does we really must be worry about mc 3.0 ?
2880 * widget.c (history_put): counter is initialized again
2882 2000-05-11 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2884 * src/user.c: fix segfault when Shift-F4, Shift-F1, so when menu
2885 content condition y, macro %y
2887 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2889 * src/user.c: Add macro %k it is block file name
2890 Add macro %e it is error file name
2891 Add macro %i it is cursor column indent of spaces, only for edit
2892 Add macro %y, it is syntax of current file in editor, only for edit
2893 Add condition y, it is syntax pattern of current file in edit
2894 Add macro %x it is extension of current file
2895 Add macro %m it is current menu filename
2897 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2899 * gtkedit/editcmd.c: Modify External Formatter (was C indent formatter) .
2900 Autocreate a scripts in home, from templates /usr/lib/mc/edit.indent.rc,
2901 edit.ispell.rc, etc. Remove leading and trailing spaces into _(""),
2902 (the message of David H. Martin <dmartina@usa.net>)
2904 2000-05-05 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2906 * src/user.c: Add condition (x filename) into mc.menu .
2907 for "Open next a free console" and like.
2909 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2911 * src/user.c: fix segfault in chunk_alloc of glibc, when into condition
2912 of .mnu we have quoted space. (~.mc/menu: + f \.\ test$).
2914 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2917 Add ability user edit menus: system: /usr/lib/mc/cedit.menu,
2918 * gtkedit/editmenu.c: home: ~/.cedit.menu, local: .cedit.menu
2919 Marked block is access now from an user edit menu
2920 Access ~/.cedit/cooledit.block for insert to cursor place from
2922 Created system cedit.menu
2924 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2926 * gtkedit/editdraw.c:
2927 Improved a status string of cool editor for best understand,
2928 and to add char,hex view.
2930 2000-04-17 Andrew V. Samoilov <sav@bcs.zp.ua>
2932 * widget.c: (history_put): profile is free()d if chmod failed,
2933 (input_map): added const qualifier
2934 * utilunix.c, util.h: (tilde_expand): added const qualifier
2935 * cmd.c: (nice_cd): i18n update,
2936 (source_routing): typo fixed, source is free()d after use
2937 * screen.c: i18n changes, (panel_keymap): added const qualifier
2938 * view.[ch]: (view, view_init, do_view_init): added const qualifier
2940 2000-04-15 Timur Bakeyev <mc@bat.ru>
2942 * dir.c (string_sortcomp): strcmp() replaced with strcoll() to make
2943 directory listing LOCALE sensitive. I assume, strcoll exists everywhere,
2946 2000-04-15 Timur Bakeyev <mc@bat.ru>
2948 * dlg.c: Commited at last patch, that fixes screwed up right panel in
2949 a long format. Occasionaly, all my colors problems also gone. All thanks
2950 to Norbert Warmuth <nwarmuth@privat.circular.de>, who tracked down the
2951 problem, blames to me and Federico :)
2953 2000-04-12 Timur Bakeyev <mc@bat.ru>
2955 * widget.c ([forward|backward]_word): Changed one more time - now it
2956 skips alpnums and THEN spaces+punct. That gives almost the same re-
2957 sults, but twice quicker. Hope, this will be accepted.
2959 2000-04-06 Timur Bakeyev <mc@bat.ru>
2961 * widget.c ([forward|backward]_word): Changed logic of moving - now,
2962 it skips only spaces+punct OR alnum. Reason to do it so - deleting lines
2963 like "lynx http://www.gnome.org", where "lynx http:" part was erased
2964 in one operation. That's nasty, IMHO. Made this a separate commit, so,
2965 if it seriously breaks compatability it's easy to revert it. Still hope,
2968 2000-04-06 Timur Bakeyev <mc@bat.ru>
2970 * file.c, widget.[ch]: Fixed long existing problems with filenames
2971 and input widgets, then char is greater than 128. They were processed
2972 incorrectly. As usual, char != unsigned char problem.
2974 2000-03-03 Björn Eriksson <mdeans@algonet.se>
2976 * Similar patches came from Andrew V. Samoilov <sav@bcs.zp.ua>.
2978 * mad.[ch]: Some functions wrongly by-passed mad_alloc*() (causing
2979 problems when later g_free()ed.
2981 * Added mad_strndup().
2983 * Repeated code collected in mad_fatal_error().
2985 * The gcc-extension/C99-standard variable argument macros (adding
2986 __FILE__, __LINE__ before ', ...') would be nice.
2988 * Alloc_idx_hint and code added, the mad code was way too slow for my
2989 poor computer. A hash-table would be nice.
2991 * (mad_strconcat, mad_strdup_vprintf): g_malloc and g_new are
2992 undefined at the top of mad.c, so mad_alloc must be used.
2994 2000-02-23 Norbert Warmuth <nwarmuth@privat.circular.de>
2996 * main.c (parse_control_file): add missing right parentheses
2998 * boxes.c: fix incorrect initialization of array of structure (gcc
2999 version 2.96 20000131 chokes on it).
3001 2000-02-18 Paul Sheer <psheer@obsidian.co.za>
3003 * gtkedit/*.[ch], edit.c et al: updates to reflect
3004 cooledit-3.13.0. See CVS commits and cooledit ChangeLog
3007 2000-02-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3009 * setup.c (load_setup): remove duplicate loading of anonymous
3010 passwd by do_load_string(), it is doing by
3011 ftpfs_init_passwd. (Patch by sav@bcs.zp.ua)
3013 2000-02-04 "David H.Martin" <dmartina@usa.net>
3015 * src/widget.c (input_new): Change NULL to empty strings and avoid
3016 crashing when string functions are called.
3017 * src/boxes.c (configure_vfs): Remove local change to empty string.
3018 * src/setup.c (load setup): Load anonymous password
3020 2000-02-03 Andrew V. Samoilov <sav@bcs.zp.ua>
3022 * setup.c (load_setup): call ftpfs_init_passwd to avoid segfault
3024 2000-01-24 Andrew V. Samoilov <sav@bcs.zp.ua>
3026 * main.c (parse_control_file): add extra secutity checks for
3027 control file. It cannot be group/world writable;
3028 (ctl_x_map, default_map, argument_table): added const qualifier.
3030 * fixed segfault in print_mc_usage
3032 2000-01-24 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3034 * cmd.c (nice_cd): disabled ability to go to home.
3036 2000-01-02 viro@math.psu.edu
3038 * src/subshell.c: Reason: in feed_subshell() we are trying to read
3039 from shell pty,check for retval==-1 && errno != EIO. In that case
3040 we flame and exit. Otherwise we are trying to write what we've
3041 read. Good luck doing it if we got errno==EIO, which is _normal_
3042 for situation when shell just died. Resulting write(1,foo,~0U) is
3043 somewhat excessively, erm, verbose.
3045 1999-12-21 Pavel Roskin <pavel_roskin@geocities.com>
3047 * src/main.c, src/view.c: #warning's replaced with FIXME's.
3048 They were not for users, but for developers
3050 1999-11-11 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3052 * main.c, cmd.c: add possibility to free VFS now
3054 1999-11-03 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3056 * layout.c: always display status line. It contains vital
3057 information for ftpfs
3059 1999-03-19 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3061 * profile.c (str_translate_newline_dup): someone likes to pass
3062 NULL's around. Warn instead of segfault.
3064 1999-11-02 Miguel de Icaza <miguel@gnu.org>
3066 * main.c (OS_Setup): Do not warn if TERM is not set for the GNOME edition.
3068 1999-09-21 Federico Mena Quintero <federico@redhat.com>
3070 * dlg.c (dlg_broadcast_msg_to): Sigh. Put in a GrossHack(tm) to
3071 unfocus what will be a WInput when a panel is initialized.
3073 1999-09-21 Federico Mena Quintero <federico@redhat.com>
3075 * dlg.c (init_dlg): Walk the list of widgets only if it exists.
3076 (dlg_broadcast_msg_to): Use safer list-walking code for if someone
3077 inserts a widget inside the message broadcast.
3079 1999-09-20 Federico Mena Quintero <federico@redhat.com>
3081 The following is a patch from Volker Braun
3082 <volker.braun@physik.hu-berlin.de> to fix column resizing in the
3085 * setup.c (options): Declare the column width option values.
3086 (save_configure): Save the default user format.
3087 (load_setup): Load the default user format.
3089 * panel.h (WPanel): Added a field for the column widths.
3091 1999-09-19 Andrew V. Samoilov <sav@bcs.zp.ua>
3093 * user.c (check_patterns): char* is used instead of char [] in sizeof
3095 * util.c (string_perm): prefix named pipes by 'p' and not by `s'
3097 1999-09-19 Norbert Warmuth <nwarmuth@privat.circular.de>
3099 * mad.c, mad.h, util.c, util.h: Move mad-functions from util.[ch]
3102 * option.c: Include files reordered in order to make it compile with
3105 * mad.c (mad_init): New function. Initialize debug FILE pointer to
3106 stderr (moved to a function because not on every system stderr is
3108 (mad_set_debug): added const qualifier
3110 * main.c (main): call mad_init
3112 1999-09-14 Norbert Warmuth <nwarmuth@privat.circular.de>
3114 * widget.[ch] (input_new): added const qualifier
3116 * util.c (wipe_password): Check for NULL.
3118 1999-09-13 Federico Mena Quintero <federico@redhat.com>
3120 * treestore.c: Removed tree_store_destroy(), renamed
3121 tree_store_init() to tree_store_get().
3123 * tree.c (tree_destroy): Do not destroy the tree store.
3124 (tree_new): Get the tree store, do not initialize it.
3126 * treestore.c (tree_store_init): Do not set the linked list
3129 * panel.h (WPanel): Added a new field that indicates whether the
3130 user is dragging something over the tree.
3132 1999-08-31 Federico Mena Quintero <federico@redhat.com>
3134 * main.c: In the GNOME version, we want cd_symlinks to be FALSE.
3135 The VFS should never have to look at this variable, but alas, it
3136 does. BUGFIX: Red Hat Bugzilla #2344.
3138 * setup.c: Disable cd_symlinks in the GNOME version.
3140 1999-08-30 Norbert Warmuth <nwarmuth@privat.circular.de>
3142 * main.c (print_mc_usage): Print the bug reporting address.
3143 (main): Put prompt in a new line at termination.
3145 1999-08-27 Federico Mena Quintero <federico@redhat.com>
3147 * ext.c (quote_block): How did this ever work? People, if you
3148 realloc() things, don't keep pointers to stuff inside the original
3151 * screen.c (do_enter_on_file_entry): Pass in the full name to
3154 * dir.[ch] (if_link_is_exe): Take in the full name, not the directory
3157 1999-08-15 Norbert Warmuth <nwarmuth@privat.circular.de>
3159 * cmd.c (guess_message_value): New function. Determine locale used
3162 (get_random_hint): use guess_message_value
3164 1999-08-15 David Martin <dmartina@usa.net>
3166 * boxes.c: (symlink_dialog): Move dialog misaligned elements
3168 * cmd.c (get_random_hint): Look for localized hint files
3170 1999-08-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
3172 * ext.c: Added missing include file.
3174 1999-08-08 David Martin <dmartina@usa.net>
3176 * menu.c: (create_menu): Adjust "#ifdef ENABLE_NLS" so that menus
3177 get the right size even when NLS is disabled.
3179 1999-08-06 Norbert Warmuth <nwarmuth@privat.circular.de>
3181 * screen.c (string_file_[amc]time): These three functions use
3182 file_date which returns a pointer to a static buffer. In the
3183 Gnome edition this buffer has to be coppied to a static buffer
3184 which isn't used in the other two functions (Fix Bug #1766).
3186 * util.c, util.h: Moved some constants to util.h
3188 1999-08-04 Norbert Warmuth <nwarmuth@privat.circular.de>
3190 * widget.c (push_history): Add SMB Link to the list of input dialogs
3191 where urls are input without vfs prefix.
3193 Translate the titles of these input dialogs only once.
3195 Removed Gnome specific code because the Gnome edition doesn't use
3196 the input history any more.
3198 * util.c (strip_password): Add /#smb: to the list of urls which might
3199 be input with password.
3201 1999-08-03 Norbert Warmuth <nwarmuth@privat.circular.de>
3203 * poptalloca.h: New file with definitions for alloca. Note: alloca
3204 is defined as malloc on systems which fail to support alloca. Don't
3205 include this file if you frequently use alloca.
3207 * findme.c, popt*.c: include poptalloca.h
3209 * Makefile.in: added poptalloca.h
3211 * menu.c (create_menu): set minimum menu width to 20 characters as
3212 it used to be (this was part of davids patches but I haven't
3215 1999-08-01 David Martin <dmartina@usa.net>
3217 * menu.c (create_menu, menubar_drop_compute, menubar_paint_idx):
3218 Discount '&' for hotkeys when checking menu widths to avoid the
3220 Moved this accounting from the drawing to the creating function.
3222 * widget.c: Translate History box tittle.
3224 1999-07-21 Norbert Warmuth <nwarmuth@privat.circular.de>
3226 * popt.c, popt.h, poptconfig.c, popthelp.c, poptparse.c: updated
3227 to the version found in the popt module
3229 * features.inc: added report information for smbfs
3231 1999-06-01 Robert Brady <rwb197@ecs.soton.ac.uk>
3233 * file.c (move_dir_dir): Give an error when an attempt is made to
3234 move an empty directory into itself.
3236 1999-06-24 smil@linuxfan.com
3238 * view.c (view_update_bytes_per_line, display): show correctly the
3239 offset of the file (full 8 digit), display offset in bold colour
3241 (view_labels): use goto_addr instead of goto_line in hex mode
3243 (goto_addr): New function. Goto offset address in hex mode.
3245 * view.h: use unsigned long for hexedit cursor position in file
3247 1999-06-24 Norbert Warmuth <nwarmuth@privat.circular.de>
3249 * menu.c (menubar_execute): Now needs an additional do_refresh in order
3250 to make layout changes visible.
3252 1999-06-01 Robert Brady <rwb197@ecs.soton.ac.uk>
3254 * file.c (move_dir_dir): Give an error when an attempt is made to
3255 move an empty directory into itself.
3257 1999-06-22 Norbert Warmuth <nwarmuth@privat.circular.de>
3259 * cmd.c (quick_view_cmd): Change panel when the file we want to
3260 view isn't in the current panel (prevents a "file not found"
3263 * menu.c (menubar_execute): De-activate the menubar previous to
3264 invoking the callback. This is needed to make change_panel in
3265 quick_view_cmd work (the activated menubar doesn't allow unfocus,
3266 i.e. dlg_one_down|up don't change anything).
3268 * view.c (do_view_init): improved error handling w.r.t quick view
3269 (mc used to dump core when the file to view couldn't be opened).
3271 1999-06-22 David Martin <dmartina@usa.net>
3273 * view.c (display): added view_gotoxy's in order to make the gnome
3274 edition operational in hex mode.
3276 Fri Jun 18 11:29:56 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3278 * user.c (user_menu_cmd): Allow national characters as hotkeys.
3279 Don't dump core when the menu file contains only empty lines
3281 * view.c (search, block_search): Use the correct column for the
3282 percent display while searching.
3284 1999-06-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
3286 * complete.c (complete_engine): Put an #ifndef HAVE_GNOME around
3287 the completion/query engine. Make the Gnome version just beep
3288 instead. We do not have the completion/query engine for Gtk.
3290 1999-06-09 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3292 * cmd.c (configure_panel_listing): no more code duplication
3294 * screen.c (panel_new): no more code duplication
3295 (set_panel_formats): warn user when he gives bogus format, move
3296 checks into set_panel_formats
3298 1999-06-01 Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
3300 * util.c (is_printable): in GNOME all characters are printable.
3302 1999-05-31 Miguel de Icaza <miguel@nuclecu.unam.mx>
3304 * main.c (handle_args): Handle --desktop-linksdir without using X
3306 1999-05-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
3308 * treestore.c (should_skip_directory): Add fix from Wayne Roberts
3309 to actually acknowledge the settings of mc.global.
3311 1999-05-24 Brandon S. Allbery <allbery@ece.cmu.edu>
3313 * subshell.c (pty_open_master): Added missing comma.p
3315 Mon May 17 07:37:12 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3317 * subshell.c (pty_open_master): use getpt () if available to open
3318 the master side of the pty. getpt () is a glibc extension and is
3319 needed when glibc 2.1.x is used with a (linux) kernel without unix98
3320 style ptys (if there is no /dev/ptmx getpt falls back to bsd style
3323 * filegui.c (check_progress_buttons): Don't update the Gpm mouse
3324 cursor when we check for events. It causes a flickering cursor on a
3325 different virtual console.
3327 1999-05-12 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3329 * cons.saver.c (main): change cons.saver so it can be run without
3330 root privileges. It is well possible to run cons.saver with
3331 privileges only to /dev/vcsa: create new user and make vcsa's
3332 owned by that user instead of root.
3334 Distribution maintainers please take this text as idea of what you
3335 should do to make your system more secure.
3337 1999-05-05 Miguel de Icaza <miguel@nuclecu.unam.mx>
3339 * cmd.c (view_file_at_line): gmc_view never fails, so we handle
3342 1999-04-29 Federico Mena Quintero <federico@nuclecu.unam.mx>
3344 * chmod.c (chmod_cmd): Missing _ in _().
3345 (chmod_cmd): Added braces around nested if/else.
3347 * widget.c (is_in_input_map): Added braces around nested if/else.
3348 (listbox_remove_current): Likewise.
3350 * subshell.c (read_subshell_prompt): Likewise.
3352 * view.c (view_status): Likewise.
3354 Tue Apr 27 20:31:13 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3356 * util.c (strip_home_and_password): Don't split the path in the
3357 middle of a directory, e.g. "/home/bofh" will not be translated to
3358 "~h" (fixes the bug reported by Alex Fortuna <alex@rdc.ru>)
3360 1999-04-25 Sergei Ivanov <svivanov@pdmi.ras.ru>
3362 * find.c: The origin of the bug is in the function do_search (file
3363 find.c). It limits the number of subdirectories to scan by the
3364 number stat.st_nlink-2, or infinite if st_nlink<2. On tar vfs,
3365 st_nlink is always 1, so it should be the second case.
3367 But before doing stat, do_search does opendir. And opendir on tar
3368 vfs (vfs_s_opendir in vfs/direntry.c) increases the st_nlink value
3369 in the stat data! So mc_stat called after mc_opendir on tar vfs
3370 returns st_nlink==2 instead of 1. This is interpreted as if the
3371 directory had no subdirs, thus subdirs are not searched in.
3373 Changing the order of calls to mc_stat and mc_opendir fixes the
3376 1999-03-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
3378 * setup.c (save_setup): Only save this if there is a current panel
3380 Wed Apr 21 21:47:15 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3382 * ext.c (exec_extension): Use tempnam instead of tmpnam (AIX doesn't
3383 like the latter when compiled with -mthreads).
3385 * user.c (execute_menu_command): ditto.
3387 Wed Apr 21 20:40:38 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3389 * Makefile.in: use MCCFLAGS and MCLIBS
3391 Wed Apr 21 20:19:45 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3393 * key.c (get_modifier): Query the state of the modifier keys when
3394 running inside a terminal emulation under X11.
3396 * key.c (init_textmode_x11_support, done_textmode_x11_support): new
3397 functions, only used in the text edition. Connect to and disconnect
3398 from the X Server when DISPLAY is set.
3400 * key.h: added prototypes for the new functions
3402 * main.c (main): call (init|done)_textmode_x11_support
3404 Sat Apr 17 13:04:19 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3406 * view.c (do_view_init): Enable viewing of files with negative
3407 st_size (This reverts parts of a patch I commited recently. Miguel
3408 provided a better fix for this issue).
3410 1999-04-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
3412 * view.c (regexp_search): Use unsigned longs for all of the
3413 offsets here. Fixes crash reported on bugtraq.
3415 1999-04-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
3417 * treestore.c (tree_store_save_to): Moved the functionality from
3418 tree_store_save() to here.
3419 (tree_store_save): Save the tree in the default location in an
3421 (tree_store_load_from): Moved the functionality from
3422 tree_store_load() to here.
3423 (tree_store_load): Load the tree from the default location.
3425 * treestore.h (MC_TREE_TMP): Added a #define for the temporary
3426 name we'll use when saving the tree. Moved the #defines from
3427 tree.h over to here.
3429 * main.c (main): Use tree_store_load() and tree_store_save().
3430 Removed the mc_tree_store_load/save() versions.
3432 * tree.c (load_tree): Use tree_store_load().
3433 (save_tree): Use tree_store_save().
3435 Fri Apr 16 07:51:42 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3437 * wtools.c (message): Use g_vsnprintf instead of vsprintf.
3439 Fri Apr 16 07:50:59 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3441 * view.c (do_view_init): Don't view files with negative file size.
3442 Added some error checking (I'm not sure whether this is needed).
3444 1999-04-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
3446 * panel.h (WPanel): Added a drag_tree_row field to the WPanel
3447 structure. This is used to keep track of the highlighted row in
3448 the tree for drag and drop. Also, added drag_tree_timeout_id to
3449 hold the node expand timeout. Also, added drag_tree_fe to hold
3450 the file_entry for the currently highlighted row in the tree.
3452 1999-04-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
3454 * utilunix.c (my_system): Set up default signal handlers for childs.
3456 Tue Apr 13 07:14:10 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3458 * slint.c (getch): Quit MC when SLang_getkey returns an error. Looking
3459 at the code that's only the case when we read EOF from stdin.
3461 This fixes the problem where MC consumes a lot of cpu time while
3462 reading EOF from stdin in a tight loop. This situation arises when the
3463 terminal line/connection drops without MC being sent SIGHUP.
3465 Tue Apr 13 07:13:10 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3467 * slint.c (SLang_input_pending2): don't store SLANG_GETKEY_ERROR (int)
3468 in the input buffer (char).
3470 1999-04-12 Andrew T. Veliath <andrewtv@usa.net>
3472 * main.c (_do_panel_cd): If we are using GNOME, and the panel is a
3473 desktop panel, open up a new panel for the contents.
3475 1999-04-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
3477 * tree.c (tree_start_search): Renamed from start_search() to avoid
3478 collisions with screen.c:start_search().
3480 * panel.h: Added prototype for start_search().
3482 1999-04-09 Rosanna Yuen <rwsy@mit.edu>
3484 * screen.c (do_enter_on_file_entry): split GNOME version and
3486 (parse_display_format): listen to the warning.
3488 1999-04-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
3490 * treestore.c (tree_store_load): Do not load non-local file
3492 (tree_store_save): Do not save non-local file systems
3494 1999-04-07 Jonathan Blandford <jrb@redhat.com>
3496 * screen.c (do_enter_on_file_entry): added a consistent behaviour
3499 1999-04-06 David Martin <dmartina@usa.net>
3501 * info.c (text out of box and locale layout).
3503 * util.c: If gmc uses strftime() why mc doesn't?
3505 * view.c: a) Tune status line so it does fit in a Quick View Panel
3506 b) Let Hex View resize cleanly. I think it's fixed for panel
3507 re-split and SIGWINCH signal in xterm. gmc still fails. There was
3508 a tiny risk of division by zero when pressing F4 in a very small
3509 box. True hard work... Must try and check it.
3511 1999-04-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
3513 * main.c (main): Call mc_tree_store_save() when the program
3516 1999-04-05 Miguel de Icaza <miguel@nuclecu.unam.mx>
3518 * find.c (setup_gui): Do not scroll horizontally. Why does the
3519 CList behave like this?
3521 * setup.c: Save desktop information.
3523 1999-04-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
3525 * cons.saver.c (main): dup2() may be interrupted; take this into
3526 account. Do we need to fcntl() stderr, or is it enough to close()
3527 it before recreating it?
3529 1999-03-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
3531 * dlg.c (dlg_run_done): Do not call the callback of a NULL current
3534 * setup.h: Added missing prototype for setup_init().
3536 * filegui.c (check_progress_buttons): Added a missing return
3539 * dlg.c (remove_widget): Added a missing return value.
3541 * main.c: Removed the global directory_list variable.
3542 Removed the main_corba_register_server() function.
3544 * main.h: Removed the global run_desktop variable.
3546 * panel.h: Now the panel structure has a unique numerical ID used
3547 for session management.
3549 * screen.c (panel_new): Maintain a unique ID for each panel.
3551 * main.c (maybe_display_linksdir): Handle display of the desktop
3553 (main): Call gnome_check_super_user().
3554 (init_corba_with_args): Call corba_init_server().
3556 * main.c (init_corba_with_args): Do CORBA initialization here. Also
3557 removed the global force_activation option.
3559 1999-03-29 Jonathan Blandford <jrb@redhat.com>
3561 * main.c (main): updated message.
3563 Sun Mar 28 23:52:08 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3565 * util.c (is_printable): Character 155 is non printable even when
3566 full eight bit output is enabled (on the linux console 155 is
3567 interpreted as "ESC [").
3569 1999-03-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
3571 Patch courtesy of John Bley (jbb6@acpub.duke.edu):
3573 * background.c (do_background): Use pid_t instead of int.
3575 * subshell.c (sigchld_handler): Likewise.
3577 1999-03-24 Federico Mena Quintero <federico@nuclecu.unam.mx>
3579 * Makefile.in: Use mcsrclibdir where appropriate.
3581 1999-03-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
3583 * treestore.c (process_special_dirs): Free memory here.
3585 Fix test: Skip only "." and "..", before it could skip "?.".
3587 1999-03-22 David Martin <dmartina@mailexcite.com>
3589 * wtools.c (real_input_dialog_help): Do a strncmp with the lenght
3590 of th same translated "Password:" string.
3592 Mon Mar 22 02:05:28 1999 Timur Bakeyev <mc@bat.ru>
3594 * screen.c (file_entry_color): Dropped. Code went to file_compute_color.
3596 * screen (format_file): Add check, that avoids reported error, when
3597 long file list -> quick view -> brief file list gives core dump.
3599 1999-03-19 Jonathan Blandford <jrb@redhat.com>
3601 * main.c (main): We don't want to restart if we hit cancel.
3603 * file.c (panel_operate): Ugly hack for GNOME. We only treat the
3604 copy as if it were many files, and skip the only_one branch.
3606 1999-03-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
3608 * utilunix.c (close_error_pipe): Inform parent of the return value
3609 of any command here. This allows the desktop to launch a terminal
3610 only if it succeeded in mounting the directory.
3612 Thu Mar 18 16:09:09 1999 Timur Bakeyev <mc@bat.ru>
3614 * panel.h, screen.c: Add an ability to center justify fields in the
3615 panel, in addition to left and right justification. Just for fun.
3616 Try =name in user format.
3618 * util.c (name_quote): Quote "~@^|;:". Hope, that's all :)
3620 1999-03-17 Jonathan Blandford <jrb@redhat.com>
3622 * main.c (main): Put in a warning when run as root.
3624 1999-03-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
3626 * boxes.c (symlink_dialog): Put this inside an "#ifndef
3627 HAVE_GNOME" since we now provide a nicer version of the dialog.
3629 * wtools.c (real_input_dialog_help): Removed un-needed #ifdef.
3631 * cmd.c (edit_symlink_cmd): Generate the title of the dialog after
3632 we have computed the source filename.
3633 (edit_symlink_cmd): Use g_strdup_printf() instead of g_strconcat()
3634 for better internationalization.
3636 * wtools.c: Removed unused function input_dialog_help_2().
3637 (real_input_dialog_help): Put this inside an "#ifndef HAVE_GNOME",
3638 because now the Gnome version implements its own pretty dialog.
3640 1999-03-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
3642 * dlg.c (dlg_select_nth_widget): Handle the case where h->current
3645 1999-03-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
3647 * file.c (erase_file): Here we need to mc_lstat(), not mc_stat().
3648 Since we use the resulting buf.st_size to update the progress, we
3649 need the size of unresolved links. This also makes it consistent
3650 with screen.c:do_file_mark().
3652 * screen.c (select_item): Return immediately if this is a desktop
3655 1999-03-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
3657 * subshell.c (pty_open_slave): Glibc-2.1-based Linux kernels have
3658 grantpt() but they do lack SysV streams. Handle this. Noticed by
3661 1999-03-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
3663 * util.h: Added prototype for g_readlink(). Miggie boy should add
3664 prototypes when he adds public functions.
3666 1999-03-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
3668 * utilunix.c (g_readlink): Fixed two bugs spotted by Morten
3669 Wellinder. Boy, Morten has such a good eye!
3671 1999-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
3673 * file.c (erase_dir): Erase metadata for directories as well.
3674 (erase_dir_iff_empty): Likewise.
3675 (copy_file_file): Delete/copy the metadata even for
3676 char/block/sock/fifo files. Same thing for when copying symlinks.
3677 (copy_dir_dir): Delete/copy the metadata.
3678 (move_dir_dir): Delete/move the metadata.
3679 (recursive_erase): Delete the metadata.
3681 1999-03-08 Federico Mena Quintero <federico@nuclecu.unam.mx>
3683 * file.c (real_query_recursive): Removed an unused variable.
3685 1999-03-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
3687 * utilunix.c (g_readlink): New function. Wraps all the nonsense
3688 of readlink into a nice routine.
3690 * filegui.c: Support ui->ctx to be NULL, as file.c will set this
3691 to NULL for background operations.
3693 * background.c (do_background): Handle EINTR in dup2.
3695 Wed Mar 10 22:21:19 1999 David Martin <dmartina@usa.net>
3697 * util.c (my_putenv): char* was used to store the length of a string
3699 * info.c (info_show_info): cast st_dev and st_ino when passing
3702 1999-03-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
3704 * file.c (panel_operate): Always create the ctx->ui. Federico,
3705 can you see if this change is correct from your point of view?
3707 * cmd.c (edit_symlink_cmd): Small fix to improve the messages
3710 Tue Mar 2 22:54:50 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3712 * util.c (name_quote): Quote '<' and '>'.
3714 Tue Mar 2 22:28:39 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3716 * main.c (panel_clean_dir): New function: reset all counters of a
3717 WPanel and clean directory list.
3719 * various places: Use panel_clean_dir instead of clean_dir whenever
3720 a WPanel is available. This solves the problem reported by Enrico
3721 Scholz (screen refresh while panel reload with an old/now invalid
3724 Mon Mar 1 00:18:48 1999 Timur Bakeyev <mc@bat.ru>
3726 * mad.c: Tempnam() returns malloced buffer, so, free() it, not g_free().
3728 1999-02-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
3730 * view.c (view_percent, view_update): Take an extra argument:
3731 update_gui, which controls whether we want to update the displayed
3732 region in the GUI version.
3734 1999-02-25 Jonathan Blandford <jrb@redhat.com>
3736 * cmd.c (symlink_cmd): little change to handle the case when a
3737 desktop panel is passed in.
3739 1999-02-25 Owen Taylor <otaylor@redhat.com>
3741 * fileopctx.h file.c: Moved recursive delete query
3742 dialog into gdialogs.c for GNOME.
3744 1999-02-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
3746 * file.c: Moved FileCopyMode here (thanks to Wolfgang Scherer for
3747 pointing this out) and made it a typedef.
3749 * treestore.c (process_special_dirs): New function.
3750 (should_skip_directory): Load the settings from the global
3751 special.dirs file and from the
3753 * util.c: Test for glibc/linux and if so, do not use getwd, but
3754 getcwd as on this system it is better than popen ("pwd").
3756 1999-02-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
3758 * setup.c: Declare extern int tree_panel_visible for the GNOME
3761 1999-02-17 Federico Mena Quintero <federico@nuclecu.unam.mx>
3763 * dir.c (if_link_is_exe): Made this function take in a directory
3764 argument as well -- the sought file may not be in the cwd, and
3765 file entries do not carry the directory the file refers to.
3767 * screen.c (do_enter_on_file_entry): Pass in the cpanel->cwd to
3770 1999-02-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
3772 * treestore.c (tree_store_rescan): Add code to skip scanning
3773 specially slow directories (/afs, /coda, /...). It is of course,
3776 * setup.c: Export the profile_name setup routine.
3778 Tue Feb 16 21:21:32 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3780 * popt.c: Compilation fix: on systems without setreuid use setuid.
3782 Tue Feb 16 21:18:08 1999 David Martin <dmartina@usa.net>
3784 * achown.c: Make buttons fit in the (new) translated
3785 Advanced Chown dialog.
3787 1999-02-16 Alexaander Savelyev <fano@ham.kiev.ua>
3789 * subshell.c (exit_subshell): Use the size of the buffer, not
3790 sizeof of the pointer to the buffer.
3792 Sun Feb 14 02:59:09 1999 Timur Bakeyev <mc@bat.ru>
3794 * utilunix.c (my_system): Fix the order of preferenses, as setuid
3795 more desirable on BSD systems. Terminate execl[p]() with NULL, as
3796 this is formally correct.
3798 1999-02-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
3800 * dir.c (do_load_dir): Added missing calls to tree_store_end_check.
3802 * find.c (add_to_list): Pass the data pointer as well.
3804 Fri Feb 12 06:36:58 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3806 * utilunix.c (my_system): Compilation fix: on systems without
3807 setreuid use setuid.
3809 1999-02-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
3811 * panel.h (WPanel): Removed unused field "corbadat".
3813 1999-02-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
3815 * screen.c: Make delete key delete files.
3817 * dir.c (do_reload_dir): Add a couple of missing calls to tree_store_end_check.
3819 1999-02-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
3821 * main.h: Added prototype for main_corba_register_server().
3823 1999-02-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
3825 * view.c (search): Provide GNOME specific code for the search progress
3827 * treestore.c: Add a new hook system to hint a tree freeze/thaw.
3829 * setup.c: In the GNOME version, we do not show the dot files by default.
3831 1999-02-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
3833 * file.c (copy_file_file): Add support for the GNOME metadata here.
3834 (move_file_file): Add support for the GNOME metadata here.
3836 1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
3838 * treestore.c (tree_store_add_entry): Use g_new0 to allocate the tree_entry.
3840 (tree_store_notify_add): Close, but no cigar. The
3841 bug was deeper: This list keeps names, not tree_entries.
3843 1999-02-07 Federico Mena Quintero <federico@nuclecu.unam.mx>
3845 * treestore.c (tree_store_notify_add): A tree_store_add_fn wants a
3846 string, not a tree_entry, so pass a string to it.
3848 1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
3850 * treestore.c: Revert all of the stack changes. Now the treestore
3851 is again non-re-entrant. Being re-entrat was only covering up for
3852 bugs in other places.
3854 Now we postpone notifications for additions at
3855 tree_store_end_check, not before.
3857 1999-02-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
3859 * treestore.c (tree_store_remove_entry): Removed unused code for
3860 base_sublevel computation.
3862 Sun Feb 7 06:11:48 1999 Timur Bakeyev <mc@bat.ru>
3864 * Makefile.in: Change calls to xmkdir to mkinstalldirs - this is more
3867 * xmkdir removed - we have mkinstalldirs.
3869 1999-02-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
3871 * cmd.c (view_other_cmd): Do not use \r in translatable strings.
3873 1999-02-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
3875 * widget.c (push_history): Only do check the history headings if
3876 the widget has a history entry bound to it.
3878 1999-02-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
3880 * treestore.c (tree_store_start_check, tree_store_mark_checked,
3881 tree_store_end_check): Use a stack for check_name. There are far
3882 too many instances that might call the end_check.
3884 Wed Feb 3 23:55:54 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3886 * widget.c (history_put): set the access rights correctly when
3887 the history file is created initially. Don't save the history
3888 if we can't set the access rights.
3890 1999-02-01 Jonathan Blandford <jrb@redhat.com>
3892 * setup.c: save we_can_afford_the_speed
3894 Wed Feb 3 22:27:04 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3896 * util.c (strip_password): Extented to find the url in the first
3897 parameter. The second parameter tells whether it should search the
3898 url (indicated by known prefixes) in the first parameter or whether
3899 the first parameter is a url without a prefix ("ftp://", "/#ftp:",
3902 * main.c (directory_history_add): Strip the password (if any) from
3903 the freshly added value.
3905 * widget.c (push_history): ditto. There's a ugly special casing
3906 necessary for the network and ftp link dialogs (urls are entered
3909 * widget.c (history_put): Restrict read and write access to the
3910 history file to the owner (Just in case I forgot to strip passwords
3913 Mon Feb 1 00:43:15 1999 Timur Bakeyev <mc@bat.ru>
3915 * screen.c (to_buffer): Code of the function rewritten, as a side
3916 effect added J_CENTER (who needs this?). Also, justification flags
3917 got twins with _FIT suffix, which tries to fit name in the field with-
3918 out truncation (uses name_trunc()). This unifies behaviour of CList
3919 variants and text-bases widgets.
3921 * screen.c: Remove HAVE_GNOME wrappers around string_file_[name|owner|
3922 group]() - not necessary, to_buffer() doing this work.
3924 Sun Jan 31 19:49:00 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3926 * hotlist.c (add_new_entry_input, add_new_group_input): Make the
3927 quick_widget arrays static and various changes needed because they
3928 are now static. add_widgets_i18n recalculates button positions
3929 which get lost when the quick_widget arrays are non static.
3931 * screen.c (to_buffer): nul terminate string when using strncpy
3933 * setup.c: Save and restore new option ftpfs_first_cd_then_ls.
3935 1999-01-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
3937 * file.c (panel_operate_generate_prompt): Removed the cmd_buf
3938 argument, since it is a global variable anyway (this function is
3939 only called once from file.c, and the global cmd_buf was being
3941 (panel_operate): Do not pass cmd_buf to
3942 panel_operate_generate_prompt().
3943 Thanks to Alexander Savelyev <fano@vcom.kiev.ua> for noticing this.
3945 1999-01-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
3947 * achown.c (XTRACT): Add missing call to _().
3949 1999-01-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
3951 * panel.h: Fixup #includes.
3953 1999-01-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
3955 * cons.saver.c: Removed glib from the suid app
3957 Wed Jan 27 03:17:44 1999 Timur Bakeyev <mc@bat.ru>
3959 * Converted memory managment to Glib. Now we use g_new()/g_malloc()/
3960 g_strdup()/g_free() routings. Also, copy_strings() replaced by
3961 g_strconcat(), strcasecmp() -> g_strcasecmp(),and sprintf() by
3964 * Some sequences of malloc()/sprintf() changed to g_strdup_printf().
3966 * mad.[ch]: Modified, to work with new GLib's memory managment. Fixed
3967 a missing #undef for tempnam, which caused dead loop. Add several new
3968 functions to emulate GLib memory managment.
3970 *main.c, mad.[ch]: Add a new switch "-M", which allows to redirect MAD
3971 messages to the file.
3973 * util.[ch], utilunix.c: Modified, deleted our variants of strcasecmp()
3974 and strdup() - we have g_ equivalences. Remove get_full_name() - it is
3975 similar to concat_dir_and_file(). Some other tricks with g_* functions.
3977 * global.h: Modified, extended. Now it is main memory mangment include -
3978 i.e. all inclusions of <stdlib.h>, <malloc.h>, <glib.h>, "fs.h", "mem.h",
3979 "util.h" and "mad.h" done there. This elimanates problem with proper or-
3982 * All around the source - changed order of #include's, most of them gone
3983 to global.h (see above), minor changes, like "0" -> NULL in string func-
3986 1999-01-25 Alexander Savelyev <fano@vcom.kiev.ua>
3988 * ext.c (exec_extension): Always use /bin/sh. Not the user
3991 1999-01-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
3993 * treestore.c (tree_store_remove_entry_remove_hook): Missing
3994 function. To remove a notification hook.
3995 (tree_store_notify_add, tree_store_add_entry_add_hook,
3996 tree_store_remove_entry_add_hook): New functions to notify of
3997 additions to the treestore.
3999 * tree.c (tree_destroy): Remove the callback hook when we go
4002 1999-01-21 Miguel de Icaza <miguel@nuclecu.unam.mx>
4004 * option.c (init_configure): One line patch from Alexander
4005 Savelyev to transalate all strings.
4007 1999-01-18 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
4009 * file.c: Killed operation_names: they seemed same to op_names to
4010 me, and compilation failed on them (initializer element is not a
4011 constant). Maybe miguel tagged too many strings for localization?
4014 * ext.c: we use /tmp in "creative" way: creating there file and
4015 then executing it. I do not see how it is needed. Marked with FIXME.
4017 Thu Jan 21 01:11:24 1999 Timur Bakeyev <mc@bat.ru>
4019 * mad.[ch], util.[ch]: commit changes, that allow coexist (temporary)
4020 GLib'ed VFS and not still converted MC itself.
4022 1999-01-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
4024 * treestore.c (tree_store_start_check): Use mc_stat(), not stat().
4025 (tree_store_rescan): Use mc_lstat(), not lstat().
4027 Tue Jan 19 05:28:04 1999 Timur Bakeyev <mc@bat.ru>
4029 * ext.c, filenot.c, main.c, screen.c, treestore.c: add missed #include's
4030 and moved glib.h so, it follows "fs.h", but preceed "util.h" and "mad.h".
4031 There were conflicts during compilation with MAD and GLibed vfs.
4033 Mon Jan 18 21:23:29 1999 Paul Sheer <psheer@obsidian.co.za>
4035 * cmd.c: update_panels (UP_OPTIMIZE, UP_KEEPSEL); instead
4036 of reread after editing a file.
4038 1999-01-18 Arturo Espinosa <arturo@nuclecu.unam.mx>
4040 * file.c: Use N_ instead of _ for some of miguel's last tags.
4042 1999-01-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
4044 * file.c: Tag some more strings for localization.
4046 1999-01-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
4048 * cmd.c (mkdir_cmd): Please, check your pointer usage.
4050 Thu Jan 14 13:18:58 1999 Timur Bakeyev <mc@bat.ru>
4052 * screen.c (string_file_[owner|group]): Workaround the fact, that some
4053 systems have user and group names greater than 8 symbols. Now we trun-
4056 1999-01-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
4058 * treestore.c (tree_store_load): Use g_return_val_if_fail(), not
4060 (tree_store_rescan): Added parentheses to clarify || and &&.
4062 * tree.c (tree_add_entry): Removed unused variable.
4064 * treestore.h: Added prototype for tree_store_start_check_cwd().
4066 1999-01-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
4068 * view.c (search): Missing condition.
4070 * treestore.c (tree_store_opendir): Simplistic fix. This is not
4073 1999-01-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
4075 * panelize.h: Added prototype for do_external_panelize().
4077 * screen.c (move_selection): Unused variable fixes for HAVE_X.
4079 * boxes.c (configure_vfs): Removed an unused variable.
4081 1999-01-12 Jonathan Blandford <jrb@redhat.com>
4083 * cmd.c (mkdir_cmd): now mkdir_cmd will accept relative, and
4084 absolute directories.
4086 Tue Jan 12 13:40:46 1999 Timur Bakeyev <mc@bat.ru>
4088 * gtkedit(syntax.c): Fixed a typo in Pascal syntax.
4090 1999-01-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
4092 * treestore.c (tree_store_save): Add signature for version 2.0 of
4095 1999-01-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
4097 * file.c (do_file_error): Made static.
4098 (query_recursive): Have cases for background/foreground operation.
4099 (do_file_error): Likewise.
4101 * background.c: Removed the bg_ctx global, since now all the
4102 contexts are carried around by the functions that actually need
4105 * fileopctx.h (FileOpContext): Moved the op_preserve field to here.
4107 * filegui.c (file_mask_dialog): Removed the ui assertion, since
4108 now the op_preserve field is kept in the main context structure.
4110 1999-01-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
4112 * util.c: Provide workarounds for Linux kernel bug.
4114 Sun Jan 10 02:18:33 1999 Timur Bakeyev <mc@bat.ru>
4116 * screen.c(string_file_size): Fixed (incorrect?) printing of device num-
4117 bers. Major should never be greater 255.
4119 1999-01-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
4121 * dir.c (handle_dirent): Use the tree_store now.
4122 (handle_path): ditto.
4123 (do_load_dir): ditto.
4124 (do_load_dir): ditto.
4125 (do_reload_dir): ditto.
4126 (do_reload_dir): ditto.
4128 * treestore.c (tree_store_save): New file
4129 (encode): New routine used to encode pathnames in a safe way that
4130 are saved to the mc/.tree file.
4131 (decode): New routine, used to decode the pathnames we encoded in
4132 the step above. Aint love grand?
4134 * tree.c (load_tree): Kill dead code.
4136 Moved all of the tree store information into a new file:
4137 treestore. To be reused by the Gnome code.
4139 1999-01-08 Ilya Zakharevich <ilya@math.ohio-state.edu>
4141 * popt.c: OS/2 and Windows NT portability fix.
4143 1999-01-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
4145 * file.c (panel_operate_flags): Only show this dialog box if it is
4146 a copy or move operation
4148 1999-01-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
4150 * background.c (do_background): Make it a bit saner. Now we store
4151 a per-child-process FileOpContext structure.
4153 * fileopctx.h: New file with declarations for the file operation
4156 * fileopctx.c (file_op_context_new): New function to create a file
4157 operation context with the default file mask values.
4158 (file_op_context_destroy): New function to destroy a file
4159 operation context and its associated UI, if appropriate.
4161 * filegui.h: Use complete prototype for fmd_init_i18n().
4163 * filegui.c (FileOpContextUI): New structure that describes the UI
4164 and internal data for file operation contexts in the text mode
4166 (file_op_context_create_ui): Renamed from create_op_win() and
4167 made it use a context instead of global variables.
4168 (file_op_context_destroy_ui): Likewise, renamed from
4170 (fmd_widgets): Removed an #ifdef HAVE_XVIEW bit and moved the
4171 initialization of the result pointers to file_mask_dialog(), as we
4172 need to use the pointers to the fields inside the file op context now.
4173 Made all the functions use a file operation context.
4174 (file_mask_dialog): Always call fmd_init_i18n(); it will take care
4175 of idempotence by itself.
4176 (fmd_init_i18n): Now the code that makes sure this function is
4177 only called once is here.
4179 * cmd.c (check_for_default): Make it use a file operation context.
4180 * tree.c (tree_copy): Likewise.
4181 (tree_move): Likewise.
4182 (tree_rmdir_cmd): Likewise.
4184 * file.c: Removed file_progress_replace_progress and
4185 file_progress_replace_filename -- they are only used in filegui.c
4186 as part of the UI for the file operation context.
4187 (panel_operate_generate_prompt): Made static.
4188 (panel_operate_generate_prompt): Always call fmd_init_i18n(); it
4189 will take care of idempotence by itself.
4190 (panel_operate): Removed the panel_operate_def() function, and
4191 made panel_operate() take an extra "ask_user" argument.
4192 (query_recursive): Made static.
4194 * background.c (background_attention): Made static.
4195 (register_task_running): Made static.
4196 (do_background): Now takes a file operation context as an
4197 argument. It stores the pid of the child there.
4199 * Makefile.in: Added fileopctx.[ch].
4201 1999-01-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
4203 * widget.c (listbox_new): Assing l->height.
4205 1999-01-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
4207 * main.c (update_one_panel_widget): GNOME version does the panel
4208 update here (this is an optimization, as we do not want do_refresh
4211 * dialog.c (do_refresh): Remove this optimization as it was
4212 disabling the repainting of the screen contents.
4214 * hotlist.c (done_hotlist): The hotlist might not be loaded
4217 1999-01-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
4219 * widget.c (listbox_new): Under GNOME, height of the listbox might
4220 be less than zero (due to LINES/COLS being set to zero there). So
4221 for bow, set the height to 1. This needs to be propery computed
4222 in x_create_listbox.
4224 * main.c (main): Do not load the hotlist here anymore. We
4225 auto-load it on the setup(?).
4227 1998-12-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
4229 * main.c (main): Removed old, unused code.
4230 (setup_panels_and_run_mc): Register the corba server here, not
4231 before, as the program is not ready to accept any commands yet.
4233 * screen.c (panel_set_sort_order): New routine to set the sorting
4235 (panel_re_sort): New routine to force a resort on a panel.
4237 * main.c (sort_cmd): Use the new routines.
4239 1998-12-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
4241 * cmd.c (check_for_default): Make this compile.
4243 Tue Dec 29 22:25:34 1998 Timur Bakeyev <mc@bat.ru>
4245 * mountlist.c: Compress all xBSD systems to one line and add check
4246 for MOUNT_UFS - it seems, that 4.4BSD and 4.4BSD2 systems different-
4247 ly handles FS names. (currently affects BSDI and FreeBSD)
4249 Tue Dec 29 16:34:02 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4251 * file.c (progress_update_one): Ignore files in subdirectories
4252 when panel totals haven't been computed.
4254 (erase_dir, erase_file): update progress bar (i.e. make it work
4257 (panel_operate_flags): Don't compute panel totals for OP_MOVE.
4258 When moving files on the same filesystem computing totals might
4259 last much longer than the actual move operation.
4261 (various places): adpations for the above changes.
4263 Mon Dec 28 22:15:43 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4265 * slint.c (try_alloc_color_pair): Changed hardcoded values into
4268 Mon Dec 28 20:22:59 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4270 * color.c, text.c: Added color "stalledlink" which is used for
4271 stalled symbolic links. Formerly "viewunderline" was used for
4272 this (IMO bad because function and name didn't match).
4273 According to the man page the color keyword for executable files
4274 is `executable' and not `execute' -- changed.
4276 * color.c, color.h: When using SLang some color indexes are not
4277 freely choosable (DEFAULT_COLOR clashed with A_BOLD_REVERSE).
4278 Solved by adding holes in color_map.
4280 * find.c (do_search): fixed possible memory leak
4282 Sat Dec 26 09:53:39 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4284 * layout.c: include sys/ioctl.h to get definition of TIOCGWINSZ
4285 (fixes problem with screen resize).
4287 Fri Dec 25 20:19:57 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4289 * file.c (panel_operate_flags): Don't change file progress count and
4290 size twice for every file.
4292 (panel_compute_totals): Initialize return values to zero before
4293 calculating anything.
4295 (panel_operate_def, panel_operate): return a value
4297 Thu Dec 24 19:00:05 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4299 * screen.c (recalculate_panel_summary): new function which recalculates
4300 the summary information for the mini-status.
4302 * screen.c (panel_reload): use recalculate_panel_summary
4304 * screen.c (do_file_mark): Honour that dirsizes computed is now a
4307 Thu Dec 24 18:53:16 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4309 * option.c: Added Compute Totals to the configuration dialog.
4311 * file.c (compute_dir_size): made non static
4313 (panel_operate_flags): Don't compute directory sizes if verbose
4316 Thu Dec 24 18:42:52 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4318 * cmd.c (dirsizes_cmd): Rewritten to use compute_dir_size as suggested
4319 by Miguel, i.e. get rid of du. Now the dirsizes_cmd honours a
4320 selection and computes sizes only for marked directories. Possible
4321 improvement: add a dialog (or C-C?) to abort computation.
4323 * dir.h (file_entry), panel.h (WPanel): Made the dirsizes computed
4324 flag a per file flag.
4326 * dir.c, find.c, panelize.c, screen.c: Adapted to new file_entry and
4329 * features.inc: Deleted DUSUM information
4331 * mc.hlp: remade because of changes in doc/mc.1.in
4333 1998-12-22 Jonathan Blandford <jrb@redhat.com>
4335 * file.c: add a HAVE_GNOME only function
4337 Mon Dec 21 22:39:35 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4339 * mountlist.c: Define xBSD on FreeBSD.
4341 * main.c (parse_an_arg): New function, popt callback. Option
4342 parsing in gmc was broken. The gnome*_init_with_popt_table free
4343 the option tables and gmc tried to use the option tables later.
4345 * main.c (handle_args): In the Gnome edition don't parse the
4346 options a second time.
4348 * boxes.c (configure_vfs), setup.c: Deleted obsolete options.
4349 tar.gz files are now always unzipped to a temporary file on disk.
4351 Mon Dec 21 14:28:55 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4353 * filenot.c (my_mkdir_rec): Someone broke this completely by deleting
4354 a line. Funny things happen if you use an already freed pointer.
4355 Improved error handling: try to make directories recursivly until
4356 mkdir succeeds or fails with errno != ENOENT. Now you will get the
4357 correct error message when you don't have permission to create a
4360 * mountlist.c: Deleted function prototypes for strdup and strstr,
4361 they might conflict with definitions in the system header files.
4363 Wed Dec 16 14:41:15 1998 Paul Sheer <psheer@obsidian.co.za>
4365 * gtkedit.c, editwidget.c: gnome selection now works with the
4368 Wed Dec 16 06:27:00 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4370 * screen.c (Xtry_to_select): Don't select a similar file when
4371 "name" can't be found in the panel (when deleting files the
4372 selection jumpped from the deleted "file" to a directory which
4373 started with the same character as "file", annoying).
4374 Strip known vfs suffixes from "name" before trying to select
4375 (I think Timur made this suggestion a few months ago). Know the
4376 vfs is mature enough to do this.
4378 1998-12-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
4380 * dir.c (link_isdir): Remove unused variable.
4382 Sun Dec 13 18:35:05 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4384 * screen.c (panel_reload): Don't set panel->selected to zero here,
4385 keep it's value if possible or set it to panel->count - 1 (I disliked
4386 the jumping cursor when deleting files).
4388 1998-12-11 Michael Fulbright <msf@majestic.labs.redhat.com>
4390 * file.c (panel_operate_generate_prompt): Changes the text
4391 for GNOME dialogs. --jrb
4393 1998-12-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
4395 * main.c (try_to_select): We do not need to select the item
4396 manually in this case, as the X code will do this for us.
4398 Fri Dec 11 00:05:50 1998 Paul Sheer <psheer@obsidian.co.za>
4400 * syntax.c, slint.c, color.c, color.h: editor now has its
4401 own color configuration so you can set editor background
4402 colors with MC_COLOR_TABLE.
4404 1998-12-10 Paul Sheer <psheer@obsidian.co.za>
4406 * syntax.c: perl syntax highlighting. syntax highlighting
4407 bug fizes for python and sh.
4409 * edit.c: new method of finding line offsets from line
4410 number (for cooledit for python stuff).
4412 Mon Nov 30 21:10:30 1998 Pavel Machek <pavel@bug.ucw.cz>
4414 * file.c (copy_file_file): minor code beatifulling: replace goto's
4415 with while loops (it is both shorter and nicer :-)
4416 (panel_operate): hopefully done WANT_STALE_DATA right. We really
4417 should kill ftpfs_hint_reread hack soon.
4419 * cmd.c (dirsizes_cmd): report error if you are on non-local
4420 filesystem. (As oposed to silently failing.)
4422 1998-12-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
4424 * screen.c (panel_reload): Set panel->selected to zero here, this
4425 will at least guarantee that we do not try to fetch anything
4428 * main.c: The bar2 is gone as well.
4430 Tue Dec 8 19:19:39 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4432 * cmd.c (dirsizes_cmd): Fixed possible buffer overflow
4434 1998-12-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
4436 * screen.c (do_enter): Return the value from this.
4438 1998-12-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
4440 * dir.c (link_isdir): Fetch the information from
4441 file->f.link_to_dir, since we already have it.
4443 * dir.h (file_entry): Removed the `cache' field in this structure,
4444 as it was only used for the deprecated Xview version.
4445 Also, removed the `exists' field, as it was not being used anywhere.
4447 * dir.c: Removed all occurrences of file_entry->cache.
4449 * find.c: Removed all occurrences of file_entry->cache.
4451 * panelize.c: Removed all occurrences of file_entry->cache.
4453 * screen.c (do_enter_on_file_entry): New public function that
4454 implements the functionality in do_enter(), but based on a file
4455 entry rather than on a panel.
4456 (do_enter): Use do_enter_on_file_entry() with the selection of the
4457 panel as an argument.
4459 1998-12-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
4461 * cmd.c, tree.c: Updated to the new file.c api.
4463 * file.c: (copy_file_file, copy_dir_dir, move_file_file,
4464 move_dir_dir): Updated to work with the new updating stuff.
4466 * setup.c: New configuration option to compute the totals to be
4469 * file.c (compute_dir_size, panel_compute_totals): New routines to
4470 compute the total ammount of information that is going to be
4473 1998-12-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
4475 * ext.h: GNOME edition uses a different set of .ext files.
4477 * lib/mc-gnome.ext.in: New file with GNOME-specific bindings.
4479 1998-12-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
4481 * GNORBA integration. We now produce two binaries: gmc and
4482 corba-gmc (that way, I dont interfere with other's work).
4484 * Added prototypes, made private functions static, clean up
4485 various silly warnings.
4487 * main.c (main): Removed crufty init_sigfatal code.
4489 * cmd.c (do_link): More slang dependecies are fixed for the X
4492 * keys.h (enum): Moved key definitions here.
4494 * tty.h: MOve towards slang freedom for the GNOME port.
4496 1998-12-01 Jonathan Blandford <jrb@redhat.com>
4498 * file.c (panel_operate_generate_prompt): moved from filegui.c
4500 1998-11-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
4502 * panel.h (WPanel): Added the missing tree/pane/view_table fields
4503 to the Gnome part of the structure.
4505 1998-11-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
4507 * cons.saver.c (main): Make sure stderr is always valid.
4508 (main): Also check that stderr_fd is not -1.
4510 Wed Nov 25 22:16:19 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4512 * cmd.c (dirsizes_cmd): Quote characters with a special meaning
4513 when passing it to du.
4515 1998-11-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
4517 * dlg.c (dlg_try_hotkey): Removed unused declaration of input_event.
4518 (dlg_key_event): Return 1 if handled the tab key.
4520 * filegui.h: Added prototypes for file_progress_show_{source,target,deleting}().
4522 Sun Nov 22 22:30:50 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4524 * autogen.sh: replaced "cat *.m4" with a call to aclocal. Concatenate
4525 mc-aclocal.m4 and gettext.m4 to acinclude.m4. The other way round
4526 would have been to add three more m4 files to the replaced cat line
4527 (including cond.m4 from automake-1.3b).
4529 Fixed OBJ_DIR handling.
4531 Sun Nov 15 00:37:58 1998 Pavel Machek <pavel@bug.ucw.cz>
4533 * mad.c (mad_tempnam): needed wrapper for tempnam added
4535 1998-11-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
4537 * dlg.c (destroy_dlg): Do not refresh.
4539 * filegui.c: New file. We keep all of the user interface code for
4540 the text edition in this file now. This should be a per-GUI port
4543 1998-11-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
4545 * panel.h (WPanel): Instead of the "#ifdef GNOME" mess in the
4546 WPanel structure, we now have a single opaque pointer to UI data,
4547 called port_ui. GUI stuff specific to each port should be here.
4548 This is a work in progress.
4550 1998-11-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
4552 * setup.c: Removed the icons_snap_to_grid and
4553 want_transparent_{icons,text} options.
4555 Thu Nov 5 12:10:10 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4557 * file.c (panel_operate): check for null pointer before passing it
4560 Wed Nov 4 17:51:43 1998 Pavel Roskin <pavel_roskin@geocities.com>
4562 * src/findme.h: added from popt-1.2 by RedHat
4564 * src/Makefile.in: appropriate changes to use new popt
4566 Sun Nov 1 20:59:05 1998 Pavel Machek <pavel@bug.ucw.cz>
4568 * file.c (erase_file): translated goto into while loop (it is both
4569 shorter AND cleaner)
4571 * subshell.c (feed_subshell): do NOT print anything if we get
4572 errors/eofs from read(subshell) - this fixes (or at least hides)
4573 nasty bug where typing "exit" on mc prompt prints lots of garbage
4574 and falls into infinite loop. Someone with better knowledge should
4575 read feed_subshell(), and make it handle errors properly. (Why do
4576 we ignore EIO for example?)
4578 Sun Oct 18 22:56:17 1998 Pavel Machek <pavel@bug.ucw.cz>
4580 * view.c: we now rely on sfs to do file decompressing for us. That
4581 has advantage of displaying #ugz at first line, so user knows what
4582 we are doing behind his back
4584 * view.c: fix indentation, fallback to read whole file if mmap fails.
4586 1998-11-01 Federico Mena Quintero <federico@nuclecu.unam.mx>
4588 * setup.c: #ifdef'ed out stuff in the menus that will get changed
4589 as I rewrite the desktop part.
4591 1998-10-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
4593 * layout.c (print_vfs_message): Use g_snprintf instead of
4597 1998-10-30 Sung-Hyun Nam <namsh@lgic.co.kr>
4599 * color.c, slint.c: support transparent background if user use
4600 'default' keyword for background color.
4602 Mon Oct 26 00:31:53 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4604 * configure.in, Make.common.in: Split CPPFLAGS into CPPFLAGS and
4605 MCCPPFLAGS. The last one contains references to variables which are
4606 not available in every Makefile.in (namely intl/Makefile.in). Without
4607 the split `-I ' was passed to the compiler (the compiler on DU 4.0
4608 interprets -I as "don't search include files in /usr/include").
4610 Thu Oct 22 20:41:50 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4612 * configure.in (subshell): Don't define inline to be empty
4613 when compiling with non-gcc compiler. AC_C_INLINE (invoked in
4614 AM_GETTEXT_GNU) already defines inline if necessary.
4616 Thu Oct 22 20:41:16 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4618 * panelize.c (do_external_panelize): Not zeroing some fields
4619 in cpanel led sometimes to segfaults.
4621 Thu Oct 22 20:31:17 1998 Pavel Roskin <pavel_roskin@geocities.com>
4623 * lib/mc.ext.in: *.jar and *.JAR treated like *.zip and *.ZIP
4625 Fri Oct 16 12:10:56 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4627 * cmd.c (quick_chdir_cmd): you must check for return code of
4628 do_cd(). (Fixed error for here, but more such bugs are present in
4629 src/ tree. Or maybe move error checking into do_cd?)
4631 * command.c: warn user if he is pressing enter while on non-local
4632 filesystem. (Prev. behaviour was fail silently to do anything,
4635 Mon Oct 12 22:47:53 1998 Pavel Machek <pavel@bug.ucw.cz>
4637 * file.c (copy_file_file): MCCTL_SETREMOTECOPY is no longer used
4639 * file.c (copy_file_file): do_reget is now correctly done using
4642 Wed Oct 7 22:20:37 1998 Pavel Machek <pavel@bug.ucw.cz>
4644 * file.c: Ask user if (s)he wants to delete incomplete file
4646 Sun Oct 11 20:21:20 1998 Peter Kleiweg <kleiweg@let.rug.nl>
4648 * mfmt.c (main): When there are an even number of empty lines
4649 between messages, all goes well, but when the number of empty
4650 lines between messages is odd, the program fails.
4652 Sun Oct 11 20:11:16 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4654 * setup.c: Option ftpfs_use_unix_list_options was saved from
4655 and restored to the wrong variable (ftpfs_use_passive_connections).
4657 Mon Oct 5 21:33:14 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4659 * screen.c (parse_display_format): Don't dereference NULL pointer
4660 when format string is an empty string.
4662 Mon Oct 5 19:59:56 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4664 * main.c (translate_url_to_new_syntax): Translate ftp:// to an
4665 absolute path instead of a relative path (fix to "hotlist" bug
4666 reported by Andrej). This means we drop the "return to last dir"
4667 feature for ftpfs (when leaving ftpfs with ".." returns to the
4668 directory visited before entering the ftpfs).
4670 Sat Oct 3 00:54:23 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4672 * gtkedit/Makefile.in (EDITOBJS): removed one wrong \\ (line
4675 Thu Oct 1 18:43:34 1998 Pavel Roskin <pavel_roskin@geocities.com>
4677 * file.c: Commented out search for egrep because execvp() does
4680 * utilunix.c: vfs_uid should not be used if VFS is disabled
4682 Tue Sep 29 17:53:56 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4684 * main.c: removed stupid reference to {sfs,extfs}_which
4686 * screen.c: fixed higlighting to go for longest match if it does
4687 not find exact match. This is so that it works well with vfs (and
4688 needs _NO_ knowledge about vfs layer).
4690 Tue Sep 29 14:02:56 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4692 * layout.c (print_vfs_message): fixed buffer overrun by
4693 vsnprintf. Unfortunately I have no clue how to do this portably.
4695 Tue Sep 29 11:42:32 1998 Pavel Roskin <pavel_roskin@geocities.com>
4697 * setup.c: Corrected code which prevents using icon view by
4698 ports which don't support it
4700 Mon Sep 28 21:55:13 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4702 * find.c: Changed hotkey of the continue-button (both Chdir and
4705 * Makefile.in: search config.status in builddir and not in rootdir,
4706 i.e. make it compile for builddir != srcdir
4708 Wed Sep 23 14:06:44 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4710 * src/file.c: Made file.c use new O_LINEAR mode (so copying from
4711 ftp works nicely, again)
4713 Fri Sep 18 14:15:43 1998 Pavel Roskin <pavel_roskin@geocities.com>
4715 * src/mad.c: All messages are sent to stderr and terminate with \r\n
4717 * src/hotlist.c: Harmless memory leak fixed
4719 * xv/Makefile.in, xv/xvmain.c, xv/xvscreen.c: Minor fixes to
4720 make compilation of the XV port possible (currently without
4723 Thu Sep 17 07:32:23 1998 Norbert Warmuth <k3190@fh-sw.de>
4725 * Makefile.in: After creating symlinks invoke another instance of
4726 make to build libvfs.a. Otherwise make will not know how to build
4727 the object files if symlinks have been created.
4728 Added target cleansourcelinks (invoked with make distclean).
4730 Tue Sep 15 22:41:24 1998 Paul Sheer <psheer@obsidian.co.za>
4732 * edit.c, editwidget.c, gtkedit.c: fixed segfault when trying to
4733 edit a non-file under gmc.
4735 Tue Sep 15 21:52:00 1998 Norbert Warmuth <k3190@fh-sw.de>
4737 * mc.hlp, doc/mc.1.in, doc/mc.sgml: updated my EMail address
4739 Tue Sep 15 20:51:42 1998 Norbert Warmuth <k3190@fh-sw.de>
4741 * setup.c: save and restore new global variable/option
4742 ftp_use_unix_list_options
4744 Tue Sep 15 01:02:34 1998 Paul Sheer <psheer@obsidian.co.za>
4746 * gtkedit: Directory added. This directory contains all the editor
4747 code modified to work with gnome. Mcedit now works properly under
4748 gnome with a slightly reduced set of features.
4750 * gscreen.c gscreen.h screen.c: Modified to respond to F4 on a file
4751 and start the new gtkedit internal editor.
4753 1998-09-14 Norbert Warmuth <k3190@fh-sw.de>
4755 * file.c (move_dir_dir): Fixed severe bug reported by Andrew Pechenov
4756 <zx80@demo.ru> (losing files when moving directories cross filesystem
4757 boundaries): make sure erase_list is emptied always not only when we
4760 Sat Sep 12 02:59:43 1998 Timur Bakeyev <mc@bat.ru>
4762 * screen.c: Xtry_to_select() Remove extfs hack to the main.c. Change
4763 for() cycle to the x_basename() call (Thanks to Pavel Roskin).
4764 Add (key_callback) do_enter() to prevent warnings.
4766 * main.c: Rename cd_try_to_select() to the get_parent_dir_name(). Now
4767 it process VFS postfixes too. Reduced number of loops against prev hack.
4769 Fri Sep 11 15:27:59 1998 Pavel Machek <pavel@ucw.cz>
4771 * screen.c: make cd .. from extfs file highlight it
4773 Tue Sep 8 13:10:32 1998 Pavel Roskin <pavel_roskin@geocities.com>
4775 * autogen.sh: Don't destroy aclocal.m4 if "macros" directory
4778 * layout.c: Use stdout instead of stderr in set_hintbar()
4780 Mon Aug 31 12:40:29 1998 Pavel Machek <pavel@ucw.cz>
4782 * cmd.c: added view_file_cmd which asks user which file to view -
4783 _very_ usefull with vfs (now you can browse web with mc: try
4784 /#url:http:||atrey.karlin.mff.cuni.cz|~pavel#uhtml)
4786 Thu Aug 27 19:52:45 1998 Pavel Roskin <pavel_roskin@geocities.com>
4788 * Make.common.in: Don't define VERSION anymore
4790 * configure.in: this is the right place for VERSION definition
4792 * acconfig.h: does not include file "VERSION" anymore
4794 * config.h.in: rebuilt by autoheader
4796 * VERSION: removed from CVS and added to .cvsignore since it
4797 is rebuilt every time as configure is run
4799 1998-08-20 Raja R Harinath <harinath@cs.umn.edu>
4801 * mad.h: Include stdlib.h/malloc.h first, to prevent prototypes
4802 from being clobbered by the subsequent macro defines.
4804 Wed Aug 12 15:56:46 1998 Pavel Roskin <pavel_roskin@geocities.com>
4806 * edit.h: added "../" before some includes to avoid unnecessary
4807 "-I" options for the PC port makefiles.
4809 Sun Aug 9 22:39:12 1998 Janne Kukonlehto <jtklehto@paju.oulu.fi>
4811 * mad.h (calloc): Added parentheses around the arguments as
4812 suggested by Steef Boerrigter <sxmboer@sci.kun.nl>.
4814 Fri Jul 31 09:04:35 1998 Pavel Roskin <pavel_roskin@geocities.com>
4816 * syntax.c: makefile* will be highlighted as Makefile*
4818 1998-07-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
4820 * main.c (translated_mc_chdir): Quick hack to make the old
4821 url-like pathnames to be used on the command line.
4823 1998-06-22 T.E.Dickey <dickey@clark.net>
4825 * keyxdef.c: Fix for compiling with ncurses.
4827 Fri Jul 24 00:44:37 1998 Tom Tromey <tromey@cygnus.com>
4829 * mc-local.m4 (AC_STRUCT_LINGER): Moved into macros/linger.m4.
4830 * autogen.sh: Include linger.m4 in aclocal.m4.
4831 * Makefile.in (GNOME_M4_FILES): Include linger.m4.
4833 Thu Jul 23 22:44:16 1998 Tom Tromey <tromey@cygnus.com>
4835 * Makefile.in (aclocal.m4): Depend on all source files. Include
4836 gnome-vfs.m4 and gnome-undelfs.m4.
4837 (GNOME_M4_FILES): New macro.
4838 * autogen.sh: Include gnome-vfs.m4 and gnome-undelfs.m4 in
4840 * configure.in: Use GNOME_VFS_CHECKS and GNOME_UNDELFS_CHECKS
4841 macros instead of in-line checks. Create vfs/Makefile from
4844 Thu Jul 23 19:49:12 1998 Pavel Roskin <pavel_roskin@geocities.com>
4846 * hotlist.c: corrected layout of the warning which appears
4847 if ~/.mc doesn't exist. Appropriate changes in translations.
4849 Wed Jul 15 00:41:01 1998 Paul Sheer <psheer@obsidian.co.za>
4851 * edit.c, editwidget.c, * syntax.c: Syntax
4852 editdraw.c, editmenu, editcmd.c: highlighting for Pascal
4853 Added column text highlighting added.
4854 and block movements.
4856 1998-07-04 Carsten Schaar <nhadcasc@fs-maphy.uni-hannover.de>
4858 * main.c (main): 'session_management_setup' will be called after
4861 Wed Jun 18 Pavel Machek <pavel@ucw.cz>
4863 * i18n.h: we do not want i18n in case of compiling standalone
4866 Fri Jun 5 23:34:20 1998 Timur I. Bakeyev <timur@comtat.kazan.ru>
4868 * screen.c (file_entry_color): take care about BSD core dumps
4869 which have names program.core instead of core
4871 Mon Jun 1 15:41:20 1998 Norbert Warmuth <k3190@fh-sw.de>
4873 * main.c (translate_url_to_new_syntax): translate the common
4874 ftp url syntax to the syntax used by the new vfs code.
4876 (_do_panel_cd): First translate the path if necessary. This makes
4877 it possible to enter ftp://host on the commandline and in the
4878 directory hotlist. We might need to move the translation code
4879 to the vfs layer if there are other places where we want to enter
4882 Mon Jun 1 12:33:08 1998 Alexander V. Lukyanov <lav@yars.free.net>
4884 * configure.in: allowed to use `configure --with-included-gettext'
4885 on systems (like solaris) that have their own libintl
4887 1998-05-31 Miguel de Icaza <miguel@nuclecu.unam.mx>
4889 * complete.c (filename_completion_function): Use the vfs routines
4890 for name completion.
4892 1998-05-31 Jakub Jelinek <jj@ultra.linux.cz>
4894 * complete.c (complete_engine): Fix completions.
4896 Sun May 31 10:23:01 1998 Norbert Warmuth <k3190@fh-sw.de>
4898 * key.c (define_sequence): If a sequence clashes the last
4899 definition made will be used. This makes it possible to override
4900 wrong definitions in terminfo/termcap database with learn keys (or
4901 the appropriate entries in mc.lib and ~/.mc/ini).
4903 * widget.c (show_hist): Don't display the listbox partly
4904 off screen (the left panel's history started in column - 2).
4906 * keyxdef.c: include tty.h instead of myslang.h as suggested by
4907 Tamasi Gyorgy <gt_cosy@usa.net>
4909 Fri May 29 15:41:19 1998 Alexander V. Lukyanov <lav@yars.free.net>
4911 * widget.c (update_input): this patch allows entering 8-bit
4912 characters in input fields without screwing attributes. (the
4913 same old sign extension...)
4915 Wed May 27 22:23:48 1998 Ed Cogburn <ecogburn@greene.xtn.net>
4917 * lib/xterm.ti: The 'xterm-color' definition needs 'sgr0'. The tic
4918 program from ncurses 4.2 doesn't like the xterm.ti file that comes
4921 Wed May 27 15:29:01 1998 Alexander V. Lukyanov <lav@yars.free.net>
4923 * key.c (get_key_code): characters with high bit set were input
4924 as 0x80 char when use_8th_bit_as_meta was set
4926 1998-05-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
4928 * ext.h (MC_USER_EXT): New name for the per-user extension file
4929 (this needs redoing to concatenate this + the system stuff instead
4930 of the overwrite stuff we have now). Now it is called the ~/.mc/ext-n
4932 Mon May 25 23:32:35 1998 Norbert Warmuth <k3190@fh-sw.de>
4934 * editdraw.c (print_to_widget): Ifdef'd SLang specific code in order
4935 to make it compile with ncurses. Syntax highlighting in the
4936 internal editor is already disabled when SLang isn't used.
4938 1998-05-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
4940 * widget.c (port_region_marked_for_delete): New per-port
4941 piece of code: Provides a way for good selection killing.
4943 Sun May 24 02:45:03 1998 Norbert Warmuth <k3190@fh-sw.de>
4945 * utilunix.c, util.h (errno_dir_not_empty): deleted
4947 Sat May 23 22:29:57 1998 Norbert Warmuth <k3190@fh-sw.de>
4949 * file.c (check_dir_is_empty): New function which takes a path and
4950 returns -1 on error, 1 if there are no entries besides "." and
4951 ".." in the directory path points to, 0 else. This function
4952 actually opens and reads the directory and doesn't do tricks we
4953 used to do with rmdir.
4955 * file.c (erase_dir, erase_dir_iff_empty): Use check_dir_is_empty
4956 to detect non empty directories. The old code tried to remove the
4957 directory and decided on errno whether the failure of rmdir was
4958 caused by a non empty directory or whether there was a different
4960 Unfortunatly not every filesystem sets errno to EDIRNOTEMPTY if
4961 you try to delete a non empty directory. Namely the linux user
4962 space nfs server sets errno to EIO, Suns nfs server sets it to
4963 EEXIST and the AIX nfs server sets it to ??? (Steve reported
4964 problems on AIX so I guess AIX sets errno to a value we currently
4967 1998-maj-18 Tamasi Gyorgy (gt_cosy@usa.net)
4969 * lib/mc.menu: 'Z' on 'tar.Z' and 'tar.z' files: '%f' -> '$1'.
4971 * lib/mc.ext.in.qnx.diff, lib/mc.menu.qnx.diff (QNX): modified
4972 'mc.ext.in' (tar -t: output to stderr); modified 'mc.menu' (tar is
4973 not GNU tar: doesn't know '-z'); support for '*.tar.F':
4974 'freeze'-compressed tar files [No automatic configure/install
4975 implemented: patches must be applied before running 'configure'
4976 (mc.ext.in.qnx.diff: this patch can be not only QNX-specific...)]
4978 * lib/Makefile.in: 'mc.ext.in.qnx.diff' and 'mc.menu.qnx.diff' added
4983 SLTT_TRANSP_ACS_PATCH dependant code:
4985 The problem: some terminals (QNX/qansi*, SCO OS5/ansi [?]) map the
4986 whole upper half of the ASCII table to the lower half, when
4987 alt-char-set is activated with the smacs/as string-sequence. This
4988 means, that if 0 <= ch < 128 written to the terminal, it will be
4989 translated to (ch+128) automatically by the terminal: so not only
4990 the line-drawing characters can be written, when the alt-char-set
4991 is activated. It implicitly means, that space, NL, CR, etc.
4992 characters (exactly: anything besides the "standard" line drawing
4993 characters) can not be written directly to the terminal, when the
4994 alt-char-set is activated, because writing these characters
4995 doesn't cause an implicit/temporary switching-back to the standard
4998 The original code in SLang assumes that space, NL, CR, etc. can be
4999 printed when alt-char-set is activated. If SLTT_TRANSP_ACS_PATCH
5000 is defined, the modified code will not use this assumption.
5001 [Remark: the patch-code is not the most exact solution, but
5004 QNX_QANSI_SLANG_COMPAT_ACS_PATCH dependant code:
5006 A more OS/terminal-specific solution for the problem mentioned
5007 above (->SLTT_TRANSP_ACS_PATCH).
5009 If QNX_QANSI_SLANG_COMPAT_ACS is defined, the default smacs/sa,
5010 rmacs/ae, acsc/ac [and sgr/sa, if it would be used!] command
5011 sequences will be replaced internally with the "old style"
5012 (pre-QNX 4.23) sequences in case of QNX/qansi terminals. Using
5013 these optional command sequences the terminal remains compatible
5014 with the original SLang code (without using the workaround-code
5015 enabled by defining SLTT_TRANSP_ACS_PATCH).
5019 Currently SLTT_TRANSP_ACS_PATCH is not auto-configured by
5020 'configure'. (Must be manually defined...)
5022 There is some (QNX-specific) auto-configuration hand-coded in the
5025 #ifdef SLTT_TRANSP_ACS_PATCH
5026 # if defined(__QNX__) && defined(QNX_QANSI_SLANG_COMPAT_ACS)
5027 # undef SLTT_TRANSP_ACS_PATCH
5030 # if defined(__QNX__) && !defined(QNX_QANSI_SLANG_COMPAT_ACS)
5031 # define QNX_QANSI_SLANG_COMPAT_ACS 1
5035 * slang/slutty.c: "newtty.c_iflag &= ~(ECHO | INLCR | ICRNL);"
5036 ECHO(0x08) is a c_lflag bit, it means PARMRK(0x08) in c_iflag. (!?!)
5038 * src/file.c: 'do_reget' can be extern if (USE_VFS && USE_NETCODE),
5041 * src/find.c (search_content()): Variable 'i' "must be" 'int', not
5042 'char'. ["i == -1": (buggy?) WCC 10.6 doesn't convert automatically
5043 (int)(-1) to (char)(-1) (GCC does), so "comparison result always 0"
5044 warning produced. It is cleaner to define 'i' as 'int', than cast
5045 '-1' to 'char', because 'read()' returns 'int'.]
5047 * src/key.c (init_key()): Call load_xtra_key_defines() and clear
5048 'use_8th_bit_as_meta' by default under QNX, if a 'qnx*' terminal
5049 detected. (A saved config file (mc.ini) can override it later...)
5051 * src/key.h: Declare load_xtra_key_defines().
5053 * src/keyxdef.c: Provides a method to define some platform-specific
5054 additional key mappings. (e.g. QNX terminals can handle most of
5055 META-? combinations as ALT-?...) ('keyxdef.c' currently not listed
5058 * src/layout.c: TIOCGWINSZ must be available (so <sys/ioctl.h> (?)
5059 included), because window-resizing code doesn't work, if not defined.
5061 * src/main.c: 'print_usage()' is reserved name in the QNX run-time
5062 library, so 'print_usage()' renamed to 'print_mc_usage()'
5064 * src/mouse.c (QNX): ncurses 1.9.8a ported to QNX doesn't provide the
5065 'SP' pointer as a global symbol in the library, so the keyok()
5066 emulation currently can not be used under QNX (4.24 & Watcom C 10.6
5069 * src/slint.c (QNX): 'qansi*' terminals added to the color_terminals[]
5072 * src/subshell.c, src/utilunix.c (QNX): include <unix.h> to get
5073 prototype for exec*()!!! [See README.QNX/Section 1.4 about the
5074 dangerous "No prototype for <function>" warnings emitted by Watcom C,
5075 if <function> is a 'printf()'-style function having variable number
5076 of arguments and you compile your source with the default register
5077 calling convention!!!]
5079 * Makefile.in: 'keyxdef' module added to SRCS and OBJS.
5081 * <mc-root>/README.QNX: QNX-specific notes.
5083 * <mc-root>/configure (line 3369), <mc-root>/configure.in (line 88):
5084 'test x$CCOPTS = x;' modified to 'test "x$CCOPTS" = x;'
5086 * <mc-root>/Makefile.in: README.QNX added to DISTMAIN.
5088 Thu May 21 00:09:45 1998 Norbert Warmuth <k3190@fh-sw.de>
5090 * menu.c (menubar_event): Don't set menubar->selected to the
5091 invalid value -1. Fix for the bug reported by root@liepa.soften.ktu.lt
5093 * menu.c (menubar_drop_compute): removed the check for inrange
5094 items which isn't necessary any longer.
5096 Wed May 20 16:27:56 1998 Norbert Warmuth <k3190@fh-sw.de>
5098 * widget.c (history_put): input line history was defunct because
5099 there was an #ifndef where an #ifdef should be.
5100 Btw. PORT_WIDGET_WANTS_HISTORY seems incomplete because a lot of
5101 history code is included even when this define is undefined.
5103 1998-05-19 Tamasi Gyorgy <gt_cosy@usa.net>
5105 * src/*: Until I get a better ChangeLog: Tamasi's port of the
5108 1998-05-19 Alexander Lukyanov <lav@yars.free.net>
5110 * Makefile.in: Distirbution fix so that people are not forced to
5113 1998-05-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
5115 * ext.c: Memory leak fixed.
5117 Mon May 18 22:24:09 1998 Norbert Warmuth <k3190@fh-sw.de>
5118 * lib/mc.ini.in: s/reges/regex/
5120 * main.c (process_args): return void, the return value was only
5121 used once but wrong (-h displayed help twice).
5122 (handle_args): -h: don't display help twice
5123 (print_usage): Don't print program name and version, that's
5124 already done by version(0).
5126 * menu.c (menubar_paint_idx): Highlight Hotkeys also on slow
5127 terminals (hotkeys were not displayed at all).
5129 1998-05-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
5131 * menu.c (menubar_drop_compute): Check for inrange items.
5133 1998-05-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
5135 * color.c (init_colors): Provide X-only version of color
5138 Thu May 14 01:56:11 1998 Norbert Warmuth <k3190@fh-sw.de>
5140 * configure.in: Don't add -lintl to LIBS when included gettext is
5141 used (further checks for libraries would fail because libintl.a
5142 isn't build, yet). Instead use and substitute LINTL.
5144 * Makefile.in (OURLIBS): add @LINTL@
5146 Tue May 12 17:45:49 1998 <psheer@obsidian.co.za>
5148 * syntax.c: yet more minor modifications.
5150 1998-05-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
5152 * main.c: New default: auto-save setup.
5154 * screen.c (move_right, move_left): Add support for icon-view movement.
5156 1998-05-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
5158 * setup.c (panel_load_setup): On non-icon editions, fall back to
5161 Sun May 10 13:27:50 1998 Norbert Warmuth <k3190@fh-sw.de>
5163 * widget.c (handle_char): Don't try to to delete default text in
5164 input widget more than once. Right after MC's start copy_filename
5165 (ESC Enter) failed because a flag wasn't cleared while characters
5166 were stuffed into the commandline (Andrej reported this bug).
5168 * main.c (copy_readlink): usr mc_readlink instead of readlink
5170 * file.c: Changed default for the copy/move option "dive into
5171 subdir if exists" to off (note: this was only possible after the
5174 (copy_dir_dir): Activated the previously uncommented code which
5175 implements "Dive into subdirs". Even when there's no case where we
5176 actually would like that behaviour it is a documented feature.
5177 Though I don't wanted to change the default behavour. Hence the
5180 (file_mask_defaults): set dive_into_subdirs
5182 (file_mask_dialog): Fix for debian Bug #20727: Move operation with
5183 "[ ] Dive into subdir if exists" and destination filename not
5184 wildcarded. If destination is an existing directory then files
5185 will be moved into this directory. If destination is not an
5186 existing directory then src file will be renamed (one file
5187 selected) or an error will be displayed (more than one file
5190 (file_mask_dialog): made the option "Using shell patterns" local
5191 to the current copy/move operation, i.e. this option is always
5192 initialized with the global options's value. Previously it affected
5193 the global Options/Configuration/shell Patterns.
5194 Another possiblilty would be to make the global option a default
5195 option on startup and keep changes in the copy/move dialog
5196 (without saving these changes with save setup).
5198 * setup.c: Don't save and load options which can be changed
5199 outside the options menu. For example I don't like that
5200 preserve_uid_gid and dive_into_subdirs from the copy/move dialog
5201 are saved and restored (strange, what about the other options from
5203 It would be much cleaner to make these option read-only. This way
5204 one could edit ~/.mc/ini to provide default option setting on
5205 startup and "Save setup" wouldn't have side effects outside the
5208 Sun May 10 13:24:20 1998 Norbert Warmuth <k3190@fh-sw.de>
5210 * doc/mc.1.in, doc/mc.sgml, mc.hlp: Updated to reflect new default
5211 for dive into subdirs.
5213 Sun May 10 13:21:45 1998 Norbert Warmuth <k3190@fh-sw.de>
5215 * edit/syntax.c: Disable debug messages on stderr.
5217 * edit/edit.h: Added missing _()
5219 1998-05-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
5221 * layout.c (flag_winch): Propagate the window change to the slave
5222 pty even when not running our event loop. The resize_subshell
5223 routine is thread safe.
5225 * dlg.c (update_cursor, dlg_broadcast_msg_to): Do not send
5226 messages if no widgets are on the Dlg_head, this happens now with
5227 the gmc code, as we can have all of the windows shut down.
5229 Wed May 6 13:46:37 1998 Paul Sheer <psheer@obsidian.co.za>
5231 * syntax.c: more bug fixes.
5233 1998-05-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
5235 * view.c (view_quit_cmd): Use dlg_stop.
5237 * main.c (ctl_x_cmd): Implement ctl-x handling as a state of the
5238 key press events. Drop the usage of mi_getch to acomplish this
5240 (midnight_callback): Deal with the current map depending on the
5243 Mon May 4 10:21:31 1998 Norbert Warmuth <k3190@fh-sw.de>
5245 * background.c (message_1s1d): the unprocessed string with %d was
5246 passed to message_1s; fixed small memory leak
5248 * widget.c (button_callback): WIDGET_CURSOR: make cursor position
5249 dependend from button type (fixes the off by one bug in advanced
5252 * file.c (copy_file_file): Schedule deletion of short target file
5253 only when we created or truncated the target file and not already
5254 when we decided to overwrite an existing file.
5256 1998-05-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
5258 * boxes.c (task_cb): Use kill, not INT, as we are catching INT in
5261 Sat May 2 14:07:05 1998 Paul Sheer <psheer@obsidian.co.za>
5263 * setup.c: ALT('H') now shows a directory history - that
5264 ESC SHIFT-h or ALT-SHIFT-h
5266 Fri May 1 17:45:58 1998 Paul Sheer <psheer@obsidian.co.za>
5268 * syntax.c: initial support for LaTeX 2.09 files added,
5270 * syntax.c: some minor bug fixes. and reorganisation
5271 of context and keyword priorities.
5273 Fri May 1 11:24:21 1998 Paul Sheer <psheer@obsidian.co.za>
5275 * syntax.c: syntax highlighting segfaults when editing a binary
5278 Thu Apr 30 12:23:50 1998 Alex Tkachenko <alex@bcs.zp.ua>
5280 * src/file.c: lot of i18n of file Copy/Move/Delete operations. Maintainers
5281 of message catalogs please notice introduced op_names1 and formats for
5284 * src/boxes.c: i18n of background jobs control and quick cd
5287 * src/menu.c (menubar_arrange): resizing of menubar upon changes of
5288 window size is now controlled by preprocessor symbol RESIZABLE_MENUBAR
5289 (now it's off by default, as requested in mailing list). If it is off,
5290 menubar items are separated with fixed number of spaces (3).
5292 * src/layout.c, edit/editwidget.c: calls to menubar_arrange ifdef'ed
5295 1998-04-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
5297 * main.c (parse_an_arg): GNOME edition keeps track of various
5298 --geometry and various directories passed.
5300 1998-04-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
5302 * main.c (update_panels): Great API simplification. update_panels
5303 only cares about the contents of the current panel, every other
5304 panel keeps the current selection (this was the behaviour
5307 update_panels can be provided in a per-port fashion as well.
5309 Wed Apr 29 03:06:09 1998 Paul Sheer <psheer@obsidian.co.za>
5311 * syntax.c: some optimisations, as well as support for
5312 syntax highlighting of Makefiles and ChangeLog files.
5313 Fixed some syntax highlighting bugs. All C and C++
5316 Tue Apr 28 06:11:08 1998 Norbert Warmuth <k3190@fh-sw.de>
5318 * view.c (toggle_wrap_mode, toggle_hex_mode): Force recalculation
5319 of bottom_first (we mustn't use an already calculated and cached
5320 value because it is invalid for the new mode and the End key would
5321 not move to the end of the file).
5323 * configure.in: Renamed the option `--with-our-slang' to
5324 `--with-included-slang' (this one looks better because we also
5325 have an `--with-included-gettext').
5326 Make the option `--with-ext2undel' recognice a given path.
5328 * cmd.c (view_file_at_line): In plain view (F13) set the default
5329 magic flag to zero in order to view the file content unprocessed
5330 (esp. don't uncompress files if they are compressed). The
5331 view_simple_cmd got broken when the default magic flag in view.c
5332 was changed from 0 to 1.
5334 * view.c (do_view_init, goto_line): Set wrap mode temporary off
5335 to make goto line number work, i.e. `line number' now always means
5336 line number in file and not line number on screen (in wrap mode
5337 one long line wrapped once is displayed in two lines on the screen).
5338 That's important when the viewer is invoked from the find file
5339 dialog to display even in wrap mode approxiamtly the part of the
5340 file where we found the content we searched for.
5342 (move_forward2): In wrap mode lines were sometimes counted wrong
5343 causing cursor up to move more than one line.
5345 (move_backward2): Fixed the movement in wrap mode.
5347 (change_viewer): Always re-init viewer when we have a filename,
5348 i. e. if the viewer is invoked with simple_view_cmd then we can switch
5349 with the F8 key between unprocessed file content und uncompressed
5351 (view_init): re-init view also when magic flag was altered
5353 1998-04-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
5355 * screen.c (is_a_panel): Added a routine to determine if a widget
5358 1998-04-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
5360 * screen.c (file_entry_color): Check if fe->fname has something.
5362 Sun Apr 26 00:21:12 1998 Norbert Warmuth <k3190@fh-sw.de>
5364 * slint.c: Applied the patch from Bill Nottingham <wen1@cec.wustl.edu>
5365 to make it link against SLang >=1.0.
5366 I reviewed the diffs to the part of SLang we use and there are no
5367 further changes to MC necessary (one function's return value
5368 changed it's meaning but we don't use this return value).
5370 * configure.in: Undone the change which prevented linkage against
5373 Sat Apr 25 13:41:43 1998 Paul Sheer <psheer@obsidian.co.za>
5375 * edit.h, syntax.h: some optimisations to improve syntax
5378 1998-04-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
5380 * color.h: Move the CTYPE definition
5382 Fri Apr 24 16:43:25 1998 Paul Sheer <psheer@obsidian.co.za>
5384 * main.h, setup.c: editor_syntax_highlighting option added
5387 Fri Apr 24 14:54:06 1998 Paul Sheer <psheer@obsidian.co.za>
5389 * syntax.c: added. this files reads ~/.cedit/mcsyntax and
5390 processes generic rules for syntax highlighting of different
5391 file types. Syntax highlighting does not store an attribute byte
5392 for each byte of the edit buffer. Rather, it calculates colours
5393 on the fly, with an optimised algorithm, as the text is being
5396 * edit.c, edit.h, editwidget.c, editdraw.c: changes to facilitate
5397 syntax highlighting.
5399 * editoptions.c: dialog box updated with a syntax highlighting
5402 * slint.c: new function alloc_color_pair(). This allocates a new
5403 color index. init_pair() itself now records the last colour index
5404 so that colours can be added on to the end of the colour list
5405 with alloc_color_pair().
5407 * slint.c: new function try_alloc_color_pair() returns a new index
5408 for a color with named fg and bg. Checks if that named colour
5409 already exists before setting a new index.
5411 1998-04-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
5413 * user.c (execute_menu_command): Create temporary file exclusively
5416 * main.c (do_execute), utilunix.c (my_system), gutil.c, ext.c:
5417 Changed the way we execute programs. Now a new set of flags exist
5418 that indicates how the execution is done. In ports that execute
5419 by sending the process to background, when executing temporary
5420 files, we have to remove the files after the child process has
5421 finished executing the code not after the calling do_execute.
5423 * ext.c (exec_extension): Create temporary file exclusively.
5425 Mon Apr 20 01:32:20 1998 Norbert Warmuth <k3190@fh-sw.de>
5427 * configure.in: Don't try to link MC against SLang >= 1.0. I will
5428 remove this restriction when I'm sure that it's save to use the new
5429 version (the documentation to SLang mentions some changes of
5432 1998-04-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
5434 * file.h: Added prototype for copy_dir_dir.
5436 * file.c (real_do_file_error): use the proper flags, this is not a
5437 D_INSERT dialog box, for what it is worth. Important bug fix.
5439 * utilunix.c (get_owner): Declare.
5441 * widget.h: Added various missing prototypes for the X edition.
5442 * view.h: Added various missing prototypes for the X edition.
5443 * widget.c (x_radio_toggle): New per-port variable: PORT_HAS_RADIO_TOGGLE
5445 1998-04-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
5447 * screen.c (GT): Assign two spaces for the minimum size of the
5448 "type" field for the GNOME edition. This gives some extra space
5449 for the icon that gets displayed.
5451 * dlg.c (remove_widget): New function: used to remove a widget
5452 from an existing Dlg_head;
5453 (destroy_widget): Destroy a specific Widget.
5454 (add_widgetl): Extended to deal with the fact that a running
5455 Dlg_head can become empty.
5457 * panelize.c (l_call): Update the input line every time the user
5458 selects the entry with the mouse (pretty common in the gnome
5461 * hotlist.c (add_new_group_input): Removed an extra field that was
5464 * find.c (find_parameters): Tree button is gone for gnome until we
5465 get the tree function working on gnome.
5467 * cmd.c (save_setup_cmd): Per Elliot's suggestion, do not pop up a
5468 dialog box to inform the user about the saved setup.
5470 1998-04-15 Pavel Machek <pavel@elf.ucw.cz>
5472 * cmd.c: Report failed chdir attempts.
5474 Wed Apr 15 10:48:41 1998 Alex Tkachenko <alex@bcs.zp.ua>
5476 * src/hotlist.c: changes to hotlist boxes i18n.
5478 * src/panelize.c: changes to panelize boxes i18n.
5480 * src/wtools.c (query_dialog): Take care about possible '&' in
5481 button names while calculating window sizes and button positions.
5483 1998-04-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
5485 * screen.c (string_file_nlinks): The buffer was too small and we
5486 were overwriting parts of it.
5488 * subshell.c (do_subshell_chdir): Memory leak fix.
5490 * find.c (do_search): Do not use undefined order of evaluation.
5492 * user.c: Do not use undefined order of evaluation.
5494 * dlg.c (init_dlg): Do init the default return value.
5496 Sun Apr 12 03:09:17 1998 Norbert Warmuth <k3190@fh-sw.de>
5498 * cmd.c (view_other_cmd): #ifdef'd application_keypad_mode and
5499 numeric_keypad_mode (don't include it in non text editions)
5501 Sun Apr 12 02:48:26 1998 Norbert Warmuth <k3190@fh-sw.de>
5503 * xv/xvscreen.c: removed duplicate (conflicting) definition
5506 Sun Apr 12 02:24:57 1998 Norbert Warmuth <k3190@fh-sw.de>
5508 * text.c (edition_post_exec), cmd.c (view_other_cmd): Don't change
5509 the keypad mode when we don't use the alternate plus minus. Pavel
5510 forgot an if-clause when he replaced the escape sequences (or
5511 another point of view: I forgot one if-clause at different place).
5513 Fri Apr 10 17:35:23 1998 Philippe De Muyter <phdm@macqel.be>
5515 * configure.in (AC_NCURSES): When checking for library location,
5516 put -L option before -l option, not after.
5518 Fri Apr 10 10:35:06 1998 Norbert Warmuth <k3190@fh-sw.de>
5520 * file.c (file_mask_dialog): When the shell patterns option was
5521 off source_mask was freed twice.
5523 1998-04-10 Marc Ewing <marc@redhat.com>
5525 * panel.h: added up_b
5527 1998-04-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
5529 * widget.c (update_input): Set the used flag early in update_input
5530 to allow X widget to catch the right value
5532 * screen.c (do_enter): Return the status for the operation.
5534 * main.c (main): Sigh. This was hard. I added support for argp.
5535 Right now we support both argp for the GNOME edition and popt for
5536 the other editions. I will remove popt support in the future and
5539 * dlg.c (add_widgetl): Adding widgets to an already running dialog
5540 had some flaws. Fix this.
5542 Wed Apr 8 11:15:29 1998 Alex Tkachenko <alex@bcs.zp.ua>
5544 * src/find.c: changes to find_parameters/find_file i18n.
5546 * src/widget.c: new function introduced, button_scan_hotkey();
5547 button_new() and button_set_text() fixed to use mentioned function.
5549 * src/key.[ch], src/dlg.c: changes to make recognition of ESC char as
5550 ALT(c) possible for 8-bit chars. (By replacing 'A'/'Z' comparisons with
5551 call to isalpha() in the way proposed by Norbert).
5553 * src/boxes.c: changes to display box i18n
5555 * src/learn.c: changes to learn key dialog i18n
5557 1998-04-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
5559 * main.c (update_one_panel_widget): New routine: Updates a panel
5560 based on the widget, not the index. Used by the GUI versions.
5562 * find.c (find_file): Cancel idle tasks before we destroy the find
5565 * dlg.c (destroy_dlg): Call x_destroy_dlg_start, a new hook that
5566 is invoked to allow the frontend code to prepare for dialog
5567 destruction. Only the Gnome edition is using this: it uses this
5568 to hide the dialog and avoid flickering.
5570 * main.c: dtterm also has mouse support.
5572 1998-04-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
5574 * wtools.c (quick_callback): Process DLG_KEY events on X.
5576 * utilunix.c (max_open_files): new routine; Used to figure out
5577 the number of available file descriptors.
5579 Sat Apr 4 00:16:49 1998 Alex Tkachenko <alex@bcs.zp.ua>
5581 * src/layout.c: changes to layout dialog box i18n
5583 * src/option.c: changes to configure box i18n
5585 * src/cmd.c: added N_() macro for machine_str
5587 * src/wtools.c (real_input_dialog_help): ok/cancel buttons are places
5588 symmetrically spaced relatively to center of the box. It produces
5589 nicer appearance with i18n (IMO :)
5591 * src/boxes.c (confirm_box): i18n stuff added.
5593 Mon Apr 6 07:48:22 1998 Pavel Roskin <pavel_roskin@geocities.com>
5595 * Makefile.in: "make dist" works with bash 1.x again
5597 Fri Apr 3 05:23:20 1998 Alex Tkachenko <alex@bcs.zp.ua>
5599 * configure.in: ALL_LINGUAS test added, to allow specify list
5600 of languages to be installed by setting env variable before
5601 configure. If it is empty, it defaults to full list.
5603 * src/menu.h menu_entry.{hot_pos, is_dupped} dropped
5605 * src/menu.c: consistency fixes: pull-down menu items are now
5606 accessible either with arrow keys or with hotkeys, denoted with &
5607 (and highlighted). (key combinations, placed to the right of items
5608 intended to be used from outside the menus). Freeing menu entries
5609 removed as it no longer needed
5611 * src/main.c, edit/editmenu.c: menubar init code is changed to conform
5614 * edit/edit.h: use of "Cancel" in error_dialogs replaced with
5615 "Dismiss", to avoid collisions in translation of "Cancel" in other
5616 places with this case.
5618 * src/boxes.c: select_format() and it's support removed, as it is
5619 obsoleted by input line history feature. display_init()/display_callback
5620 fixed to suite i18n changes. sort_box() - alike.
5622 * src/option.c: pause_options added &'s and gettext calls to expand
5623 statically assigned values.
5625 * src/widget.c: (radio_callback) hotkey recognition is changed to
5626 &-notation, rather than simple uppercase.
5628 * src/dlg.c: (dlg_try_hotkey) plain symbol comparison replaced with
5629 call to isalpha(), this fixes errorneous exit from input line, when
5630 button hotkey is 8-bit NLS char.
5632 Fri Apr 3 12:23:28 1998 Norbert Warmuth <k3190@fh-sw.de>
5634 * TODO: Removed obsolete entries: Similar entries in tree view
5635 are displayed correct; user specific files has been moved
5637 Added: Check what to do with menubar_arrange/destroy_menu stubs
5638 in tk/tkmenu.c; the interal editor (not portet yet) adds entries
5639 to the wrong menubar
5641 Wed Apr 1 00:15:30 1998 Norbert Warmuth <k3190@fh-sw.de>
5643 * key.c, key.h (numeric_keypad_mode, application_keypad_mode): New
5644 functions which encapsulate two hardcoded escape sequences from main.c.
5646 * main.c (main): Use the two new functions from key.c
5648 * main.c, screen.c: Moved all file selection keys from the default
5649 keymap to the keymap for panels in listing mode.
5650 Changed *_selection_cmd to *_selection_cmd_panel in panel_keymap
5651 (functions in panel_keymap get a WPanel * as first parameter,
5652 i.e. the indirection with cpanel isn't necessary).
5654 * main.c (midnight_callback): Keys '*' and '-' were not treated
5655 when only_leading_plus_minus==0;
5656 Optimized the if-clauses a little bit (i.e. removed duplicate
5657 checks). More optimation is possible but it would make the whole
5658 stuff completly unreadable.
5660 * key.c (correct_key_code): KP_ADD, KP_SUBTRACT and KP_MULTIPLY
5661 will be translated to +, - and * only if the option
5662 alternate_plus_minus is turned off.
5664 * learn.c (learn_keys): Turn alternate_plus_minus temporarily on
5665 to avoid translation of KP_ADD, KP_SUBTRACT and KP_MULTIPLY in
5666 correct_key_code/make sure keypad is in application mode (makes it
5667 possible to learn this keys).
5669 * cmd.c (reverse_selection_cmd_panel): New function (renamed from
5670 reverse_selection_cmd, takes a WPanel * as parameter, references to
5671 cpanel changed to panel/the passed parameter).
5672 reverse_selection_cmd now simply calls this function with cpanel.
5673 This pair was missing among the *_selection_cmd* functions.
5675 * cmd.h: Added function prototypes.
5677 1998-03-31 Paul Sheer <psheer@obsidian.co.za>
5679 * cmd.c (nice_cd): Forgot to invoke the history registration in
5682 1998-03-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
5684 * menu.c (destroy_menu): Implement destroy_menu for all of the
5685 ports as a routine that frees the menu entries if
5686 internationalization has been enabled.
5688 * wtools.c (quick_dialog_skip): Do not i18n any string that is empty.
5690 Sun Mar 29 23:02:09 1998 Alex Tkachenko <alex@bcs.zp.ua>
5692 * src/menu.[ch]: new member to menu_entry (hot_pos) introduced to make
5693 internationalized version of menu use externally defined hotkeys
5694 (denoted with preceding &). create_menu() fixed to load intl text of
5695 the entries. Some fixes around menu.c to enable usage of reloaded
5698 * main.c, editmenu.c: menu initialization code fixed to conform new
5699 menu structure. editmenu init code includes N_(..) now.
5701 * menu.c, layout.c, editwidget.c: bar menu items displacement is made
5702 dynamically upon initialization and window size changes. Mouse event
5703 processing is fixed accordingly.
5705 Sat Mar 28 13:18:36 1998 Alex Tkachenko <alex@bcs.zp.ua>
5707 * src/screen.c: (repaint_file) last patches to format_file() in the
5708 same file broke appearance of panels in brief mode -- fixed.
5710 Mon Mar 30 20:02:49 1998 Paul Sheer <psheer@obsidian.co.za>
5712 * main.c, screen.c, dirhist.c, dirhist.h, main.h, widget.c,
5713 main.h and others?: Directory history added. The previous
5714 directory history code was removed. The directory history now
5715 loads and saves using the same routines as the input widget. The
5716 keys meta-y, and meta-u are used to go backward and forward
5717 through the history. The buttons to the right and left of the
5718 current directory display on the panel can be used as well. The
5719 v button brings up a history, but no key is assigned to this.
5720 Discussion as to correct color and shape of these buttons is
5721 open. show_hist() in widget.c is made generic to be called for
5722 any widget. Help pages still needed to be added for the
5725 Wed Mar 25 19:05:31 1998 Norbert Warmuth <k3190@fh-sw.de>
5727 * view.c (view_done): Set monitor off before deleting the view
5730 * subshell.c (init_subshell): Added ':q' to $cwd in the precmd for
5731 tcsh. It preventes command and filename substitution (e.g. for
5732 a directory named "[word] words")
5734 Mon Mar 23 18:06:10 1998 Norbert Warmuth <k3190@fh-sw.de>
5736 * main.c: Deleted some old and unused code
5738 1998-03-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
5740 * All over the src/ directory: Internationalization changes.
5742 * background.c: Avoid buffer over-runs and reduce number of
5743 internationalization strings.
5745 Mon Mar 23 14:04:07 1998 Philippe De Muyter <phdm@macqel.be>
5747 * configure.in (nlink_t): Check it using AC_CHECK_TYPE.
5748 * acconfig.h (nlink_t): New define slot.
5750 Mon Mar 23 08:17:55 1998 Pavel Roskin <pavel_roskin@geocities.com>
5752 * src/main.c: mcedit can be named mce or mcedit.exe - only
5753 3 first letters are significant. The same for mcview.
5754 Console is always saved in do_execute() if it was saved there.
5756 * src/util.h: STRNOMP introduced (strncmp on unix and strnicmp
5759 * slang/slgetkey.c: SLang_getkey() and SLang_input_pending()
5762 * myslang.h: using fast one_vline() and one_hline() for OS2_NT
5764 Mon Mar 23 00:47:51 1998 Norbert Warmuth <k3190@fh-sw.de>
5766 * autogen.sh: added support for builddir != srcdir
5768 * doc/Makefile.in: The manual pages are generated files and
5769 located in the builddir and not in the srcdir.
5771 * find.c (find_file): Use the same hotkey for the panelize button
5772 as we use with the external panelize command.
5774 Fri Mar 20 17:51:01 1998 Norbert Warmuth <k3190@fh-sw.de>
5776 * myslang.h: --with-ncurses didn't compile: renamed
5777 KEY_BACKTAB to KEY_BTAB (the name ncurses uses)
5779 * dlg.c (dlg_key_event): likewise
5781 1998-03-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
5783 * screen.c: Remove KEY_DC forever. This should have never been
5786 Wed Mar 18 22:08:34 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5788 * achown.c (do_enter_key): call endgrent, endpwent.
5790 * chown.c (init_chown): call endgrent, endpwent.
5792 Tue Mar 17 23:58:40 1998 Pavel Machek <pavel@elf.ucw.cz>
5794 * src/file.c: Fix for the case where the disk gets full.
5796 Tue Mar 16 18:35:53 1998 Stas Maximov <stmax@u213.srcc.msu.su>
5798 * src/hotlist.c default values for dialogs which add entries to hotlist
5799 are now set to the current directory.
5801 Tue Mar 10 14:42:01 1998 Stas Maximov <stmax@u213.srcc.msu.su>
5803 * vfs/extfs.c, lib/mc.ext, vfs/extfs/extfs.ini, vfs/extfs/cpio.in
5804 Added support for cpio extfs including compressed and gziped
5805 cpio archives. compress and gzip handled separately because I saw
5806 a lot of systems which have compress, but don't have gzip.
5808 Sat Feb 21 16:46:49 1998 Stas Maximov <stmax@u213.srcc.msu.su>
5810 * src/subshell.c: failed to grantpt on SVR4 due to zero-initialized
5811 subshell_pid. sigaction handler for SIGCHLD does waitpid(subshell_pid,
5812 ...) and when subshell_pid == 0 it steals the zombie from grantpt(3)
5813 which does fork/exec/waitpid for suid program to set the permissions on
5814 pty. It's enough to initialize it to 1 or -2.
5816 1998-03-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
5818 * util.c (convert_pattern): Now the internal buffer is malloc()ed
5819 instead of being static. This is required for long patterns.
5820 (regexp_match): Free the pattern after calling convert_pattern().
5822 * file.c (file_mask_dialog): Free the source_mask after calling
5825 Mon Mar 16 13:03:45 1998 Pavel Roskin <pavel_roskin@geocities.com>
5827 * cmd.c: Internal edit is used by default. vi may be
5828 confusing for some users.
5830 * tree.c: tree_rmdir_cmd() should not return any value,
5831 because it is not analyzed for errors.
5833 * main.c: NT code: use O_BINARY instead of _O_BINARY
5835 * util.c: DO not test for arguments that do not make sense under
5838 * file.c: utime.h always included for Windows NT port.
5840 * view.c: Events are flushed only if the ports supports it.
5842 Mon Mar 16 12:30:39 1998 Stas Maximov <stmax@u213.srcc.msu.su>
5844 * hotlist.c: Defaults on the hotlist add-current and new-entry is
5845 the current directory.
5847 Sat Mar 14 17:30:21 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5849 * file.c (panel_operate): Why was the flags in query_dialog set to
5850 D_INSERT is a big mistery. Should be fixed now.
5852 Fri Mar 13 18:10:58 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5854 * dlg.c (dlg_stop): New routine used to finish dialog boxes.
5856 * cmd.c (set_panel_filter_to): Implementation split. To be used
5859 * widget.c (input_new): GNOME-entry widget is inspired in the
5860 WInput + the history patches from Paul. Use the GNOME-entry
5861 history, as this makes it easier to deal with the filter button on
5864 * setup.c (save_panel_types): Do not use if running on the gnome
5865 edition. This need a lot of fixing for making this work with
5866 gnome and session management.
5868 * main.c (do_nc): DO not call setup_panels_and_run_mc as
5869 create_panels in gnome edition does all this.
5871 (setup_mc): Skip part of the setup.
5873 (do_execute): Do not Execute any of the pause code after
5876 Wed Mar 12 17:46:09 1998 Norbert Warmuth <k3190@fh-sw.de>
5878 * screen.c (chdir_other_panel, chdir_to_readlink): Use passed
5879 panel instead of cpanel (removed mixed use of panel and cpanel).
5881 * main.c, screen.c: Deleted F13 from the default keymap, added F13
5882 and F14 to the panel's keymap (the keymap for panels in listing
5883 mode). These two keys are only useful for panels in listing mode.
5884 It seems there are even more candidates for such a move. Especially
5885 select_cmd and unselect_cmd which appeared recently for the GNOME
5886 edition in screen.c act unexpected for panels in tree-mode.
5888 * cmd.c (view_simple_cmd): Added WPanel* to the parameter list.
5890 (edit_cmd_new): No need to get a panel because it is not used.
5892 * panelize.c: Changed hotkey of the Panelize button (Alt-p is
5893 already used by the input line history). I wonder if I should
5894 change it in the find dialog, too (just to have a unique hotkey
5895 for the panelize button).
5897 Wed Mar 11 19:02:48 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5899 * view.c: Lots of changes: Split the X11 code from the main view
5900 program. This is needed to cleanly support the addition of the
5901 Gnome version of the file viewer;
5903 New names for old functions (just a view_ prefix):
5904 view_add_character, view_add_string, view_gotoyx, view_set_color,
5905 view_display_clean. Now all of them take a WView argument (which
5906 is ignored in the macro for the text edition). This is to support
5907 multiple open views at once.
5909 * boxes.c (symlink_dialog): Enable ok/cancel buttons for the Gnome edition.
5911 * cmd.c (link_cmd, symlink_cmd): Provide the filename to operate
5914 Tue Mar 10 20:41:45 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5916 * cmd.c (unselect_cmd_panel, select_cmd_panel): To avoid races on
5917 the X11 version, these routines now take a panel argument at
5920 * widget.c (radio_callback): Call x_radio_focus for FOCUS/UNFOCUS
5922 (button_callback): Fallback to default_msg on WIDGET_FOCUS
5925 1998-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
5927 * xslint.c (getch): Added missing "return".
5929 * utilunix.c (init_groups): Added parentheses around
5930 assignment/truth value.
5932 * boxes.c: #include <stdlib.h>
5934 * screen.c (string_inode): Cast fe->buf.st_ino to long to be
5935 consistent with sprintf format.
5937 * main.c (handle_args): Added parentheses around assignment/truth value.
5939 Sat Mar 7 14:33:38 1998 Pavel Roskin <pavel_roskin@geocities.com>
5941 * src/complete.c: obsolete hack for OS/2 and NT removed.
5942 Completion works for NT now (not very good)
5944 * src/main.c: HOME variable is respected by NT and OS/2
5945 versions. If it is missing, we use LIBDIR on OS2_NT and "/"
5948 * src/key.h: SHIFT_PRESSED is set to 0x0010 on NT. This value
5949 doesn't conflict with definitions for ALT and CTRL, but it is
5952 * vfs/vfs.h: Minor changes for OS/2. EMX defines mkdir with
5955 * vfs/tcputil,c, vfs/utilvfs.c: signal.h was includes twice.
5957 * vfs/Makefile.in: undelfs.h is not used and should disapper
5959 * slang/slos2tty.c: new file, copied from SLang-0.99.38,
5960 needed for OS/2 port
5962 * slang/Makefile.in: added slos2tty.c
5964 * vfs/extfs/README: annoying spell errors corrected
5966 * src/main.c: --termcap disabled for OS2_NT because it doesn't
5967 (and cannot) work. ARCH_FLAGS is not needed anymore.
5969 * src/text.c: most includes removed. Added a warning is someone
5970 compiles this file with HAVE_X. Improved color scheme for
5971 consoles with 16 background colors (e.g. OS/2). Hack for OS/2
5974 * src/util.c, src/util.h: STRCOMP and MC_ARCH_FLAGS are moved
5975 to util.h. It may be useful to use them for filenames' completion
5978 Fri Mar 6 19:29:54 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5980 * find.c: Simplify header files: use the fs.h include file.
5982 (use x_flush_events).
5984 * screen.c (string_file_name): In GNOME, the CList widget does the
5985 filename truncation, so we do not do it here.
5987 (panel_new): Initialize all of the wpanel contents to zero. This
5988 will is required by the GNOME X ports (to figure out if a field
5989 has been inited or not).
5991 Thu Mar 5 10:28:40 1998 Norbert Warmuth <k3190@fh-sw.de>
5993 * popt.c (poptParseArgvString): make it compile with the native
5994 compiler on AIX 4.1.3
5996 1998-03-04 Federico Mena Quintero <federico@nuclecu.unam.mx>
5998 * cmd.c: Added #include "x.h"
6000 Wed Mar 4 14:49:55 1998 Norbert Warmuth <k3190@fh-sw.de>
6002 * doc/mc.1.in, mc.hlp: updated (these files haven't been updated
6003 at the last change to mc.sgml)
6005 * doc/mc.sgml: spelling error corrected
6007 * Makefile.in: renamed all references of mc.1 to mc.1.in
6009 * find.c (locate_egrep): Don't use an absolute path if egrep isn't
6010 found at the usual places. Then execvp will search the directories
6011 passed in the environment PATH variable (a little bit slower but
6012 better than a defunct find content).
6014 * tree.c: removed the include file I mistakenly added with my
6017 Tue Mar 3 20:00:36 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
6019 * file.c (get_file): Take a panel argument. I am pretty sure that
6020 this is broken for the case where we are copying from a WTree.
6022 (panel_operate): take a panel argument instead of defaulting to
6025 Mon Mar 2 15:54:55 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
6027 * dlg.c (create_dlg): Set running to 0 on creation;
6028 (add_widgetl): do widget initialization if the dialog is already
6029 running when this dialog box is created.
6031 Mon Mar 2 12:11:37 1998 Norbert Warmuth <k3190@fh-sw.de>
6033 * vfs/ftpfs.c (changetype): Removed the hack which always forced
6034 sending the command "TYPE I" when changing to binary transfer mode
6035 was requested even when MC thought the connection was already in
6036 binary mode (bucket->isbinary == 1). The correct fix is now in
6039 * vfs/ftpfs.c (login_server): Set the transfer mode stored in
6040 the bucket to UNKNOWN (the bucket might be reused and the old
6041 transfer mode isn't valid any longer).
6043 * screen.c (panel_key): Cleanup: deleted if-clause with -1 (EV_NONE)
6044 which isn't delivered to widgets by the dialog manager; always
6045 return 1 when key was handled; removed the function keys from the
6046 panel's keymap (the function keys are always handled by the
6047 buttonbar); don't eat characters below ' ' (C-l and Shift-F3 now
6048 work even when quick search was started); characters between 32 and
6049 255 start quick search if there is no commandline (no C-s necessary
6052 * tree.c (tree_key): likewise
6054 Tue Feb 24 18:37:36 1998 Stas Maximov <stmax@u213.srcc.msu.su>
6056 * subshell.c: Set subshell_pid to 1 on startup
6058 Fri Feb 13 19:59:39 1998 Alexander Savelyev <fano@VCom.kiev.ua>
6060 * screen.c: KEY_DC is also handled by delete_cmd.
6062 * vfs/ftpfs.c (chdir): sending the CWD command is not necessary
6065 (ftpfs_connection_close): Do not use WAIT_REPLY, closes
6068 (open_data_connection): implement the reget command.
6070 * boxes.c: bigger VFS dialog box.
6072 * file.c (init_replace): Add support for copying files only if the
6073 size differs, and support for regetting ftp files.
6075 Wed Feb 11 20:08:50 1998 Norbert Warmuth <k3190@fh-sw.de>
6077 * user.c (execute_menu_command): Extented the syntax of %-macros
6078 used in the user menu in order to switch quoting on (default) and
6079 off, e.g. %0f means don't quote the expanded macro, %f and %1f mean
6080 quote the expanded macro.
6083 Fri Jan 30 16:43:47 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
6085 * dlg.c (create_dlg): Now we pass the flags parameter to the
6086 create_dialog routine.
6088 * tkmain.c (xtoolkit_create_dialog): Check for the grided value
6090 Fri Jan 23 07:28:54 1998 Peter Daum <gator@cs.tu-berlin.de>
6092 * extfs.c (open_extfs_archive): Pass the filename to the list
6095 * extfs/mailfs: New file system for browsing mail files (support
6096 for compressed mail fiels as well).
6098 Fri Jan 23 07:19:18 1998 Pavel Roskin <pavel_roskin@geocities.com>
6100 * edit/edit.h: mc_mkdir requires 2 arguments for any operation
6101 system. Obsolete #ifdef's removed.
6103 * edit/editwidget.c: ansi standard violation removed
6105 * nt/Makefile.NT: default SLang directory is now ../slang. Most
6106 of SLang sources are no more compiled for MC.
6108 * nt/drive.h: new file. Copied from os2/drive.h with minor changes
6110 * nt/ket.nt.c: new way for handling conflicting SHIFT_PRESSED
6111 definitions. get_event can work without blocking. Copy, move
6112 and delete operations work normally.
6114 * nt/slint.nt.c: SLang_getkey2 and Slang_input_pending2 are
6115 copied from src/slint.c
6117 * nt/sys/param.h: annoying warnings temporaly suppressed.
6119 * slang/slvideo.c, slang/slw32tty.c: new files. They contain
6120 changes by Alexander Dong.
6122 * src/myslang.h: definitions for acsii symbols removed, since
6123 they are available in slang.h. Double lines are not used anymore.
6125 * src/panelize.c: sys/wait.h is included only if HAVE_SYS_WAIT_H
6128 * nt/Makefile.NT: text.c is added
6130 * nt/Makefile.VC4: "-debug" switch for linker is not used for
6133 * src/screen.c (show_dir): double lines are no more used by NT and
6136 * src/wtools.c (real_input_dialog_help): layout of input dialog for
6137 XView port is corrected
6139 * edit/edit.h: mc_mkdir requires 2 arguments for any operation
6140 system. Obsolete #ifdef's removed.
6142 * edit/editwidget.c: ansi standard violation removed
6144 Wed Jan 21 14:01:29 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
6146 * ext.c (regex_command): reverted the patch that changed tests for
6147 *p == ' ' || *p == '\t' to isspace(). isspace() is true for tabs,
6148 newlines, carriage-returns and vertical tabs as well. Which is
6151 Wed Jan 21 11:58:39 1998 Sung-Hyun Nam <namsh@lgic.co.kr>
6153 * ftpfs.c (retrieve_dir): Avoid compiler warning by testing
6154 explicitly the value.
6156 screen.c (format_file): color not initialized when we met
6159 Wed Jan 21 11:28:21 1998 Alex Tkachenko <alex@bcs.zp.ua>
6161 * cmd.c, utilunix.c: cosmetic changes to reduce compiler warnings
6163 * utilunix.c (my_system): small fix for SCO zombies moved here;
6164 now it returns WEXITSTATUS(status) instead of status itself. While
6165 missing it may not hurt on i.e., linux, on SCO it gives incorrect
6168 * vfs/extfs.c system() calls replaced with my_system() call; this
6169 allows a greater degree of control - fixes SCO system() return value
6170 processing. Notice: plain replacement system() with WEXITSTATUS(system)
6171 does not produce correct behavior (don't ask me why).
6173 * panelize.c (do_external_panelize): similar fixes for pclose()
6174 return value on SCO.
6176 view.c (load_view_file): inverted value of viewer_magic_flag to
6177 put viewer decompression state in accordance with F8 label text.
6178 Also default_nroff_flag is initialized to be 1; thus enabling all
6179 filter processing by default easies mc usage for novice users.
6181 Sun Jan 18 13:47:37 1998 Sung-Hyun Nam <namsh@lgic.co.kr>
6184 * panel.h, tkscreen.h : error when compile dlg.c
6185 * tkconf.h : paint_frame
6186 * screen.c : to include paint_frame
6187 * tkmain.c : I just copied clr_scr() from the text.c
6189 Fri Jan 16 16:19:59 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
6191 * screen.c (format_file): Do not invoke the file_compute_color
6192 routine for empty lines.
6194 * gmain.c: Color scheme for Gnome
6196 * gscreen.c: Color setup now allocated the GdkColor *.
6198 * color.c: Moved the default color setting to a per-port
6199 location (text.c for the text mode edition); new color
6200 configuration: core; Fixed the case where the color spec was
6201 buggy and we kept on a infinite loop;
6203 Fri Jan 16 13:47:13 1998 Pavel Roskin <pavel_roskin@geocities.com>
6205 * nt/drive.nt.c, nt/chmod.nt.c: Updated button_new and check_new
6208 Fri Jan 16 12:47:39 1998 Norbert Warmuth <k3190@fh-sw.de>
6210 * vfs/ftpfs.c (command): Don't log passwords when the dialog between
6211 server and client is logged to a file (mc -l logfile).
6213 * vfs/ftpfs.c (resolve_symlink, retrieve_dir): When a directory
6214 contains spaces send two commands ("CWD path" and "LIST .") instead of
6215 one command ("LIST path") in order to get directory listings.