Commit Graph

5187 Commits

Author SHA1 Message Date
Pavel Roskin
05bb51964b * configure.in: Fix non-portable operator. Bump version to
4.6.0-pre2.
2002-12-26 20:05:58 +00:00
Pavel Roskin
4cec4a2058 * file.c: Never access internals of ctx->rx directly.
* fileopctx.c (file_op_context_destroy): Use regfree() to free
ctx->rx.
Patch from Red Hat beta.
2002-12-26 19:04:10 +00:00
Pavel Roskin
c054b3783f Update. 2002-12-26 16:50:11 +00:00
Pavel Roskin
818d127652 Add comments. 2002-12-26 16:38:25 +00:00
Pavel Roskin
89804295bd * layout.c (setup_panels): Clean the hint bar if it's enabled.
Bug reported by Adam Byrtek <alpha@debian.org>
2002-12-26 16:36:07 +00:00
Pavel Roskin
da0c9299ad * main.c (update_xterm_title_path): New function, display
current path in the xterm window title.
(_do_panel_cd): Call update_xterm_title_path().
(done_mc): Remove final message for the titlebar.
* layout.c: Replace "Xterm hintbar" option with more generic
"Xterm window title".  Update all dependencies.
(setup_panels): Call update_xterm_title_path().
2002-12-26 16:10:45 +00:00
David Martin
acaf2e974e Update. 2002-12-26 16:00:03 +00:00
Pavel Roskin
f6bb0e1c2c Formatting change. 2002-12-26 15:16:04 +00:00
Pavel Roskin
1c9d69e2b3 Update. 2002-12-26 15:09:51 +00:00
Pavel Roskin
541abac5c3 * utilunix.c (mc_tmpdir): Check temporary directory more
carefully.  Report problems and ask user to acknowledge them.
2002-12-26 14:47:46 +00:00
Pavel Roskin
f76e27d6a5 Remove unused declaration. 2002-12-26 11:38:34 +00:00
Pavel Roskin
3286b6e5e2 * main.c (midnight_callback): Fix the last change, so that plain
Enter is not affected.
2002-12-26 10:57:11 +00:00
Pavel Roskin
f2c028ce46 s/can not/cannot/ 2002-12-26 02:21:37 +00:00
Pavel Roskin
befd79dfbc * main.c (copy_prog_name): Make static.
(midnight_callback): Handle both Alt-Enter and Ctrl-Enter before
the widgets, because the input widget interprets them now.
(default_map): Remove Alt-Enter, it's handled elsewhere.
2002-12-26 02:09:41 +00:00
Pavel Roskin
7f3a386062 * key.c (correct_key_code): Convert Shift-Tab and Ctrl-Tab to
Back Tab (used in dialogs to jump to the previous widget).
2002-12-25 23:30:49 +00:00
Pavel Roskin
9393a182b5 * widget.c (input_callback): Insert Enter with a modifier as
literal Enter.  Useful when pasting multiline text.
2002-12-25 23:15:48 +00:00
Pavel Roskin
812bac9a33 * editkeys.c: Move key maps to the file scope. Put common keys
to a separate table common_key_map.
(edit_translate_key): Remove unused argument x_keycode.
2002-12-25 22:53:07 +00:00
Pavel Roskin
9dc4fc6342 * extfs.c (read_archive): Free archive if the "list" command
returned non-zero, return -1.
Initial implemntation from Adam Byrtek <alpha@debian.org>
2002-12-25 21:42:59 +00:00
Pavel Roskin
10391e82cf * cmd.c (execute_with_vfs_arg): New function. Work around
defects of VFS localcopy code.
(view_file_at_line): Use execute_with_vfs_arg().
(do_edit_at_line): Likewise.
2002-12-25 20:55:39 +00:00
Pavel Roskin
bb5a5bcd35 Merge local TODO list. Reorder some entries. 2002-12-25 18:52:54 +00:00
Pavel Roskin
a69bf1d51a Update. Everything planned for 4.6.0-pre2 has been done. 2002-12-25 18:00:15 +00:00
Pavel Roskin
c61c08f137 Trivial fix from Vlad Romanenko <vladam@users.sourceforge.net> 2002-12-25 15:19:39 +00:00
Pavel Roskin
e0bbeb7085 * editkeys.c (edit_translate_key): Treat Shift-Enter as return
without indent.  Useful when pasting multiline text with
Shift-button3 or Shift-Insert with autoindent enabled.
2002-12-25 05:46:03 +00:00
Pavel Roskin
ddf2ad1612 * direntry.c (vfs_s_open): If the filesystem is read-only,
disable file creation.
2002-12-25 04:57:26 +00:00
Pavel Roskin
423849f74d Partly revert the last change - low-level chdir actually writes to
the "directory" argument, so preserve it.
2002-12-25 04:38:50 +00:00
Pavel Roskin
075d359907 * vfs.c (mc_chdir): Don't change current directory until the
low-level chdir succeeds.
2002-12-25 04:02:34 +00:00
Pavel Roskin
3a377a802d * vfs.c (vfs_name): Eliminate - it's unused and wrong. 2002-12-25 02:47:21 +00:00
Pavel Roskin
f8958b0a61 * key.c (is_idle): Check for input on input_fd and gpm_fd. 2002-12-25 02:01:31 +00:00
Pavel Roskin
5365b83ae1 Try harder to remove $MC_BUILD_DIR - use chmod. 2002-12-25 00:58:34 +00:00
Pavel Roskin
8dcd811ec9 Work around bug in rpm 4.1 that expands defines in comments.
Handle --without-x.
2002-12-25 00:52:45 +00:00
Pavel Roskin
201dbae818 * lib/mc.ext.in: Use --nosignature with rpm to avoid a message
in the viewer about unsigned packages.
2002-12-24 23:01:43 +00:00
Pavel Roskin
f3ec13cea2 * main.c (init_xterm_support): Revert last change, it doesn't
free all S-Lang memory anyways, but creates portability issues.
2002-12-24 20:22:29 +00:00
Pavel Roskin
c3fd15e72a * acinclude.m4 (MC_WITH_SLANG): Don't add -lslang to MCLIBS if
the system S-Lang is rejected.
2002-12-24 20:13:05 +00:00
Pavel Roskin
76fda9fe79 Fixed:
Find file dialog should not be closed if the regex is invalid.
2002-12-24 11:30:05 +00:00
Pavel Roskin
eb781a8f06 * dlg.h: Add new event DLG_VALIDATE.
* dlg.c (frontend_run_dlg): Send DLG_VALIDATE.
(select_a_widget): Don't send DLG_ONE_DOWN, nobody uses it.
* find.c (find_parm_callback): New callback for the parameter
dialog.  Don't allow stopping the dialog if the regular
expression is invalid.
2002-12-24 11:28:26 +00:00
Pavel Roskin
336183ab5d * lib/mc.ext.in: Play *.mov by mplayer. 2002-12-24 08:30:51 +00:00
Andrew V. Samoilov
6fec66eb87 * extfs/mailfs.in: Quote filename when openning mailbox. 2002-12-24 06:56:16 +00:00
Andrew V. Samoilov
1edcc92829 * extfs/apt.in, extfs/dpkg.in: Avoid stat on non-existing file. 2002-12-24 06:33:46 +00:00
Pavel Roskin
47e32ea5a5 * layout.c (init_curses) [HAVE_SLANG]: Don't call
SLtt_get_terminfo(), it's already called in slang_init().
* main.c (init_xterm_support): Free term_entry.
2002-12-24 03:37:34 +00:00
Pavel Roskin
107e1f0954 Partly revert last change - subshell_switch_key has to be char. 2002-12-24 03:05:09 +00:00
Pavel Roskin
5da0a2f08a * subshell.c (subshell_switch_key): Make static const int. 2002-12-24 00:13:30 +00:00
Pavel Roskin
001cb449d0 * configure.in: Enable X11 support by default, use --without-x
to disable.
2002-12-23 17:02:04 +00:00
Pavel Roskin
8f97f5dd21 Rename edit/edit_key_translator.c to edit/editkeys.c 2002-12-23 10:25:19 +00:00
Pavel Roskin
554acb2837 * editkeys.c (edit_translate_key): Treat Ctrl-Home and Ctrl-End
like Ctrl-PgUp and Ctrl-PgDown respectively.
2002-12-23 10:18:22 +00:00
Pavel Roskin
ab43e6db88 * edit_key_translator.c: Rename to ...
* editkeys.c: ... this.
* edit.c (edit_translate_key): Move to editkeys.c.
* Makefile.am: Adjust for the above.
2002-12-23 10:13:35 +00:00
Pavel Roskin
361ec45373 Fix includes. 2002-12-23 10:12:40 +00:00
Pavel Roskin
f19f91337b * key.c (correct_key_code): Strip or add modifier information
when necessary.  Recognize shift with function key N as function
key (N + 10).  Fix breakage from previous patch.
* key.h: Change XCTRL and ALT macros to use new definitions for
keyboard modifiers.
2002-12-23 09:46:28 +00:00
Pavel Roskin
d6947e39cf * edit.c (edit_translate_key): Remove x_state argument, it's now
a part of x_keycode.
* editwidget.c (get_key_state): Remove.
2002-12-21 08:46:50 +00:00
Pavel Roskin
0d0009e263 * key.c (get_modifier): Make static. Return the mc internal
representation, not the Linux console code.
(correct_key_code): Add the modifier, not strip it.
(ctrl_pressed): Remove.  Adjust all dependencies.
2002-12-21 08:43:15 +00:00
Pavel Roskin
e1805e4350 Move to 4.6.1:
Allow modifiers for keys in mc.lib, like "shift-up".
2002-12-21 07:54:53 +00:00