1 2002-09-19 Pavel Roskin <proski@gnu.org>
3 * main.c (argument_table): Add missing descriptions.
5 * main.c [NATIVE_WIN32]: Remove -S option, it's useless.
7 * main.c (print_mc_usage): Use poptPrintHelp() instead of
8 manually formatted help text. Adjust callers to pass popt
11 * poptint.h: Use i18n.h instead of most own replacement macros.
13 2002-09-18 Pavel Roskin <proski@gnu.org>
15 * cmd.c (other_symlink_cmd): Remove, this function is
16 undocumented and poorly implemented.
17 * main.c: Remove call to other_symlink_cmd() on C-x C-l.
19 2002-09-16 Pavel Roskin <proski@gnu.org>
21 * wtools.c (real_input_dialog_help): Trim spaces from the label
22 text. Align label with the input field.
24 * cmd.c (do_link): Avoid using g_strconcat() on translatable
26 (other_symlink_cmd): Likewise.
28 2002-09-13 Pavel Roskin <proski@gnu.org>
30 * main.c: Remove advanced_chfns variable. Adjust all
33 * option.c: Make "Configure options" dialog more flexible,
34 readjust layout. Remove "advanced chown" option - it's unused.
36 2002-09-13 Andrew V. Samoilov <sav@bcs.zp.ua>
38 * main.c (process_args) [WITH_SMBFS]: Call smbfs_set_debugf()
41 2002-09-13 Pavel Roskin <proski@gnu.org>
43 * main.c: Fully remove obsolete "-m" option.
45 2002-09-11 Andrew V. Samoilov <sav@bcs.zp.ua>
47 * main.c [WITH_SMBFS]: Include ../vfs/smbfs.h.
48 (argument_table) [WITH_SMBFS]: Add -D, --debuglevel option for
50 (process_args) [WITH_SMBFS]: Handle new -D option.
51 (print_mc_usage) [WITH_SMBFS]: Describe -D, --debuglevel option.
53 2002-09-11 Pavel Roskin <proski@gnu.org>
55 * subshell.c: Move tcsh_fifo to the file scope. Use mc_tmpdir()
56 to calculate tcsh_fifo.
58 * utilunix.c (mc_tmpdir): New function that returns temporary
60 * util.c (mc_mkstemps): Use mc_tmpdir().
61 * main.c (main): Call mc_tmpdir().
63 2002-09-10 Pavel Roskin <proski@gnu.org>
65 * util.c (trim): Handle short strings even better - don't use
66 dots unless necessary.
68 * main.c (load_prompt): Don't shorten the prompt if COLS is 8 or
71 * screen.c (show_dir): Don't call trim() with negative length.
72 * util.c (trim): Better handle short length. Make sure that the
73 destination is always 0-terminated.
75 2002-09-09 Andrew V. Samoilov <sav@bcs.zp.ua>
77 * screen.c (string_file_name): Fix possible off-by-one
79 (string_file_size): Avoid unsafe strcpy().
80 (string_file_size_brief): Likewise. Eliminate buffer array.
82 2002-09-08 Pavel Roskin <proski@gnu.org>
84 * color.c: Move hascolors variable into init_colors(). Adjust
87 * myslang.h: Remove definition of initscr(), it's unused.
89 * tty.h [!HAVE_SLANG]: Remove all slang_* definitions.
90 * main.c (main) [!HAVE_SLANG]: Don't call slang_shutdown().
91 * myslang.h: Remove slang_done_screen(), it's unused.
93 2002-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
95 * key.c (get_event): Check gpm_fd only if gpm is actually used.
96 * layout.c (done_screen): Move disable_mouse() call ...
97 * main.c (done_mc): ... here.
99 2002-09-08 Pavel Roskin <proski@gnu.org>
101 * view.c (init_growing_view): Avoid reporting the same error
102 twice. Reported by Moritz Barsnick <moritz@barsnick.net>
104 2002-09-07 Pavel Roskin <proski@gnu.org>
106 * textconf.c: Don't use SLANG_TERMINFO, which is unused anywhere
107 else. Assume that terminfo is used if USE_TERMCAP is undefined.
109 2002-09-06 Pavel Roskin <proski@gnu.org>
111 * subshell.c (subshell_name_quote): Return NULL if we are out of
112 memory. Use "echo -e" with zsh (Debian bug #150996).
113 (do_subshell_chdir): Be prepared to get NULL from
114 subshell_name_quote().
116 * profile.c: Remove unused code. Eliminate global variables.
117 (is_loaded): Rename to find_loaded(). return matching profile.
118 Adjust all dependencies.
120 * fs.h: Only redefine S_IS* macros if they are undefined, and
121 then define them to 0. S_IF* constants should be avoided.
122 * util.c: Whenever possible, use standard POSIX macros to test
124 Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
126 2002-09-05 Pavel Roskin <proski@gnu.org>
128 * cmd.c (nice_cd): Fix conditions when this function is
131 * fs.h: Replace S_IFFIFO with S_IFIFO, which is the right name.
133 * fs.h: Correct S_IS* definitions to use S_IFMT. Add fallback
134 definitions for S_IFDOOR and S_ISDOOR.
135 * screen.c (string_file_type): Remove unnesessary ifdefs, fs.h
137 (file_compute_color): Add support for Solaris doors.
138 * util.c (string_perm): Remove unnesessary ifdef.
140 * man2hlp.c (handle_command): Make clear that unsupported
141 command is a warning, not an error. Avoid unsafe strcat().
143 * view.c (view_mode_callback): Eliminate, use the default
146 * main.c (load_hint): Don't hardcode copyright years. Use a
149 * main.c (midnight_callback): Avoid calling the default DLG_DRAW
150 handler. From David Martin <dmartina@excite.com>
152 * help.c (help_handle_key): Sanity check for broken help files.
153 From David Martin <dmartina@excite.com>
155 2002-09-03 Pavel Roskin <proski@gnu.org>
157 * global.h: Eliminate xgetch, update all dependencies.
159 * boxes.c: Fix remaining old-style calls to create_dlg().
160 * complete.c: Likewise.
164 * wtools.c: Remove Chooser, its unused.
166 * dlg.c: Fix the case when the dialog has no title.
168 * wtools.c (real_input_dialog_help): Use a more reliable way
169 to indicate password input.
171 * boxes.c (display_widgets) [!HAVE_CHARSET]: Fix initialization.
172 (vfs_smb_get_authinfo): Reuse another translated string.
174 * wtools.h (QuickDialog): Eliminate the "class" field - it's not
175 used and it can clash with C++ code. Adjust all dependencies.
177 * dlg.c (x_set_dialog_title): Completely eliminate. Adjust all
180 * help.c (interactive_display): Fallback to node "[main]" if the
181 requested node cannot be found.
183 * help.c (help_index_cmd): Eliminate unneeded search for
184 "[Help]", which always fails. Fix crash if "[Contents]" cannot
185 be found. Reuse more generic error message.
187 * filegui.c: Eliminate x_set_dialog_title().
188 * hotlist.c: Likewise.
190 (interactive_display): Default to node "[main]" if the given
193 2002-09-02 Pavel Roskin <proski@gnu.org>
195 * dlg.c (create_dlg): Take title instead of unused name as the
197 (x_set_dialog_title): Free old title. Mark this function
199 * achown.c: Use new create_dlg().
200 (do_enter_key): Provide titles for popups.
202 * dlg.c: Remove unused code, make functions static if possible.
204 * chmod.c: Use common_dialog_repaint().
206 * layout.c: Likewise.
207 * option.c: Likewise.
209 * wtools.c (common_dialog_callback): Fold into ...
210 * dlg.c (default_dlg_callback): ... this. Don't redraw dialogs
211 that don't have colors. Adjust all dependencies.
212 (std_callback): Elimitate.
214 * panelize.c (panelize_refresh): Eliminate in favor of
215 common_dialog_callback().
217 * widget.c (history_callback): Eliminate in favor of
218 common_dialog_callback().
219 (show_hist): Set dialog title and flag DLG_COMPACT.
221 * help.c (help_callback): Use common_dialog_callback().
222 (interactive_display): Set dialog title.
224 * wtools.c (listbox_callback): Eliminate in favor of
225 common_dialog_callback().
227 * wtools.c (dialog_repaint): Eliminate, nobody should be using
228 non-standard colors. Adjust all dependencies.
229 (common_dialog_repaint): Fix return code.
230 (query_callback): Eliminate, use common_dialog_callback()
233 * listmode.c (listmode_refresh): Use common_dialog_repaint().
234 Eliminate all global variables. Reformat the whole file.
236 * boxes.c (init_disp_bits_box): Use common_dialog_callback().
237 Return the new dialog.
239 * boxes.c (display_callback): Use common_dialog_repaint().
240 (display_init): Avoid using two different translations.
242 2002-09-01 Pavel Roskin <proski@gnu.org>
244 * help.c (interactive_display): Don't reuse the old value of
245 help_lines - LINES could have changed. Scale height better for
246 terminals with many lines - use 2/3 of the full screen.
248 * man2hlp.c: Move handling of .SH and NODE to a separate
249 function handle_node(). Don't output empty nodes except in the
252 2002-09-01 Andrew V. Samoilov <sav@bcs.zp.ua>
254 * man2hlp.c (print_error): Print input filename.
255 (handle_command): Handle .P, .LP, .IP and .br.
256 Ignore comments and .TH (Title header).
257 Report about unsupported commands.
260 * ext.c (regex_command): Use "%s" as text argument.
261 * user.c (debug_out): Likewise.
263 * win.c (key_name_conv_tab): Fix initialization.
265 2002-08-31 Pavel Roskin <proski@gnu.org>
267 * help.c (show): Fix segfault on unterminated help files.
268 From David Martin <dmartina@excite.com>
270 * key.c (get_event): Reduce scope of select_set. Don't check
271 mouse_enabled all the time, instead break out of the loop if it
274 * main.c (do_nc): Make midnight_colors[] local to do_nc().
275 Initialize normal color - it's used by the tree.
276 * boxes.c (tree_box): Use standard dialog_colors.
277 * tree.c: Use NORMALC for normal entries.
279 * view.c (view): Avoid passing an uninitialized color array to
280 create_dlg() - pass NULL instead.
282 2002-08-30 Pavel Roskin <proski@gnu.org>
284 * color.c: Define global array alarm_colors for the colors used
285 in the dialogs that should be most visible (error messages,
286 request to delete or overwrite).
287 (load_dialog_colors): Initialize alarm_colors.
288 * filegui.c: Use alarm_colors.
289 * wtools.c: Likewise.
290 * dlg.c (create_dlg): Make the color_set array constant.
292 * wtools.c (common_dialog_repaint): Use colors specific to the
293 current dialog, not fixed colors for "normal" dialogs.
294 * filegui.c (replace_callback): Eliminate, use
295 common_dialog_callback() instead.
297 * filegui.c (file_op_context_create_ui): Use
298 common_dialog_callback(). Set title to the operation name.
299 (op_win_callback): Remove, it's unused.
301 2002-08-27 Pavel Roskin <proski@gnu.org>
303 * view.c: Make static whatever possible.
304 * view.h: Remove internal view routines.
306 2002-08-27 Andrew V. Samoilov <sav@bcs.zp.ua>
308 * selcodepage.c (select_charset): Use snprintf instead of sprintf.
309 (do_select_codepage) [!HAVE_ICONV]: Remove.
311 2002-08-27 Pavel Roskin <proski@gnu.org>
313 * charsets.c: Add disclaimer of warranty.
314 * filenot.c: Likewise.
315 * fileopctx.c: Likewise.
317 * selcodepage.c: Likewise.
319 * textconf.c: Likewise.
321 * man2hlp.c (main): Factor error checks in fopen() and fclose(),
322 eliminate reuse of variables for different purposes, add more
323 comments. Correctly process "\&" escape.
324 The last part is from David Martin <dmartina@excite.com>
326 2002-08-26 Pavel Roskin <proski@gnu.org>
328 * main.c (init_xterm_support): Force xterm-style screen saving
329 and no mouse on "cygwin" terminal.
331 2002-08-25 Pavel Roskin <proski@gnu.org>
333 * man2hlp.c: Change default from the English string for TOPICS,
336 * man2hlp.c (handle_command): Remove quotes from TOPIC.
338 * key.c (get_event): Check gpm_fd before using it in FD_SET. If
339 gpm_fd is -1 (gpm has died), disable mouse support.
341 * key.c: Use the maximal file descriptor, not FD_SETSIZE in all
343 * subshell.c: Likewise.
344 From Pavel Tsekov <ptsekov@gmx.net>
346 2002-08-24 Pavel Roskin <proski@gnu.org>
348 * user.c (expand_format): Remove support for error file in the
350 * utilunix.c (close_error_pipe): Fix the condition when nothing
351 needs to be dislayed.
353 * dlg.c (x_set_dialog_title): Force uniform spacing.
354 From Andrew Borodin <borodin@zarya-k.ru>
356 * utilunix.c (check_error_pipe): Check error_pipe[0], not
357 stdout. From Pavel Tsekov <ptsekov@gmx.net>
359 * achown.c (chown_refresh): Use common_dialog_repaint().
361 * dlg.h (struct Dlg_head): Separate user flags and internal
362 flags. Make "direction" a user flag. Adjust all dependencies.
363 * dlg.c (run_dlg): Return ret_value.
365 2002-08-23 Pavel Roskin <proski@gnu.org>
367 * text.c (default_edition_colors): Use more rxvt-friendly color
370 * Makefile.am: Remove definition of CONFDIR, it's not used.
372 2002-08-22 Pavel Roskin <proski@gnu.org>
374 * layout.c (print_vfs_message): Set normal color, don't use
375 random current attributes.
377 * dlg.h (struct Dlg_head): Eliminate "data" field, it duplicated
378 functionality of "title".
379 * wtools.c (query_callback): Use dialog_repaint().
380 (quick_callback): Use common_dialog_repaint().
382 * learn.c (learn_callback): Use common_dialog_repaint().
383 * achown.c (chl_callback): Likewise.
385 * dialog.h: Cleanup unused functions.
386 * dialog.c: Cleanup unused headers.
388 * dlg.h (struct Dlg_head): Fold fields "raw" and "has_menubar"
389 into one field "flags". Adjust all dependencies. Add new flag
391 * wtools.c (dialog_repaint): Draw frame without spaces if
392 DLG_COMPACT flag is set.
393 * complete.c (complete_engine): Set DLG_COMPACT.
394 (query_callback): Use common_dialog_repaint().
396 * keys.h: Remove, include ...
397 * myslang.h: ... here.
398 * Makefile.am: Remove keys.h.
400 * dlg.h: Remove unused fields in struct Dlg_head.
401 * dlg.c: Adjust for the above.
403 2002-08-21 Pavel Roskin <proski@gnu.org>
405 * dlg.h: Remove unused fields in struct Widget.
406 * dlg.c: Adjust for the above.
407 * layout.c: Likewise.
409 * cmd.c (info_cmd_no_menu): Toggle info screen.
410 (quick_cmd_no_menu): Toggle quick view.
412 * help.c (interactive_display): Always show button bar.
414 * widget.c (buttonbar_callback): Fix a bug that prevented the
415 last byte from being redrawn.
416 Reported by David Martin <dmartina@excite.com>
418 * layout.c (setup_panels): Make the button bar 0 lines high if
419 it's invisible, so that mouse click on the history button works
420 with invisible button bar.
422 * widget.c: Make more functions static.
424 * ext.c: (regex_check_type): Further split. Restore caching
425 broken in the previous commit.
427 * ext.c (regex_command): Separate checking for "type/" into ...
428 (regex_check_type): ... this.
430 * global.h: Move include for rx.h and eregex.h here.
432 * learn.c (learn_button): Don't allow Tab to be learned.
434 2002-08-20 David Martin <dmartina@excite.com>
436 * menu.c (create_menu): Get help node as an argument.
437 * main.c: Use new create_menu() interface.
439 2002-08-20 Pavel Roskin <proski@gnu.org>
441 * man2hlp.c: Don't redirect stdout. Check result of ftell.
442 Drop support for invocation with 2 arguments.
444 2002-08-19 Pavel Roskin <proski@gnu.org>
446 * cons.handler.c (handle_console): Use _exit(), not exit() in
449 * main.c (handle_args): Set POPT_CONTEXT_NO_EXEC flag for
451 * popt.c: Call abort() in execCommand() - we should not execute
454 * util.h: Remove unused and dangerous flags for my_system():
455 EXECUTE_TEMPFILE, EXECUTE_SETUID and EXECUTE_WAIT.
456 * utilunix.c: Corresponding adjustments.
457 * ext.c: Don't use EXECUTE_TEMPFILE, it has no effect.
459 * subshell.c (synchronize): Workaround for Cygwin (should not be
460 needed for the next version) - remove SIGCHLD blocking from
463 * dlg.h: Remove all unused flags for create_dlg(). Adjust all
466 * cmd.c (fishlink_cmd): Implement user interface for FiSH.
467 * main.c: Add it to the menu.
469 * help.c (help_follow_link): Made static.
471 2002-08-18 Pavel Roskin <proski@gnu.org>
473 * subshell.c (synchronize): Discard all remaining data from
474 stdin to the subshell.
476 * subshell.c (exit_subshell) [AIX_TCSH_CODE_BELOW_IS_IT_FIXED]:
477 Remove. Nobody has fixed this code for years.
479 * main.h [USE_INTERNAL_EDIT]: Don't include declarations from
481 * setup.c [USE_INTERNAL_EDIT]: Include edit.h.
483 * boxes.h: Remove user_format.
484 * boxes.c: Make more variables static, remove all extern
486 * setup.c: Remove some extern declarations.
488 * mountlist.h: Move some internals ...
489 * mountlist.c: ... here.
491 * main.c: Remove extremely unsafe and poorly designed support
492 for /tmp/mc.$PID.control file.
493 * util.c (my_putenv): Remove, it's unused now.
495 * panel.h (struct format_e): Make string_fn return const char *.
496 Adjust all dependencies.
497 * screen.c (string_file_mtime): Return empty string for "..".
498 (string_file_atime): Likewise.
499 (string_file_ctime): Likewise.
501 * view.c (display): Use enum for boldflag values. Fix cursor
502 highlighting for the ASCII part of the hex editor.
504 * layout.c (init_curses) [!HAVE_SLANG]: Add support for
505 stickchars - fill acs_map[] with ASCII approximations.
506 * main.c [!HAVE_SLANG]: Enable --stickchars (-a) for ncurses.
508 2002-08-16 Pavel Roskin <proski@gnu.org>
510 * setup.c: New variable global_profile_name to hold full name of
512 (load_setup): Calculate global_profile_name.
513 (done_setup): Free global_profile_name.
514 (load_key_defs): Use global_profile_name.
515 * treestore.c (should_skip_directory): Likewise.
517 * man2hlp.c: Implement persistent fread and fwrite to make sure
518 that all output is read and written.
520 2002-08-16 Andrew V. Samoilov <sav@bcs.zp.ua>
522 * help.c (show): Cast *paint_start to unsigned char to display
523 Cyrillic with ncurses.
524 [HAS_ACS_AS_PCCHARS] (acs2pc_table): Make const.
526 * user.c (expand_format): Cast the argument to functions
527 for character classification to unsigned int.
528 (execute_menu_command): Likewise.
530 2002-08-15 Pavel Roskin <proski@gnu.org>
532 * treestore.c (tree_store_remove_entry): Don't use ts.check_name
535 * treestore.c: Remove unused code, reformat.
536 * treestore.h: Remove unused declarations.
538 * fs.h (compute_namelen): New inline function to take care of
539 the d_namlen field if and only if it's needed.
541 * screen.c (string_file_name): Replace non-printable characters
544 * subshell.c (read_subshell_prompt): Remove argument "how", it's
545 never set to VISIBLY. Adjust all dependencies. Eliminate hack
546 with "clear_now" - it causes invalid memory access and hides the
548 * util.c (strip_ctrl_codes): Fix possible invalid memory access
549 if the escape sequence ends unexpectedly.
551 2002-08-14 Pavel Roskin <proski@gnu.org>
553 * dir.c (do_load_dir): Fix leaking of file descriptors - always
554 call mc_closedir() before return.
556 * main.c (do_execute) [!HAVE_SUBSHELL_SUPPORT]: Compile fix.
558 * view.c (display): Use only declared color pairs to fix hex
559 editor appearance with ncurses. Eliminate some useless defines.
561 2002-08-10 Pavel Roskin <proski@gnu.org>
563 * key.c (delete_select_channel): Avoid using freed memory.
565 2002-08-09 Pavel Roskin <proski@gnu.org>
567 * ext.c (exec_extension): Eliminate unused argument.
568 (regex_command): Remove support for user actions. Return int.
569 Adjust all dependencies.
571 * ext.c (exec_extension): Make static. Remove support for Drop,
572 Title and Icon actions. Adjust all dependencies.
574 * main.c (sigchld_handler_no_subshell) [linux]: SIGTSTP is
575 always defined on Linux.
576 * subshell.c (sigchld_handler): No need to use SIGTSTP
577 explicitly when we really care about SIGCONT.
579 * ncurses.patch: Remove, it's obsolete.
580 * Makefile.am: Remove ncurses.patch.
582 2002-08-04 Pavel Roskin <proski@gnu.org>
584 * subshell.c: Assume that SIGTSTP and SIGCONT are always
585 defined. This is now checked in configure. Otherwise
586 synchronize() would hang until subshell exits.
588 2002-08-01 Pavel Roskin <proski@gnu.org>
590 * charsets.c: Unconditionally enable finalization code that was
591 only used with HAVE_MAD.
597 * subshell.c (exit_subshell): Free subshell_prompt.
601 * Makefile.am (SRCS): Remove mad.c and mad.h.
602 * cmd.c: Remove references to MAD.
604 * dlg.c: Use inline, not INLINE.
605 * hotlist.c: Likewise.
607 * global.h: Don't include mad.h.
609 2002-07-31 Andrew V. Samoilov <kai@cmail.ru>
611 * man2hlp.c (main): Don't use freed structure member.
613 * ext.c (regex_command): Don't check same condition twice.
614 (exec_extension): Comment out useless loop.
615 * key.h (key_code_name_t): Typedef const.
617 2002-07-30 Pavel Roskin <proski@gnu.org>
619 * man2hlp.c (main): Use only stream I/O. Fix checks for error
620 conditions. Reformat the whole file.
622 * man2hlp.c: Avoid the need to use gindex.pl.
623 From Andrew V. Samoilov <sav@bcs.zp.ua>
624 * Makefile.am: Use man2hlp directly.
625 (EXTRA_DIST): Remove gindex.pl.
628 * ext.c (regex_command): Additional check to prevent reading
629 unallocated memory when matching "shell/". Found by Valgrind.
631 2002-07-29 Pavel Roskin <proski@gnu.org>
633 * setup.c: Eliminate all PORT* macros.
634 * screen.c: Likewise.
636 * subshell.c (feed_subshell): Reading 0 bytes in a channel with
637 FD_ISSET being set is a sign of something being wrong - exit
638 immediately. Observed when mc is run under su in xterm and
639 xterm is closed while the subshell is running.
640 Reported by Vlad Harchev <hvv@hippo.ru>
642 * color.h: Replace PORT_COLOR macro with BEST_COLOR, which uses
645 * util.c: Remove unused functions.
646 * utilunix.c: Likewise.
647 * util.h: Update to match.
649 * cons.saver.c: Use SEEK_SET instead of 0 in lseek().
652 * main.c (do_execute): Add newline after "Press any key to
655 * cons.saver.c: Eliminate some global variables. Further
656 cleanup. Make sure that console_fd is always closed.
658 2002-07-28 Pavel Roskin <proski@gnu.org>
660 * cons.saver.c: Remove support for Linux kernels before 2.0.
662 (send_contents): Remove incorrect optimization - restore even
663 empty lines because they may be touched by the viewer.
664 From Denis Vlasenko <vda_unique@iname.com>
666 2002-07-26 Pavel Roskin <proski@gnu.org>
668 * utilunix.c (canonicalize_pathname): Don't extend empty path
669 to "." - it can corrupt memory.
671 * cmd.c (copymove_cmd_with_default): Remove, it's unused.
672 (copy_cmd_local): New function, copy within panel.
673 (ren_cmd_local): New function, rename within panel.
674 * cmd.h: Adjust to match.
675 * screen.c (panel_keymap): Associate F15 with copy_cmd_local and
676 F16 with ren_cmd_local.
678 * view.c (display): Don't highlight characters as bold if the
679 character before the backspace was different.
680 From Roland Illig <roland.illig@gmx.de>
682 2002-07-25 Andrew V. Samoilov <kai@cmail.ru>
684 * wtools.c (message): Fix possible buffer overflow.
686 * slint.c [HAVE_MAD] (dealloc_color_pairs): Move ...
687 * color.c [HAVE_MAD]: ... here and make accessible from
688 other files to fix compilation.
689 * color.h [HAVE_MAD]: Declare dealloc_color_pairs.
691 2002-07-20 Pavel Roskin <proski@gnu.org>
693 * screen.c (panel_callback): Revert last change, it has bad side
694 effects on the subshell.
696 2002-07-19 Pavel Roskin <proski@gnu.org>
698 * dlg.c: Eliminate all useless x_* functions.
701 * textconf.h: Likewise.
704 * widget.c: Likewise.
705 * main.c: Remove panel_update_marks(). Move try_to_select() ...
706 * screen.c: ... here. Eliminate x_* functions.
707 * main.h: Remove panel_update_marks().
709 * screen.c (panel_callback): Only change directory on
710 WIDGET_FOCUS if current_panel changes.
712 * main.c (handle_args): Don't call mc_get_current_wd().
714 * main.c (directory_history_list): Report error if cannot change
717 2002-07-16 Pavel Roskin <proski@gnu.org>
719 * main.c (do_execute): Don't ask to press any key when the shell
720 is running a command - the user has already pressed Ctrl-O.
722 2002-07-15 Pavel Roskin <proski@gnu.org>
724 * slint.c: Eliminate hardcoded color terminals. Most users no
725 longer need this hack, and those who do have color_terminals
726 option in the config file.
728 2002-07-14 Pavel Roskin <proski@gnu.org>
730 * color.c [USE_NCURSES]: Eliminate division by COLOR, it's 0 in
731 black and white mode.
733 * slint.c: Move functions for allocating color pairs ...
734 * color.c: ... here. Implement ncurses equivalents. Rename
735 init_pair() to mc_init_pair() and keep tack of max_index with
736 ncurses. Adjust all dependencies.
738 * mem.h: Clean up obsolete definitions, incorporate into ...
739 * global.h: ... this.
740 * Makefile.am: Remove mem.h.
742 2002-07-13 Pavel Roskin <proski@gnu.org>
744 * Makefile.am (AM_CPPFLAGS): Remove REGEX_MALLOC, it's now in
747 * tty.h: Use standard autoconf defines to determine which
748 ncurses header to include. Eliminate RENAMED_NCURSES.
750 2002-07-10 Pavel Roskin <proski@gnu.org>
752 * utilunix.c: Cast argument for GUINT_TO_POINTER to int to fix
755 * subshell.c: ioctl() doesn't set errno - don't use perror() to
756 report failures. Use fprintf() instead, ignore errors from
758 (resize_tty): New function - code common for resize_subshell()
759 and init_subshell_child().
761 * global.h: Include vfs.h.
762 * boxes.c (configure_vfs): Ask whether .netrc should be used.
763 From Thomas Zajic <zlatko@gmx.at>
765 2002-07-03 Pavel Roskin <proski@gnu.org>
767 * file.c (do_transform_source): Cast the argument to functions
768 for character classification to unsigned int.
769 * main.c (handle_args): Likewise.
770 * util.c (size_trunc_sep): Likewise.
771 (skip_numbers): Likewise.
773 * subshell.c (sigchld_handler): Remove subshell_pty from the
774 channel list if the subshell has died.
776 2002-07-03 Andrew V. Samoilov <kai@cmail.ru>
778 * mad.[ch] [__GNUC__] (mad_strconcat): Use macro varargs.
779 (mad_strdup_printf): Likewise.
780 (mad_strdup_vprintf): Likewise.
781 * main.c [HAVE_MAD] (main): Release this_dir and other_dir.
783 2002-07-03 Pavel Roskin <proski@gnu.org>
785 * main.c (stop_dialogs): New function to stop all dialogs.
786 (quit_cmd_internal): Use stop_dialogs() instead of stopping
787 midnight_dlg only. This fixes exit from the shell invoked from
788 the internal viewer or editor.
790 * cmd.c (view_other_cmd): Shut down extra select channels before
791 switching to the shell. Restore them afterwards, but not if
792 quit was requested. Skip more code on quit.
794 2002-07-02 Pavel Roskin <proski@gnu.org>
796 * util.c: Eliminate get_small_endian_long() and CHECK macro.
798 * util.h: Rename compression types, add a type for uncompressed
800 * util.c (is_gunzipable): Rename to ...
801 (get_compression_type): this. Don't check archive length, since
802 it's unreliable if there is padding at the end of the file.
803 Eliminate prehistoric Linux workaround. All callers adjusted.
805 2002-07-01 Andrew V. Samoilov <kai@cmail.ru>
807 * utilunix.c (close_error_pipe): Use "%s" in message () to
808 prevent possible crash.
809 (check_error_pipe): Likewise.
811 2002-06-27 Pavel Roskin <proski@gnu.org>
813 * screen.c (do_enter_on_file_entry): Process associations before
814 trying to execute the file.
816 2002-06-20 Pavel Roskin <proski@gnu.org>
818 * dir.c (handle_dirent): Don't process ".." entries.
819 (handle_path): Likewise.
820 From Andrew V. Samoilov <kai@cmail.ru>
822 2002-06-13 Oskar Liljeblad <oskar@osk.mine.nu>
824 * slint.c (has_colors): Don't reset SLtt_Use_Ansi_Colors to 0 if
825 force_colors is not set. This fixes color on unknown terminals.
827 2002-06-13 Andrew V. Samoilov <kai@cmail.ru>
829 * user.c (expand_format): Fix '%b' proccessing.
830 Handle '%k' as documented.
832 2002-05-30 Andrew V. Samoilov <kai@cmail.ru>
834 * view.c (regexp_search): Don't call save_edit_changes
835 if there are no changes.
836 (save_edit_changes): Use messages from ../po/mc.pot.
838 * mad.c (mad_tempnam): Commented out to make linker happy.
839 * main.c [HAVE_MAD && !_OS_NT] (main): G_free mc_home.
841 2002-05-27 Andrew V. Samoilov <kai@cmail.ru>
843 * view.c (save_edit_changes): Handle errors.
844 (do_view_init): Don't open and check file type
845 if _command is not null or _file is empty string.
847 2002-05-22 Pavel Roskin <proski@gnu.org>
849 * Makefile.am: doc/mc.1 is in top_builddir, not in top_srcdir.
851 2002-05-15 Andrew V. Samoilov <kai@cmail.ru>
853 * view.c (do_view_init): Close fd if it is unused.
855 2002-05-14 Andrew V. Samoilov <kai@cmail.ru>
857 * Makefile.am (VFSLIB): Add ../vfs/samba/libsamba.a
858 if USE_SAMBA_FS is true.
860 2002-05-07 Pavel Roskin <proski@gnu.org>
862 * hotlist.c (hotlist_button_callback): Don't process B_REMOVE
863 for VFS list - it would crash.
864 From Andrey Panov <pav@metib.ru>
866 2002-04-19 Andrew V. Samoilov <kai@cmail.ru>
868 * main.c [!WITH_MCFS] (PanelMenu): Eliminate mcfs related entry.
869 (RightMenu): Likewise.
870 * textconf.c (features): Likewise.
871 * cmd.c (netlink_cmd) [!WITH_MCFS]: Eliminate.
873 2002-04-03 Pavel Roskin <proski@gnu.org>
875 * Makefile: mc.hlp should be in MAINTAINERCLEANFILES, not in
876 CLEANFILES, because "make clean" should not make the source
877 directory useless on systems without Perl.
879 2002-03-26 Andrew V. Samoilov <kai@cmail.ru>
881 * eregex.h [!USE_INCLUDED_REGEX]: Include <regex.h>.
882 * regex.c: Compile only if USE_INCLUDED_REGEX is defined.
884 2002-03-25 Andrew V. Samoilov <kai@cmail.ru>
886 * complete.c (insert_text): Fix buffer overflow.
888 * cmd.[ch] [USE_INTERNAL_EDIT] (edit_syntax_cmd:) New dialog
889 to edit Syntax Highlighting definitions file.
890 * main.c (CmdMenu) [USE_INTERNAL_EDIT]: Add 'Syntax file edit'
892 (process_args): Print mc's library directory to stdout.
894 2002-03-21 Andrew V. Samoilov <kai@cmail.ru>
896 * man2hlp.c (handle_command): Handle backslash quoting
898 (handle_link): Strip .B and .I
899 * gindex.pl: Use fifth argument as man2hlp location.
901 2002-03-20 Andrew V. Samoilov <kai@cmail.ru>
903 * man2hlp.c (handle_command): Handle '.\"TOPICS' comment.
904 Use it for translated 'Topics:' message.
905 * gindex.pl: Use first line of man2hlp output as
906 translated 'Topics:' message if fourth argument
908 * Makefile.am (mc.hlp.ru): Use empty string as gindex.pl's
911 * textconf.c (version): Write to stdout.
912 * main.c (print_mc_usage): Add "stream" parameter to specify
914 (process_args): Use print_mc_usage() with stdout as stream.
915 (handle_args): Use print_mc_usage() with stderr as stream.
916 (print_color_usage): Write to stdout.
918 2002-03-18 Pavel Roskin <proski@gnu.org>
920 * eregex.h: Update from glibc-2.2.5.
922 * find.c: Use eregex.h, not regex.h.
925 From Alexander Varakin <avarakin00@hotmail.com>
927 * find.c (find_parameters): Invert condition when find is case
930 2002-03-04 Andrew V. Samoilov <kai@cmail.ru>
932 * Makefile.am (mc.hlp.ru): Use mc.1 instead of mc.1.in.
935 * file.c (copy_file_file): Chmod destination only if
936 ctx->preserve is on. Eliminate gotos.
938 2002-03-01 Andrew V. Samoilov <kai@cmail.ru>
940 * Makefile.am (mc.hlp.ru): New rule to compile translated
942 (mclib_DATA): Add mc.hlp.ru.
943 (EXTRA_DIST): Likewise.
945 * gindex.pl: Add optional 4th argument for translated
946 Content section name.
948 2002-02-28 Andrew V. Samoilov <kai@cmail.ru>
950 * mad.c: Make mem_areas dynamically growing.
951 (mad_init): Allocate memory for mem_areas.
952 (mad_alloc): Grow mem_areas if it is exhausted.
954 * filegui.c (file_mask_dialog): Enable 'follow Links'
955 and 'preserve Attributes' features in Move dialog.
956 (file_bps_show): Translate messages.
957 (file_eta_show): Likewise.
959 * man2hlp.c (main): Don't crash if called without argument(s).
960 Make buffer char pointer.
961 (handle_command): Handle '.\"NODE' comment. Use it for
962 nodename in translated manual pages.
964 * gindex.pl: Use [nodename] as user visible section name
965 only if next line is empty. Elsewhere use this nonempty line.
967 * find.c (find_parameters): Compile content_pattern here.
968 Inform user about malformed regular expression.
969 (search_content): Use compiled regular expression.
970 (do_find): Eliminate `done'. Call regfree for compiled
973 2002-02-24 Pavel Roskin <proski@gnu.org>
975 * chown.c (chown_cmd): Use size_trunc_len() to show the file
976 size. Eliminate c_fsize, which wasn't properly initialized.
978 2002-02-22 Pavel Roskin <proski@gnu.org>
980 * man2hlp.c (string_len): Don't exclude characters with codes
981 above 128 from the string length.
983 2002-02-21 Andrew V. Samoilov <kai@cmail.ru>
985 * ext.c (exec_extension): Use "#! /bin/sh".
987 2002-02-20 Pavel Roskin <proski@gnu.org>
989 * background.c (background_attention): Cast pointer to long
990 instead of int because it's unsafe of 64-bit systems.
991 * main.c (init_xterm_support): Likewise.
993 2002-02-18 Pavel Roskin <proski@gnu.org>
995 * utilunix.c (canonicalize_pathname) [__QNX__]: Fix detection
996 of Qnet names. Disable support of Qnet names under QNX Netrino.
997 Reported by Maurizio Rossi <MRossi@system-group.it>
999 * global.h: Include unix.h under "classical" QNX.
1000 * subshell.c: Don't include unix.h.
1001 * utilunix.c: Likewise.
1003 2002-02-07 Andrew V. Samoilov <kai@cmail.ru>
1005 * main.c (update_one_panel_widget): Call ftpfs_flushdir().
1007 2002-02-05 Pavel Roskin <proski@gnu.org>
1009 * key.c [USE_NCURSES] (get_key_code): Ignore KEY_RESIZE.
1010 * layout.c [USE_NCURSES] (flag_winch): Don't call
1011 low_level_change_screen_size() from signal handler.
1012 From Thomas Dickey <dickey@herndon4.his.com>
1014 * screen.c (format_file): Add a new parameter (size of the
1015 output buffer) to prevent buffer overflow on very wide
1017 From Thomas Dickey <dickey@herndon4.his.com>
1019 2002-02-04 Andrew V. Samoilov <kai@cmail.ru>
1021 * util.c [!HAVE_TRUNCATE] (truncate): Close fd if my_ftruncate
1024 * util.c [HAVE_CHARSET] (is_printable): Eliminate printable.
1025 * setup.c [HAVE_CHARSET] (load_setup): Don't use
1026 init_printable_table.
1028 * charsets.h: Don't declare init_printable_table ().
1029 * charset.c (printable): Removed.
1030 (init_printable_table): Removed.
1032 2002-01-30 Andrew V. Samoilov <kai@cmail.ru>
1034 * file.c (recursive_erase): Use mc_closedir() if mc_lstat()
1035 fails. Eliminate goto.
1036 (erase_dir): Eliminate goto.
1037 (erase_dir_iff_empty): Likewise.
1039 2002-01-29 Andrew V. Samoilov <kai@cmail.ru>
1041 * dir.c (handle_dirent): Use MSG_ERROR.
1042 * charsets.c (translate_character): Use ICONV_CONST.
1044 2002-01-22 Pavel Roskin <proski@gnu.org>
1046 * screen.c: Don't try to paint anything if width is 0 or less.
1047 Reported by Pawel Sakowski <pawel@sakowski.eu.org>
1049 * screen.c: Make functions static whenever possible. Remove
1051 * panel.h: Remove corresponding declarations.
1053 2002-01-21 Pavel Roskin <proski@gnu.org>
1055 * util.c: Move replacements for permission bits ...
1056 * fs.h: ... here. Add more replacements.
1057 * global.h: Include direct.h only with MSVC.
1059 * main.c: Include "drive.h", not <drive.h>, do it after panel.h.
1060 Use _OS_NT as the condition for including drive.h.
1061 * screen.c: Use _OS_NT as the condition for including drive.h.
1063 * global.h [_OS_NT]: Include io.h, direct.h and windows.h.
1064 Don't redefine struct timeval.
1066 * fs.h [_MSC_VER]: Use dirent provided by glib.
1068 * global.h [!HAVE_SYS_TIME_H]: Provide a replacement for struct
1071 * findme.c: Respect HAVE_UNISTD_H.
1074 * global.h: Fallback to sys/utime.h if utime.h is missing.
1076 * global.h: Provide fallbacks for getuid(), getgid(), geteuid()
1078 * fs.h: Fully trust HAVE_DIRENT_H.
1079 * complete.c: Don't include dirent.h directly, fs.h takes care
1082 * filegui.c: Likewise.
1084 * treestore.c: Likewise.
1086 * global.h [!__GNUC__]: Define __attribute__ with one argument.
1088 2002-01-20 Pavel Roskin <proski@gnu.org>
1090 * screen.c (string_file_size): Translate "UP--DIR".
1091 (string_file_size_brief): Translate "SUB-DIR" and "SYMLINK".
1093 * dir.c (add_dotdot_to_list): Don't use costly stat() - just put
1094 realistic (i.e. bogus) data to the list.
1096 * screen.c (string_file_size): Don't display size of ".." - it
1097 may take too much time to calculate it on VFS. Show "UP--DIR"
1099 (string_file_size_brief): Remove ".." handling - it's now done
1100 in string_file_size(). Show "SUB-DIR" for links to directories,
1101 "SYMLINK" for other links.
1103 2002-01-17 Pavel Roskin <proski@gnu.org>
1105 * cmd.c: Remove OS/2 specific code.
1109 * main.h: Remove dead declarations.
1110 * setup.c: Remove defunct extension alignment support.
1114 * main.c: Remove unused toggle_* functions.
1116 * dir.c: Show backups by default.
1118 2002-01-15 Andrew V. Samoilov <kai@cmail.ru>
1120 * file.c (copy_dir_dir): Check the destination is a directory
1121 if it exists. Reported by Thomas <metaf4@pseudonym.org>.
1123 2002-01-09 Andrew V. Samoilov <kai@cmail.ru>
1125 * util.c (string_perm) [S_IFDOOR]: Support Solaris doors.
1126 * screen.c (string_file_type) [S_IFDOOR]: Likewise.
1128 2001-12-21 Pavel Roskin <proski@gnu.org>
1130 * hotlist.c (hotlist_callback): Recognize "delete" key.
1132 * myslang.h [!HAVE_SYSTEM_SLANG]: Include slang/slang-mc.h to
1134 [HAVE_SYSTEM_SLANG]: Use angle brackets for slang.h.
1136 * myslang.h [!HAVE_SYSTEM_SLANG]: Include slang-mc.h directly
1137 to avoid relying on symlinks.
1139 2001-12-18 Pavel Roskin <proski@gnu.org>
1141 * utilunix.c (init_groups): Don't return prematurely if the
1142 primary group cannot be found (it can happen on Cygwin).
1144 2001-12-10 Pavel Roskin <proski@gnu.org>
1146 * dir.c (do_reload_dir): Hash-table added.
1147 From Björn Eriksson <mdeans@algonet.se>
1149 2001-12-03 Pavel Roskin <proski@gnu.org>
1151 * dir.c (do_reload_dir): Optimize the logic - count the marks
1152 and only match new entries against old entries if at least one
1153 mark has not been transferred.
1154 From Björn Eriksson <mdeans@algonet.se>
1156 2001-11-29 Pavel Roskin <proski@gnu.org>
1158 * main.c (midnight_callback): Implement "auto menus".
1160 * layout.c: Make more variables static.
1162 * cons.saver.c: Define LINUX_CONS_SAVER_C so that some parts
1163 of cons.saver.h can be omitted.
1164 * cons.saver.h: Declare nothing but constants if
1165 LINUX_CONS_SAVER_C is defined.
1167 2001-11-14 Pavel Roskin <proski@gnu.org>
1169 Fully eliminate all references to HAVE_X and HAVE_GNOME.
1171 * dir.c (do_sort): Correctly handle the case when there is no
1172 ".." entry (i.e. panelized mode).
1174 2001-11-14 Andrew V. Samoilov <kai@cmail.ru>
1176 * view.c (do_view_init): Make sure _file is not
1177 an empty string before mc_stat and mc_open.
1180 2001-11-14 Pavel Roskin <proski@gnu.org>
1182 * panelize.c (do_external_panelize): Re-sort the panel according
1183 to the current settings.
1185 * find.c (do_find): Re-sort the panel according to the current
1186 settings when doing panelizing.
1188 * dir.c (sort_type_to_name): Remove, it's unused in the text
1190 (sort_name_to_type): Likewise.
1191 * dir.h: Adjust to match.
1193 * mouse.c: Add default cases to fix warnings with gcc-2.96.
1195 2001-11-12 Pavel Roskin <proski@gnu.org>
1197 * main.c: Remove support for subshell debugging. Firstly, it
1198 was broken. Secondly, every developer should be able to add
1199 this code when needed. Finally, there is no need to expose the
1200 option to the user and translate it into 30 languages.
1201 * subshell.h: Remove debug_subshell.
1202 * subshell.c: Likewise.
1204 2001-11-12 Andrew V. Samoilov <kai@cmail.ru>
1206 * mad.h: Enable glib support.
1208 * mad.[ch] (mad_get_current_dir): New function to use instead
1209 of g_get_current_dir.
1210 (mad_tempnam): Add file and line parameters.
1211 (mad_alloc0): Make file parameter const.
1212 (mad_realloc): Likewise.
1213 (mad_strdup): Likewise.
1214 (mad_strndup): Likewise.
1215 (mad_free): Likewise.
1216 (mad_finalize): Likewise.
1218 2001-11-07 Andrew V. Samoilov <kai@cmail.ru>
1220 * cmd.c (guess_message_value): Make val static const array.
1221 (smblink_cmd) [!WITH_SMBFS]: Eliminated.
1223 * dlg.c (add_widget): Check for what is not NULL
1224 before everything else.
1226 * slint.c (slang_reset_softkeys): Make display static const
1227 array. Use sizeof (display) - 1 instead of strlen display.
1228 (color_terminals): Make static const array.
1229 (key_table): Make const.
1231 (dealloc_color_pairs) [HAVE_MAD]: New function. Release
1232 memory allocated in try_alloc_color_pair.
1233 (slang_shutdown) [HAVE_MAD]: Call dealloc_color_pairs.
1234 (try_alloc_color_pair): Move struct c outside function.
1236 2001-10-29 Andrew V. Samoilov <kai@cmail.ru>
1238 * charsets.c (load_codepages_list): Use glib memory allocation
1240 (free_codepages_list) [HAVE_MAD]: New function to release
1241 memory allocated in load_codepages_list.
1242 * charsets.h: Declare free_codepages_list.
1244 * main.c [HAVE_CHARSET]: Include charsets.h.
1245 (main) [HAVE_MAD && HAVE_CHARSET]: Call free_codepages_list.
1246 (program_name): Commented out.
1248 2001-10-26 Andrew V. Samoilov <kai@cmail.ru>
1250 * key.c (push_char): Fix buffer length calculation.
1251 By David Kaelbling <drk@sgi.com>.
1252 http://bugzilla.gnome.org/show_bug.cgi?id=60932
1254 (define_sequence): Likewise.
1255 (key_define_t): Add const declaration.
1257 2001-10-22 Pavel Roskin <proski@gnu.org>
1259 * main.h: Declare view_one_file and edit_one_file.
1261 2001-10-22 Andrew V. Samoilov <kai@cmail.ru>
1263 * dialog.h: Include global.h.
1264 (message): Specify __attribute__.
1266 2001-10-20 Pavel Roskin <proski@gnu.org>
1268 * main.h (print_vfs_message): Specify __attribute__.
1270 2001-10-19 Pavel Roskin <proski@gnu.org>
1272 * global.h: Define __attribute__ to an empty string for non-gcc
1273 compilers so that it's safe to use.
1275 2001-10-18 Pavel Roskin <proski@gnu.org>
1277 * view.c (init_growing_view): Revert last change, it was wrong.
1278 (view_hook): Don't check that the file is regular - it's now
1279 done in do_view_init(). This fixes update problem in quick view
1280 when moving cursor from a regular file to a directory.
1282 * view.c (do_view_init): Only accept regular files. Use stat(),
1283 not fstat() because open() would hang on pipes. Avoid opening
1285 (init_growing_view): Take file descriptor, not the filename.
1286 (load_view_file): Likewise.
1288 2001-10-01 Pavel Roskin <proski@gnu.org>
1290 * boxes.c (tree): Rename to tree_box() to avoid confusion.
1291 Adjust all callers and headers.
1292 * main.c (tree_box): Rename to tree_box_cmd().
1294 * tree.c (set_navig_label): Get argument "tree".
1295 (set_navig_label): Likewise. Adjust all callers. Don't cast
1296 function tree() to (Widget *) - it's wrong and dangerous.
1298 * widget.h: Use type "buttonbarfn" more consistently.
1299 * widget.c: Likewise.
1301 * setup.c [!USE_VFS]: Warning fix.
1302 * hotlist.c [!USE_VFS]: Likewise.
1304 * tree.c (tree_navigation_flag): Should not be static.
1306 * screen.c (panel_format_modified): Use more portable cast.
1308 * fileopctx.h: Define new type mc_stat_fn.
1309 * filegui.c (file_mask_dialog): Cast mc_stat and mc_lstat to
1310 mc_stat_fn to prevent warnings without VFS support.
1311 * fileopctx.c (file_op_context_new): Likewise.
1313 2001-09-23 Andrew V. Samoilov <kai@cmail.ru>
1315 * find.c: Include rx.h or regex.h
1316 (get_line_at): New function. Returns malloc()ed null-terminated
1317 line from file file_fd. Input is buffered in buf_size long
1319 (search_content): Don't use external egrep.
1320 Use get_line_at and regexp.
1322 2001-09-21 Pavel Roskin <proski@gnu.org>
1324 * cmd.c: Change all "long" variables to "off_t" whenever they
1325 are used to store file sizes.
1328 * fileopctx.h: Likewise.
1330 * filegui.c: Likewise.
1331 (show_bar): Take "double" arguments. Normalize arguments of
1332 gauge_set_value() before converting them to "int".
1334 2001-09-17 Pavel Roskin <proski@gnu.org>
1336 * mouse.h: Major cleanup and interface change. init_mouse()
1337 should only be called once, disable_mouse() and enable_mouse()
1338 should be used later. Distinguish between disabled and
1339 undetected mouse. Remove debugging stuff. Adjust all users.
1340 * mouse.c: Implementation of the above.
1341 * key.c: Don't use gpm_flag - check mouse_enabled instead.
1343 2001-09-15 Pavel Roskin <proski@gnu.org>
1345 * view.c: Cleanup of preprocessor directives.
1347 * widget.c: Likewise.
1348 * widget.h: Likewise.
1350 * textconf.h: Get rid of all PORT_HAS_*. Adjust all users.
1351 Continued eliminating GNOME code.
1353 * cmd.c: Clean up unused GNOME code and some ifdef's.
1357 * setup.c: Likewise.
1359 * cmd.c (guess_message_value): Remove the argument. Adjust all
1362 * textconf.c (features): Remove "edition", minor fixes.
1363 (version): Don't report the current locale - it's meaningless,
1364 especially if ENABLE_NLS is not defined.
1366 * textconf.h: Remove status_using_ncurses - it's useless now.
1367 Adjust all users. Call do_exit_ca_mode() and do_enter_ca_mode()
1370 * main.c (init_xterm_support): Don't enable xterm_flag just
1371 because of "kmous" in terminfo. Setiing this flag means much
1372 more than just mouse support. Recognize terminals beginning
1373 with "rxvt" and set xterm_flag for them.
1375 * cmd.c (view_other_cmd): Don't check use_mouse_p before calling
1376 init_mouse() and shut_mouse(), since those functions decide
1377 themselves what to do.
1378 * layout.c (done_screen): Likewise.
1379 * main.c (setup_mc): Likewise.
1380 * text.c (edition_post_exec): Likewise.
1381 (edition_pre_exec): Likewise.
1383 * user.h: Fix location of the home editor menu.
1384 Reported by David Martin <dmartina@excite.es>
1386 * mouse.h: Export xmouse_seq.
1387 * mouse.c (init_mouse): Use xmouse_seq instead of hardcoded
1388 xterm mouse sequence.
1389 * main.c (setup_post): Join with setup_mc().
1390 (init_xterm_support): New function. Check mouse capability.
1391 (OS_Setup): Remove parts that are now in init_xterm_support().
1393 2001-09-14 Pavel Roskin <proski@gnu.org>
1395 * key.c (get_event): Recognize KEY_MOUSE, not just MCKEY_MOUSE.
1396 * mouse.c: Don't use or emulate keyok(), since MC understands
1399 2001-09-11 Pavel Roskin <proski@gnu.org>
1401 * cmd.c (check_for_default): Make accessible from other files.
1402 * cmd.h: Declare check_for_default().
1404 2001-09-10 Pavel Roskin <proski@gnu.org>
1406 * layout.c: Use HAVE_TERMIOS_H and HAVE_SYS_IOCTL_H more
1408 * mouse.c: Likewise.
1409 * subshell.c: Likewise.
1411 * util.c: Remove unused includes.
1413 * Makefile.am (mc_LDADD): Don't use LSLANG and LGPM, since they
1414 are now included into MCLIBS.
1416 * Makefile.am (mc_LDADD): Use INTLLIBS provided by gettext
1419 2001-09-09 Pavel Roskin <proski@gnu.org>
1421 * hotlist.c (load_hotlist): If cannot open hotlist, don't assume
1422 that it needs to be migrated and don't warn the user.
1424 2001-09-08 Pavel Roskin <proski@gnu.org>
1426 * Makefile.am: Fix definitions of CONFDIR and LOCALEDIR.
1428 * subshell.c: Move definitions of WEXITSTATUS and WIFEXITED
1429 below all includes so that they can be defined elsewhere.
1431 2001-09-07 Pavel Roskin <proski@gnu.org>
1433 * myslang.h: Specify arguments to function-like macros or remove
1434 them if they are unused.
1436 * main.c: Remove old debugging code. Remove external function
1438 (menu_bar_event): Remove, it's unused.
1439 * main.h: Declare get_mc_lib_dir() and force_ugly_line_drawing.
1440 * layout.c: Remove all external declarations.
1442 * main.c (main): Call save_stop_handler() - it was ifdef'd out
1445 * main.c: Remove all GNOME code.
1447 * cmd.c: No need to define "MIDNIGHT" before including vfs.h.
1449 * user.h: Remove all dirty tricks with "MIDNIGHT" - they are not
1452 * global.h: Include io.h, pwd.h, grp.h and utime.h. Adjust all
1453 sources not to include them and to include global.h at the right
1456 * global.h: Include all time-related system includes, since
1457 it's non-trivial (order, conflicts) and is better handled in one
1460 2001-09-06 Pavel Roskin <proski@gnu.org>
1462 * fsusage.c: Include sys/param.h before sys/mount.h - it's
1463 required on some systems.
1464 * mountlist.c: Likewise.
1465 From Timur Bakeyev <mc@bat.ru>
1467 2001-09-04 Pavel Roskin <proski@gnu.org>
1469 * Makefile.am: Don't use substituted values directly. Define
1470 CHARSET_SRC unconditionally. Join SRCS and HDRS.
1472 2001-09-03 Pavel Roskin <proski@gnu.org>
1474 * widget.c (label_new): Don't calculate dimensions of multiline
1475 labels, since they cannot be changed and msglen() is already
1476 used when the dialog is created.
1478 * Makefile.in: Converted to ...
1479 * Makefile.am: ... this.
1481 * slint.c: Make more data and function static.
1482 * key.h: Remove declarations that are now static.
1483 * myslang.h: Likewise.
1485 * x.h: Remove. Adjust all users. Make sure that global.h is
1486 included instead. Don't include sys/param.h unconditionally -
1487 rely on global.h taking care of it.
1488 * Makefile.in: Remove x.h.
1490 * color.c: Remove unused code.
1491 * color.h: Likewise.
1493 2001-09-02 Pavel Roskin <proski@gnu.org>
1495 * key.c: Remove support for BUGGY_CURSES.
1497 * tty.h: Remove support for old curses and GNOME.
1498 * global.h: Likewise.
1500 * widget.c (label_new): Set initial width of the widget based on
1503 * view.c (hex_search): Don't use sscanf() to search for quoted
1504 strings - use strchr instead.
1506 2001-08-31 23:14:21 Timur Bakeyev <mc@bat.ru>
1508 * utilunix.c: init_groups(), destroy_groups(), get_user_permissions()
1509 rewritten to use GTree structure and functions. Add new static helper
1510 functions mc_gid_compare() and mc_gid_destroy().
1512 * util.h: Removed deprecated structure user_in_groups.
1514 * screen.c: Fixed typo in format report error string.
1516 2001-08-31 23:14:21 Timur Bakeyev <mc@bat.ru>
1518 * utilunix.c: get_user_rights() renamed into get_user_permissions().
1519 delete_groups() renamed into destroy_groups().
1521 * screen.c: Likewise.
1524 2001-08-27 Pavel Roskin <proski@gnu.org>
1526 * cmd.c (dirsizes_cmd): Don't cast st_size to long - use off_t
1527 instead, since off_t can be longer.
1528 Reported by Radovan Bukoci <rado@autoparts.sk>
1530 2001-08-30 David Martin <dmartina@excite.es>
1532 * info.c (info_show_info): Use size_trunc_len() instead of
1533 print_bytesize(). Don't assume English word ordering. Add
1534 singular message when single block.
1535 * win.c (print_bytesize): Remove.
1536 (sprint_bytesize): Remove.
1537 * win.h: Remove print_bytesize() and sprint_bytesize().
1539 * util.c (size_trunc_len): Add units parameter. Change all
1542 * util.c (size_trunc_len): Print size values with some (little)
1543 sense for tiny and even wee lengths (i.e. squeezed X terminals).
1545 * info.c (info_show_info): Move comment line just before
1546 translatable message so it's shown in .po files to alert
1547 translators. The message (translated) is used to set the start
1548 column (so the available width) for some "truncatable" strings.
1550 2001-08-27 Pavel Roskin <proski@gnu.org>
1552 * key.c (learn_key): Turn off keypad to disable intepreting keys
1554 Reported by Frederic L. W. Meunier <fredlwm@pervalidus.net>
1556 2001-08-26 Pavel Roskin <proski@gnu.org>
1558 * xcurses.c: Remove.
1559 * Makefile.in: Remove all references to xcurses.c.
1561 2001-08-24 Pavel Roskin <proski@gnu.org>
1563 * user.h: Include "../edit/edit-widget.h", not
1564 "../gtkedit/edit-widget.h".
1566 * subshell.c: Use standard Autoconf symbols to determine whether
1567 to include <stropts.h> and <grp.h>.
1569 2001-08-23 Pavel Roskin <proski@gnu.org>
1571 * subshell.c (feed_subshell): Don't wait forever after the first
1572 select() call if fail_on_error is true. This alleviates hang
1573 with zsh on QNX Neutrino.
1575 2001-08-21 Pavel Roskin <proski@gnu.org>
1577 * view.h: Declare view_dlg.
1578 * main.h: Declare edit_dlg.
1579 * layout.c (change_screen_size): Remove external declarations
1580 inside the function.
1582 2001-08-20 Pavel Roskin <proski@gnu.org>
1584 * view.c (load_view_file) [!HAVE_MMAP]: Warning fix.
1586 2001-08-19 Pavel Roskin <proski@gnu.org>
1588 * main.c (mc_maybe_editor_or_viewer) [!USE_INTERNAL_EDIT]:
1589 Reenable to make "mc -v" possible.
1590 (do_nc): Call mc_maybe_editor_or_viewer() even if the editor
1592 (argument_table) [!USE_INTERNAL_EDIT]: Disable "-e".
1594 2001-08-19 Andrew V. Samoilov <sav@bcs.zp.ua>
1596 * view.c (view_handle_key) [HAVE_CHARSET]: Remove unneeded
1599 2001-08-19 Pavel Roskin <proski@gnu.org>
1601 * screen.c [HAVE_X]: Disable unused code.
1603 * fs.h: Correctly include <sys/param.h>.
1604 * x.h: Include "global.h". Move all contents ...
1607 * regex.c (regex_compile): Warning fix for ambiguous else.
1609 2001-08-18 Pavel Roskin <proski@gnu.org>
1611 * key.c (xmouse_get_event): Filter out GPM_UP events that don't
1612 follow a GPM_DOWN event. Filter out events with unknown button
1613 numbers, such as mouse wheel events.
1614 (get_event): Return EV_NONE if xmouse_get_event() decided to
1617 * main.c (init_sigchld): Disable subshell if SIGCHLD handler
1618 cannot be installed.
1620 * x.h: Instead of undefining MIX and MAX after <gnome.h> make
1621 sure that <sys/param.h> is included before <gnome.h>.
1623 2001-08-17 Pavel Roskin <proski@gnu.org>
1625 * key.c (mc_bindings) [linux]: Remove old hack - recognizing
1626 "\e[2~" on all terminals.
1628 2001-08-16 Pavel Roskin <proski@gnu.org>
1630 * charsets.c (load_codepages_list): Print a warning if
1631 mc.charset cannot be opened.
1632 * setup.c (load_setup) [HAVE_CHARSET]: Remove all popup messages
1633 because it's to early to use them - ncurses would crash.
1635 2001-08-15 Pavel Roskin <proski@gnu.org>
1637 * util.c (strip_ctrl_codes): Rewrite using pointers. Fix
1638 stripping sequences beginning with "\e[". Check is_printable().
1640 * man2hlp.c: Remove HTML support. Remove old link support.
1642 (print_string): Handle backslashes in verbatim mode too.
1644 * main.c (setup_pre) [HAVE_CHARSET]: Fix compilation with
1647 * textconf.c (features): Fix interpretation of
1649 From David Martin <dmartina@excite.es>
1651 2001-08-14 Pavel Roskin <proski@gnu.org>
1653 * key.h (define_sequence): Change declaration to return int.
1654 * key.c (define_sequence): Return 1 on success, 0 on error.
1655 * learn.c (learn_button): Don't accept sequence if
1656 define_sequence() has failed.
1658 2001-08-12 Pavel Roskin <proski@gnu.org>
1660 * learn.c (learn_save): Fix memory leak.
1662 * dir.c (string_sortcomp) [HAVE_STRCOLL]: Make static.
1664 * cmd.c (guess_message_value): Typo - replace "LC_MESSAGE" with
1667 * dir.c (string_sortcomp) [HAVE_STRCOLL]: Always use strcmp()
1668 for case sensitive sort. For case insensitive sort use
1669 strcoll() if it's case insensitive for ASCII and g_strcasecmp()
1672 2001-08-11 Pavel Roskin <proski@gnu.org>
1674 * achown.c (chown_advanced_cmd): Remove dead code.
1675 * chown.c (chown_cmd): Likewise.
1676 * chmod.c (chmod_cmd): Likewise.
1678 * charsets.c (load_codepages_list): Use concat_dir_and_file().
1680 * mad.h: Disable glib support - it doesn't work properly.
1682 2001-08-07 Pavel Roskin <proski@gnu.org>
1684 * view.c: Warning fixes. Include "cmd.h". Rename help_cmd()
1686 (view_handle_key) [HAVE_X]: Disable '!' and Ctrl-O.
1688 * main.c (do_execute): Don't show prompt if the command is empty
1689 and the subshell is not running.
1690 * view.c (view_handle_key): Add support for Ctrl-O in the viewer.
1691 Suggested by Walery Studennikov <despair@sama.ru>
1693 2001-08-06 Pavel Roskin <proski@gnu.org>
1695 * boxes.c (display_init): Associate correct help topic.
1696 (sort_box): Likewise.
1697 (set_panel_filter): Likewise.
1698 * option.c (init_configure): Likewise.
1699 * menu.c (menubar_handle_key): Show help dependent on the active
1702 2001-08-06 Andrew V. Samoilov <kai@cmail.ru>
1704 * mad.c (mad_strdup): Return NULL if NULL is passed.
1706 * view.c (block_search): Return the position where the block was
1707 found as declared in comment.
1708 (hex_search): Don't increase pos, block_search returns now right
1711 2001-08-03 Andrew V. Samoilov <kai@cmail.ru>
1713 * mad.[ch] (mad_check): Declare file parameter const.
1714 (mad_alloc): Likewise. Don't truncate it.
1715 (mad_abort): Declare message and file parameters const.
1717 2001-08-03 Pavel Roskin <proski@gnu.org>
1719 * file.c: Warning fix. Include global.h before other local
1721 * filegui.c: Likewise.
1722 (fmd_init_i18n) [!ENABLE_NLS]: Completely disable.
1723 * i18n.h [!ENABLE_NLS]: Warning fix.
1724 * learn.c (init_learn): Move do_refresh() call immediately
1725 before cleate_dlg(). Warning fix.
1727 2001-07-31 Pavel Roskin <proski@gnu.org>
1729 * Makefile.in: "install" now depends on "all".
1730 Reported by Walery Studennikov <despair@sama.ru>
1732 2001-07-31 Andrew V. Samoilov <kai@cmail.ru>
1734 * util.c [!HAVE_X] (is_printable): Don't duplicate declarations from
1736 (load_file): Use fopen and fstat to prevent race conditions.
1737 (size_trunc): Make suffix const array.
1738 (strip_password): Make prefixes const array.
1739 (file_date): Make fmt auto variable.
1740 * color.c (color_table): Make constant array.
1741 * widget.[ch] (label_new): Make text parameter const.
1742 * menu.c (create_menu): Don't localize name, it is always done.
1743 * find.c (find_parameters): Fix hotkeys duplication.
1744 * complete.c (command_completion_function): Don't stop $PATH
1745 processing on empty entry. Interpret it as current directory.
1747 2001-07-31 Pavel Roskin <proski@gnu.org>
1749 * charsets.c: Warning fixes.
1750 * charsets.h: Likewise.
1751 * selcodepage.c: Likewise.
1752 * selcodepage.h: Likewise.
1754 * Makefile.in: Move most logic around gindex.pl into gindex.pl.
1755 Don't use maintainer-only rules since mc.hlp won't be removed
1756 now if perl is missing or gindex.pl fails.
1757 * gindex.pl: Run man2hlp internally. Use files given as
1758 arguments instead of stdin and stdout.
1760 2001-07-30 Pavel Roskin <proski@gnu.org>
1762 * mad.c: Don't use g_calloc - it's missing in glib 1.2.x.
1763 * mad.h: Likewise. Use mad_alloc0() to emulate calloc().
1765 * view.h: Simplify, respect WANT_WIDGETS setting.
1767 2001-07-28 Pavel Roskin <proski@gnu.org>
1769 * view.c (view_ok_to_quit): Make global - it's needed for GMC.
1770 * view.h: Declare view_ok_to_quit().
1772 2001-07-27 Pavel Roskin <proski@gnu.org>
1774 * util.c [!USE_VFS] (get_current_wd): Resurrect, this time using
1775 g_get_current_dir().
1777 * background.h: Remove WITH_BACKGROUND, it's now in extraconf.h.
1778 * background.c: Use WITH_BACKGROUND instead of USE_NETCODE.
1780 * util.c (mc_mkstemps): Don't prepend $TMPDIR if prefix contains
1783 2001-07-26 Pavel Roskin <proski@gnu.org>
1785 * cmd.c (do_link): Append filename to the default symlink
1786 target. Don't add path separator if there is no listing on
1787 the other panel. Avoid using fixed size buffers.
1788 From Max Schedriviy <max@tavrida.net>
1790 * main.c [HAVE_X]: Disable eight_bit_clean and full_eight_bits.
1791 * util.c (is_printable) [HAVE_X]: Simplify.
1793 2001-07-25 Pavel Roskin <proski@gnu.org>
1795 * cmd.c (do_link): Simplify. Don't silently exit if the source
1796 file is not regular - let user see the error if any.
1798 2001-07-24 Pavel Roskin <proski@gnu.org>
1800 * achown.c (ch_perm): Make constant array.
1801 (chown_info_update): Use set_perm_by_flags(), not set_perm().
1804 * achown.c: Make all global variables static. Fix help.
1805 * complete.c: Likewise.
1806 * chmod.c: Make all global variables static.
1807 * chown.c: Likewise.
1808 * chmod.h: Remove all variables.
1810 2001-07-23 Pavel Roskin <proski@gnu.org>
1812 * user.c: Eliminate static variable s_editwidget. Pass
1813 edit_widget as argument. All callers changed.
1814 (expand_format): Fix expansion of %n and %b for the editor.
1815 * util.c: Remove dead code.
1817 * setup.c (load_keys_from_section): Give terminal-specific
1818 settings preference over settings from [terminal:general].
1820 2001-07-22 Pavel Roskin <proski@gnu.org>
1822 * setup.c (load_keys_from_section): Give ~/.mc/ini preference
1825 2001-07-20 Pavel Roskin <proski@gnu.org>
1827 * dlg.c: Remove dependency on definitions in gconf.h.
1829 * widget.c (input_callback) [HAVE_X]: Disable Ctrl-q - it
1832 * file.c (panel_get_file): Use g_assert_not_reached().
1833 * key.c (xgetch_second): Make static.
1835 2001-07-19 Pavel Roskin <proski@gnu.org>
1837 * user.c (check_format_view): Match "unform" instead of
1838 "unformated" because some users may spell this word correctly.
1840 2001-07-17 Pavel Roskin <proski@gnu.org>
1842 * util.c (get_current_wd): Remove. It's obsoleted by
1843 g_get_current_dir() from glib.
1845 * ext.c (exec_extension): Add the `rm' command to the end of
1846 temporary scripts so that they erase themselves.
1848 * util.c (mc_mkstemps): Always use "unsigned long" for enthropy,
1849 since gcc-2.7.2.1 on SunOS doesn't understand __extension__ and
1850 checking for "long long" is not worth the trouble.
1851 Reported by David Martin <dmartina@excite.es>
1853 2001-07-16 Pavel Roskin <proski@gnu.org>
1855 * utilunix.c (mc_doublepopen): Use _exit() instead of exit()
1856 and don't close any unrelated file descriptors. Explicitly
1859 2001-07-15 Pavel Roskin <proski@gnu.org>
1861 * mad.h: Include stdio.h to prevent redefining mad_tempnam().
1862 * main.c [HAVE_X && HAVE_MAD]: Don't call done_key().
1864 * dlg.h: Remove declarations of non-existent functions.
1865 [HAVE_X]: Disable color constants - they shouldn't be used.
1867 * boxes.c [WITH_SMBFS] (vfs_smb_get_authinfo): Copied from
1868 vfs/smbfs.c, function authinfo_get_authinfo_from_user().
1870 * cmd.c [HAVE_X]: Disable source routing dialog and panel
1872 * main.c (ctl_x_map): Simplify preprocessor directives.
1874 2001-07-14 Pavel Roskin <proski@gnu.org>
1876 * screen.c (panel_keymap) [HAVE_X]: Disable Alt-H - it's not
1877 implemented properly for GNOME.
1878 * main.c (directory_history_list) [HAVE_X]: Disable.
1880 * panelize.c [HAVE_X]: Disable unused code.
1882 * main.c [HAVE_X]: Disable Ctrl-X sequences.
1884 * find.c: Remove code unused in the text edition.
1886 * main.c [HAVE_X]: Eliminate setup_post() and partly done_mc().
1888 * utilunix.c (uid_cache): Make static.
1889 (gid_cache): Likewise.
1890 (init_uid_gid_cache): Remove.
1891 * main.c (setup_post): Don't call init_uid_gid_cache().
1893 * main.c (default_map) [HAVE_X]: Disable Alt-T.
1894 * cmd.c [HAVE_X]: Eliminate set_basic_panel_listing_to() and
1895 toggle_listing_cmd().
1897 2001-07-13 Pavel Roskin <proski@gnu.org>
1899 * utilunix.c (canonicalize_pathname): Don't handle PATH_SEP
1900 after backslash in a special way.
1902 2001-07-12 Pavel Roskin <proski@gnu.org>
1904 * subshell.c (init_subshell): Run "set echo_style=both" at
1905 startup to ensure that echo in tcsh understands octal numbers.
1906 Reported by Francis Kwok <francis.kwok@alcatel.com>
1908 * Makefile.in (OURLIBS): Merge with ...
1909 (LIBS): ... this. Add @LIBICONV@.
1910 Reported by Libor Motyèka <l_motycka@ortex.cz>
1912 * subshell.c (subshell_name_quote): New function. Quote all
1913 characters as octals, use command substitution.
1914 (do_subshell_chdir): Use subshell_name_quote(). Don't change
1915 terminal settings when the quoted path is sent to the shell -
1918 2001-07-12 Andrew V. Samoilov <kai@cmail.ru>
1920 * main.c: Eliminate iconify_on_exec.
1921 [!HAVE_GNOME]: Eliminate nowindows, nodesktop, twopanel,
1922 display_linksdir and cmdline_geometry.
1923 (sigchld_handler_no_subshell): Comment fixes.
1924 (midnight_callback): Likewise.
1925 (print_mc_usage): Use fputs, not fprintf.
1926 (print_color_usage): Likewise.
1927 (argument_table): Assign 'r' with force_subshell_execution and 'U'
1929 (process_args): Don't deal with 'r', 'U' and 'X' options.
1930 (setup_mc) [HAVE_GNOME]: Eliminate more code.
1932 setup.c (options): Eliminate iconify_on_exec.
1934 2001-07-10 Andrew V. Samoilov <kai@cmail.ru>
1936 * view.c (hex_search): Release buffer after use.
1938 2001-07-09 Pavel Roskin <proski@gnu.org>
1940 * view.c (hex_search): Reimplement parser using sscanf. Add
1941 support for decimal and octal numbers. Add error reporting.
1942 Allocate buffer dynamically.
1944 * hotlist.c: Add comments to avoid confusion between
1945 done_hotlist() and hotlist_done().
1946 (hotlist_done): Set l_hotlist to NULL.
1947 (add2hotlist): Load hotlist if it's neither loaded nor loading.
1948 This fixes Ctrl-x h. Fix compiler warning.
1950 * hotlist.c: Make more variables and functions static.
1952 2001-07-08 Pavel Roskin <proski@gnu.org>
1954 * ext.c (exec_extension) [HAVE_X]: Free file_name. Add comment
1955 explaining why it cannot be unlinked there.
1957 2001-07-06 Pavel Roskin <proski@gnu.org>
1959 * ext.c (exec_extension): Unlink temporary file earlier if it's
1960 not going to be used.
1963 * Makefile.in: Use additional quotes to preserve @prefix@ when
1964 Makefile is generated.
1966 * Makefile.in: Don't use SEDCMD2, use sed.
1968 * cons.saver.c: New variable console_minor. Eliminate variables
1970 (check_file): Set console_minor to the minor device number of
1971 the console. Disallow /dev/tty0.
1972 (detect_console): Don't parse tty_name, instead make sure that
1973 it corresponds to console_minor. Check console first. Fallback
1974 to /dev/vcc/a* if /dev/vcsa* cannot be opened.
1975 (save_console): Use console_minor.
1976 (restore_console): Likewise.
1978 * cons.saver.c (check_file): Eliminate using text messages to
1979 indicate errors. Improve debug messages.
1980 (detect_console): Likewise.
1981 (main): Adjust call to detect_console.
1983 * main.c (sigchld_handler_no_subshell): Don't restart cons.saver
1985 * subshell.c (sigchld_handler): Likewise.
1987 2001-07-05 Pavel Roskin <proski@gnu.org>
1989 * main.c (midnight_callback): Don't handle any events except
1990 Ctrl-x combinations on DLG_KEY event if the menu is active.
1992 * main.c (load_prompt): Don't change prompt if midnight_dlg is
1993 not the current dialog.
1995 2001-06-28 Pavel Roskin <proski@gnu.org>
1997 * util.c (size_trunc_len): New function - print file size to
1998 a buffer of limited length.
1999 * util.h: Declare size_trunc_len().
2000 * screen.c (string_file_size): Use size_trunc_len().
2002 2001-06-26 Pavel Roskin <proski@gnu.org>
2005 * Makefile.in (SRCS): Remove xslint.c.
2007 2001-06-25 Pavel Roskin <proski@gnu.org>
2009 * key.c (ctrl_pressed): Don't limit functionality to Linux.
2010 * screen.c (prev_page_key): Don't require console_flag to be set
2011 to use ctrl_pressed(), only require that HAVE_X is undefined.
2012 (next_page_key): Likewise.
2013 * widget.c (key_left): Don't limit functionality to Linux.
2014 (key_right): Likewise.
2016 * main.h: Use "ifdef HAVE_GNOME", not "if HAVE_GNOME". Fix the
2017 order of conditionals and put comments on endifs.
2019 2001-06-25 Andrew V. Samoilov <sav@bcs.zp.ua>
2021 * view.c [HAVE_CHARSET]: Include selcodepage.h.
2022 (view_new): Use g_new0.
2023 (ruler): Make static.
2025 * complete.c (filename_completion_function): Clean it up.
2026 (command_completion_function): Make words, bash_reserved and
2027 bash_builtins const, use concat_dir_and_file.
2028 (fetch_hosts): Fix typo, style fixes.
2030 2001-06-23 Pavel Roskin <proski@gnu.org>
2032 * mem.h: Undefine bcopy(), bcmp() and bzero() before redefining
2035 2001-06-22 Pavel Roskin <proski@gnu.org>
2037 * ext.c (exec_extension) [HAVE_X]: Disable console handling.
2039 * cons.handler.c: Reorganize includes. Fix warnings on BSD.
2040 * rxvt.c (rxvt_extensions): Make static.
2041 * main.c (sigchld_handler_no_subshell) [!__linux__]: Don't try
2042 to restart cons.saver.
2043 * subshell.c (sigchld_handler) [!__linux__]: Likewise.
2045 * fsusage.c: Use HAVE_INFOMOUNT.
2046 * mountlist.c: Likewise. Fix condition when mount_list is
2048 (fstype_to_string): Rename mount_list to mlist to avoid
2049 confusion with the file-scoped static variable.
2051 * cmd.c [HAVE_X]: Disable more code. Reorder includes.
2053 2001-06-20 Pavel Roskin <proski@gnu.org>
2055 * main.c: Remove MenuBarEmpty. From Andrew V. Samoilov.
2057 * wtools.c [HAVE_X]: Disable quick dialog routines.
2059 * setup.c (save_setup) [HAVE_X]: Don't save the [Dirs] section.
2060 (load_setup) [HAVE_X]: Don't load the [Dirs] section.
2061 * main.c [HAVE_X]: Disable other_dir and boot_current_is_left.
2064 2001-06-19 Pavel Roskin <proski@gnu.org>
2066 * background.h: Correct condition when WITH_BACKGROUND is
2068 * fsusage.c: Rearrange the includes. Define HAVE_QNX_MOUNT
2069 for old QNX and use it instead of __QNX__.
2070 * mountlist.c: Likewise.
2071 * keyxdef.c: Define HAVE_QNX_KEYS for old QNX and use it instead
2074 2001-06-18 Pavel Roskin <proski@gnu.org>
2076 * main.c [HAVE_X]: Disable change_panel(),
2077 copy_current_readlink() and copy_other_readlink().
2078 Don't do anything with cmdline and command_prompt.
2079 * screen.c [HAVE_X]: Disable panel_event(), chdir_other_panel()
2080 and chdir_to_readlink(). Adjust all callers.
2081 (panel_key) [HAVE_X]: Don't use command_prompt - always
2082 start search on alphanumeric keys.
2083 * setup.c [HAVE_X]: Disable save_layout(), load_layout(), struct
2084 layout. Adjust all dependencies.
2086 * utilunix.c (init_my_statfs): Move this ...
2087 * util.c (my_statfs): ... and this ...
2088 * mountlist.c: ... here.
2089 * util.h: Move mountlist-related declarations ...
2090 * mountlist.h: ... here.
2091 * info.c: Include mountlist.h.
2093 2001-06-17 David Martin <dmartina@excite.es>
2095 * hotlist.c (init_movelist): Don't assume English word ordering
2098 2001-06-16 Andrew V. Samoilov <sav@bcs.zp.ua>
2100 * wtools.c (message): Possible buffer overflow fixed.
2101 (query_callback) [HAVE_X]: Disable more code.
2102 (listbox_refresh) [!HAVE_X]: Became a macro.
2103 * hotlist.c (init_i18n_stuff): Mark cancel_but for translation.
2105 * tree.c (tree_copy, tree_move): Possible memory leaking fixed.
2106 (tree_keymap): Constified.
2108 2001-06-15 Pavel Roskin <proski@gnu.org>
2110 * panelize.c: Define DIR_H_INCLUDE_HANDLE_DIRENT earlier, since
2111 the GNOME edition includes dir.h from other headers.
2113 * background.c: Include "x.h".
2114 * panelize.c: Likewise.
2115 * treestore.c: Likewise.
2118 * command.c: Reorder includes. Include "x.h".
2119 * complete.c: Likewise.
2121 * user.h: Declare user_menu_cmd() unconditionally.
2122 * i18n.h [GAVE_GNOME]: Remove code that is now in x.h.
2124 * tty.h [HAVE_X]: Define beep() to gdk_beep().
2126 2001-06-14 Pavel Roskin <proski@gnu.org>
2128 * xtty.h: Remove, move contents ...
2130 [HAVE_X]: Define attrset(), mc_refresh(), enable_interrupt_key()
2131 and disable_interrupt_key(). Don't declare mc_refresh().
2132 * view.c: Use braces around widget_move() since it's empty in
2134 * xslint.c: Eliminate attrset() and mc_refresh().
2135 * Makefile.in: Remove xtty.h.
2137 * cons.handler.c (handle_console): Remove useless default.
2138 * ext.c (regex_command): Initialize include_target_len.
2139 * find.c [HAVE_GNOME]: Eliminate untyped declarations.
2140 * fsusage.c: Remove untyped declaration of statfs().
2141 [_AIX && _I386]: Rename statfs to aix_statfs and move
2142 it before get_fs_usage(). Define statfs to aix_statfs.
2144 * achown.c: Eliminate untyped declarations.
2145 * boxes.c: Likewise.
2146 * cons.saver.c: Likewise.
2147 * hotlist.c: Likewise.
2148 * panelize.c: Likewise.
2150 * main.c: Likewise. Make undeclared functions static.
2151 * treestore.c: Make undeclared functions static.
2153 * widget.c: Likewise.
2155 * main.h: Fix prototype of exec_shell.
2156 * tree.c: Make all functions static when possible.
2157 * tree.h: Changes for the above.
2159 * text.c [HAVE_X]: Remove useless #error.
2160 * cons.saver.c: Indent #error to hide it from old compilers.
2162 2001-06-13 Pavel Roskin <proski@gnu.org>
2164 * screen.c (display_mini_info): Avoid nested i18n calls.
2165 (parse_panel_size): Warning fix.
2166 * user.c [HAVE_X]: Warning fix.
2167 (check_format_var): Avoid nested i18n calls. Improve messages.
2169 * screen.c (user_file_menu_cmd) [HAVE_X]: Disable.
2170 (panel_callback) [HAVE_X]: Don't define labels, they are unused.
2171 * user.c [HAVE_X]: Disable all user menu code.
2173 * color.c (color_table): Make static. Only use in text edition.
2174 * xtty.h: Remove unused definitions.
2176 * slint.c (slang_init): Check screen dimensions and exit if they
2177 are abnormal. This may happen due to a S-Lang bug when the TERM
2178 is set to a value not listed in termcap or terminfo.
2180 2001-06-12 Pavel Roskin <proski@gnu.org>
2182 * boxes.c [HAVE_CHARSET]: Localize more strings. Lay out the
2183 encoding dialog using the translated title length. Remove
2184 useless preprocessor directives.
2185 From David Martin <dmartina@excite.es>
2187 2001-06-11 Andrew V. Samoilov <sav@bcs.zp.ua>
2189 * dlg.[ch] (x_set_dialog_title): title constified.
2190 (create_dlg): Use g_new0 instead of g_new.
2192 * selcodepage.c (do_select_codepage): Fix compilation.
2194 2001-06-09 Pavel Roskin <proski@gnu.org>
2196 * util.c (load_mc_home_file): New function. Load file from
2197 mc_home, but try localized version of that file first.
2198 * util.h: Declare load_mc_home_file().
2199 * help.c (interactive_display): Use load_mc_home_file(). If the
2200 first argument is NULL assume mc.hlp.
2201 * dlg.c (dialog_handle_key): Use interactive_display() without
2202 specifying the help file.
2203 * tree.c (tree_copy): Likewise.
2204 * cmd.c (help_cmd): Likewise.
2205 (get_random_hint): Use load_mc_home_file().
2206 From Andrew V. Samoilov.
2208 2001-06-07 Andrew V. Samoilov <sav@bcs.zp.ua>
2210 * charsets.h: Define CHARSETS_INDEX without leading LIBDIR.
2212 * charsets.c (translate_character): Warning fix.
2213 (init_translation_table): Don't deal with printable.
2214 This one is initialized by init_printable_table ().
2215 (load_codepages_list): Use CHARSETS_INDEX.
2217 * selcodepage.c (do_select_codepage): Messages marked for i18n.
2218 * setup.c (load_setup): Eliminate errbuf. Fix error message.
2220 2001-06-07 Pavel Roskin <proski@gnu.org>
2222 * setup.c (load_setup): Call init_printable_table() and
2223 init_translation_table() regardless of other failures.
2225 * charsets.c (get_codepage_index): Warning fix.
2226 (init_printable_table): New function.
2227 * charsets.h: Declare init_printable_table().
2228 * setup.c (load_setup): Uncomment init_printable_table().
2230 * cons.saver.c: Make all functions except main() static.
2231 * mfmt.c (omain): Remove, it's unused.
2233 2001-06-06 Pavel Roskin <proski@gnu.org>
2235 * main.c (done_mc) [HAVE_X]: Don't use xterm_flag.
2236 (midnight_callback) [HAVE_X]: Don't handle any keys except
2238 Remove useless preprocessor conditionals.
2239 * win.c [HAVE_X]: Disable unused functions.
2241 * file.c: Add comments after every endif.
2242 [HAVE_GNOME] [!WITH_BACKGROUND]: Fix compilation.
2244 2001-06-06 Andrew V. Samoilov <sav@bcs.zp.ua>
2246 * main.c [HAVE_CHARSET]: Remove source_codepage and display_codepage.
2247 They are declared in selcodepage.c.
2248 * setup.c [USE_VFS]: Remove declarations for variables which are
2249 declared in vfs/ftpfs.c.
2250 (load_setup) [HAVE_CHARSET]: init_printable_table commented
2251 out to enable compilation. Error strings tagged for translation.
2252 (init_setup): Optimized.
2253 * boxes.c (sel_charset_button): Eliminate C++ comment.
2254 (new_display_codepage): Made static.
2255 (display_bits_box): Use "%s" for plain string in message.
2257 2001-06-05 Pavel Roskin <proski@gnu.org>
2259 * boxes.c [HAVE_CHARSET]: New charset selection dialog.
2260 * main.c [HAVE_CHARSET]: Don't use eight_bit_clean and
2261 full_eight_bits. Use source_codepage and display_codepage to
2262 deduce the terminal 8-bitness.
2263 * main.h [HAVE_CHARSET]: Change to match main.c.
2264 * setup.c [HAVE_CHARSET]: Implement saving and loading charset
2266 * util.c (is_printable) [HAVE_CHARSET]: Use charset settings.
2267 * view.c [HAVE_CHARSET]: Implement charset support.
2268 From Walery Studennikov <hqsoftware@mail.ru>.
2270 * selcodepage.c (do_select_codepage): New function.
2271 * selcodepage.h: Declare it.
2272 From Walery Studennikov <hqsoftware@mail.ru>.
2274 * mfmt.c (omain): Warning fix.
2276 * key.c [HAVE_TEXTMODE_X11_SUPPORT]: Rename `display' to
2277 `x11_display' and `w' to `x11_window'. Make them static.
2278 (init_textmode_x11_support): Include into init_key().
2279 (done_textmode_x11_support): Include into done_key().
2280 (k_dispose): Make static.
2281 (s_dispose): Likewise.
2282 * key.h: Remove init_textmode_x11_support() and
2283 done_textmode_x11_support().
2284 * main.c: Don't call init_textmode_x11_support() and
2285 done_textmode_x11_support().
2287 * achown.c: Make global variables static if possible. Remove now
2288 useless preprocessor directives, since this file is now used in
2289 the text edition only.
2290 * boxes.c: Remove useless ifdefs.
2291 [USE_VFS]: Don't undef USE_NETCODE - it's done in extraconf.h.
2292 * cmd.c [USE_VFS]: Don't undef USE_NETCODE.
2293 * chmod.c: Remove useless ifdefs.
2294 * filegui.c: Likewise.
2295 * hotlist.c: Likewise.
2297 * layout.c: Likewise.
2298 * listmode.c: Likewise.
2299 * option.c: Likewise.
2300 * subshell.c: Likewise.
2301 * help.c: Remove useless ifdefs. Make global variables static if
2304 * learn.c: Likewise.
2306 2001-06-04 Andrew V. Samoilov <sav@bcs.zp.ua>
2308 * charsets.c (load_codepages_list): Lines in mc.charset beginning
2309 with a # are comments. Use "default character_set_name" in mc.charset
2310 to set default codepage for your system.
2311 (xstrncpy): Eliminate.
2313 2001-06-04 Pavel Roskin <proski@gnu.org>
2315 * cmd.c (edit_symlink_cmd) [!HAVE_GNOME]: Warn if the current
2316 selection is not a symbolic link.
2318 2001-06-02 Pavel Roskin <proski@gnu.org>
2320 * cmd.c (free_vfs_now) [HAVE_GNOME]: Eliminate.
2321 (reselect_vfs) [HAVE_GNOME]: Likewise.
2322 * main.c (ctl_x_map) [HAVE_GNOME]: Disable add2hotlist_cmd.
2323 (done_mc) [HAVE_X]: Don't call save_hotlist().
2324 * setup.c (save_setup) [HAVE_X]: Likewise.
2325 (done_setup) [HAVE_X]: Don't call done_hotlist().
2327 2001-06-01 Pavel Roskin <proski@gnu.org>
2329 * hotlist.c [HAVE_X]: Don't use ctrl_pressed().
2330 * widget.c [HAVE_X]: Likewise.
2331 * main.c [HAVE_X]: Likewise. Don't call init_key() and
2332 init_key_input_fd().
2333 * setup.c [HAVE_X]: Remove some variables that make no sence
2334 for the GNOME edition. Eliminate save_panel_types().
2335 * view.c [!PORT_WANTS_VIEW]: Eliminate view_mode_callback().
2337 * view.c [HAVE_X]: Define is_idle() to 1. Warning fix.
2339 * file.c (copy_file_file): Initialize src_uid, src_gid, src_mode
2340 and file_size to avoid a warning.
2342 2001-05-31 Pavel Roskin <proski@gnu.org>
2344 * charsets.c: Include config.h before everything else.
2345 * selcodepage.c: Likewise.
2347 * textconf.c (features): Use longer strings to avoid enforcing
2348 english word ordering on the translations. Capitalize sentences.
2349 From Walery Studennikov: Indicate charset support.
2350 (version): Use fputs, not fprintf.
2352 * Makefile.in: Add charsets.c, charsets.h, selcodepage.c and
2353 selcodepage.h. Compile them if the charset support is enabled.
2354 Distribute them always.
2356 2001-05-30 Pavel Roskin <proski@gnu.org>
2358 * charsets.c: New file for charset conversion support.
2359 From Walery Studennikov.
2360 * charsets.h: Likewise.
2361 * selcodepage.c: Likewise.
2362 * selcodepage.h: Likewise.
2364 * layout.c (init_curses) [!HAVE_SLANG]: Set ESCDELAY to 0 if
2365 possible to prevent ncurses from waiting after escape.
2367 2001-05-29 Pavel Roskin <proski@gnu.org>
2369 * cmd.c (quick_cd_cmd) [HAVE_GNOME]: Disable.
2370 * main.c (sort_cmd) [HAVE_GNOME]: Likewise.
2371 (ctl_x_map) [HAVE_GNOME]: Disable "Ctrl-x j" - background jobs.
2373 * color.c (init_colors) [HAVE_SLANG]: Use "default" instead of
2374 NULL as color names - this works even if COLORFGBG is unset.
2375 Don't check HAS_DIRECT_COLOR_ACCESS - it's now meaningless.
2377 * color.h: Define DEFAULT_COLOR_INDEX and DEFAULT_COLOR in the
2378 same way regardless of HAVE_SLANG.
2379 * color.c (init_colors) [USE_NCURSES]: Initialize the default
2382 * subshell.c (pty_open_master) [!HAVE_SCO && HAVE_GRANTPT]:
2383 Don't try to close a file that wasn't opened.
2385 * xslint.c: Remove slang_init() and FIXME in the comment.
2386 * main.c (main) [!HAVE_SLANG]: Don't call slang_init().
2388 2001-05-28 Pavel Roskin <proski@gnu.org>
2390 * myslang.h: Use HAVE_SLANG_SLANG_H instead of non-standard
2391 SLANG_H_INSIDE_SLANG_DIR.
2393 * xslint.c: Remove unused functions.
2395 * color.c (init_colors) [HAVE_SLANG]: Use SLtt_set_color() to
2396 associate the default colors with DEFAULT_COLOR_INDEX. The old
2397 code would unset alternative charset without making S-Lang aware
2399 Thanks to John E. Davis <davis@space.mit.edu>
2400 * widget.c (update_input) [HAVE_SLANG]: Revert last change - it
2403 2001-05-28 Andrew V. Samoilov <sav@bcs.zp.ua>
2405 * main.c: Correct some comments after #endif
2406 (shell): Remove comment and #ifdef around shell variable.
2407 (process_args) [HAVE_SUBSHELL_SUPPORT]: All related args enclosed
2408 between one #ifdef ... #endif pair.
2409 (process_args): smbfs_set_debug () takes a debug level as argument,
2412 2001-05-27 Pavel Roskin <proski@gnu.org>
2414 * main.c (OS_Setup) [!HAVE_X]: Exit immediately if TERM
2415 environment variable is unset or empty.
2417 2001-05-25 Pavel Roskin <proski@gnu.org>
2419 * cmd.c: Clean up useless preprocessor directives.
2420 (symlink_cmd): Warning fix.
2421 * dlg.c (dialog_handle_key) [HAVE_X]: Disable suspend on Ctrl-z.
2422 * main.c (do_suspend_cmd) [HAVE_GNOME]: Remove.
2423 (suspend_cmd) [HAVE_GNOME]: Likewise.
2425 2001-05-24 Pavel Roskin <proski@gnu.org>
2427 * widget.c (update_input) [HAVE_SLANG]: Work around a bug in
2428 SLang 1.x - set charset to alternative when printing spaces.
2430 2001-05-22 Pavel Roskin <proski@gnu.org>
2432 * ext.c (exec_extension): Use g_free() on the result of
2433 mc_mkstemps(). Don't free it if mc_mkstemps() fails - it's not
2435 * user.c (execute_menu_command): Likewise.
2436 * util.c (mc_mkstemps): Return NULL in the filename in the case
2437 of failure. Remove support for NULL as the first argument.
2438 From Andrew V. Samoilov.
2440 2001-05-21 Pavel Roskin <proski@gnu.org>
2442 * ext.c (exec_extension): Use mc_mkstemps().
2443 * user.c (execute_menu_command): Use mc_mkstemps().
2444 * util.c (mc_mkstemps): New function - safely create and
2445 open temporary file. Return the handle and the name.
2446 * util.h: Declarations for init_tmpdir() and mc_mkstemps().
2447 Define TMPDIR_DEFAULT and SCRIPT_SUFFIX.
2449 2001-05-18 Pavel Roskin <proski@gnu.org>
2451 * TODO: Remove Tk-related entries.
2452 * boxes.c [HAVE_TK]: Remove. Don't need INPUT_INDEX anymore.
2453 * screen.c [HAVE_TK]: Remove.
2454 (panel_event): Made static.
2455 * chmod.c [HAVE_TK]: Remove.
2456 * cmd.c [HAVE_TK]: Likewise.
2457 * help.c [HAVE_TK]: Likewise.
2458 * hotlist.c [HAVE_TK]: Likewise.
2459 * info.c [HAVE_TK]: Likewise.
2460 * view.c [HAVE_TK]: Likewise.
2461 * view.h [HAVE_TK]: Likewise.
2462 * widget.c [HAVE_TK]: Likewise.
2463 * wtools.c [HAVE_TK]: Likewise.
2465 * TODO: Remove XView-related entries.
2466 * menu.h [HAVE_XVIEW]: Remove all XView-related code.
2468 2001-05-17 Pavel Roskin <proski@gnu.org>
2470 * subshell.c (pty_open_master) [HAVE_SCO]: Fix ambigous `else'.
2471 [!HAVE_SCO && !HAVE_GRANTPT]: Likewise.
2473 2001-05-16 Pavel Roskin <proski@gnu.org>
2475 * subshell.c: Define _GNU_SOURCE to enable prototypes for
2476 allocating pseudo-terminals on GNU systems.
2478 * subshell.c (init_subshell_child): New function to initialize
2479 child process and run subshell. Code moved from ...
2480 (init_subshell): ... here.
2482 * subshell.c (init_subshell): Don't close pty_slave if is wasn't
2483 open. Initialize it with -1.
2485 2001-05-14 Pavel Roskin <proski@gnu.org>
2487 * main.c [HAVE_GNOME]: Disable more code.
2488 * cmd.c [HAVE_GNOME]: Likewise.
2490 * background.h: Omit definitions that require FileOpContext if
2491 fileopctx.h has not been included yet.
2493 * background.c (real_message_2s): Declare arguments "const" when
2495 (real_message_3s): Likewise.
2496 * wtools.c (message): Likewise.
2497 * background.h: Change declarations to match.
2498 * dialog.h: Likewise.
2500 * boxes.c [HAVE_GNOME]: Disable unused code.
2501 * find.c [HAVE_GNOME]: Likewise.
2502 * complete.c [HAVE_GNOME]: Likewise.
2503 * main.c [HAVE_GNOME]: Likewise.
2505 * screen.c (adjust_top_file): Enable only if it's used, i.e.
2506 when PORT_HAS_PAINT_FRAME in undefined.
2507 * wtools.c (listbox_refresh): Disable for HAVE_X, define to
2508 an empty macro instead.
2509 (listbox_callback): Call listbox_refresh() regardless of HAVE_X.
2510 (create_listbox_window): Likewise.
2512 * fsusage.c: Include stdlib.h for abort().
2513 * tree.c (tree_mkdir_cmd): Disable tree_mkdir_cmd() since it's
2515 * widget.c: Declare x_radio_toggle() with arguments.
2517 * util.h: Remove declarations of some functions defined in
2520 2001-05-14 Andrew V. Samoilov <sav@bcs.zp.ua>
2522 * background.c (real_message_1s, message_1s): third parameter is
2523 used by message () as printf pattern, so "%s" has to be added
2524 if plain string must be shown but printf conversion
2525 specification(s) may be there.
2526 * view.c (do_view_init): ditto
2527 * user.c (debug_out): ditto
2528 * utilunux.c (close_error_pipe, check_error_pipe): ditto
2530 * background.[ch], vfs/util-alone.c (message_1s): third parameter
2533 2001-04-27 Andrew V. Samoilov <sav@bcs.zp.ua>
2535 * find.c (search_content): Redo recent change without infinite loop ;-),
2536 egrep_path hardcoded to "egrep" as it is done in locate_egrep ()
2538 (locate_egrep): commented out
2540 (rotating_dash) [!HAVE_X]: moved into do_search to prevent warning
2542 2001-04-26 Pavel Roskin <proski@gnu.org>
2544 * find.c (search_content): Undo a recent change that caused an
2547 2001-04-24 Andrew V. Samoilov <sav@bcs.zp.ua>
2549 * view.c (get_line_at): previous newline is right condition
2550 for regexp '^' pattern also, fixed
2552 (search) [HAVE_GNOME]: gnome_message_box_new doesn't expand printf
2553 pattern, so g_strdup_printf used
2555 * find.c (find_parameters): don't use stat structure if mc_stat failed
2557 2001-04-17 Pavel Roskin <proski@gnu.org>
2559 * subshell.c (init_raw_mode): New function, separated from ...
2560 (invoke_subshell): ... this.
2561 (init_subshell): Initialize raw_mode here instead of delayng it
2562 until invoke_subshell(). Otherwise the current mode may have
2563 been changed by edition_pre_exec(), which caused Ctrl-O to be
2564 ignored on FreeBSD if a command has been run before switching
2567 2001-04-06 Pavel Roskin <proski@gnu.org>
2569 * chmod.c (stat_file): Allow chmod and chown on special files.
2571 * cons.handler.c: Include "global.h" for exit().
2573 * Makefile.in: Add dependencies between mc and static libraries
2576 2001-04-06 Andrew V. Samoilov <sav@bcs.zp.ua>
2578 * find.c (find_parameters): Add a checkbox for case insensitive
2580 (search_content): Pass `-i' to egrep for case insensitive
2583 2001-03-30 Andrew V. Samoilov <sav@bcs.zp.ua>
2585 * panel.h, screen.c (panel_new): panel_name constified to do gcc
2586 some more happy when gmc is compiled
2588 2001-03-18 Miguel de Icaza <miguel@ximian.com>
2590 * widget.c (forward_word, backward_word): Revert Timur's patch
2591 from last year which made the behaviour for advancing words not
2592 match the one in Emacs.
2594 2001-03-02 Pavel Roskin <proski@gnu.org>
2596 * key.c (mi_getch): Discard non-events (EV_NONE), but not
2599 2001-02-26 Pavel Roskin <proski@gnu.org>
2601 * cmd.c (edit_cmd) [HAVE_GNOME]: Use gmc_edit(). Don't use
2603 (ext_cmd) [HAVE_GNOME]: Don't compile for GNOME.
2604 * ext.c (regex_command) [HAVE_GNOME]: Likewise.
2605 * ext.h [HAVE_GNOME]: Don't define MC_USER_EXT and MC_LIB_EXT.
2607 * main.c (main): Don't call edit_init_file() - the editor should
2608 care about its files itself.
2610 2001-02-09 Pavel Roskin <proski@gnu.org>
2612 * main.c (main): Fix compilation error when configured without
2615 2001-02-07 Andrew V. Samoilov <sav@bcs.zp.ua>
2617 * main.c (main): Do not fork subshell for mcedit/mcview.
2619 2001-01-27 Pavel Roskin <proski@gnu.org>
2621 * cons.handler.c (handle_console): Check the result of ttyname().
2623 * main.c (handle_args): Exit if no arguments are given to mcview.
2624 [HAVE_GNOME]: Don't examine argv[0] - it's done separately.
2626 * dir.c: Respect HAVE_STRCOLL. Added a comment about strcoll().
2628 2001-01-26 Pablo Saratxaga <pablo@mandrakesoft.com>
2630 * file.c: moved a comment one line down so it becomes visible on the
2631 translators' po files. Also added gettext:no-c-format comments for
2632 a few strings with % in them that are not C format printf codes.
2634 2001-01-21 Andrew V. Samoilov <sav@bcs.zp.ua>
2636 * subshell.c (do_subshell_chdir): temporary patch to prevent command
2637 execution for directory names containing 0x03 (intr) 0x14.
2638 See http://www.securityfocus.com/vdb/?id=2016 for details.
2639 Subshell still can't chdir to such directories :(
2641 * subshell.[ch] (do_subshell_chdir): directory constified
2643 2001-01-17 Pavel Roskin <proski@gnu.org>
2645 * Makefile.in: Respect LDFLAGS when linking cons.saver.
2647 2000-11-20 Andrew V. Samoilov <sav@bcs.zp.ua>
2649 * view.c: Fixed long existed bugs in internal viewer. When search is
2650 doing in binary file it ignore skipped zero(es), so cursor is before
2651 searched expression and next search find the same string. Also regexp
2652 search could return wrong results for '^ ?' expressions.
2654 (get_line_at): skipped: new parameter for number of skipped zero(es)
2656 (search): new features of get_line_at used.
2658 2000-11-16 Andrew V. Samoilov <sav@bcs.zp.ua>
2660 * cons.saver.c (check_file): close fd on error. There was a bug, which
2661 allowed luser to write '\0' char to any symlinkable file in Linux
2662 system which don't ensure that fd's 0, 1, and 2 are open on startup
2663 of a SUID/SGID binary.
2664 Based on patch from bugtrack by Maurycy Prodeus <z33d@ETH-SECURITY.NET>.
2666 2000-11-14 Andrew V. Samoilov <sav@bcs.zp.ua>
2668 * layout.c (print_vfs_message): format string vulnerability fixed
2670 2000-11-03 Andrew V. Samoilov <sav@bcs.zp.ua>
2672 * main.c (CmdMenu): don't include edit_user_menu_cmd ()
2673 if USE_INTERNAL_EDIT is not defined
2674 (main): call edit_init_file () if USE_INTERNAL_EDIT is defined only
2675 (listmode_cmd): messages are localized
2677 2000-11-02 Pavel Roskin <proski@gnu.org>
2679 * layout.c [PORT_NEEDS_CHANGE_SCREEN_SIZE]: Declare
2680 low_level_change_screen_size().
2681 (flag_winch) [PORT_NEEDS_CHANGE_SCREEN_SIZE]: Call
2682 low_level_change_screen_size(). From Andrew V. Samoilov.
2684 2000-10-04 Pavel Roskin <proski@gnu.org>
2686 * user.c (expand_format): Fixed processing of "%s".
2688 2000-09-30 Pavel Roskin <proski@gnu.org>
2690 * Makefile.in: Added an explicit rule for man2hlp.
2692 2000-09-26 Pavel Roskin <proski@gnu.org>
2694 * listmode.c, listmode.h, main.c: Consistently using define
2695 LISTMODE_EDITOR to enable the experimental listmode editor.
2696 * main.c: Don't allow two adjacent separators in the Command
2699 2000-09-22 Pavel Roskin <proski@gnu.org>
2701 * fixhlp.c: Removed.
2702 * Makefile.in: Removed all references to fixhlp.c
2704 2000-09-14 Pavel Roskin <proski@gnu.org>
2706 * features.h: Joined with textconf.h to avoid name clash with
2708 * features.c: Renamed to ...
2709 * textconf.c: ... this
2710 * Makefile.in, cmd.c, main.c, text.c: necessary adjustments
2712 * Makefile.in: Don't make softlinks to the libraries
2714 2000-09-13 Pavel Roskin <proski@gnu.org>
2716 * Makefile.in: Only rebuild mc.hlp in the maintainer mode.
2718 2000-09-01 Pavel Roskin <proski@gnu.org>
2720 * fixhlp.c: fixed compile errors and warnings
2722 2000-08-30 Pavel Roskin <proski@gnu.org>
2724 * dirhist.c, dirhist.h: removed
2726 * features.h, keys.h, textconf.h, x.h: added protection against
2729 2000-08-23 Pavel Roskin <proski@gnu.org>
2731 * features.c: include <sys/param.h> to avoid a warning
2733 * main.c [HAVE_X]: print_mc_usage() and print_color_usage()
2735 version() moved to ...
2736 * features.inc: ... here, renamed to features.c
2737 * main.h: status_using_ncurses moved to ...
2738 * features.h: ... here
2739 * cmd.c, text.c: include "features.h"
2740 * cmd.h: include "panel.h"
2741 * Makefile.in: changed to use features.h and features.c
2743 2000-08-22 Pavel Roskin <proski@gnu.org>
2745 * main.c [HAVE_GNOME]: disable chmod and chown - they were
2746 broken and obsoleted by the "Properties" dialog
2748 * cmd.c [HAVE_X]: Removed dependency on status_using_ncurses
2750 * man2hlp.c: Removed undocumented feature - when converting
2751 to HTML some output would go to index.html instead of stdout
2753 2000-08-16 Pavel Roskin <proski@gnu.org>
2755 * gindex.pl: Enable warnings. Existing warnings fixed.
2757 * Makefile.in: mc.hlp now depends on man2hlp.c instead of
2758 man2hlp - this avoids some rebuilds of mc.hlp
2760 2000-08-15 Pavel Roskin <proski@gnu.org>
2762 * mc.hlp: removed. It's a derived file
2763 * Makefile.in: Fixed dependencies for $(srcdir)/mc.hlp
2764 Build $(srcdir)/mc.hlp but allow a failure (e.g. no perl)
2766 2000-08-11 Frederic L. W. Meunier <fredlwm@pervalidus.net>
2768 * Makefile.in: Don't compile mfmt, compile mcmfmt directly.
2770 2000-08-08 Andrew V. Samoilov <sav@bcs.zp.ua>
2772 * hotlist.c (done_hotlist): static tkn_buf, tkn_buf_length and
2773 tkn_length nullified after tkn_buf is freed to prevent crashes.
2775 (new_hotlist): became a macro
2777 * background.c (real_message_[123]s): title is really prepended
2778 by "Background process:" string now if mode == Background
2780 (background_attention): resstr NULLified to prevent warning
2782 2000-06-26 Andrew V. Samoilov <sav@bcs.zp.ua>
2784 * screen.c (display_mini_info): two different patterns are
2785 used now: for one file and for other cases
2787 2000-06-16 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2789 * cons_saver: support linux with devfs, patch by pavenis@lanet.lv
2791 2000-06-14 Andrew V. Samoilov <sav@bcs.zp.ua>
2793 * panel.h, util.[ch] (struct WPanel, size_trunc, size_trunc_sep): size
2794 parameters and WPanel.total field became double, thus, total size
2795 of selected files/directories is shown in the mini status correctly
2796 when it exceeds 2 GB.
2798 2000-05-25 Andrew V. Samoilov <sav@bcs.zp.ua>
2800 * slint.c (init_pair): segfault fixed when mcedit -b called
2802 * user.c (check_format_var): error messages are localized
2804 (expand_format, user_menu_cmd): memory leaking for %e and %k macro
2805 fixed; segfault fixed when %m macro is used outside user_menu_cmd ()
2807 * ext.c (regex_command): memory leaking fixed when user extension
2810 (exec_extension): error message for changed mc.ext file format
2811 are localized -- does we really must be worry about mc 3.0 ?
2813 * widget.c (history_put): counter is initialized again
2815 2000-05-11 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2817 * src/user.c: fix segfault when Shift-F4, Shift-F1, so when menu
2818 content condition y, macro %y
2820 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2822 * src/user.c: Add macro %k it is block file name
2823 Add macro %e it is error file name
2824 Add macro %i it is cursor column indent of spaces, only for edit
2825 Add macro %y, it is syntax of current file in editor, only for edit
2826 Add condition y, it is syntax pattern of current file in edit
2827 Add macro %x it is extension of current file
2828 Add macro %m it is current menu filename
2830 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2832 * gtkedit/editcmd.c: Modify External Formatter (was C indent formatter) .
2833 Autocreate a scripts in home, from templates /usr/lib/mc/edit.indent.rc,
2834 edit.ispell.rc, etc. Remove leading and trailing spaces into _(""),
2835 (the message of David H. Martin <dmartina@usa.net>)
2837 2000-05-05 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2839 * src/user.c: Add condition (x filename) into mc.menu .
2840 for "Open next a free console" and like.
2842 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2844 * src/user.c: fix segfault in chunk_alloc of glibc, when into condition
2845 of .mnu we have quoted space. (~.mc/menu: + f \.\ test$).
2847 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2850 Add ability user edit menus: system: /usr/lib/mc/cedit.menu,
2851 * gtkedit/editmenu.c: home: ~/.cedit.menu, local: .cedit.menu
2852 Marked block is access now from an user edit menu
2853 Access ~/.cedit/cooledit.block for insert to cursor place from
2855 Created system cedit.menu
2857 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2859 * gtkedit/editdraw.c:
2860 Improved a status string of cool editor for best understand,
2861 and to add char,hex view.
2863 2000-04-17 Andrew V. Samoilov <sav@bcs.zp.ua>
2865 * widget.c: (history_put): profile is free()d if chmod failed,
2866 (input_map): added const qualifier
2867 * utilunix.c, util.h: (tilde_expand): added const qualifier
2868 * cmd.c: (nice_cd): i18n update,
2869 (source_routing): typo fixed, source is free()d after use
2870 * screen.c: i18n changes, (panel_keymap): added const qualifier
2871 * view.[ch]: (view, view_init, do_view_init): added const qualifier
2873 2000-04-15 Timur Bakeyev <mc@bat.ru>
2875 * dir.c (string_sortcomp): strcmp() replaced with strcoll() to make
2876 directory listing LOCALE sensitive. I assume, strcoll exists everywhere,
2879 2000-04-15 Timur Bakeyev <mc@bat.ru>
2881 * dlg.c: Commited at last patch, that fixes screwed up right panel in
2882 a long format. Occasionaly, all my colors problems also gone. All thanks
2883 to Norbert Warmuth <nwarmuth@privat.circular.de>, who tracked down the
2884 problem, blames to me and Federico :)
2886 2000-04-12 Timur Bakeyev <mc@bat.ru>
2888 * widget.c ([forward|backward]_word): Changed one more time - now it
2889 skips alpnums and THEN spaces+punct. That gives almost the same re-
2890 sults, but twice quicker. Hope, this will be accepted.
2892 2000-04-06 Timur Bakeyev <mc@bat.ru>
2894 * widget.c ([forward|backward]_word): Changed logic of moving - now,
2895 it skips only spaces+punct OR alnum. Reason to do it so - deleting lines
2896 like "lynx http://www.gnome.org", where "lynx http:" part was erased
2897 in one operation. That's nasty, IMHO. Made this a separate commit, so,
2898 if it seriously breaks compatability it's easy to revert it. Still hope,
2901 2000-04-06 Timur Bakeyev <mc@bat.ru>
2903 * file.c, widget.[ch]: Fixed long existing problems with filenames
2904 and input widgets, then char is greater than 128. They were processed
2905 incorrectly. As usual, char != unsigned char problem.
2907 2000-03-03 Björn Eriksson <mdeans@algonet.se>
2909 * Similar patches came from Andrew V. Samoilov <sav@bcs.zp.ua>.
2911 * mad.[ch]: Some functions wrongly by-passed mad_alloc*() (causing
2912 problems when later g_free()ed.
2914 * Added mad_strndup().
2916 * Repeated code collected in mad_fatal_error().
2918 * The gcc-extension/C99-standard variable argument macros (adding
2919 __FILE__, __LINE__ before ', ...') would be nice.
2921 * Alloc_idx_hint and code added, the mad code was way too slow for my
2922 poor computer. A hash-table would be nice.
2924 * (mad_strconcat, mad_strdup_vprintf): g_malloc and g_new are
2925 undefined at the top of mad.c, so mad_alloc must be used.
2927 2000-02-23 Norbert Warmuth <nwarmuth@privat.circular.de>
2929 * main.c (parse_control_file): add missing right parentheses
2931 * boxes.c: fix incorrect initialization of array of structure (gcc
2932 version 2.96 20000131 chokes on it).
2934 2000-02-18 Paul Sheer <psheer@obsidian.co.za>
2936 * gtkedit/*.[ch], edit.c et al: updates to reflect
2937 cooledit-3.13.0. See CVS commits and cooledit ChangeLog
2940 2000-02-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2942 * setup.c (load_setup): remove duplicate loading of anonymous
2943 passwd by do_load_string(), it is doing by
2944 ftpfs_init_passwd. (Patch by sav@bcs.zp.ua)
2946 2000-02-04 "David H.Martin" <dmartina@usa.net>
2948 * src/widget.c (input_new): Change NULL to empty strings and avoid
2949 crashing when string functions are called.
2950 * src/boxes.c (configure_vfs): Remove local change to empty string.
2951 * src/setup.c (load setup): Load anonymous password
2953 2000-02-03 Andrew V. Samoilov <sav@bcs.zp.ua>
2955 * setup.c (load_setup): call ftpfs_init_passwd to avoid segfault
2957 2000-01-24 Andrew V. Samoilov <sav@bcs.zp.ua>
2959 * main.c (parse_control_file): add extra secutity checks for
2960 control file. It cannot be group/world writable;
2961 (ctl_x_map, default_map, argument_table): added const qualifier.
2963 * fixed segfault in print_mc_usage
2965 2000-01-24 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2967 * cmd.c (nice_cd): disabled ability to go to home.
2969 2000-01-02 viro@math.psu.edu
2971 * src/subshell.c: Reason: in feed_subshell() we are trying to read
2972 from shell pty,check for retval==-1 && errno != EIO. In that case
2973 we flame and exit. Otherwise we are trying to write what we've
2974 read. Good luck doing it if we got errno==EIO, which is _normal_
2975 for situation when shell just died. Resulting write(1,foo,~0U) is
2976 somewhat excessively, erm, verbose.
2978 1999-12-21 Pavel Roskin <pavel_roskin@geocities.com>
2980 * src/main.c, src/view.c: #warning's replaced with FIXME's.
2981 They were not for users, but for developers
2983 1999-11-11 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2985 * main.c, cmd.c: add possibility to free VFS now
2987 1999-11-03 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2989 * layout.c: always display status line. It contains vital
2990 information for ftpfs
2992 1999-03-19 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2994 * profile.c (str_translate_newline_dup): someone likes to pass
2995 NULL's around. Warn instead of segfault.
2997 1999-11-02 Miguel de Icaza <miguel@gnu.org>
2999 * main.c (OS_Setup): Do not warn if TERM is not set for the GNOME edition.
3001 1999-09-21 Federico Mena Quintero <federico@redhat.com>
3003 * dlg.c (dlg_broadcast_msg_to): Sigh. Put in a GrossHack(tm) to
3004 unfocus what will be a WInput when a panel is initialized.
3006 1999-09-21 Federico Mena Quintero <federico@redhat.com>
3008 * dlg.c (init_dlg): Walk the list of widgets only if it exists.
3009 (dlg_broadcast_msg_to): Use safer list-walking code for if someone
3010 inserts a widget inside the message broadcast.
3012 1999-09-20 Federico Mena Quintero <federico@redhat.com>
3014 The following is a patch from Volker Braun
3015 <volker.braun@physik.hu-berlin.de> to fix column resizing in the
3018 * setup.c (options): Declare the column width option values.
3019 (save_configure): Save the default user format.
3020 (load_setup): Load the default user format.
3022 * panel.h (WPanel): Added a field for the column widths.
3024 1999-09-19 Andrew V. Samoilov <sav@bcs.zp.ua>
3026 * user.c (check_patterns): char* is used instead of char [] in sizeof
3028 * util.c (string_perm): prefix named pipes by 'p' and not by `s'
3030 1999-09-19 Norbert Warmuth <nwarmuth@privat.circular.de>
3032 * mad.c, mad.h, util.c, util.h: Move mad-functions from util.[ch]
3035 * option.c: Include files reordered in order to make it compile with
3038 * mad.c (mad_init): New function. Initialize debug FILE pointer to
3039 stderr (moved to a function because not on every system stderr is
3041 (mad_set_debug): added const qualifier
3043 * main.c (main): call mad_init
3045 1999-09-14 Norbert Warmuth <nwarmuth@privat.circular.de>
3047 * widget.[ch] (input_new): added const qualifier
3049 * util.c (wipe_password): Check for NULL.
3051 1999-09-13 Federico Mena Quintero <federico@redhat.com>
3053 * treestore.c: Removed tree_store_destroy(), renamed
3054 tree_store_init() to tree_store_get().
3056 * tree.c (tree_destroy): Do not destroy the tree store.
3057 (tree_new): Get the tree store, do not initialize it.
3059 * treestore.c (tree_store_init): Do not set the linked list
3062 * panel.h (WPanel): Added a new field that indicates whether the
3063 user is dragging something over the tree.
3065 1999-08-31 Federico Mena Quintero <federico@redhat.com>
3067 * main.c: In the GNOME version, we want cd_symlinks to be FALSE.
3068 The VFS should never have to look at this variable, but alas, it
3069 does. BUGFIX: Red Hat Bugzilla #2344.
3071 * setup.c: Disable cd_symlinks in the GNOME version.
3073 1999-08-30 Norbert Warmuth <nwarmuth@privat.circular.de>
3075 * main.c (print_mc_usage): Print the bug reporting address.
3076 (main): Put prompt in a new line at termination.
3078 1999-08-27 Federico Mena Quintero <federico@redhat.com>
3080 * ext.c (quote_block): How did this ever work? People, if you
3081 realloc() things, don't keep pointers to stuff inside the original
3084 * screen.c (do_enter_on_file_entry): Pass in the full name to
3087 * dir.[ch] (if_link_is_exe): Take in the full name, not the directory
3090 1999-08-15 Norbert Warmuth <nwarmuth@privat.circular.de>
3092 * cmd.c (guess_message_value): New function. Determine locale used
3095 (get_random_hint): use guess_message_value
3097 1999-08-15 David Martin <dmartina@usa.net>
3099 * boxes.c: (symlink_dialog): Move dialog misaligned elements
3101 * cmd.c (get_random_hint): Look for localized hint files
3103 1999-08-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
3105 * ext.c: Added missing include file.
3107 1999-08-08 David Martin <dmartina@usa.net>
3109 * menu.c: (create_menu): Adjust "#ifdef ENABLE_NLS" so that menus
3110 get the right size even when NLS is disabled.
3112 1999-08-06 Norbert Warmuth <nwarmuth@privat.circular.de>
3114 * screen.c (string_file_[amc]time): These three functions use
3115 file_date which returns a pointer to a static buffer. In the
3116 Gnome edition this buffer has to be coppied to a static buffer
3117 which isn't used in the other two functions (Fix Bug #1766).
3119 * util.c, util.h: Moved some constants to util.h
3121 1999-08-04 Norbert Warmuth <nwarmuth@privat.circular.de>
3123 * widget.c (push_history): Add SMB Link to the list of input dialogs
3124 where urls are input without vfs prefix.
3126 Translate the titles of these input dialogs only once.
3128 Removed Gnome specific code because the Gnome edition doesn't use
3129 the input history any more.
3131 * util.c (strip_password): Add /#smb: to the list of urls which might
3132 be input with password.
3134 1999-08-03 Norbert Warmuth <nwarmuth@privat.circular.de>
3136 * poptalloca.h: New file with definitions for alloca. Note: alloca
3137 is defined as malloc on systems which fail to support alloca. Don't
3138 include this file if you frequently use alloca.
3140 * findme.c, popt*.c: include poptalloca.h
3142 * Makefile.in: added poptalloca.h
3144 * menu.c (create_menu): set minimum menu width to 20 characters as
3145 it used to be (this was part of davids patches but I haven't
3148 1999-08-01 David Martin <dmartina@usa.net>
3150 * menu.c (create_menu, menubar_drop_compute, menubar_paint_idx):
3151 Discount '&' for hotkeys when checking menu widths to avoid the
3153 Moved this accounting from the drawing to the creating function.
3155 * widget.c: Translate History box tittle.
3157 1999-07-21 Norbert Warmuth <nwarmuth@privat.circular.de>
3159 * popt.c, popt.h, poptconfig.c, popthelp.c, poptparse.c: updated
3160 to the version found in the popt module
3162 * features.inc: added report information for smbfs
3164 1999-06-01 Robert Brady <rwb197@ecs.soton.ac.uk>
3166 * file.c (move_dir_dir): Give an error when an attempt is made to
3167 move an empty directory into itself.
3169 1999-06-24 smil@linuxfan.com
3171 * view.c (view_update_bytes_per_line, display): show correctly the
3172 offset of the file (full 8 digit), display offset in bold colour
3174 (view_labels): use goto_addr instead of goto_line in hex mode
3176 (goto_addr): New function. Goto offset address in hex mode.
3178 * view.h: use unsigned long for hexedit cursor position in file
3180 1999-06-24 Norbert Warmuth <nwarmuth@privat.circular.de>
3182 * menu.c (menubar_execute): Now needs an additional do_refresh in order
3183 to make layout changes visible.
3185 1999-06-01 Robert Brady <rwb197@ecs.soton.ac.uk>
3187 * file.c (move_dir_dir): Give an error when an attempt is made to
3188 move an empty directory into itself.
3190 1999-06-22 Norbert Warmuth <nwarmuth@privat.circular.de>
3192 * cmd.c (quick_view_cmd): Change panel when the file we want to
3193 view isn't in the current panel (prevents a "file not found"
3196 * menu.c (menubar_execute): De-activate the menubar previous to
3197 invoking the callback. This is needed to make change_panel in
3198 quick_view_cmd work (the activated menubar doesn't allow unfocus,
3199 i.e. dlg_one_down|up don't change anything).
3201 * view.c (do_view_init): improved error handling w.r.t quick view
3202 (mc used to dump core when the file to view couldn't be opened).
3204 1999-06-22 David Martin <dmartina@usa.net>
3206 * view.c (display): added view_gotoxy's in order to make the gnome
3207 edition operational in hex mode.
3209 Fri Jun 18 11:29:56 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3211 * user.c (user_menu_cmd): Allow national characters as hotkeys.
3212 Don't dump core when the menu file contains only empty lines
3214 * view.c (search, block_search): Use the correct column for the
3215 percent display while searching.
3217 1999-06-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
3219 * complete.c (complete_engine): Put an #ifndef HAVE_GNOME around
3220 the completion/query engine. Make the Gnome version just beep
3221 instead. We do not have the completion/query engine for Gtk.
3223 1999-06-09 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3225 * cmd.c (configure_panel_listing): no more code duplication
3227 * screen.c (panel_new): no more code duplication
3228 (set_panel_formats): warn user when he gives bogus format, move
3229 checks into set_panel_formats
3231 1999-06-01 Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
3233 * util.c (is_printable): in GNOME all characters are printable.
3235 1999-05-31 Miguel de Icaza <miguel@nuclecu.unam.mx>
3237 * main.c (handle_args): Handle --desktop-linksdir without using X
3239 1999-05-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
3241 * treestore.c (should_skip_directory): Add fix from Wayne Roberts
3242 to actually acknowledge the settings of mc.global.
3244 1999-05-24 Brandon S. Allbery <allbery@ece.cmu.edu>
3246 * subshell.c (pty_open_master): Added missing comma.p
3248 Mon May 17 07:37:12 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3250 * subshell.c (pty_open_master): use getpt () if available to open
3251 the master side of the pty. getpt () is a glibc extension and is
3252 needed when glibc 2.1.x is used with a (linux) kernel without unix98
3253 style ptys (if there is no /dev/ptmx getpt falls back to bsd style
3256 * filegui.c (check_progress_buttons): Don't update the Gpm mouse
3257 cursor when we check for events. It causes a flickering cursor on a
3258 different virtual console.
3260 1999-05-12 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3262 * cons.saver.c (main): change cons.saver so it can be run without
3263 root privileges. It is well possible to run cons.saver with
3264 privileges only to /dev/vcsa: create new user and make vcsa's
3265 owned by that user instead of root.
3267 Distribution maintainers please take this text as idea of what you
3268 should do to make your system more secure.
3270 1999-05-05 Miguel de Icaza <miguel@nuclecu.unam.mx>
3272 * cmd.c (view_file_at_line): gmc_view never fails, so we handle
3275 1999-04-29 Federico Mena Quintero <federico@nuclecu.unam.mx>
3277 * chmod.c (chmod_cmd): Missing _ in _().
3278 (chmod_cmd): Added braces around nested if/else.
3280 * widget.c (is_in_input_map): Added braces around nested if/else.
3281 (listbox_remove_current): Likewise.
3283 * subshell.c (read_subshell_prompt): Likewise.
3285 * view.c (view_status): Likewise.
3287 Tue Apr 27 20:31:13 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3289 * util.c (strip_home_and_password): Don't split the path in the
3290 middle of a directory, e.g. "/home/bofh" will not be translated to
3291 "~h" (fixes the bug reported by Alex Fortuna <alex@rdc.ru>)
3293 1999-04-25 Sergei Ivanov <svivanov@pdmi.ras.ru>
3295 * find.c: The origin of the bug is in the function do_search (file
3296 find.c). It limits the number of subdirectories to scan by the
3297 number stat.st_nlink-2, or infinite if st_nlink<2. On tar vfs,
3298 st_nlink is always 1, so it should be the second case.
3300 But before doing stat, do_search does opendir. And opendir on tar
3301 vfs (vfs_s_opendir in vfs/direntry.c) increases the st_nlink value
3302 in the stat data! So mc_stat called after mc_opendir on tar vfs
3303 returns st_nlink==2 instead of 1. This is interpreted as if the
3304 directory had no subdirs, thus subdirs are not searched in.
3306 Changing the order of calls to mc_stat and mc_opendir fixes the
3309 1999-03-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
3311 * setup.c (save_setup): Only save this if there is a current panel
3313 Wed Apr 21 21:47:15 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3315 * ext.c (exec_extension): Use tempnam instead of tmpnam (AIX doesn't
3316 like the latter when compiled with -mthreads).
3318 * user.c (execute_menu_command): ditto.
3320 Wed Apr 21 20:40:38 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3322 * Makefile.in: use MCCFLAGS and MCLIBS
3324 Wed Apr 21 20:19:45 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3326 * key.c (get_modifier): Query the state of the modifier keys when
3327 running inside a terminal emulation under X11.
3329 * key.c (init_textmode_x11_support, done_textmode_x11_support): new
3330 functions, only used in the text edition. Connect to and disconnect
3331 from the X Server when DISPLAY is set.
3333 * key.h: added prototypes for the new functions
3335 * main.c (main): call (init|done)_textmode_x11_support
3337 Sat Apr 17 13:04:19 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3339 * view.c (do_view_init): Enable viewing of files with negative
3340 st_size (This reverts parts of a patch I commited recently. Miguel
3341 provided a better fix for this issue).
3343 1999-04-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
3345 * view.c (regexp_search): Use unsigned longs for all of the
3346 offsets here. Fixes crash reported on bugtraq.
3348 1999-04-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
3350 * treestore.c (tree_store_save_to): Moved the functionality from
3351 tree_store_save() to here.
3352 (tree_store_save): Save the tree in the default location in an
3354 (tree_store_load_from): Moved the functionality from
3355 tree_store_load() to here.
3356 (tree_store_load): Load the tree from the default location.
3358 * treestore.h (MC_TREE_TMP): Added a #define for the temporary
3359 name we'll use when saving the tree. Moved the #defines from
3360 tree.h over to here.
3362 * main.c (main): Use tree_store_load() and tree_store_save().
3363 Removed the mc_tree_store_load/save() versions.
3365 * tree.c (load_tree): Use tree_store_load().
3366 (save_tree): Use tree_store_save().
3368 Fri Apr 16 07:51:42 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3370 * wtools.c (message): Use g_vsnprintf instead of vsprintf.
3372 Fri Apr 16 07:50:59 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3374 * view.c (do_view_init): Don't view files with negative file size.
3375 Added some error checking (I'm not sure whether this is needed).
3377 1999-04-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
3379 * panel.h (WPanel): Added a drag_tree_row field to the WPanel
3380 structure. This is used to keep track of the highlighted row in
3381 the tree for drag and drop. Also, added drag_tree_timeout_id to
3382 hold the node expand timeout. Also, added drag_tree_fe to hold
3383 the file_entry for the currently highlighted row in the tree.
3385 1999-04-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
3387 * utilunix.c (my_system): Set up default signal handlers for childs.
3389 Tue Apr 13 07:14:10 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3391 * slint.c (getch): Quit MC when SLang_getkey returns an error. Looking
3392 at the code that's only the case when we read EOF from stdin.
3394 This fixes the problem where MC consumes a lot of cpu time while
3395 reading EOF from stdin in a tight loop. This situation arises when the
3396 terminal line/connection drops without MC being sent SIGHUP.
3398 Tue Apr 13 07:13:10 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3400 * slint.c (SLang_input_pending2): don't store SLANG_GETKEY_ERROR (int)
3401 in the input buffer (char).
3403 1999-04-12 Andrew T. Veliath <andrewtv@usa.net>
3405 * main.c (_do_panel_cd): If we are using GNOME, and the panel is a
3406 desktop panel, open up a new panel for the contents.
3408 1999-04-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
3410 * tree.c (tree_start_search): Renamed from start_search() to avoid
3411 collisions with screen.c:start_search().
3413 * panel.h: Added prototype for start_search().
3415 1999-04-09 Rosanna Yuen <rwsy@mit.edu>
3417 * screen.c (do_enter_on_file_entry): split GNOME version and
3419 (parse_display_format): listen to the warning.
3421 1999-04-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
3423 * treestore.c (tree_store_load): Do not load non-local file
3425 (tree_store_save): Do not save non-local file systems
3427 1999-04-07 Jonathan Blandford <jrb@redhat.com>
3429 * screen.c (do_enter_on_file_entry): added a consistent behaviour
3432 1999-04-06 David Martin <dmartina@usa.net>
3434 * info.c (text out of box and locale layout).
3436 * util.c: If gmc uses strftime() why mc doesn't?
3438 * view.c: a) Tune status line so it does fit in a Quick View Panel
3439 b) Let Hex View resize cleanly. I think it's fixed for panel
3440 re-split and SIGWINCH signal in xterm. gmc still fails. There was
3441 a tiny risk of division by zero when pressing F4 in a very small
3442 box. True hard work... Must try and check it.
3444 1999-04-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
3446 * main.c (main): Call mc_tree_store_save() when the program
3449 1999-04-05 Miguel de Icaza <miguel@nuclecu.unam.mx>
3451 * find.c (setup_gui): Do not scroll horizontally. Why does the
3452 CList behave like this?
3454 * setup.c: Save desktop information.
3456 1999-04-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
3458 * cons.saver.c (main): dup2() may be interrupted; take this into
3459 account. Do we need to fcntl() stderr, or is it enough to close()
3460 it before recreating it?
3462 1999-03-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
3464 * dlg.c (dlg_run_done): Do not call the callback of a NULL current
3467 * setup.h: Added missing prototype for setup_init().
3469 * filegui.c (check_progress_buttons): Added a missing return
3472 * dlg.c (remove_widget): Added a missing return value.
3474 * main.c: Removed the global directory_list variable.
3475 Removed the main_corba_register_server() function.
3477 * main.h: Removed the global run_desktop variable.
3479 * panel.h: Now the panel structure has a unique numerical ID used
3480 for session management.
3482 * screen.c (panel_new): Maintain a unique ID for each panel.
3484 * main.c (maybe_display_linksdir): Handle display of the desktop
3486 (main): Call gnome_check_super_user().
3487 (init_corba_with_args): Call corba_init_server().
3489 * main.c (init_corba_with_args): Do CORBA initialization here. Also
3490 removed the global force_activation option.
3492 1999-03-29 Jonathan Blandford <jrb@redhat.com>
3494 * main.c (main): updated message.
3496 Sun Mar 28 23:52:08 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3498 * util.c (is_printable): Character 155 is non printable even when
3499 full eight bit output is enabled (on the linux console 155 is
3500 interpreted as "ESC [").
3502 1999-03-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
3504 Patch courtesy of John Bley (jbb6@acpub.duke.edu):
3506 * background.c (do_background): Use pid_t instead of int.
3508 * subshell.c (sigchld_handler): Likewise.
3510 1999-03-24 Federico Mena Quintero <federico@nuclecu.unam.mx>
3512 * Makefile.in: Use mcsrclibdir where appropriate.
3514 1999-03-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
3516 * treestore.c (process_special_dirs): Free memory here.
3518 Fix test: Skip only "." and "..", before it could skip "?.".
3520 1999-03-22 David Martin <dmartina@mailexcite.com>
3522 * wtools.c (real_input_dialog_help): Do a strncmp with the lenght
3523 of th same translated "Password:" string.
3525 Mon Mar 22 02:05:28 1999 Timur Bakeyev <mc@bat.ru>
3527 * screen.c (file_entry_color): Dropped. Code went to file_compute_color.
3529 * screen (format_file): Add check, that avoids reported error, when
3530 long file list -> quick view -> brief file list gives core dump.
3532 1999-03-19 Jonathan Blandford <jrb@redhat.com>
3534 * main.c (main): We don't want to restart if we hit cancel.
3536 * file.c (panel_operate): Ugly hack for GNOME. We only treat the
3537 copy as if it were many files, and skip the only_one branch.
3539 1999-03-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
3541 * utilunix.c (close_error_pipe): Inform parent of the return value
3542 of any command here. This allows the desktop to launch a terminal
3543 only if it succeeded in mounting the directory.
3545 Thu Mar 18 16:09:09 1999 Timur Bakeyev <mc@bat.ru>
3547 * panel.h, screen.c: Add an ability to center justify fields in the
3548 panel, in addition to left and right justification. Just for fun.
3549 Try =name in user format.
3551 * util.c (name_quote): Quote "~@^|;:". Hope, that's all :)
3553 1999-03-17 Jonathan Blandford <jrb@redhat.com>
3555 * main.c (main): Put in a warning when run as root.
3557 1999-03-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
3559 * boxes.c (symlink_dialog): Put this inside an "#ifndef
3560 HAVE_GNOME" since we now provide a nicer version of the dialog.
3562 * wtools.c (real_input_dialog_help): Removed un-needed #ifdef.
3564 * cmd.c (edit_symlink_cmd): Generate the title of the dialog after
3565 we have computed the source filename.
3566 (edit_symlink_cmd): Use g_strdup_printf() instead of g_strconcat()
3567 for better internationalization.
3569 * wtools.c: Removed unused function input_dialog_help_2().
3570 (real_input_dialog_help): Put this inside an "#ifndef HAVE_GNOME",
3571 because now the Gnome version implements its own pretty dialog.
3573 1999-03-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
3575 * dlg.c (dlg_select_nth_widget): Handle the case where h->current
3578 1999-03-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
3580 * file.c (erase_file): Here we need to mc_lstat(), not mc_stat().
3581 Since we use the resulting buf.st_size to update the progress, we
3582 need the size of unresolved links. This also makes it consistent
3583 with screen.c:do_file_mark().
3585 * screen.c (select_item): Return immediately if this is a desktop
3588 1999-03-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
3590 * subshell.c (pty_open_slave): Glibc-2.1-based Linux kernels have
3591 grantpt() but they do lack SysV streams. Handle this. Noticed by
3594 1999-03-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
3596 * util.h: Added prototype for g_readlink(). Miggie boy should add
3597 prototypes when he adds public functions.
3599 1999-03-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
3601 * utilunix.c (g_readlink): Fixed two bugs spotted by Morten
3602 Wellinder. Boy, Morten has such a good eye!
3604 1999-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
3606 * file.c (erase_dir): Erase metadata for directories as well.
3607 (erase_dir_iff_empty): Likewise.
3608 (copy_file_file): Delete/copy the metadata even for
3609 char/block/sock/fifo files. Same thing for when copying symlinks.
3610 (copy_dir_dir): Delete/copy the metadata.
3611 (move_dir_dir): Delete/move the metadata.
3612 (recursive_erase): Delete the metadata.
3614 1999-03-08 Federico Mena Quintero <federico@nuclecu.unam.mx>
3616 * file.c (real_query_recursive): Removed an unused variable.
3618 1999-03-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
3620 * utilunix.c (g_readlink): New function. Wraps all the nonsense
3621 of readlink into a nice routine.
3623 * filegui.c: Support ui->ctx to be NULL, as file.c will set this
3624 to NULL for background operations.
3626 * background.c (do_background): Handle EINTR in dup2.
3628 Wed Mar 10 22:21:19 1999 David Martin <dmartina@usa.net>
3630 * util.c (my_putenv): char* was used to store the length of a string
3632 * info.c (info_show_info): cast st_dev and st_ino when passing
3635 1999-03-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
3637 * file.c (panel_operate): Always create the ctx->ui. Federico,
3638 can you see if this change is correct from your point of view?
3640 * cmd.c (edit_symlink_cmd): Small fix to improve the messages
3643 Tue Mar 2 22:54:50 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3645 * util.c (name_quote): Quote '<' and '>'.
3647 Tue Mar 2 22:28:39 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3649 * main.c (panel_clean_dir): New function: reset all counters of a
3650 WPanel and clean directory list.
3652 * various places: Use panel_clean_dir instead of clean_dir whenever
3653 a WPanel is available. This solves the problem reported by Enrico
3654 Scholz (screen refresh while panel reload with an old/now invalid
3657 Mon Mar 1 00:18:48 1999 Timur Bakeyev <mc@bat.ru>
3659 * mad.c: Tempnam() returns malloced buffer, so, free() it, not g_free().
3661 1999-02-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
3663 * view.c (view_percent, view_update): Take an extra argument:
3664 update_gui, which controls whether we want to update the displayed
3665 region in the GUI version.
3667 1999-02-25 Jonathan Blandford <jrb@redhat.com>
3669 * cmd.c (symlink_cmd): little change to handle the case when a
3670 desktop panel is passed in.
3672 1999-02-25 Owen Taylor <otaylor@redhat.com>
3674 * fileopctx.h file.c: Moved recursive delete query
3675 dialog into gdialogs.c for GNOME.
3677 1999-02-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
3679 * file.c: Moved FileCopyMode here (thanks to Wolfgang Scherer for
3680 pointing this out) and made it a typedef.
3682 * treestore.c (process_special_dirs): New function.
3683 (should_skip_directory): Load the settings from the global
3684 special.dirs file and from the
3686 * util.c: Test for glibc/linux and if so, do not use getwd, but
3687 getcwd as on this system it is better than popen ("pwd").
3689 1999-02-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
3691 * setup.c: Declare extern int tree_panel_visible for the GNOME
3694 1999-02-17 Federico Mena Quintero <federico@nuclecu.unam.mx>
3696 * dir.c (if_link_is_exe): Made this function take in a directory
3697 argument as well -- the sought file may not be in the cwd, and
3698 file entries do not carry the directory the file refers to.
3700 * screen.c (do_enter_on_file_entry): Pass in the cpanel->cwd to
3703 1999-02-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
3705 * treestore.c (tree_store_rescan): Add code to skip scanning
3706 specially slow directories (/afs, /coda, /...). It is of course,
3709 * setup.c: Export the profile_name setup routine.
3711 Tue Feb 16 21:21:32 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3713 * popt.c: Compilation fix: on systems without setreuid use setuid.
3715 Tue Feb 16 21:18:08 1999 David Martin <dmartina@usa.net>
3717 * achown.c: Make buttons fit in the (new) translated
3718 Advanced Chown dialog.
3720 1999-02-16 Alexaander Savelyev <fano@ham.kiev.ua>
3722 * subshell.c (exit_subshell): Use the size of the buffer, not
3723 sizeof of the pointer to the buffer.
3725 Sun Feb 14 02:59:09 1999 Timur Bakeyev <mc@bat.ru>
3727 * utilunix.c (my_system): Fix the order of preferenses, as setuid
3728 more desirable on BSD systems. Terminate execl[p]() with NULL, as
3729 this is formally correct.
3731 1999-02-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
3733 * dir.c (do_load_dir): Added missing calls to tree_store_end_check.
3735 * find.c (add_to_list): Pass the data pointer as well.
3737 Fri Feb 12 06:36:58 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3739 * utilunix.c (my_system): Compilation fix: on systems without
3740 setreuid use setuid.
3742 1999-02-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
3744 * panel.h (WPanel): Removed unused field "corbadat".
3746 1999-02-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
3748 * screen.c: Make delete key delete files.
3750 * dir.c (do_reload_dir): Add a couple of missing calls to tree_store_end_check.
3752 1999-02-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
3754 * main.h: Added prototype for main_corba_register_server().
3756 1999-02-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
3758 * view.c (search): Provide GNOME specific code for the search progress
3760 * treestore.c: Add a new hook system to hint a tree freeze/thaw.
3762 * setup.c: In the GNOME version, we do not show the dot files by default.
3764 1999-02-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
3766 * file.c (copy_file_file): Add support for the GNOME metadata here.
3767 (move_file_file): Add support for the GNOME metadata here.
3769 1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
3771 * treestore.c (tree_store_add_entry): Use g_new0 to allocate the tree_entry.
3773 (tree_store_notify_add): Close, but no cigar. The
3774 bug was deeper: This list keeps names, not tree_entries.
3776 1999-02-07 Federico Mena Quintero <federico@nuclecu.unam.mx>
3778 * treestore.c (tree_store_notify_add): A tree_store_add_fn wants a
3779 string, not a tree_entry, so pass a string to it.
3781 1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
3783 * treestore.c: Revert all of the stack changes. Now the treestore
3784 is again non-re-entrant. Being re-entrat was only covering up for
3785 bugs in other places.
3787 Now we postpone notifications for additions at
3788 tree_store_end_check, not before.
3790 1999-02-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
3792 * treestore.c (tree_store_remove_entry): Removed unused code for
3793 base_sublevel computation.
3795 Sun Feb 7 06:11:48 1999 Timur Bakeyev <mc@bat.ru>
3797 * Makefile.in: Change calls to xmkdir to mkinstalldirs - this is more
3800 * xmkdir removed - we have mkinstalldirs.
3802 1999-02-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
3804 * cmd.c (view_other_cmd): Do not use \r in translatable strings.
3806 1999-02-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
3808 * widget.c (push_history): Only do check the history headings if
3809 the widget has a history entry bound to it.
3811 1999-02-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
3813 * treestore.c (tree_store_start_check, tree_store_mark_checked,
3814 tree_store_end_check): Use a stack for check_name. There are far
3815 too many instances that might call the end_check.
3817 Wed Feb 3 23:55:54 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3819 * widget.c (history_put): set the access rights correctly when
3820 the history file is created initially. Don't save the history
3821 if we can't set the access rights.
3823 1999-02-01 Jonathan Blandford <jrb@redhat.com>
3825 * setup.c: save we_can_afford_the_speed
3827 Wed Feb 3 22:27:04 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3829 * util.c (strip_password): Extented to find the url in the first
3830 parameter. The second parameter tells whether it should search the
3831 url (indicated by known prefixes) in the first parameter or whether
3832 the first parameter is a url without a prefix ("ftp://", "/#ftp:",
3835 * main.c (directory_history_add): Strip the password (if any) from
3836 the freshly added value.
3838 * widget.c (push_history): ditto. There's a ugly special casing
3839 necessary for the network and ftp link dialogs (urls are entered
3842 * widget.c (history_put): Restrict read and write access to the
3843 history file to the owner (Just in case I forgot to strip passwords
3846 Mon Feb 1 00:43:15 1999 Timur Bakeyev <mc@bat.ru>
3848 * screen.c (to_buffer): Code of the function rewritten, as a side
3849 effect added J_CENTER (who needs this?). Also, justification flags
3850 got twins with _FIT suffix, which tries to fit name in the field with-
3851 out truncation (uses name_trunc()). This unifies behaviour of CList
3852 variants and text-bases widgets.
3854 * screen.c: Remove HAVE_GNOME wrappers around string_file_[name|owner|
3855 group]() - not necessary, to_buffer() doing this work.
3857 Sun Jan 31 19:49:00 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
3859 * hotlist.c (add_new_entry_input, add_new_group_input): Make the
3860 quick_widget arrays static and various changes needed because they
3861 are now static. add_widgets_i18n recalculates button positions
3862 which get lost when the quick_widget arrays are non static.
3864 * screen.c (to_buffer): nul terminate string when using strncpy
3866 * setup.c: Save and restore new option ftpfs_first_cd_then_ls.
3868 1999-01-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
3870 * file.c (panel_operate_generate_prompt): Removed the cmd_buf
3871 argument, since it is a global variable anyway (this function is
3872 only called once from file.c, and the global cmd_buf was being
3874 (panel_operate): Do not pass cmd_buf to
3875 panel_operate_generate_prompt().
3876 Thanks to Alexander Savelyev <fano@vcom.kiev.ua> for noticing this.
3878 1999-01-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
3880 * achown.c (XTRACT): Add missing call to _().
3882 1999-01-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
3884 * panel.h: Fixup #includes.
3886 1999-01-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
3888 * cons.saver.c: Removed glib from the suid app
3890 Wed Jan 27 03:17:44 1999 Timur Bakeyev <mc@bat.ru>
3892 * Converted memory managment to Glib. Now we use g_new()/g_malloc()/
3893 g_strdup()/g_free() routings. Also, copy_strings() replaced by
3894 g_strconcat(), strcasecmp() -> g_strcasecmp(),and sprintf() by
3897 * Some sequences of malloc()/sprintf() changed to g_strdup_printf().
3899 * mad.[ch]: Modified, to work with new GLib's memory managment. Fixed
3900 a missing #undef for tempnam, which caused dead loop. Add several new
3901 functions to emulate GLib memory managment.
3903 *main.c, mad.[ch]: Add a new switch "-M", which allows to redirect MAD
3904 messages to the file.
3906 * util.[ch], utilunix.c: Modified, deleted our variants of strcasecmp()
3907 and strdup() - we have g_ equivalences. Remove get_full_name() - it is
3908 similar to concat_dir_and_file(). Some other tricks with g_* functions.
3910 * global.h: Modified, extended. Now it is main memory mangment include -
3911 i.e. all inclusions of <stdlib.h>, <malloc.h>, <glib.h>, "fs.h", "mem.h",
3912 "util.h" and "mad.h" done there. This elimanates problem with proper or-
3915 * All around the source - changed order of #include's, most of them gone
3916 to global.h (see above), minor changes, like "0" -> NULL in string func-
3919 1999-01-25 Alexander Savelyev <fano@vcom.kiev.ua>
3921 * ext.c (exec_extension): Always use /bin/sh. Not the user
3924 1999-01-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
3926 * treestore.c (tree_store_remove_entry_remove_hook): Missing
3927 function. To remove a notification hook.
3928 (tree_store_notify_add, tree_store_add_entry_add_hook,
3929 tree_store_remove_entry_add_hook): New functions to notify of
3930 additions to the treestore.
3932 * tree.c (tree_destroy): Remove the callback hook when we go
3935 1999-01-21 Miguel de Icaza <miguel@nuclecu.unam.mx>
3937 * option.c (init_configure): One line patch from Alexander
3938 Savelyev to transalate all strings.
3940 1999-01-18 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3942 * file.c: Killed operation_names: they seemed same to op_names to
3943 me, and compilation failed on them (initializer element is not a
3944 constant). Maybe miguel tagged too many strings for localization?
3947 * ext.c: we use /tmp in "creative" way: creating there file and
3948 then executing it. I do not see how it is needed. Marked with FIXME.
3950 Thu Jan 21 01:11:24 1999 Timur Bakeyev <mc@bat.ru>
3952 * mad.[ch], util.[ch]: commit changes, that allow coexist (temporary)
3953 GLib'ed VFS and not still converted MC itself.
3955 1999-01-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
3957 * treestore.c (tree_store_start_check): Use mc_stat(), not stat().
3958 (tree_store_rescan): Use mc_lstat(), not lstat().
3960 Tue Jan 19 05:28:04 1999 Timur Bakeyev <mc@bat.ru>
3962 * ext.c, filenot.c, main.c, screen.c, treestore.c: add missed #include's
3963 and moved glib.h so, it follows "fs.h", but preceed "util.h" and "mad.h".
3964 There were conflicts during compilation with MAD and GLibed vfs.
3966 Mon Jan 18 21:23:29 1999 Paul Sheer <psheer@obsidian.co.za>
3968 * cmd.c: update_panels (UP_OPTIMIZE, UP_KEEPSEL); instead
3969 of reread after editing a file.
3971 1999-01-18 Arturo Espinosa <arturo@nuclecu.unam.mx>
3973 * file.c: Use N_ instead of _ for some of miguel's last tags.
3975 1999-01-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
3977 * file.c: Tag some more strings for localization.
3979 1999-01-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
3981 * cmd.c (mkdir_cmd): Please, check your pointer usage.
3983 Thu Jan 14 13:18:58 1999 Timur Bakeyev <mc@bat.ru>
3985 * screen.c (string_file_[owner|group]): Workaround the fact, that some
3986 systems have user and group names greater than 8 symbols. Now we trun-
3989 1999-01-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
3991 * treestore.c (tree_store_load): Use g_return_val_if_fail(), not
3993 (tree_store_rescan): Added parentheses to clarify || and &&.
3995 * tree.c (tree_add_entry): Removed unused variable.
3997 * treestore.h: Added prototype for tree_store_start_check_cwd().
3999 1999-01-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
4001 * view.c (search): Missing condition.
4003 * treestore.c (tree_store_opendir): Simplistic fix. This is not
4006 1999-01-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
4008 * panelize.h: Added prototype for do_external_panelize().
4010 * screen.c (move_selection): Unused variable fixes for HAVE_X.
4012 * boxes.c (configure_vfs): Removed an unused variable.
4014 1999-01-12 Jonathan Blandford <jrb@redhat.com>
4016 * cmd.c (mkdir_cmd): now mkdir_cmd will accept relative, and
4017 absolute directories.
4019 Tue Jan 12 13:40:46 1999 Timur Bakeyev <mc@bat.ru>
4021 * gtkedit(syntax.c): Fixed a typo in Pascal syntax.
4023 1999-01-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
4025 * treestore.c (tree_store_save): Add signature for version 2.0 of
4028 1999-01-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
4030 * file.c (do_file_error): Made static.
4031 (query_recursive): Have cases for background/foreground operation.
4032 (do_file_error): Likewise.
4034 * background.c: Removed the bg_ctx global, since now all the
4035 contexts are carried around by the functions that actually need
4038 * fileopctx.h (FileOpContext): Moved the op_preserve field to here.
4040 * filegui.c (file_mask_dialog): Removed the ui assertion, since
4041 now the op_preserve field is kept in the main context structure.
4043 1999-01-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
4045 * util.c: Provide workarounds for Linux kernel bug.
4047 Sun Jan 10 02:18:33 1999 Timur Bakeyev <mc@bat.ru>
4049 * screen.c(string_file_size): Fixed (incorrect?) printing of device num-
4050 bers. Major should never be greater 255.
4052 1999-01-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
4054 * dir.c (handle_dirent): Use the tree_store now.
4055 (handle_path): ditto.
4056 (do_load_dir): ditto.
4057 (do_load_dir): ditto.
4058 (do_reload_dir): ditto.
4059 (do_reload_dir): ditto.
4061 * treestore.c (tree_store_save): New file
4062 (encode): New routine used to encode pathnames in a safe way that
4063 are saved to the mc/.tree file.
4064 (decode): New routine, used to decode the pathnames we encoded in
4065 the step above. Aint love grand?
4067 * tree.c (load_tree): Kill dead code.
4069 Moved all of the tree store information into a new file:
4070 treestore. To be reused by the Gnome code.
4072 1999-01-08 Ilya Zakharevich <ilya@math.ohio-state.edu>
4074 * popt.c: OS/2 and Windows NT portability fix.
4076 1999-01-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
4078 * file.c (panel_operate_flags): Only show this dialog box if it is
4079 a copy or move operation
4081 1999-01-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
4083 * background.c (do_background): Make it a bit saner. Now we store
4084 a per-child-process FileOpContext structure.
4086 * fileopctx.h: New file with declarations for the file operation
4089 * fileopctx.c (file_op_context_new): New function to create a file
4090 operation context with the default file mask values.
4091 (file_op_context_destroy): New function to destroy a file
4092 operation context and its associated UI, if appropriate.
4094 * filegui.h: Use complete prototype for fmd_init_i18n().
4096 * filegui.c (FileOpContextUI): New structure that describes the UI
4097 and internal data for file operation contexts in the text mode
4099 (file_op_context_create_ui): Renamed from create_op_win() and
4100 made it use a context instead of global variables.
4101 (file_op_context_destroy_ui): Likewise, renamed from
4103 (fmd_widgets): Removed an #ifdef HAVE_XVIEW bit and moved the
4104 initialization of the result pointers to file_mask_dialog(), as we
4105 need to use the pointers to the fields inside the file op context now.
4106 Made all the functions use a file operation context.
4107 (file_mask_dialog): Always call fmd_init_i18n(); it will take care
4108 of idempotence by itself.
4109 (fmd_init_i18n): Now the code that makes sure this function is
4110 only called once is here.
4112 * cmd.c (check_for_default): Make it use a file operation context.
4113 * tree.c (tree_copy): Likewise.
4114 (tree_move): Likewise.
4115 (tree_rmdir_cmd): Likewise.
4117 * file.c: Removed file_progress_replace_progress and
4118 file_progress_replace_filename -- they are only used in filegui.c
4119 as part of the UI for the file operation context.
4120 (panel_operate_generate_prompt): Made static.
4121 (panel_operate_generate_prompt): Always call fmd_init_i18n(); it
4122 will take care of idempotence by itself.
4123 (panel_operate): Removed the panel_operate_def() function, and
4124 made panel_operate() take an extra "ask_user" argument.
4125 (query_recursive): Made static.
4127 * background.c (background_attention): Made static.
4128 (register_task_running): Made static.
4129 (do_background): Now takes a file operation context as an
4130 argument. It stores the pid of the child there.
4132 * Makefile.in: Added fileopctx.[ch].
4134 1999-01-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
4136 * widget.c (listbox_new): Assing l->height.
4138 1999-01-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
4140 * main.c (update_one_panel_widget): GNOME version does the panel
4141 update here (this is an optimization, as we do not want do_refresh
4144 * dialog.c (do_refresh): Remove this optimization as it was
4145 disabling the repainting of the screen contents.
4147 * hotlist.c (done_hotlist): The hotlist might not be loaded
4150 1999-01-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
4152 * widget.c (listbox_new): Under GNOME, height of the listbox might
4153 be less than zero (due to LINES/COLS being set to zero there). So
4154 for bow, set the height to 1. This needs to be propery computed
4155 in x_create_listbox.
4157 * main.c (main): Do not load the hotlist here anymore. We
4158 auto-load it on the setup(?).
4160 1998-12-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
4162 * main.c (main): Removed old, unused code.
4163 (setup_panels_and_run_mc): Register the corba server here, not
4164 before, as the program is not ready to accept any commands yet.
4166 * screen.c (panel_set_sort_order): New routine to set the sorting
4168 (panel_re_sort): New routine to force a resort on a panel.
4170 * main.c (sort_cmd): Use the new routines.
4172 1998-12-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
4174 * cmd.c (check_for_default): Make this compile.
4176 Tue Dec 29 22:25:34 1998 Timur Bakeyev <mc@bat.ru>
4178 * mountlist.c: Compress all xBSD systems to one line and add check
4179 for MOUNT_UFS - it seems, that 4.4BSD and 4.4BSD2 systems different-
4180 ly handles FS names. (currently affects BSDI and FreeBSD)
4182 Tue Dec 29 16:34:02 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4184 * file.c (progress_update_one): Ignore files in subdirectories
4185 when panel totals haven't been computed.
4187 (erase_dir, erase_file): update progress bar (i.e. make it work
4190 (panel_operate_flags): Don't compute panel totals for OP_MOVE.
4191 When moving files on the same filesystem computing totals might
4192 last much longer than the actual move operation.
4194 (various places): adpations for the above changes.
4196 Mon Dec 28 22:15:43 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4198 * slint.c (try_alloc_color_pair): Changed hardcoded values into
4201 Mon Dec 28 20:22:59 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4203 * color.c, text.c: Added color "stalledlink" which is used for
4204 stalled symbolic links. Formerly "viewunderline" was used for
4205 this (IMO bad because function and name didn't match).
4206 According to the man page the color keyword for executable files
4207 is `executable' and not `execute' -- changed.
4209 * color.c, color.h: When using SLang some color indexes are not
4210 freely choosable (DEFAULT_COLOR clashed with A_BOLD_REVERSE).
4211 Solved by adding holes in color_map.
4213 * find.c (do_search): fixed possible memory leak
4215 Sat Dec 26 09:53:39 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4217 * layout.c: include sys/ioctl.h to get definition of TIOCGWINSZ
4218 (fixes problem with screen resize).
4220 Fri Dec 25 20:19:57 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4222 * file.c (panel_operate_flags): Don't change file progress count and
4223 size twice for every file.
4225 (panel_compute_totals): Initialize return values to zero before
4226 calculating anything.
4228 (panel_operate_def, panel_operate): return a value
4230 Thu Dec 24 19:00:05 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4232 * screen.c (recalculate_panel_summary): new function which recalculates
4233 the summary information for the mini-status.
4235 * screen.c (panel_reload): use recalculate_panel_summary
4237 * screen.c (do_file_mark): Honour that dirsizes computed is now a
4240 Thu Dec 24 18:53:16 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4242 * option.c: Added Compute Totals to the configuration dialog.
4244 * file.c (compute_dir_size): made non static
4246 (panel_operate_flags): Don't compute directory sizes if verbose
4249 Thu Dec 24 18:42:52 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4251 * cmd.c (dirsizes_cmd): Rewritten to use compute_dir_size as suggested
4252 by Miguel, i.e. get rid of du. Now the dirsizes_cmd honours a
4253 selection and computes sizes only for marked directories. Possible
4254 improvement: add a dialog (or C-C?) to abort computation.
4256 * dir.h (file_entry), panel.h (WPanel): Made the dirsizes computed
4257 flag a per file flag.
4259 * dir.c, find.c, panelize.c, screen.c: Adapted to new file_entry and
4262 * features.inc: Deleted DUSUM information
4264 * mc.hlp: remade because of changes in doc/mc.1.in
4266 1998-12-22 Jonathan Blandford <jrb@redhat.com>
4268 * file.c: add a HAVE_GNOME only function
4270 Mon Dec 21 22:39:35 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4272 * mountlist.c: Define xBSD on FreeBSD.
4274 * main.c (parse_an_arg): New function, popt callback. Option
4275 parsing in gmc was broken. The gnome*_init_with_popt_table free
4276 the option tables and gmc tried to use the option tables later.
4278 * main.c (handle_args): In the Gnome edition don't parse the
4279 options a second time.
4281 * boxes.c (configure_vfs), setup.c: Deleted obsolete options.
4282 tar.gz files are now always unzipped to a temporary file on disk.
4284 Mon Dec 21 14:28:55 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4286 * filenot.c (my_mkdir_rec): Someone broke this completely by deleting
4287 a line. Funny things happen if you use an already freed pointer.
4288 Improved error handling: try to make directories recursivly until
4289 mkdir succeeds or fails with errno != ENOENT. Now you will get the
4290 correct error message when you don't have permission to create a
4293 * mountlist.c: Deleted function prototypes for strdup and strstr,
4294 they might conflict with definitions in the system header files.
4296 Wed Dec 16 14:41:15 1998 Paul Sheer <psheer@obsidian.co.za>
4298 * gtkedit.c, editwidget.c: gnome selection now works with the
4301 Wed Dec 16 06:27:00 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4303 * screen.c (Xtry_to_select): Don't select a similar file when
4304 "name" can't be found in the panel (when deleting files the
4305 selection jumpped from the deleted "file" to a directory which
4306 started with the same character as "file", annoying).
4307 Strip known vfs suffixes from "name" before trying to select
4308 (I think Timur made this suggestion a few months ago). Know the
4309 vfs is mature enough to do this.
4311 1998-12-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
4313 * dir.c (link_isdir): Remove unused variable.
4315 Sun Dec 13 18:35:05 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4317 * screen.c (panel_reload): Don't set panel->selected to zero here,
4318 keep it's value if possible or set it to panel->count - 1 (I disliked
4319 the jumping cursor when deleting files).
4321 1998-12-11 Michael Fulbright <msf@majestic.labs.redhat.com>
4323 * file.c (panel_operate_generate_prompt): Changes the text
4324 for GNOME dialogs. --jrb
4326 1998-12-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
4328 * main.c (try_to_select): We do not need to select the item
4329 manually in this case, as the X code will do this for us.
4331 Fri Dec 11 00:05:50 1998 Paul Sheer <psheer@obsidian.co.za>
4333 * syntax.c, slint.c, color.c, color.h: editor now has its
4334 own color configuration so you can set editor background
4335 colors with MC_COLOR_TABLE.
4337 1998-12-10 Paul Sheer <psheer@obsidian.co.za>
4339 * syntax.c: perl syntax highlighting. syntax highlighting
4340 bug fizes for python and sh.
4342 * edit.c: new method of finding line offsets from line
4343 number (for cooledit for python stuff).
4345 Mon Nov 30 21:10:30 1998 Pavel Machek <pavel@bug.ucw.cz>
4347 * file.c (copy_file_file): minor code beatifulling: replace goto's
4348 with while loops (it is both shorter and nicer :-)
4349 (panel_operate): hopefully done WANT_STALE_DATA right. We really
4350 should kill ftpfs_hint_reread hack soon.
4352 * cmd.c (dirsizes_cmd): report error if you are on non-local
4353 filesystem. (As oposed to silently failing.)
4355 1998-12-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
4357 * screen.c (panel_reload): Set panel->selected to zero here, this
4358 will at least guarantee that we do not try to fetch anything
4361 * main.c: The bar2 is gone as well.
4363 Tue Dec 8 19:19:39 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4365 * cmd.c (dirsizes_cmd): Fixed possible buffer overflow
4367 1998-12-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
4369 * screen.c (do_enter): Return the value from this.
4371 1998-12-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
4373 * dir.c (link_isdir): Fetch the information from
4374 file->f.link_to_dir, since we already have it.
4376 * dir.h (file_entry): Removed the `cache' field in this structure,
4377 as it was only used for the deprecated Xview version.
4378 Also, removed the `exists' field, as it was not being used anywhere.
4380 * dir.c: Removed all occurrences of file_entry->cache.
4382 * find.c: Removed all occurrences of file_entry->cache.
4384 * panelize.c: Removed all occurrences of file_entry->cache.
4386 * screen.c (do_enter_on_file_entry): New public function that
4387 implements the functionality in do_enter(), but based on a file
4388 entry rather than on a panel.
4389 (do_enter): Use do_enter_on_file_entry() with the selection of the
4390 panel as an argument.
4392 1998-12-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
4394 * cmd.c, tree.c: Updated to the new file.c api.
4396 * file.c: (copy_file_file, copy_dir_dir, move_file_file,
4397 move_dir_dir): Updated to work with the new updating stuff.
4399 * setup.c: New configuration option to compute the totals to be
4402 * file.c (compute_dir_size, panel_compute_totals): New routines to
4403 compute the total ammount of information that is going to be
4406 1998-12-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
4408 * ext.h: GNOME edition uses a different set of .ext files.
4410 * lib/mc-gnome.ext.in: New file with GNOME-specific bindings.
4412 1998-12-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
4414 * GNORBA integration. We now produce two binaries: gmc and
4415 corba-gmc (that way, I dont interfere with other's work).
4417 * Added prototypes, made private functions static, clean up
4418 various silly warnings.
4420 * main.c (main): Removed crufty init_sigfatal code.
4422 * cmd.c (do_link): More slang dependecies are fixed for the X
4425 * keys.h (enum): Moved key definitions here.
4427 * tty.h: MOve towards slang freedom for the GNOME port.
4429 1998-12-01 Jonathan Blandford <jrb@redhat.com>
4431 * file.c (panel_operate_generate_prompt): moved from filegui.c
4433 1998-11-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
4435 * panel.h (WPanel): Added the missing tree/pane/view_table fields
4436 to the Gnome part of the structure.
4438 1998-11-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
4440 * cons.saver.c (main): Make sure stderr is always valid.
4441 (main): Also check that stderr_fd is not -1.
4443 Wed Nov 25 22:16:19 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4445 * cmd.c (dirsizes_cmd): Quote characters with a special meaning
4446 when passing it to du.
4448 1998-11-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
4450 * dlg.c (dlg_try_hotkey): Removed unused declaration of input_event.
4451 (dlg_key_event): Return 1 if handled the tab key.
4453 * filegui.h: Added prototypes for file_progress_show_{source,target,deleting}().
4455 Sun Nov 22 22:30:50 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4457 * autogen.sh: replaced "cat *.m4" with a call to aclocal. Concatenate
4458 mc-aclocal.m4 and gettext.m4 to acinclude.m4. The other way round
4459 would have been to add three more m4 files to the replaced cat line
4460 (including cond.m4 from automake-1.3b).
4462 Fixed OBJ_DIR handling.
4464 Sun Nov 15 00:37:58 1998 Pavel Machek <pavel@bug.ucw.cz>
4466 * mad.c (mad_tempnam): needed wrapper for tempnam added
4468 1998-11-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
4470 * dlg.c (destroy_dlg): Do not refresh.
4472 * filegui.c: New file. We keep all of the user interface code for
4473 the text edition in this file now. This should be a per-GUI port
4476 1998-11-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
4478 * panel.h (WPanel): Instead of the "#ifdef GNOME" mess in the
4479 WPanel structure, we now have a single opaque pointer to UI data,
4480 called port_ui. GUI stuff specific to each port should be here.
4481 This is a work in progress.
4483 1998-11-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
4485 * setup.c: Removed the icons_snap_to_grid and
4486 want_transparent_{icons,text} options.
4488 Thu Nov 5 12:10:10 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4490 * file.c (panel_operate): check for null pointer before passing it
4493 Wed Nov 4 17:51:43 1998 Pavel Roskin <pavel_roskin@geocities.com>
4495 * src/findme.h: added from popt-1.2 by RedHat
4497 * src/Makefile.in: appropriate changes to use new popt
4499 Sun Nov 1 20:59:05 1998 Pavel Machek <pavel@bug.ucw.cz>
4501 * file.c (erase_file): translated goto into while loop (it is both
4502 shorter AND cleaner)
4504 * subshell.c (feed_subshell): do NOT print anything if we get
4505 errors/eofs from read(subshell) - this fixes (or at least hides)
4506 nasty bug where typing "exit" on mc prompt prints lots of garbage
4507 and falls into infinite loop. Someone with better knowledge should
4508 read feed_subshell(), and make it handle errors properly. (Why do
4509 we ignore EIO for example?)
4511 Sun Oct 18 22:56:17 1998 Pavel Machek <pavel@bug.ucw.cz>
4513 * view.c: we now rely on sfs to do file decompressing for us. That
4514 has advantage of displaying #ugz at first line, so user knows what
4515 we are doing behind his back
4517 * view.c: fix indentation, fallback to read whole file if mmap fails.
4519 1998-11-01 Federico Mena Quintero <federico@nuclecu.unam.mx>
4521 * setup.c: #ifdef'ed out stuff in the menus that will get changed
4522 as I rewrite the desktop part.
4524 1998-10-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
4526 * layout.c (print_vfs_message): Use g_snprintf instead of
4530 1998-10-30 Sung-Hyun Nam <namsh@lgic.co.kr>
4532 * color.c, slint.c: support transparent background if user use
4533 'default' keyword for background color.
4535 Mon Oct 26 00:31:53 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4537 * configure.in, Make.common.in: Split CPPFLAGS into CPPFLAGS and
4538 MCCPPFLAGS. The last one contains references to variables which are
4539 not available in every Makefile.in (namely intl/Makefile.in). Without
4540 the split `-I ' was passed to the compiler (the compiler on DU 4.0
4541 interprets -I as "don't search include files in /usr/include").
4543 Thu Oct 22 20:41:50 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4545 * configure.in (subshell): Don't define inline to be empty
4546 when compiling with non-gcc compiler. AC_C_INLINE (invoked in
4547 AM_GETTEXT_GNU) already defines inline if necessary.
4549 Thu Oct 22 20:41:16 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4551 * panelize.c (do_external_panelize): Not zeroing some fields
4552 in cpanel led sometimes to segfaults.
4554 Thu Oct 22 20:31:17 1998 Pavel Roskin <pavel_roskin@geocities.com>
4556 * lib/mc.ext.in: *.jar and *.JAR treated like *.zip and *.ZIP
4558 Fri Oct 16 12:10:56 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4560 * cmd.c (quick_chdir_cmd): you must check for return code of
4561 do_cd(). (Fixed error for here, but more such bugs are present in
4562 src/ tree. Or maybe move error checking into do_cd?)
4564 * command.c: warn user if he is pressing enter while on non-local
4565 filesystem. (Prev. behaviour was fail silently to do anything,
4568 Mon Oct 12 22:47:53 1998 Pavel Machek <pavel@bug.ucw.cz>
4570 * file.c (copy_file_file): MCCTL_SETREMOTECOPY is no longer used
4572 * file.c (copy_file_file): do_reget is now correctly done using
4575 Wed Oct 7 22:20:37 1998 Pavel Machek <pavel@bug.ucw.cz>
4577 * file.c: Ask user if (s)he wants to delete incomplete file
4579 Sun Oct 11 20:21:20 1998 Peter Kleiweg <kleiweg@let.rug.nl>
4581 * mfmt.c (main): When there are an even number of empty lines
4582 between messages, all goes well, but when the number of empty
4583 lines between messages is odd, the program fails.
4585 Sun Oct 11 20:11:16 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4587 * setup.c: Option ftpfs_use_unix_list_options was saved from
4588 and restored to the wrong variable (ftpfs_use_passive_connections).
4590 Mon Oct 5 21:33:14 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4592 * screen.c (parse_display_format): Don't dereference NULL pointer
4593 when format string is an empty string.
4595 Mon Oct 5 19:59:56 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4597 * main.c (translate_url_to_new_syntax): Translate ftp:// to an
4598 absolute path instead of a relative path (fix to "hotlist" bug
4599 reported by Andrej). This means we drop the "return to last dir"
4600 feature for ftpfs (when leaving ftpfs with ".." returns to the
4601 directory visited before entering the ftpfs).
4603 Sat Oct 3 00:54:23 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4605 * gtkedit/Makefile.in (EDITOBJS): removed one wrong \\ (line
4608 Thu Oct 1 18:43:34 1998 Pavel Roskin <pavel_roskin@geocities.com>
4610 * file.c: Commented out search for egrep because execvp() does
4613 * utilunix.c: vfs_uid should not be used if VFS is disabled
4615 Tue Sep 29 17:53:56 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4617 * main.c: removed stupid reference to {sfs,extfs}_which
4619 * screen.c: fixed higlighting to go for longest match if it does
4620 not find exact match. This is so that it works well with vfs (and
4621 needs _NO_ knowledge about vfs layer).
4623 Tue Sep 29 14:02:56 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4625 * layout.c (print_vfs_message): fixed buffer overrun by
4626 vsnprintf. Unfortunately I have no clue how to do this portably.
4628 Tue Sep 29 11:42:32 1998 Pavel Roskin <pavel_roskin@geocities.com>
4630 * setup.c: Corrected code which prevents using icon view by
4631 ports which don't support it
4633 Mon Sep 28 21:55:13 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4635 * find.c: Changed hotkey of the continue-button (both Chdir and
4638 * Makefile.in: search config.status in builddir and not in rootdir,
4639 i.e. make it compile for builddir != srcdir
4641 Wed Sep 23 14:06:44 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4643 * src/file.c: Made file.c use new O_LINEAR mode (so copying from
4644 ftp works nicely, again)
4646 Fri Sep 18 14:15:43 1998 Pavel Roskin <pavel_roskin@geocities.com>
4648 * src/mad.c: All messages are sent to stderr and terminate with \r\n
4650 * src/hotlist.c: Harmless memory leak fixed
4652 * xv/Makefile.in, xv/xvmain.c, xv/xvscreen.c: Minor fixes to
4653 make compilation of the XV port possible (currently without
4656 Thu Sep 17 07:32:23 1998 Norbert Warmuth <k3190@fh-sw.de>
4658 * Makefile.in: After creating symlinks invoke another instance of
4659 make to build libvfs.a. Otherwise make will not know how to build
4660 the object files if symlinks have been created.
4661 Added target cleansourcelinks (invoked with make distclean).
4663 Tue Sep 15 22:41:24 1998 Paul Sheer <psheer@obsidian.co.za>
4665 * edit.c, editwidget.c, gtkedit.c: fixed segfault when trying to
4666 edit a non-file under gmc.
4668 Tue Sep 15 21:52:00 1998 Norbert Warmuth <k3190@fh-sw.de>
4670 * mc.hlp, doc/mc.1.in, doc/mc.sgml: updated my EMail address
4672 Tue Sep 15 20:51:42 1998 Norbert Warmuth <k3190@fh-sw.de>
4674 * setup.c: save and restore new global variable/option
4675 ftp_use_unix_list_options
4677 Tue Sep 15 01:02:34 1998 Paul Sheer <psheer@obsidian.co.za>
4679 * gtkedit: Directory added. This directory contains all the editor
4680 code modified to work with gnome. Mcedit now works properly under
4681 gnome with a slightly reduced set of features.
4683 * gscreen.c gscreen.h screen.c: Modified to respond to F4 on a file
4684 and start the new gtkedit internal editor.
4686 1998-09-14 Norbert Warmuth <k3190@fh-sw.de>
4688 * file.c (move_dir_dir): Fixed severe bug reported by Andrew Pechenov
4689 <zx80@demo.ru> (losing files when moving directories cross filesystem
4690 boundaries): make sure erase_list is emptied always not only when we
4693 Sat Sep 12 02:59:43 1998 Timur Bakeyev <mc@bat.ru>
4695 * screen.c: Xtry_to_select() Remove extfs hack to the main.c. Change
4696 for() cycle to the x_basename() call (Thanks to Pavel Roskin).
4697 Add (key_callback) do_enter() to prevent warnings.
4699 * main.c: Rename cd_try_to_select() to the get_parent_dir_name(). Now
4700 it process VFS postfixes too. Reduced number of loops against prev hack.
4702 Fri Sep 11 15:27:59 1998 Pavel Machek <pavel@ucw.cz>
4704 * screen.c: make cd .. from extfs file highlight it
4706 Tue Sep 8 13:10:32 1998 Pavel Roskin <pavel_roskin@geocities.com>
4708 * autogen.sh: Don't destroy aclocal.m4 if "macros" directory
4711 * layout.c: Use stdout instead of stderr in set_hintbar()
4713 Mon Aug 31 12:40:29 1998 Pavel Machek <pavel@ucw.cz>
4715 * cmd.c: added view_file_cmd which asks user which file to view -
4716 _very_ usefull with vfs (now you can browse web with mc: try
4717 /#url:http:||atrey.karlin.mff.cuni.cz|~pavel#uhtml)
4719 Thu Aug 27 19:52:45 1998 Pavel Roskin <pavel_roskin@geocities.com>
4721 * Make.common.in: Don't define VERSION anymore
4723 * configure.in: this is the right place for VERSION definition
4725 * acconfig.h: does not include file "VERSION" anymore
4727 * config.h.in: rebuilt by autoheader
4729 * VERSION: removed from CVS and added to .cvsignore since it
4730 is rebuilt every time as configure is run
4732 1998-08-20 Raja R Harinath <harinath@cs.umn.edu>
4734 * mad.h: Include stdlib.h/malloc.h first, to prevent prototypes
4735 from being clobbered by the subsequent macro defines.
4737 Wed Aug 12 15:56:46 1998 Pavel Roskin <pavel_roskin@geocities.com>
4739 * edit.h: added "../" before some includes to avoid unnecessary
4740 "-I" options for the PC port makefiles.
4742 Sun Aug 9 22:39:12 1998 Janne Kukonlehto <jtklehto@paju.oulu.fi>
4744 * mad.h (calloc): Added parentheses around the arguments as
4745 suggested by Steef Boerrigter <sxmboer@sci.kun.nl>.
4747 Fri Jul 31 09:04:35 1998 Pavel Roskin <pavel_roskin@geocities.com>
4749 * syntax.c: makefile* will be highlighted as Makefile*
4751 1998-07-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
4753 * main.c (translated_mc_chdir): Quick hack to make the old
4754 url-like pathnames to be used on the command line.
4756 1998-06-22 T.E.Dickey <dickey@clark.net>
4758 * keyxdef.c: Fix for compiling with ncurses.
4760 Fri Jul 24 00:44:37 1998 Tom Tromey <tromey@cygnus.com>
4762 * mc-local.m4 (AC_STRUCT_LINGER): Moved into macros/linger.m4.
4763 * autogen.sh: Include linger.m4 in aclocal.m4.
4764 * Makefile.in (GNOME_M4_FILES): Include linger.m4.
4766 Thu Jul 23 22:44:16 1998 Tom Tromey <tromey@cygnus.com>
4768 * Makefile.in (aclocal.m4): Depend on all source files. Include
4769 gnome-vfs.m4 and gnome-undelfs.m4.
4770 (GNOME_M4_FILES): New macro.
4771 * autogen.sh: Include gnome-vfs.m4 and gnome-undelfs.m4 in
4773 * configure.in: Use GNOME_VFS_CHECKS and GNOME_UNDELFS_CHECKS
4774 macros instead of in-line checks. Create vfs/Makefile from
4777 Thu Jul 23 19:49:12 1998 Pavel Roskin <pavel_roskin@geocities.com>
4779 * hotlist.c: corrected layout of the warning which appears
4780 if ~/.mc doesn't exist. Appropriate changes in translations.
4782 Wed Jul 15 00:41:01 1998 Paul Sheer <psheer@obsidian.co.za>
4784 * edit.c, editwidget.c, * syntax.c: Syntax
4785 editdraw.c, editmenu, editcmd.c: highlighting for Pascal
4786 Added column text highlighting added.
4787 and block movements.
4789 1998-07-04 Carsten Schaar <nhadcasc@fs-maphy.uni-hannover.de>
4791 * main.c (main): 'session_management_setup' will be called after
4794 Wed Jun 18 Pavel Machek <pavel@ucw.cz>
4796 * i18n.h: we do not want i18n in case of compiling standalone
4799 Fri Jun 5 23:34:20 1998 Timur I. Bakeyev <timur@comtat.kazan.ru>
4801 * screen.c (file_entry_color): take care about BSD core dumps
4802 which have names program.core instead of core
4804 Mon Jun 1 15:41:20 1998 Norbert Warmuth <k3190@fh-sw.de>
4806 * main.c (translate_url_to_new_syntax): translate the common
4807 ftp url syntax to the syntax used by the new vfs code.
4809 (_do_panel_cd): First translate the path if necessary. This makes
4810 it possible to enter ftp://host on the commandline and in the
4811 directory hotlist. We might need to move the translation code
4812 to the vfs layer if there are other places where we want to enter
4815 Mon Jun 1 12:33:08 1998 Alexander V. Lukyanov <lav@yars.free.net>
4817 * configure.in: allowed to use `configure --with-included-gettext'
4818 on systems (like solaris) that have their own libintl
4820 1998-05-31 Miguel de Icaza <miguel@nuclecu.unam.mx>
4822 * complete.c (filename_completion_function): Use the vfs routines
4823 for name completion.
4825 1998-05-31 Jakub Jelinek <jj@ultra.linux.cz>
4827 * complete.c (complete_engine): Fix completions.
4829 Sun May 31 10:23:01 1998 Norbert Warmuth <k3190@fh-sw.de>
4831 * key.c (define_sequence): If a sequence clashes the last
4832 definition made will be used. This makes it possible to override
4833 wrong definitions in terminfo/termcap database with learn keys (or
4834 the appropriate entries in mc.lib and ~/.mc/ini).
4836 * widget.c (show_hist): Don't display the listbox partly
4837 off screen (the left panel's history started in column - 2).
4839 * keyxdef.c: include tty.h instead of myslang.h as suggested by
4840 Tamasi Gyorgy <gt_cosy@usa.net>
4842 Fri May 29 15:41:19 1998 Alexander V. Lukyanov <lav@yars.free.net>
4844 * widget.c (update_input): this patch allows entering 8-bit
4845 characters in input fields without screwing attributes. (the
4846 same old sign extension...)
4848 Wed May 27 22:23:48 1998 Ed Cogburn <ecogburn@greene.xtn.net>
4850 * lib/xterm.ti: The 'xterm-color' definition needs 'sgr0'. The tic
4851 program from ncurses 4.2 doesn't like the xterm.ti file that comes
4854 Wed May 27 15:29:01 1998 Alexander V. Lukyanov <lav@yars.free.net>
4856 * key.c (get_key_code): characters with high bit set were input
4857 as 0x80 char when use_8th_bit_as_meta was set
4859 1998-05-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
4861 * ext.h (MC_USER_EXT): New name for the per-user extension file
4862 (this needs redoing to concatenate this + the system stuff instead
4863 of the overwrite stuff we have now). Now it is called the ~/.mc/ext-n
4865 Mon May 25 23:32:35 1998 Norbert Warmuth <k3190@fh-sw.de>
4867 * editdraw.c (print_to_widget): Ifdef'd SLang specific code in order
4868 to make it compile with ncurses. Syntax highlighting in the
4869 internal editor is already disabled when SLang isn't used.
4871 1998-05-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
4873 * widget.c (port_region_marked_for_delete): New per-port
4874 piece of code: Provides a way for good selection killing.
4876 Sun May 24 02:45:03 1998 Norbert Warmuth <k3190@fh-sw.de>
4878 * utilunix.c, util.h (errno_dir_not_empty): deleted
4880 Sat May 23 22:29:57 1998 Norbert Warmuth <k3190@fh-sw.de>
4882 * file.c (check_dir_is_empty): New function which takes a path and
4883 returns -1 on error, 1 if there are no entries besides "." and
4884 ".." in the directory path points to, 0 else. This function
4885 actually opens and reads the directory and doesn't do tricks we
4886 used to do with rmdir.
4888 * file.c (erase_dir, erase_dir_iff_empty): Use check_dir_is_empty
4889 to detect non empty directories. The old code tried to remove the
4890 directory and decided on errno whether the failure of rmdir was
4891 caused by a non empty directory or whether there was a different
4893 Unfortunatly not every filesystem sets errno to EDIRNOTEMPTY if
4894 you try to delete a non empty directory. Namely the linux user
4895 space nfs server sets errno to EIO, Suns nfs server sets it to
4896 EEXIST and the AIX nfs server sets it to ??? (Steve reported
4897 problems on AIX so I guess AIX sets errno to a value we currently
4900 1998-maj-18 Tamasi Gyorgy (gt_cosy@usa.net)
4902 * lib/mc.menu: 'Z' on 'tar.Z' and 'tar.z' files: '%f' -> '$1'.
4904 * lib/mc.ext.in.qnx.diff, lib/mc.menu.qnx.diff (QNX): modified
4905 'mc.ext.in' (tar -t: output to stderr); modified 'mc.menu' (tar is
4906 not GNU tar: doesn't know '-z'); support for '*.tar.F':
4907 'freeze'-compressed tar files [No automatic configure/install
4908 implemented: patches must be applied before running 'configure'
4909 (mc.ext.in.qnx.diff: this patch can be not only QNX-specific...)]
4911 * lib/Makefile.in: 'mc.ext.in.qnx.diff' and 'mc.menu.qnx.diff' added
4916 SLTT_TRANSP_ACS_PATCH dependant code:
4918 The problem: some terminals (QNX/qansi*, SCO OS5/ansi [?]) map the
4919 whole upper half of the ASCII table to the lower half, when
4920 alt-char-set is activated with the smacs/as string-sequence. This
4921 means, that if 0 <= ch < 128 written to the terminal, it will be
4922 translated to (ch+128) automatically by the terminal: so not only
4923 the line-drawing characters can be written, when the alt-char-set
4924 is activated. It implicitly means, that space, NL, CR, etc.
4925 characters (exactly: anything besides the "standard" line drawing
4926 characters) can not be written directly to the terminal, when the
4927 alt-char-set is activated, because writing these characters
4928 doesn't cause an implicit/temporary switching-back to the standard
4931 The original code in SLang assumes that space, NL, CR, etc. can be
4932 printed when alt-char-set is activated. If SLTT_TRANSP_ACS_PATCH
4933 is defined, the modified code will not use this assumption.
4934 [Remark: the patch-code is not the most exact solution, but
4937 QNX_QANSI_SLANG_COMPAT_ACS_PATCH dependant code:
4939 A more OS/terminal-specific solution for the problem mentioned
4940 above (->SLTT_TRANSP_ACS_PATCH).
4942 If QNX_QANSI_SLANG_COMPAT_ACS is defined, the default smacs/sa,
4943 rmacs/ae, acsc/ac [and sgr/sa, if it would be used!] command
4944 sequences will be replaced internally with the "old style"
4945 (pre-QNX 4.23) sequences in case of QNX/qansi terminals. Using
4946 these optional command sequences the terminal remains compatible
4947 with the original SLang code (without using the workaround-code
4948 enabled by defining SLTT_TRANSP_ACS_PATCH).
4952 Currently SLTT_TRANSP_ACS_PATCH is not auto-configured by
4953 'configure'. (Must be manually defined...)
4955 There is some (QNX-specific) auto-configuration hand-coded in the
4958 #ifdef SLTT_TRANSP_ACS_PATCH
4959 # if defined(__QNX__) && defined(QNX_QANSI_SLANG_COMPAT_ACS)
4960 # undef SLTT_TRANSP_ACS_PATCH
4963 # if defined(__QNX__) && !defined(QNX_QANSI_SLANG_COMPAT_ACS)
4964 # define QNX_QANSI_SLANG_COMPAT_ACS 1
4968 * slang/slutty.c: "newtty.c_iflag &= ~(ECHO | INLCR | ICRNL);"
4969 ECHO(0x08) is a c_lflag bit, it means PARMRK(0x08) in c_iflag. (!?!)
4971 * src/file.c: 'do_reget' can be extern if (USE_VFS && USE_NETCODE),
4974 * src/find.c (search_content()): Variable 'i' "must be" 'int', not
4975 'char'. ["i == -1": (buggy?) WCC 10.6 doesn't convert automatically
4976 (int)(-1) to (char)(-1) (GCC does), so "comparison result always 0"
4977 warning produced. It is cleaner to define 'i' as 'int', than cast
4978 '-1' to 'char', because 'read()' returns 'int'.]
4980 * src/key.c (init_key()): Call load_xtra_key_defines() and clear
4981 'use_8th_bit_as_meta' by default under QNX, if a 'qnx*' terminal
4982 detected. (A saved config file (mc.ini) can override it later...)
4984 * src/key.h: Declare load_xtra_key_defines().
4986 * src/keyxdef.c: Provides a method to define some platform-specific
4987 additional key mappings. (e.g. QNX terminals can handle most of
4988 META-? combinations as ALT-?...) ('keyxdef.c' currently not listed
4991 * src/layout.c: TIOCGWINSZ must be available (so <sys/ioctl.h> (?)
4992 included), because window-resizing code doesn't work, if not defined.
4994 * src/main.c: 'print_usage()' is reserved name in the QNX run-time
4995 library, so 'print_usage()' renamed to 'print_mc_usage()'
4997 * src/mouse.c (QNX): ncurses 1.9.8a ported to QNX doesn't provide the
4998 'SP' pointer as a global symbol in the library, so the keyok()
4999 emulation currently can not be used under QNX (4.24 & Watcom C 10.6
5002 * src/slint.c (QNX): 'qansi*' terminals added to the color_terminals[]
5005 * src/subshell.c, src/utilunix.c (QNX): include <unix.h> to get
5006 prototype for exec*()!!! [See README.QNX/Section 1.4 about the
5007 dangerous "No prototype for <function>" warnings emitted by Watcom C,
5008 if <function> is a 'printf()'-style function having variable number
5009 of arguments and you compile your source with the default register
5010 calling convention!!!]
5012 * Makefile.in: 'keyxdef' module added to SRCS and OBJS.
5014 * <mc-root>/README.QNX: QNX-specific notes.
5016 * <mc-root>/configure (line 3369), <mc-root>/configure.in (line 88):
5017 'test x$CCOPTS = x;' modified to 'test "x$CCOPTS" = x;'
5019 * <mc-root>/Makefile.in: README.QNX added to DISTMAIN.
5021 Thu May 21 00:09:45 1998 Norbert Warmuth <k3190@fh-sw.de>
5023 * menu.c (menubar_event): Don't set menubar->selected to the
5024 invalid value -1. Fix for the bug reported by root@liepa.soften.ktu.lt
5026 * menu.c (menubar_drop_compute): removed the check for inrange
5027 items which isn't necessary any longer.
5029 Wed May 20 16:27:56 1998 Norbert Warmuth <k3190@fh-sw.de>
5031 * widget.c (history_put): input line history was defunct because
5032 there was an #ifndef where an #ifdef should be.
5033 Btw. PORT_WIDGET_WANTS_HISTORY seems incomplete because a lot of
5034 history code is included even when this define is undefined.
5036 1998-05-19 Tamasi Gyorgy <gt_cosy@usa.net>
5038 * src/*: Until I get a better ChangeLog: Tamasi's port of the
5041 1998-05-19 Alexander Lukyanov <lav@yars.free.net>
5043 * Makefile.in: Distirbution fix so that people are not forced to
5046 1998-05-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
5048 * ext.c: Memory leak fixed.
5050 Mon May 18 22:24:09 1998 Norbert Warmuth <k3190@fh-sw.de>
5051 * lib/mc.ini.in: s/reges/regex/
5053 * main.c (process_args): return void, the return value was only
5054 used once but wrong (-h displayed help twice).
5055 (handle_args): -h: don't display help twice
5056 (print_usage): Don't print program name and version, that's
5057 already done by version(0).
5059 * menu.c (menubar_paint_idx): Highlight Hotkeys also on slow
5060 terminals (hotkeys were not displayed at all).
5062 1998-05-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
5064 * menu.c (menubar_drop_compute): Check for inrange items.
5066 1998-05-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
5068 * color.c (init_colors): Provide X-only version of color
5071 Thu May 14 01:56:11 1998 Norbert Warmuth <k3190@fh-sw.de>
5073 * configure.in: Don't add -lintl to LIBS when included gettext is
5074 used (further checks for libraries would fail because libintl.a
5075 isn't build, yet). Instead use and substitute LINTL.
5077 * Makefile.in (OURLIBS): add @LINTL@
5079 Tue May 12 17:45:49 1998 <psheer@obsidian.co.za>
5081 * syntax.c: yet more minor modifications.
5083 1998-05-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
5085 * main.c: New default: auto-save setup.
5087 * screen.c (move_right, move_left): Add support for icon-view movement.
5089 1998-05-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
5091 * setup.c (panel_load_setup): On non-icon editions, fall back to
5094 Sun May 10 13:27:50 1998 Norbert Warmuth <k3190@fh-sw.de>
5096 * widget.c (handle_char): Don't try to to delete default text in
5097 input widget more than once. Right after MC's start copy_filename
5098 (ESC Enter) failed because a flag wasn't cleared while characters
5099 were stuffed into the commandline (Andrej reported this bug).
5101 * main.c (copy_readlink): usr mc_readlink instead of readlink
5103 * file.c: Changed default for the copy/move option "dive into
5104 subdir if exists" to off (note: this was only possible after the
5107 (copy_dir_dir): Activated the previously uncommented code which
5108 implements "Dive into subdirs". Even when there's no case where we
5109 actually would like that behaviour it is a documented feature.
5110 Though I don't wanted to change the default behavour. Hence the
5113 (file_mask_defaults): set dive_into_subdirs
5115 (file_mask_dialog): Fix for debian Bug #20727: Move operation with
5116 "[ ] Dive into subdir if exists" and destination filename not
5117 wildcarded. If destination is an existing directory then files
5118 will be moved into this directory. If destination is not an
5119 existing directory then src file will be renamed (one file
5120 selected) or an error will be displayed (more than one file
5123 (file_mask_dialog): made the option "Using shell patterns" local
5124 to the current copy/move operation, i.e. this option is always
5125 initialized with the global options's value. Previously it affected
5126 the global Options/Configuration/shell Patterns.
5127 Another possiblilty would be to make the global option a default
5128 option on startup and keep changes in the copy/move dialog
5129 (without saving these changes with save setup).
5131 * setup.c: Don't save and load options which can be changed
5132 outside the options menu. For example I don't like that
5133 preserve_uid_gid and dive_into_subdirs from the copy/move dialog
5134 are saved and restored (strange, what about the other options from
5136 It would be much cleaner to make these option read-only. This way
5137 one could edit ~/.mc/ini to provide default option setting on
5138 startup and "Save setup" wouldn't have side effects outside the
5141 Sun May 10 13:24:20 1998 Norbert Warmuth <k3190@fh-sw.de>
5143 * doc/mc.1.in, doc/mc.sgml, mc.hlp: Updated to reflect new default
5144 for dive into subdirs.
5146 Sun May 10 13:21:45 1998 Norbert Warmuth <k3190@fh-sw.de>
5148 * edit/syntax.c: Disable debug messages on stderr.
5150 * edit/edit.h: Added missing _()
5152 1998-05-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
5154 * layout.c (flag_winch): Propagate the window change to the slave
5155 pty even when not running our event loop. The resize_subshell
5156 routine is thread safe.
5158 * dlg.c (update_cursor, dlg_broadcast_msg_to): Do not send
5159 messages if no widgets are on the Dlg_head, this happens now with
5160 the gmc code, as we can have all of the windows shut down.
5162 Wed May 6 13:46:37 1998 Paul Sheer <psheer@obsidian.co.za>
5164 * syntax.c: more bug fixes.
5166 1998-05-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
5168 * view.c (view_quit_cmd): Use dlg_stop.
5170 * main.c (ctl_x_cmd): Implement ctl-x handling as a state of the
5171 key press events. Drop the usage of mi_getch to acomplish this
5173 (midnight_callback): Deal with the current map depending on the
5176 Mon May 4 10:21:31 1998 Norbert Warmuth <k3190@fh-sw.de>
5178 * background.c (message_1s1d): the unprocessed string with %d was
5179 passed to message_1s; fixed small memory leak
5181 * widget.c (button_callback): WIDGET_CURSOR: make cursor position
5182 dependend from button type (fixes the off by one bug in advanced
5185 * file.c (copy_file_file): Schedule deletion of short target file
5186 only when we created or truncated the target file and not already
5187 when we decided to overwrite an existing file.
5189 1998-05-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
5191 * boxes.c (task_cb): Use kill, not INT, as we are catching INT in
5194 Sat May 2 14:07:05 1998 Paul Sheer <psheer@obsidian.co.za>
5196 * setup.c: ALT('H') now shows a directory history - that
5197 ESC SHIFT-h or ALT-SHIFT-h
5199 Fri May 1 17:45:58 1998 Paul Sheer <psheer@obsidian.co.za>
5201 * syntax.c: initial support for LaTeX 2.09 files added,
5203 * syntax.c: some minor bug fixes. and reorganisation
5204 of context and keyword priorities.
5206 Fri May 1 11:24:21 1998 Paul Sheer <psheer@obsidian.co.za>
5208 * syntax.c: syntax highlighting segfaults when editing a binary
5211 Thu Apr 30 12:23:50 1998 Alex Tkachenko <alex@bcs.zp.ua>
5213 * src/file.c: lot of i18n of file Copy/Move/Delete operations. Maintainers
5214 of message catalogs please notice introduced op_names1 and formats for
5217 * src/boxes.c: i18n of background jobs control and quick cd
5220 * src/menu.c (menubar_arrange): resizing of menubar upon changes of
5221 window size is now controlled by preprocessor symbol RESIZABLE_MENUBAR
5222 (now it's off by default, as requested in mailing list). If it is off,
5223 menubar items are separated with fixed number of spaces (3).
5225 * src/layout.c, edit/editwidget.c: calls to menubar_arrange ifdef'ed
5228 1998-04-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
5230 * main.c (parse_an_arg): GNOME edition keeps track of various
5231 --geometry and various directories passed.
5233 1998-04-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
5235 * main.c (update_panels): Great API simplification. update_panels
5236 only cares about the contents of the current panel, every other
5237 panel keeps the current selection (this was the behaviour
5240 update_panels can be provided in a per-port fashion as well.
5242 Wed Apr 29 03:06:09 1998 Paul Sheer <psheer@obsidian.co.za>
5244 * syntax.c: some optimisations, as well as support for
5245 syntax highlighting of Makefiles and ChangeLog files.
5246 Fixed some syntax highlighting bugs. All C and C++
5249 Tue Apr 28 06:11:08 1998 Norbert Warmuth <k3190@fh-sw.de>
5251 * view.c (toggle_wrap_mode, toggle_hex_mode): Force recalculation
5252 of bottom_first (we mustn't use an already calculated and cached
5253 value because it is invalid for the new mode and the End key would
5254 not move to the end of the file).
5256 * configure.in: Renamed the option `--with-our-slang' to
5257 `--with-included-slang' (this one looks better because we also
5258 have an `--with-included-gettext').
5259 Make the option `--with-ext2undel' recognice a given path.
5261 * cmd.c (view_file_at_line): In plain view (F13) set the default
5262 magic flag to zero in order to view the file content unprocessed
5263 (esp. don't uncompress files if they are compressed). The
5264 view_simple_cmd got broken when the default magic flag in view.c
5265 was changed from 0 to 1.
5267 * view.c (do_view_init, goto_line): Set wrap mode temporary off
5268 to make goto line number work, i.e. `line number' now always means
5269 line number in file and not line number on screen (in wrap mode
5270 one long line wrapped once is displayed in two lines on the screen).
5271 That's important when the viewer is invoked from the find file
5272 dialog to display even in wrap mode approxiamtly the part of the
5273 file where we found the content we searched for.
5275 (move_forward2): In wrap mode lines were sometimes counted wrong
5276 causing cursor up to move more than one line.
5278 (move_backward2): Fixed the movement in wrap mode.
5280 (change_viewer): Always re-init viewer when we have a filename,
5281 i. e. if the viewer is invoked with simple_view_cmd then we can switch
5282 with the F8 key between unprocessed file content und uncompressed
5284 (view_init): re-init view also when magic flag was altered
5286 1998-04-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
5288 * screen.c (is_a_panel): Added a routine to determine if a widget
5291 1998-04-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
5293 * screen.c (file_entry_color): Check if fe->fname has something.
5295 Sun Apr 26 00:21:12 1998 Norbert Warmuth <k3190@fh-sw.de>
5297 * slint.c: Applied the patch from Bill Nottingham <wen1@cec.wustl.edu>
5298 to make it link against SLang >=1.0.
5299 I reviewed the diffs to the part of SLang we use and there are no
5300 further changes to MC necessary (one function's return value
5301 changed it's meaning but we don't use this return value).
5303 * configure.in: Undone the change which prevented linkage against
5306 Sat Apr 25 13:41:43 1998 Paul Sheer <psheer@obsidian.co.za>
5308 * edit.h, syntax.h: some optimisations to improve syntax
5311 1998-04-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
5313 * color.h: Move the CTYPE definition
5315 Fri Apr 24 16:43:25 1998 Paul Sheer <psheer@obsidian.co.za>
5317 * main.h, setup.c: editor_syntax_highlighting option added
5320 Fri Apr 24 14:54:06 1998 Paul Sheer <psheer@obsidian.co.za>
5322 * syntax.c: added. this files reads ~/.cedit/mcsyntax and
5323 processes generic rules for syntax highlighting of different
5324 file types. Syntax highlighting does not store an attribute byte
5325 for each byte of the edit buffer. Rather, it calculates colours
5326 on the fly, with an optimised algorithm, as the text is being
5329 * edit.c, edit.h, editwidget.c, editdraw.c: changes to facilitate
5330 syntax highlighting.
5332 * editoptions.c: dialog box updated with a syntax highlighting
5335 * slint.c: new function alloc_color_pair(). This allocates a new
5336 color index. init_pair() itself now records the last colour index
5337 so that colours can be added on to the end of the colour list
5338 with alloc_color_pair().
5340 * slint.c: new function try_alloc_color_pair() returns a new index
5341 for a color with named fg and bg. Checks if that named colour
5342 already exists before setting a new index.
5344 1998-04-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
5346 * user.c (execute_menu_command): Create temporary file exclusively
5349 * main.c (do_execute), utilunix.c (my_system), gutil.c, ext.c:
5350 Changed the way we execute programs. Now a new set of flags exist
5351 that indicates how the execution is done. In ports that execute
5352 by sending the process to background, when executing temporary
5353 files, we have to remove the files after the child process has
5354 finished executing the code not after the calling do_execute.
5356 * ext.c (exec_extension): Create temporary file exclusively.
5358 Mon Apr 20 01:32:20 1998 Norbert Warmuth <k3190@fh-sw.de>
5360 * configure.in: Don't try to link MC against SLang >= 1.0. I will
5361 remove this restriction when I'm sure that it's save to use the new
5362 version (the documentation to SLang mentions some changes of
5365 1998-04-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
5367 * file.h: Added prototype for copy_dir_dir.
5369 * file.c (real_do_file_error): use the proper flags, this is not a
5370 D_INSERT dialog box, for what it is worth. Important bug fix.
5372 * utilunix.c (get_owner): Declare.
5374 * widget.h: Added various missing prototypes for the X edition.
5375 * view.h: Added various missing prototypes for the X edition.
5376 * widget.c (x_radio_toggle): New per-port variable: PORT_HAS_RADIO_TOGGLE
5378 1998-04-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
5380 * screen.c (GT): Assign two spaces for the minimum size of the
5381 "type" field for the GNOME edition. This gives some extra space
5382 for the icon that gets displayed.
5384 * dlg.c (remove_widget): New function: used to remove a widget
5385 from an existing Dlg_head;
5386 (destroy_widget): Destroy a specific Widget.
5387 (add_widgetl): Extended to deal with the fact that a running
5388 Dlg_head can become empty.
5390 * panelize.c (l_call): Update the input line every time the user
5391 selects the entry with the mouse (pretty common in the gnome
5394 * hotlist.c (add_new_group_input): Removed an extra field that was
5397 * find.c (find_parameters): Tree button is gone for gnome until we
5398 get the tree function working on gnome.
5400 * cmd.c (save_setup_cmd): Per Elliot's suggestion, do not pop up a
5401 dialog box to inform the user about the saved setup.
5403 1998-04-15 Pavel Machek <pavel@elf.ucw.cz>
5405 * cmd.c: Report failed chdir attempts.
5407 Wed Apr 15 10:48:41 1998 Alex Tkachenko <alex@bcs.zp.ua>
5409 * src/hotlist.c: changes to hotlist boxes i18n.
5411 * src/panelize.c: changes to panelize boxes i18n.
5413 * src/wtools.c (query_dialog): Take care about possible '&' in
5414 button names while calculating window sizes and button positions.
5416 1998-04-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
5418 * screen.c (string_file_nlinks): The buffer was too small and we
5419 were overwriting parts of it.
5421 * subshell.c (do_subshell_chdir): Memory leak fix.
5423 * find.c (do_search): Do not use undefined order of evaluation.
5425 * user.c: Do not use undefined order of evaluation.
5427 * dlg.c (init_dlg): Do init the default return value.
5429 Sun Apr 12 03:09:17 1998 Norbert Warmuth <k3190@fh-sw.de>
5431 * cmd.c (view_other_cmd): #ifdef'd application_keypad_mode and
5432 numeric_keypad_mode (don't include it in non text editions)
5434 Sun Apr 12 02:48:26 1998 Norbert Warmuth <k3190@fh-sw.de>
5436 * xv/xvscreen.c: removed duplicate (conflicting) definition
5439 Sun Apr 12 02:24:57 1998 Norbert Warmuth <k3190@fh-sw.de>
5441 * text.c (edition_post_exec), cmd.c (view_other_cmd): Don't change
5442 the keypad mode when we don't use the alternate plus minus. Pavel
5443 forgot an if-clause when he replaced the escape sequences (or
5444 another point of view: I forgot one if-clause at different place).
5446 Fri Apr 10 17:35:23 1998 Philippe De Muyter <phdm@macqel.be>
5448 * configure.in (AC_NCURSES): When checking for library location,
5449 put -L option before -l option, not after.
5451 Fri Apr 10 10:35:06 1998 Norbert Warmuth <k3190@fh-sw.de>
5453 * file.c (file_mask_dialog): When the shell patterns option was
5454 off source_mask was freed twice.
5456 1998-04-10 Marc Ewing <marc@redhat.com>
5458 * panel.h: added up_b
5460 1998-04-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
5462 * widget.c (update_input): Set the used flag early in update_input
5463 to allow X widget to catch the right value
5465 * screen.c (do_enter): Return the status for the operation.
5467 * main.c (main): Sigh. This was hard. I added support for argp.
5468 Right now we support both argp for the GNOME edition and popt for
5469 the other editions. I will remove popt support in the future and
5472 * dlg.c (add_widgetl): Adding widgets to an already running dialog
5473 had some flaws. Fix this.
5475 Wed Apr 8 11:15:29 1998 Alex Tkachenko <alex@bcs.zp.ua>
5477 * src/find.c: changes to find_parameters/find_file i18n.
5479 * src/widget.c: new function introduced, button_scan_hotkey();
5480 button_new() and button_set_text() fixed to use mentioned function.
5482 * src/key.[ch], src/dlg.c: changes to make recognition of ESC char as
5483 ALT(c) possible for 8-bit chars. (By replacing 'A'/'Z' comparisons with
5484 call to isalpha() in the way proposed by Norbert).
5486 * src/boxes.c: changes to display box i18n
5488 * src/learn.c: changes to learn key dialog i18n
5490 1998-04-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
5492 * main.c (update_one_panel_widget): New routine: Updates a panel
5493 based on the widget, not the index. Used by the GUI versions.
5495 * find.c (find_file): Cancel idle tasks before we destroy the find
5498 * dlg.c (destroy_dlg): Call x_destroy_dlg_start, a new hook that
5499 is invoked to allow the frontend code to prepare for dialog
5500 destruction. Only the Gnome edition is using this: it uses this
5501 to hide the dialog and avoid flickering.
5503 * main.c: dtterm also has mouse support.
5505 1998-04-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
5507 * wtools.c (quick_callback): Process DLG_KEY events on X.
5509 * utilunix.c (max_open_files): new routine; Used to figure out
5510 the number of available file descriptors.
5512 Sat Apr 4 00:16:49 1998 Alex Tkachenko <alex@bcs.zp.ua>
5514 * src/layout.c: changes to layout dialog box i18n
5516 * src/option.c: changes to configure box i18n
5518 * src/cmd.c: added N_() macro for machine_str
5520 * src/wtools.c (real_input_dialog_help): ok/cancel buttons are places
5521 symmetrically spaced relatively to center of the box. It produces
5522 nicer appearance with i18n (IMO :)
5524 * src/boxes.c (confirm_box): i18n stuff added.
5526 Mon Apr 6 07:48:22 1998 Pavel Roskin <pavel_roskin@geocities.com>
5528 * Makefile.in: "make dist" works with bash 1.x again
5530 Fri Apr 3 05:23:20 1998 Alex Tkachenko <alex@bcs.zp.ua>
5532 * configure.in: ALL_LINGUAS test added, to allow specify list
5533 of languages to be installed by setting env variable before
5534 configure. If it is empty, it defaults to full list.
5536 * src/menu.h menu_entry.{hot_pos, is_dupped} dropped
5538 * src/menu.c: consistency fixes: pull-down menu items are now
5539 accessible either with arrow keys or with hotkeys, denoted with &
5540 (and highlighted). (key combinations, placed to the right of items
5541 intended to be used from outside the menus). Freeing menu entries
5542 removed as it no longer needed
5544 * src/main.c, edit/editmenu.c: menubar init code is changed to conform
5547 * edit/edit.h: use of "Cancel" in error_dialogs replaced with
5548 "Dismiss", to avoid collisions in translation of "Cancel" in other
5549 places with this case.
5551 * src/boxes.c: select_format() and it's support removed, as it is
5552 obsoleted by input line history feature. display_init()/display_callback
5553 fixed to suite i18n changes. sort_box() - alike.
5555 * src/option.c: pause_options added &'s and gettext calls to expand
5556 statically assigned values.
5558 * src/widget.c: (radio_callback) hotkey recognition is changed to
5559 &-notation, rather than simple uppercase.
5561 * src/dlg.c: (dlg_try_hotkey) plain symbol comparison replaced with
5562 call to isalpha(), this fixes errorneous exit from input line, when
5563 button hotkey is 8-bit NLS char.
5565 Fri Apr 3 12:23:28 1998 Norbert Warmuth <k3190@fh-sw.de>
5567 * TODO: Removed obsolete entries: Similar entries in tree view
5568 are displayed correct; user specific files has been moved
5570 Added: Check what to do with menubar_arrange/destroy_menu stubs
5571 in tk/tkmenu.c; the interal editor (not portet yet) adds entries
5572 to the wrong menubar
5574 Wed Apr 1 00:15:30 1998 Norbert Warmuth <k3190@fh-sw.de>
5576 * key.c, key.h (numeric_keypad_mode, application_keypad_mode): New
5577 functions which encapsulate two hardcoded escape sequences from main.c.
5579 * main.c (main): Use the two new functions from key.c
5581 * main.c, screen.c: Moved all file selection keys from the default
5582 keymap to the keymap for panels in listing mode.
5583 Changed *_selection_cmd to *_selection_cmd_panel in panel_keymap
5584 (functions in panel_keymap get a WPanel * as first parameter,
5585 i.e. the indirection with cpanel isn't necessary).
5587 * main.c (midnight_callback): Keys '*' and '-' were not treated
5588 when only_leading_plus_minus==0;
5589 Optimized the if-clauses a little bit (i.e. removed duplicate
5590 checks). More optimation is possible but it would make the whole
5591 stuff completly unreadable.
5593 * key.c (correct_key_code): KP_ADD, KP_SUBTRACT and KP_MULTIPLY
5594 will be translated to +, - and * only if the option
5595 alternate_plus_minus is turned off.
5597 * learn.c (learn_keys): Turn alternate_plus_minus temporarily on
5598 to avoid translation of KP_ADD, KP_SUBTRACT and KP_MULTIPLY in
5599 correct_key_code/make sure keypad is in application mode (makes it
5600 possible to learn this keys).
5602 * cmd.c (reverse_selection_cmd_panel): New function (renamed from
5603 reverse_selection_cmd, takes a WPanel * as parameter, references to
5604 cpanel changed to panel/the passed parameter).
5605 reverse_selection_cmd now simply calls this function with cpanel.
5606 This pair was missing among the *_selection_cmd* functions.
5608 * cmd.h: Added function prototypes.
5610 1998-03-31 Paul Sheer <psheer@obsidian.co.za>
5612 * cmd.c (nice_cd): Forgot to invoke the history registration in
5615 1998-03-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
5617 * menu.c (destroy_menu): Implement destroy_menu for all of the
5618 ports as a routine that frees the menu entries if
5619 internationalization has been enabled.
5621 * wtools.c (quick_dialog_skip): Do not i18n any string that is empty.
5623 Sun Mar 29 23:02:09 1998 Alex Tkachenko <alex@bcs.zp.ua>
5625 * src/menu.[ch]: new member to menu_entry (hot_pos) introduced to make
5626 internationalized version of menu use externally defined hotkeys
5627 (denoted with preceding &). create_menu() fixed to load intl text of
5628 the entries. Some fixes around menu.c to enable usage of reloaded
5631 * main.c, editmenu.c: menu initialization code fixed to conform new
5632 menu structure. editmenu init code includes N_(..) now.
5634 * menu.c, layout.c, editwidget.c: bar menu items displacement is made
5635 dynamically upon initialization and window size changes. Mouse event
5636 processing is fixed accordingly.
5638 Sat Mar 28 13:18:36 1998 Alex Tkachenko <alex@bcs.zp.ua>
5640 * src/screen.c: (repaint_file) last patches to format_file() in the
5641 same file broke appearance of panels in brief mode -- fixed.
5643 Mon Mar 30 20:02:49 1998 Paul Sheer <psheer@obsidian.co.za>
5645 * main.c, screen.c, dirhist.c, dirhist.h, main.h, widget.c,
5646 main.h and others?: Directory history added. The previous
5647 directory history code was removed. The directory history now
5648 loads and saves using the same routines as the input widget. The
5649 keys meta-y, and meta-u are used to go backward and forward
5650 through the history. The buttons to the right and left of the
5651 current directory display on the panel can be used as well. The
5652 v button brings up a history, but no key is assigned to this.
5653 Discussion as to correct color and shape of these buttons is
5654 open. show_hist() in widget.c is made generic to be called for
5655 any widget. Help pages still needed to be added for the
5658 Wed Mar 25 19:05:31 1998 Norbert Warmuth <k3190@fh-sw.de>
5660 * view.c (view_done): Set monitor off before deleting the view
5663 * subshell.c (init_subshell): Added ':q' to $cwd in the precmd for
5664 tcsh. It preventes command and filename substitution (e.g. for
5665 a directory named "[word] words")
5667 Mon Mar 23 18:06:10 1998 Norbert Warmuth <k3190@fh-sw.de>
5669 * main.c: Deleted some old and unused code
5671 1998-03-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
5673 * All over the src/ directory: Internationalization changes.
5675 * background.c: Avoid buffer over-runs and reduce number of
5676 internationalization strings.
5678 Mon Mar 23 14:04:07 1998 Philippe De Muyter <phdm@macqel.be>
5680 * configure.in (nlink_t): Check it using AC_CHECK_TYPE.
5681 * acconfig.h (nlink_t): New define slot.
5683 Mon Mar 23 08:17:55 1998 Pavel Roskin <pavel_roskin@geocities.com>
5685 * src/main.c: mcedit can be named mce or mcedit.exe - only
5686 3 first letters are significant. The same for mcview.
5687 Console is always saved in do_execute() if it was saved there.
5689 * src/util.h: STRNOMP introduced (strncmp on unix and strnicmp
5692 * slang/slgetkey.c: SLang_getkey() and SLang_input_pending()
5695 * myslang.h: using fast one_vline() and one_hline() for OS2_NT
5697 Mon Mar 23 00:47:51 1998 Norbert Warmuth <k3190@fh-sw.de>
5699 * autogen.sh: added support for builddir != srcdir
5701 * doc/Makefile.in: The manual pages are generated files and
5702 located in the builddir and not in the srcdir.
5704 * find.c (find_file): Use the same hotkey for the panelize button
5705 as we use with the external panelize command.
5707 Fri Mar 20 17:51:01 1998 Norbert Warmuth <k3190@fh-sw.de>
5709 * myslang.h: --with-ncurses didn't compile: renamed
5710 KEY_BACKTAB to KEY_BTAB (the name ncurses uses)
5712 * dlg.c (dlg_key_event): likewise
5714 1998-03-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
5716 * screen.c: Remove KEY_DC forever. This should have never been
5719 Wed Mar 18 22:08:34 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5721 * achown.c (do_enter_key): call endgrent, endpwent.
5723 * chown.c (init_chown): call endgrent, endpwent.
5725 Tue Mar 17 23:58:40 1998 Pavel Machek <pavel@elf.ucw.cz>
5727 * src/file.c: Fix for the case where the disk gets full.
5729 Tue Mar 16 18:35:53 1998 Stas Maximov <stmax@u213.srcc.msu.su>
5731 * src/hotlist.c default values for dialogs which add entries to hotlist
5732 are now set to the current directory.
5734 Tue Mar 10 14:42:01 1998 Stas Maximov <stmax@u213.srcc.msu.su>
5736 * vfs/extfs.c, lib/mc.ext, vfs/extfs/extfs.ini, vfs/extfs/cpio.in
5737 Added support for cpio extfs including compressed and gziped
5738 cpio archives. compress and gzip handled separately because I saw
5739 a lot of systems which have compress, but don't have gzip.
5741 Sat Feb 21 16:46:49 1998 Stas Maximov <stmax@u213.srcc.msu.su>
5743 * src/subshell.c: failed to grantpt on SVR4 due to zero-initialized
5744 subshell_pid. sigaction handler for SIGCHLD does waitpid(subshell_pid,
5745 ...) and when subshell_pid == 0 it steals the zombie from grantpt(3)
5746 which does fork/exec/waitpid for suid program to set the permissions on
5747 pty. It's enough to initialize it to 1 or -2.
5749 1998-03-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
5751 * util.c (convert_pattern): Now the internal buffer is malloc()ed
5752 instead of being static. This is required for long patterns.
5753 (regexp_match): Free the pattern after calling convert_pattern().
5755 * file.c (file_mask_dialog): Free the source_mask after calling
5758 Mon Mar 16 13:03:45 1998 Pavel Roskin <pavel_roskin@geocities.com>
5760 * cmd.c: Internal edit is used by default. vi may be
5761 confusing for some users.
5763 * tree.c: tree_rmdir_cmd() should not return any value,
5764 because it is not analyzed for errors.
5766 * main.c: NT code: use O_BINARY instead of _O_BINARY
5768 * util.c: DO not test for arguments that do not make sense under
5771 * file.c: utime.h always included for Windows NT port.
5773 * view.c: Events are flushed only if the ports supports it.
5775 Mon Mar 16 12:30:39 1998 Stas Maximov <stmax@u213.srcc.msu.su>
5777 * hotlist.c: Defaults on the hotlist add-current and new-entry is
5778 the current directory.
5780 Sat Mar 14 17:30:21 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5782 * file.c (panel_operate): Why was the flags in query_dialog set to
5783 D_INSERT is a big mistery. Should be fixed now.
5785 Fri Mar 13 18:10:58 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5787 * dlg.c (dlg_stop): New routine used to finish dialog boxes.
5789 * cmd.c (set_panel_filter_to): Implementation split. To be used
5792 * widget.c (input_new): GNOME-entry widget is inspired in the
5793 WInput + the history patches from Paul. Use the GNOME-entry
5794 history, as this makes it easier to deal with the filter button on
5797 * setup.c (save_panel_types): Do not use if running on the gnome
5798 edition. This need a lot of fixing for making this work with
5799 gnome and session management.
5801 * main.c (do_nc): DO not call setup_panels_and_run_mc as
5802 create_panels in gnome edition does all this.
5804 (setup_mc): Skip part of the setup.
5806 (do_execute): Do not Execute any of the pause code after
5809 Wed Mar 12 17:46:09 1998 Norbert Warmuth <k3190@fh-sw.de>
5811 * screen.c (chdir_other_panel, chdir_to_readlink): Use passed
5812 panel instead of cpanel (removed mixed use of panel and cpanel).
5814 * main.c, screen.c: Deleted F13 from the default keymap, added F13
5815 and F14 to the panel's keymap (the keymap for panels in listing
5816 mode). These two keys are only useful for panels in listing mode.
5817 It seems there are even more candidates for such a move. Especially
5818 select_cmd and unselect_cmd which appeared recently for the GNOME
5819 edition in screen.c act unexpected for panels in tree-mode.
5821 * cmd.c (view_simple_cmd): Added WPanel* to the parameter list.
5823 (edit_cmd_new): No need to get a panel because it is not used.
5825 * panelize.c: Changed hotkey of the Panelize button (Alt-p is
5826 already used by the input line history). I wonder if I should
5827 change it in the find dialog, too (just to have a unique hotkey
5828 for the panelize button).
5830 Wed Mar 11 19:02:48 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5832 * view.c: Lots of changes: Split the X11 code from the main view
5833 program. This is needed to cleanly support the addition of the
5834 Gnome version of the file viewer;
5836 New names for old functions (just a view_ prefix):
5837 view_add_character, view_add_string, view_gotoyx, view_set_color,
5838 view_display_clean. Now all of them take a WView argument (which
5839 is ignored in the macro for the text edition). This is to support
5840 multiple open views at once.
5842 * boxes.c (symlink_dialog): Enable ok/cancel buttons for the Gnome edition.
5844 * cmd.c (link_cmd, symlink_cmd): Provide the filename to operate
5847 Tue Mar 10 20:41:45 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5849 * cmd.c (unselect_cmd_panel, select_cmd_panel): To avoid races on
5850 the X11 version, these routines now take a panel argument at
5853 * widget.c (radio_callback): Call x_radio_focus for FOCUS/UNFOCUS
5855 (button_callback): Fallback to default_msg on WIDGET_FOCUS
5858 1998-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
5860 * xslint.c (getch): Added missing "return".
5862 * utilunix.c (init_groups): Added parentheses around
5863 assignment/truth value.
5865 * boxes.c: #include <stdlib.h>
5867 * screen.c (string_inode): Cast fe->buf.st_ino to long to be
5868 consistent with sprintf format.
5870 * main.c (handle_args): Added parentheses around assignment/truth value.
5872 Sat Mar 7 14:33:38 1998 Pavel Roskin <pavel_roskin@geocities.com>
5874 * src/complete.c: obsolete hack for OS/2 and NT removed.
5875 Completion works for NT now (not very good)
5877 * src/main.c: HOME variable is respected by NT and OS/2
5878 versions. If it is missing, we use LIBDIR on OS2_NT and "/"
5881 * src/key.h: SHIFT_PRESSED is set to 0x0010 on NT. This value
5882 doesn't conflict with definitions for ALT and CTRL, but it is
5885 * vfs/vfs.h: Minor changes for OS/2. EMX defines mkdir with
5888 * vfs/tcputil,c, vfs/utilvfs.c: signal.h was includes twice.
5890 * vfs/Makefile.in: undelfs.h is not used and should disapper
5892 * slang/slos2tty.c: new file, copied from SLang-0.99.38,
5893 needed for OS/2 port
5895 * slang/Makefile.in: added slos2tty.c
5897 * vfs/extfs/README: annoying spell errors corrected
5899 * src/main.c: --termcap disabled for OS2_NT because it doesn't
5900 (and cannot) work. ARCH_FLAGS is not needed anymore.
5902 * src/text.c: most includes removed. Added a warning is someone
5903 compiles this file with HAVE_X. Improved color scheme for
5904 consoles with 16 background colors (e.g. OS/2). Hack for OS/2
5907 * src/util.c, src/util.h: STRCOMP and MC_ARCH_FLAGS are moved
5908 to util.h. It may be useful to use them for filenames' completion
5911 Fri Mar 6 19:29:54 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5913 * find.c: Simplify header files: use the fs.h include file.
5915 (use x_flush_events).
5917 * screen.c (string_file_name): In GNOME, the CList widget does the
5918 filename truncation, so we do not do it here.
5920 (panel_new): Initialize all of the wpanel contents to zero. This
5921 will is required by the GNOME X ports (to figure out if a field
5922 has been inited or not).
5924 Thu Mar 5 10:28:40 1998 Norbert Warmuth <k3190@fh-sw.de>
5926 * popt.c (poptParseArgvString): make it compile with the native
5927 compiler on AIX 4.1.3
5929 1998-03-04 Federico Mena Quintero <federico@nuclecu.unam.mx>
5931 * cmd.c: Added #include "x.h"
5933 Wed Mar 4 14:49:55 1998 Norbert Warmuth <k3190@fh-sw.de>
5935 * doc/mc.1.in, mc.hlp: updated (these files haven't been updated
5936 at the last change to mc.sgml)
5938 * doc/mc.sgml: spelling error corrected
5940 * Makefile.in: renamed all references of mc.1 to mc.1.in
5942 * find.c (locate_egrep): Don't use an absolute path if egrep isn't
5943 found at the usual places. Then execvp will search the directories
5944 passed in the environment PATH variable (a little bit slower but
5945 better than a defunct find content).
5947 * tree.c: removed the include file I mistakenly added with my
5950 Tue Mar 3 20:00:36 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5952 * file.c (get_file): Take a panel argument. I am pretty sure that
5953 this is broken for the case where we are copying from a WTree.
5955 (panel_operate): take a panel argument instead of defaulting to
5958 Mon Mar 2 15:54:55 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
5960 * dlg.c (create_dlg): Set running to 0 on creation;
5961 (add_widgetl): do widget initialization if the dialog is already
5962 running when this dialog box is created.
5964 Mon Mar 2 12:11:37 1998 Norbert Warmuth <k3190@fh-sw.de>
5966 * vfs/ftpfs.c (changetype): Removed the hack which always forced
5967 sending the command "TYPE I" when changing to binary transfer mode
5968 was requested even when MC thought the connection was already in
5969 binary mode (bucket->isbinary == 1). The correct fix is now in
5972 * vfs/ftpfs.c (login_server): Set the transfer mode stored in
5973 the bucket to UNKNOWN (the bucket might be reused and the old
5974 transfer mode isn't valid any longer).
5976 * screen.c (panel_key): Cleanup: deleted if-clause with -1 (EV_NONE)
5977 which isn't delivered to widgets by the dialog manager; always
5978 return 1 when key was handled; removed the function keys from the
5979 panel's keymap (the function keys are always handled by the
5980 buttonbar); don't eat characters below ' ' (C-l and Shift-F3 now
5981 work even when quick search was started); characters between 32 and
5982 255 start quick search if there is no commandline (no C-s necessary
5985 * tree.c (tree_key): likewise
5987 Tue Feb 24 18:37:36 1998 Stas Maximov <stmax@u213.srcc.msu.su>
5989 * subshell.c: Set subshell_pid to 1 on startup
5991 Fri Feb 13 19:59:39 1998 Alexander Savelyev <fano@VCom.kiev.ua>
5993 * screen.c: KEY_DC is also handled by delete_cmd.
5995 * vfs/ftpfs.c (chdir): sending the CWD command is not necessary
5998 (ftpfs_connection_close): Do not use WAIT_REPLY, closes
6001 (open_data_connection): implement the reget command.
6003 * boxes.c: bigger VFS dialog box.
6005 * file.c (init_replace): Add support for copying files only if the
6006 size differs, and support for regetting ftp files.
6008 Wed Feb 11 20:08:50 1998 Norbert Warmuth <k3190@fh-sw.de>
6010 * user.c (execute_menu_command): Extented the syntax of %-macros
6011 used in the user menu in order to switch quoting on (default) and
6012 off, e.g. %0f means don't quote the expanded macro, %f and %1f mean
6013 quote the expanded macro.
6016 Fri Jan 30 16:43:47 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
6018 * dlg.c (create_dlg): Now we pass the flags parameter to the
6019 create_dialog routine.
6021 * tkmain.c (xtoolkit_create_dialog): Check for the grided value
6023 Fri Jan 23 07:28:54 1998 Peter Daum <gator@cs.tu-berlin.de>
6025 * extfs.c (open_extfs_archive): Pass the filename to the list
6028 * extfs/mailfs: New file system for browsing mail files (support
6029 for compressed mail fiels as well).
6031 Fri Jan 23 07:19:18 1998 Pavel Roskin <pavel_roskin@geocities.com>
6033 * edit/edit.h: mc_mkdir requires 2 arguments for any operation
6034 system. Obsolete #ifdef's removed.
6036 * edit/editwidget.c: ansi standard violation removed
6038 * nt/Makefile.NT: default SLang directory is now ../slang. Most
6039 of SLang sources are no more compiled for MC.
6041 * nt/drive.h: new file. Copied from os2/drive.h with minor changes
6043 * nt/ket.nt.c: new way for handling conflicting SHIFT_PRESSED
6044 definitions. get_event can work without blocking. Copy, move
6045 and delete operations work normally.
6047 * nt/slint.nt.c: SLang_getkey2 and Slang_input_pending2 are
6048 copied from src/slint.c
6050 * nt/sys/param.h: annoying warnings temporaly suppressed.
6052 * slang/slvideo.c, slang/slw32tty.c: new files. They contain
6053 changes by Alexander Dong.
6055 * src/myslang.h: definitions for acsii symbols removed, since
6056 they are available in slang.h. Double lines are not used anymore.
6058 * src/panelize.c: sys/wait.h is included only if HAVE_SYS_WAIT_H
6061 * nt/Makefile.NT: text.c is added
6063 * nt/Makefile.VC4: "-debug" switch for linker is not used for
6066 * src/screen.c (show_dir): double lines are no more used by NT and
6069 * src/wtools.c (real_input_dialog_help): layout of input dialog for
6070 XView port is corrected
6072 * edit/edit.h: mc_mkdir requires 2 arguments for any operation
6073 system. Obsolete #ifdef's removed.
6075 * edit/editwidget.c: ansi standard violation removed
6077 Wed Jan 21 14:01:29 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
6079 * ext.c (regex_command): reverted the patch that changed tests for
6080 *p == ' ' || *p == '\t' to isspace(). isspace() is true for tabs,
6081 newlines, carriage-returns and vertical tabs as well. Which is
6084 Wed Jan 21 11:58:39 1998 Sung-Hyun Nam <namsh@lgic.co.kr>
6086 * ftpfs.c (retrieve_dir): Avoid compiler warning by testing
6087 explicitly the value.
6089 screen.c (format_file): color not initialized when we met
6092 Wed Jan 21 11:28:21 1998 Alex Tkachenko <alex@bcs.zp.ua>
6094 * cmd.c, utilunix.c: cosmetic changes to reduce compiler warnings
6096 * utilunix.c (my_system): small fix for SCO zombies moved here;
6097 now it returns WEXITSTATUS(status) instead of status itself. While
6098 missing it may not hurt on i.e., linux, on SCO it gives incorrect
6101 * vfs/extfs.c system() calls replaced with my_system() call; this
6102 allows a greater degree of control - fixes SCO system() return value
6103 processing. Notice: plain replacement system() with WEXITSTATUS(system)
6104 does not produce correct behavior (don't ask me why).
6106 * panelize.c (do_external_panelize): similar fixes for pclose()
6107 return value on SCO.
6109 view.c (load_view_file): inverted value of viewer_magic_flag to
6110 put viewer decompression state in accordance with F8 label text.
6111 Also default_nroff_flag is initialized to be 1; thus enabling all
6112 filter processing by default easies mc usage for novice users.
6114 Sun Jan 18 13:47:37 1998 Sung-Hyun Nam <namsh@lgic.co.kr>
6117 * panel.h, tkscreen.h : error when compile dlg.c
6118 * tkconf.h : paint_frame
6119 * screen.c : to include paint_frame
6120 * tkmain.c : I just copied clr_scr() from the text.c
6122 Fri Jan 16 16:19:59 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
6124 * screen.c (format_file): Do not invoke the file_compute_color
6125 routine for empty lines.
6127 * gmain.c: Color scheme for Gnome
6129 * gscreen.c: Color setup now allocated the GdkColor *.
6131 * color.c: Moved the default color setting to a per-port
6132 location (text.c for the text mode edition); new color
6133 configuration: core; Fixed the case where the color spec was
6134 buggy and we kept on a infinite loop;
6136 Fri Jan 16 13:47:13 1998 Pavel Roskin <pavel_roskin@geocities.com>
6138 * nt/drive.nt.c, nt/chmod.nt.c: Updated button_new and check_new
6141 Fri Jan 16 12:47:39 1998 Norbert Warmuth <k3190@fh-sw.de>
6143 * vfs/ftpfs.c (command): Don't log passwords when the dialog between
6144 server and client is logged to a file (mc -l logfile).
6146 * vfs/ftpfs.c (resolve_symlink, retrieve_dir): When a directory
6147 contains spaces send two commands ("CWD path" and "LIST .") instead of
6148 one command ("LIST path") in order to get directory listings.