Pavel Roskin
4af124c573
Include edit.h.
2002-11-13 09:30:57 +00:00
Pavel Roskin
e1dc782744
* cmd.h: Fully exclude WPanel from public interfaces of cmd.c.
...
* cmd.c: All commands operate on current panels.
(get_a_panel): Remove.
* screen.c: Change to use new functions.
2002-11-13 09:27:42 +00:00
Pavel Roskin
85075934f1
* main.h: Don't check if panel.h was included. Use forward
...
declaration of WPanel, change prototypes to use struct WPanel.
(midnight_callback): Make static.
2002-11-13 08:32:49 +00:00
Pavel Roskin
1b017c668f
* cmd.c (do_view_cmd): Don't take WPanel argument - always use
...
the current panel.
(view_cmd): Likewise.
(view_file_cmd): Likewise.
(view_simple_cmd): Likewise.
(filtered_view_cmd): Likewise.
(filtered_view_cmd_cpanel): Remove.
(view_panel_cmd): Likewise.
2002-11-13 08:21:45 +00:00
Pavel Roskin
b3ae19dd7d
* chmod.c (init_chmod): Make static.
...
* help.c (quit_cmd): Rename to help_quit_cmd().
(show): Rename to help_show().
* main.c (quit_cmd): Make static. Return void, not int.
(sort_cmd): Make static.
2002-11-13 04:01:04 +00:00
Pavel Roskin
66f451aac7
* dlg.c (send_message_to): Remove, use send_message() instead.
...
(send_message): Make inline, remove Dlg_head argument. Change
all callers.
2002-11-13 02:56:40 +00:00
Pavel Roskin
31f491b01e
* dlg.h: Remove Dlg_head argument from callback_fn - it's
...
excessive and can be trivially derived from the widget.
(default_proc): Remove Dlg_head argument. Change all callers.
* widget.c (listbox_draw): Remove Dlg_head argument.
2002-11-13 02:27:00 +00:00
Pavel Roskin
e3bc0b2b86
* dlg.h: Define dlg_cb_fn - dialog callback function. Improve
...
typedefs for callbacks and use them everywhere. Clean up some
unused defines.
* dlg.c: Adjust declarations for match.
2002-11-13 01:30:37 +00:00
Pavel Roskin
11913b36a2
* wtools.h: Eliminate the_widget filed in QuickWidget.
...
* wtools.c (quick_callback): Allocate widget table dynamically.
2002-11-13 00:20:15 +00:00
Pavel Roskin
eb53b3e975
* dlg.c (widget_redraw): Remove.
...
* widget.c (find_buttonbar): Use find_widget_type(). Make
global.
(define_label): Remove paneletc argument. Change all callers.
(define_label_data): Likewise.
(redraw_labels): Likewise. Use find_buttonbar().
* view.c (view_adjust_size): Use find_buttonbar().
2002-11-12 23:33:15 +00:00
Pavel Roskin
b0481b41bf
* menu.h: Remove "*" from the definition of the type "Menu"
...
for consistency with other types. Change all dependencies.
(menubar_event): Make static.
2002-11-12 21:01:50 +00:00
Pavel Roskin
97af01a20f
Remove control character from an error message in help.c - it is not
...
required now.
2002-11-12 17:46:54 +00:00
Pavel Roskin
834abd3e24
Reuse existing message from file.c.
2002-11-12 17:22:02 +00:00
Andrew V. Samoilov
050b141018
Fix last entry
2002-11-12 16:24:18 +00:00
Andrew V. Samoilov
74b5eb3ac7
* view.c (get_line_at): Use g_strreverse() instead of
...
reverse_string().
* util.c (reverse_string): Remove.
(decompress_extension): Return const char *.
(strip_home_and_password): Make dir const.
* util.c (reverse_string): Fix declarations.
2002-11-12 11:20:08 +00:00
Pavel Roskin
af883aaecf
Fixes in English messages.
2002-11-11 17:27:13 +00:00
Pavel Roskin
bf107a7860
Add:
...
Check and report errors from opendir().
2002-11-11 17:01:26 +00:00
Pavel Roskin
5c0691349c
* charsets.c (convert_to_display): Don't crash on empty read
...
only strings.
(convert_from_input): Likewise.
Reported by David Martin <dmartina@excite.com>
2002-11-11 14:48:37 +00:00
Pavel Roskin
39f877f0bb
* screen.c (select_item): Don't show the file selection if the
...
panel is inactive.
(chdir_other_panel): Select the same file on the other panel.
2002-11-11 09:12:53 +00:00
Pavel Roskin
ba466b74d6
* file.c (panel_operate): Warning fix.
...
* cmd.c (compare_dirs_cmd): Likewise.
* man2hlp.c: Warning fixes. size_t can be unsigned.
2002-11-11 08:25:29 +00:00
Pavel Roskin
2538dbfdd3
* file.c (panel_get_file): Make static.
...
* filegui.h: Eliminate use of WANT_WIDGETS.
* setup.h: Likewise.
* menu.h: Declare struct WMenu.
* main.h: Don't include menu.h, use forward declaration.
2002-11-11 07:35:08 +00:00
Pavel Roskin
e0194b11a0
* dlg.h: Move movefn definition ...
...
* win.h: ... where it's used. Remove unused definitions.
* win.c: Remove unused code.
* key.h: Include mouse.h, don't rely on others doing it.
* widget.h: Include dlg.h. Remove Tk-only fields.
* widget.c: Remove Tk-only fields.
2002-11-11 07:12:03 +00:00
Pavel Roskin
e917b70e56
* panel.h: Simplify interdependencies between headers. Use
...
forward declarations for structures.
* widget.h: Declare struct WListbox.
* wtools.h: Use forward declaration for struct WListbox to avoid
dependency on widget.h.
2002-11-11 06:23:59 +00:00
Pavel Roskin
86436e886a
* panel.h: Remove all unused definitions. Make format_e an
...
opaque structure by moving it ...
* screen.c: ... here.
2002-11-11 05:55:22 +00:00
Pavel Roskin
e9460185bf
* screen.c (display_mini_info): Make static.
...
(the_info_panel): Remove.
2002-11-11 04:52:23 +00:00
Pavel Roskin
dc9869db9e
* screen.c (Xtry_to_select): Make static, rename to
...
do_try_to_select().
2002-11-11 04:07:40 +00:00
Pavel Roskin
5d8071ceb4
* screen.c (chdir_other_panel): Change behavior of Alt-O -
...
change the other panel to the current directory, put it to the
listing mode if needed. Based on a patch from PLD Linux
Distribution.
2002-11-11 00:44:27 +00:00
Pavel Roskin
df9b2f4c5c
* myslang.h: Don't define ERR - it conflicts with sys/ucontext.h
...
in glibc 2.1.3.
* key.c: Use -1, not ERR.
2002-11-06 06:08:11 +00:00
Andrew V. Samoilov
c84ff58e4e
(configure_vfs): Simplify #if logic.
...
(cd_dialog): Remove unneeded code.
(vfs_smb_get_authinfo): Use enum instead of static variables.
2002-11-04 12:33:15 +00:00
Pavel Roskin
8bd8b04f57
Remove:
...
Consider applying a patch from PLD to make M-o propagate the current
directory to the other panel.
2002-11-03 09:02:09 +00:00
Pavel Roskin
f7961b614e
* boxes.c (configure_vfs): Ask whether passive connections
...
should be used.
2002-11-01 20:40:19 +00:00
Pavel Roskin
db31e4b3c4
* main.c (main): Use O_TRUNC when opening the file to write the
...
last working directory. Fix segmentation fault when exiting
while on VFS.
* util.c (mc_mkstemps): Use O_TRUNC to open temporary files.
2002-11-01 20:24:07 +00:00
Andrew V. Samoilov
1c8f1cb327
* view.c (normal_search) [HAVE_CHARSET]: Fix segmentation fault
...
on first search. Writting to readonly "" is not good idea.
2002-10-31 11:55:35 +00:00
Andrew V. Samoilov
25739803a8
* view.c (init_growing_view): Mark message for translation.
...
(normal_search) [HAVE_CHARSET]: Convert saved search string to
original codeset if input_dialog() returns empty string.
2002-10-31 11:15:07 +00:00
Pavel Roskin
5d46a2d6b7
Done:
...
reimplement "-P" in a safer way (temp file instead of stdout) - possibly
security issues.
2002-10-31 06:54:58 +00:00
Pavel Roskin
af687f67c5
* main.c (probably_finish_program): Eliminate.
...
(handle_args): Use exit code 1 only for errors, 0 for legitimate
options such as "--help".
2002-10-31 06:52:33 +00:00
Pavel Roskin
a04dd8754e
* main.c: Option -P takes an argument (output filename) now.
...
(main): Output the last directory to the specified file. Don't
output "." is this information is unavailable.
2002-10-31 04:31:52 +00:00
Pavel Roskin
2c3b0c50b6
* subshell.c (subshell_name_quote): Don't quote numbers and
...
letters if possible and safe.
2002-10-31 04:01:19 +00:00
Pavel Roskin
2d3c157e52
* charset.h: Provide new inline functions convert_to_display_c()
...
and convert_from_input_c().
* view.c: Include charset.h unconditionally, use new conversion
functions that don't require ifdefs.
2002-10-30 23:42:21 +00:00
Pavel Roskin
4d20330abc
Reformat.
2002-10-30 23:16:16 +00:00
Pavel Roskin
517243efa0
* charset.h [!HAVE_CHARSET]: Provide dummy macros for
...
convert_to_display and convert_from_input. Eliminate uchar
definition, use unsigned char, adjust dependencies.
* charsets.c (convert_to_display): Tolerate NULL argument.
(convert_from_input): Likewise.
2002-10-30 23:14:26 +00:00
Pavel Roskin
a305ec68f9
Reformat.
2002-10-30 22:48:59 +00:00
Pavel Roskin
3ee1c3b3f6
* ext.c (exec_extension): Don't create self-destructing scripts
...
for the viewer - remove those scripts manually after calling
view(). This fixes the problem with double F8 in the viewer on
parsed files.
Reported by David Martin <dmartina@excite.com>
2002-10-30 21:38:33 +00:00
Pavel Roskin
0ff23cc6a3
* ext.c (exec_extension): Don't rely on working #! - explicitly
...
run /bin/sh on the temporary script.
2002-10-30 21:22:42 +00:00
Pavel Roskin
04f460d565
* mouse.h: Use definitions for GPM_B_DOWN and GPM_B_UP
...
compatible with gpm-1.20.
Reported by by David Martin <dmartina@excite.com>
2002-10-30 20:52:59 +00:00
Pavel Roskin
38e3189d0a
* lib/mc.ext.in: Rename TROFFASCII to MAN_FLAGS.
...
* configure.in: Likewise. Add "-c" (disable ANSI color) to
MAN_FLAGS if supported.
2002-10-30 02:37:48 +00:00
Pavel Roskin
85f55fe291
* panel.h: Use spaces, not commas, in the format - they are more
...
readable and easier to document.
* screen.c (panel_format): Likewise.
(mini_status_format): Likewise.
2002-10-30 00:56:08 +00:00
Pavel Roskin
6efcfdbc68
Don't use decorative spaces in any new translatable strings.
2002-10-29 22:13:17 +00:00
Pavel Roskin
afb2c8abe5
Done:
...
Work around bug in Red Hat 8.0 S-Lang that hides non-ascii characters in
POSIX locale or disable Red Hat 8.0 S-Lang by default.
2002-10-29 21:46:50 +00:00
Andrew V. Samoilov
b932fcb249
* view.c (init_growing_view): Mark message for translating.
...
(normal_search) [HAVE_CHARSET]: Convert saved search string to
original codeset if input_dialog() returns empty string.
2002-10-29 13:01:09 +00:00
Pavel Roskin
dbaf8aee0c
Done:
...
Write a document explaining how to report bugs and ask questions in the
mailing lists.
2002-10-29 01:00:04 +00:00
Pavel Roskin
c7d15b7357
Add:
...
Test for groff and for -P-c option to groff to disable ANSI colors.
2002-10-28 16:36:03 +00:00
Pavel Roskin
3604a2f2d4
Add:
...
Write a document explaining how to report bugs and ask questions in the
mailing lists.
2002-10-28 16:09:17 +00:00
Pavel Roskin
dd16f958a6
Move to "before 4.6.0-pre2":
...
Allow modifiers for keys in mc.lib, like "shift-up".
2002-10-25 22:20:55 +00:00
Pavel Roskin
bec34c88b5
* screen.c (mini_info_separator): Revert last patch. The bug is
...
in Red Hat 8.0 S-Lang.
2002-10-24 23:30:32 +00:00
Pavel Roskin
d6b2ae879a
* screen.c (mini_info_separator): The separator was one
...
character too long.
(show_dir): Remove obsolete linux_unicode hack.
2002-10-24 22:53:01 +00:00
Pavel Roskin
586785c248
* dlg.c (init_dlg): Redraw screen after selecting the focused
...
widget, not before. The bug affected file progress dialog with
verbose operation off.
Reported by Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
2002-10-24 21:26:52 +00:00
Pavel Roskin
ac200c18ba
Clarify the comment.
2002-10-24 21:19:47 +00:00
Pavel Roskin
935a2b4d4e
Reformat. The formatting in those files was unbearable.
2002-10-24 20:25:07 +00:00
Pavel Roskin
11b1447432
* filegui.c (check_progress_buttons): Reinitialize ret_value to
...
avoid old values after incomplete events.
Reported by Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
2002-10-24 20:23:21 +00:00
Pavel Roskin
42070839c7
* man2hlp.c (handle_link): Treat link name after & as regular
...
text.
Suggested by David Martin <dmartina@excite.com>
2002-10-24 13:32:30 +00:00
Andrew V. Samoilov
8085a7d36c
* poptconfig.c (configLine): Cast the argument to functions for
...
character classification to unsigned or use unsigned char *.
(poptReadConfigFile): Likewise.
* popthelp.c (singleOptionHelp): Likewise.
* poptparse.c (poptParseArgvString): Likewise.
2002-10-24 10:02:40 +00:00
Andrew V. Samoilov
8d3ff7384d
* main.c (show_change_notice): Make local variable in main().
...
(compatibility_move_mc_files): Merge with
do_compatibility_move() and return 1 if moving was done, 0
otherwise. Move ~/.mc.tree to ~/.mc/Tree.
2002-10-23 09:01:08 +00:00
Andrew V. Samoilov
2a7a2598df
s/chwon/chown/
2002-10-23 08:26:16 +00:00
Andrew V. Samoilov
cde108f585
* file.c (copy_file_file): Reuse message.
...
(copy_dir_dir): Eliminate one more goto.
2002-10-23 08:22:53 +00:00
Pavel Roskin
05b4cca7cd
Add:
...
Work around bug in Red Hat 8.0 S-Lang that hides non-ascii characters in
POSIX locale or disable Red Hat 8.0 S-Lang by default.
2002-10-23 07:41:22 +00:00
Pavel Roskin
bac6c6eaf2
* man2hlp.c (main): Remove unnecessary spaces in the table of
...
contents.
2002-10-23 00:42:34 +00:00
Pavel Roskin
19a87dbeed
* setup.c: Remove dead code surrounded by
...
SAVE_CHANGES_OUTSIDE_OPTIONS_MENU.
* tree.c: Make tree_navigation_flag static.
2002-10-23 00:17:19 +00:00
Pavel Roskin
4827241c62
* help.h: Remove unused characters.
...
* help.c (show): Remove handling of unused characters.
2002-10-22 23:56:26 +00:00
Pavel Roskin
5824c1bc1d
Add:
...
Backup config files when writing them.
2002-10-22 15:15:29 +00:00
Andrew V. Samoilov
13f6e4646d
* popthelp.c (poptPrintHelp): Use POPT_ for "[OPTION...]",
...
this message is eliminated by poptSetOtherOptionHelp().
* popt.c (poptStrerror): Use _ instead of POPT_ for useful
messages.
2002-10-22 11:51:47 +00:00
Andrew V. Samoilov
499aa8c24f
* utilunix.c (mc_tmpdir): Make directory only if not exists.
...
Use strncpy() instead of g_snprintf() - there can be printf()
pattern(s) in the $TMPDIR.
2002-10-22 11:21:40 +00:00
Andrew V. Samoilov
562cc18d4f
* man2hlp.c (handle_link): Don't strip leading space(s) from linkname.
2002-10-22 06:34:17 +00:00
Pavel Roskin
bd34105979
Done:
...
Add minimal UTF-8 support on Red Hat 8.0 to fix the frames or disable
support for S-Lang library compiled with UTF-8 support.
2002-10-22 04:17:05 +00:00
Pavel Roskin
6247254f55
* myslang.h: Add a replacement for addch(), which expects a
...
wchar_t argument in patched S-Lang on Red Hat 8.0.
2002-10-22 04:16:07 +00:00
Pavel Roskin
c39e68b75c
* main.c (print_mc_usage): Remove unnecessary newline.
2002-10-21 23:34:02 +00:00
Pavel Roskin
1c099a21ec
* main.c (print_mc_usage): Partly revert previous patch -
...
poptPrintHelp() has side effects and should not be called
inside fprintf(), which can be a macro.
2002-10-21 23:28:33 +00:00
Pavel Roskin
f11fe69fe9
* main.c (print_mc_usage): Use poptSetOtherOptionHelp()
...
From Andrew V. Samoilov <sav@bcs.zp.ua>
2002-10-21 23:21:24 +00:00
Pavel Roskin
63d29b4791
* learn.c (learn_check_key): Simplify logic. Add a comment for
...
translators.
2002-10-21 22:54:20 +00:00
Pavel Roskin
a84b0fc9cd
Fix some of the most ugly abuses of mixed caps in English texts,
...
especially in button captions.
2002-10-21 22:26:39 +00:00
Pavel Roskin
71ee494335
* file.h: Rename know_not_what_am_i_doing to safe_delete.
...
* file.c (real_query_recursive): Don't ask to enter "yes" - it's
ugly and requires changing input method in some locales.
2002-10-21 21:03:22 +00:00
Andrew V. Samoilov
ec500ae38a
* man2hlp.c (handle_link): Don't strip leading space(s) from linkname.
2002-10-21 17:46:40 +00:00
Pavel Roskin
7571ef816d
* file.c (real_query_recursive): Default to empty string, not to
...
"no" when asking to enter "yes". Add note for translators.
2002-10-21 06:01:04 +00:00
Pavel Roskin
a53c486e4f
* cmd.c (do_view_cmd): When asking confirmation, correctly
...
interpret closing the dialog by escape.
2002-10-21 05:43:09 +00:00
Pavel Roskin
9c613d01f4
Reuse "Learn keys" without spaces.
2002-10-21 04:58:40 +00:00
Pavel Roskin
d3f0a2f61b
Remove spaces around "Error" and "Warning" together with their translations.
...
Also remove spaces from "Quit" and "Search", but leave alone the
translations, that already have them without spaces.
2002-10-21 04:13:49 +00:00
Pavel Roskin
55d17b2e96
Done:
...
Crash on circular macro definitions in the editor.
2002-10-21 02:06:49 +00:00
Pavel Roskin
69dd1ca00c
* utilunix.c (mc_tmpdir): Don't exit if the temporary directory
...
cannot be created - it should be possible to run mc on read-only
filesystems. Try to chmod() the temporary directory.
2002-10-20 08:34:31 +00:00
Pavel Roskin
e55c720591
Move all "before 4.6.0" stuff to "before 4.6.1".
2002-10-20 08:11:16 +00:00
Pavel Roskin
043ff9e913
Add:
...
Use paranoid quoting in subshell_name_quote() only when absolutely
necessary.
2002-10-18 22:45:35 +00:00
Andrew V. Samoilov
1070df9609
* man2hlp.c (handle_tp_ip): Implement .IP and .TP macroses
...
(without arguments).
(handle_command): Call handle_tp_ip().
(main): Handle label and body of .TP paragraph.
2002-10-17 15:12:34 +00:00
Andrew V. Samoilov
2f4a67be36
Remove unused enum.
...
(do_compatibility_move): Rename ~/.mc.ext to ~/.mc/bindings.
2002-10-17 10:32:36 +00:00
Pavel Roskin
2770af84e9
Done: Check "mc --help-colors" for completeness.
...
That doesn't mean that it's fixed :-(
2002-10-17 05:46:56 +00:00
Pavel Roskin
f0aab2028b
* view.c (view_ok_to_quit): Use the same dialog as the editor.
2002-10-17 05:33:10 +00:00
Andrew V. Samoilov
f8cf5b28bf
* man2hlp.c: Include <glib.h> and use g_snprintf()/g_vsnprintf()
...
instead of sprintf()/vsprintf().
2002-10-15 15:38:15 +00:00
Andrew V. Samoilov
cd456a3042
* Makefile.am (man2hlp_LDADD): Set to $(GLIB_LIBS).
2002-10-15 15:33:04 +00:00
Andrew V. Samoilov
056ebbd7a0
* man2hlp.c: Report about stale links.
2002-10-15 14:41:27 +00:00
Pavel Roskin
e9347d1c6b
Add:
...
Check compatibility with new gpm. Excessive warnings on Mandrake 9.0
have been reported.
2002-10-14 21:45:41 +00:00
Pavel Roskin
65903958ba
* color.h: Remove Q_SELECTED_COLOR and Q_UNSELECTED_COLOR.
...
Rename BEST_COLOR to IF_COLOR. Make error messages bold on b/w
terminals. Don't highlight stale links on b/w terminals, since
they cannot be distinguished from marked files.
2002-10-13 23:55:39 +00:00
Pavel Roskin
f367374054
Add FIXME.
2002-10-13 23:12:06 +00:00