Commit Graph

8272 Commits

Author SHA1 Message Date
Slava Zanko 1e4cc93320 Moved the main help file (xnc.hlp) and translated help files (es, hu, it, pl, ru and sr directories) to doc/hlp
Also, created symlinks in src_root directory to some doc/* files
2009-05-26 17:32:32 +03:00
Andrew Borodin 92353b3848 Added option to enable/disable close dialog by mouse click outside of it.
Disabled by default. This option is available in ini file only.

setup.h: declare mouse_close_dialog variable.
setup.h: read/write mouse_close_dialog variable from/to ini file.
dialog.c: use mouse_close_dialog variable to control the single left click
outside of dialog.
2009-05-22 16:39:28 +04:00
Andrew Borodin 3be2491d1e src/dialog.c (dlg_mouse_event): close current dialog by mouse click
out of dialog area.
2009-05-22 16:39:28 +04:00
Slava Zanko 28539b2363 Merge branch '130_sysconfdir_mc'
* 130_sysconfdir_mc:
  scripts mc.sh, mc.csh, mc-wrapper.csh and mc-wrapper.sh now install into %{libexec}/mc directory
  edit/syntax.c: fixed path to Syntax file
  Move global config files from pkg_datadir to sysconfdir
2009-05-22 15:44:28 +03:00
Slava Zanko 289959792e scripts mc.sh, mc.csh, mc-wrapper.csh and mc-wrapper.sh now install into %{libexec}/mc directory 2009-05-22 13:36:27 +03:00
Slava Zanko 8841747560 edit/syntax.c: fixed path to Syntax file 2009-05-22 10:53:02 +03:00
Slava Zanko 0c17219b2a Move global config files from pkg_datadir to sysconfdir
* Also fixed 'make dist' command
 * changed contrib/dist/redhat/mc.spec.in for builds with new dir
2009-05-21 01:01:10 +03:00
Sergei Trofimovich 6121dfd5b1 8bit: convert properly nonascii signed chars in panel and viewer (#360)
Problem arose in freebsd-7.2 system. GCC has 'signed char' there
and thus code like this broke:
>     char c = ...;
>     if (isprint(c)) ..." // 'signed char' -> 'signed int'
('man isprint' explicitely says to pass 'unsigned char' there)

As we use multibyte chars everywhere - there is not many places to fix.
This patch fixes all 8bit collate functions.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-05-21 00:49:01 +03:00
Andrew Zabolotny c6b42a7369 This patch makes VFS a bit faster by replacing GSList with GPtrArray
and using a clever trick to avoid doing list/array searches on every
VFS lookup.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-05-20 21:12:38 +03:00
Ilia Maslakov 5ce21bc756 merged 2 syntax files Oleg's aka Olegarh and Andres Farfan 2009-05-20 20:37:50 +03:00
Sergei Trofimovich fd55b916de Revert "Replace self-made code for work with ini-files to glib native code"
This reverts commit 4648ad8bf9.
2009-05-19 10:22:24 +03:00
Sergei Trofimovich df5160aaf3 Revert "Added check for glib version in mc_config_del_param and mc_config_del_group functions"
This reverts commit 483a1a05aa.
2009-05-19 10:22:17 +03:00
Andrew Borodin c572352a04 Fixed default terminal colors usage for NCurses. 2009-05-15 13:31:23 +03:00
Enrico Weigelt, metux IT service ae33ec6385 fixed #229 2009-05-15 13:29:48 +03:00
Slava Zanko 212ab41508 Merge branch '347_replace_profile_src'
* 347_replace_profile_src:
  Added check for glib version in mc_config_del_param and mc_config_del_group functions
  Replace self-made code for work with ini-files to glib native code
2009-05-15 12:18:49 +03:00
Ilia Maslakov b29e81556f Rewritten by David Sterba <dave jikos.cz> patchfs.
add xz compress support to David's version.
2009-05-14 13:38:10 +00:00
Slava Zanko 483a1a05aa Added check for glib version in mc_config_del_param and mc_config_del_group functions
configure.ac: Added check for minimal version of Glib2

Since Glib2-2.15 API of file-ini module was changed.
Old API:
void g_key_file_remove_key(...)
New API:
gboolean g_key_file_remove_key(...)

Therefore need to check version of Glib and fix return parameter from mc_config_del_param and mc_config_del_group for success build

Work with ini-file added in Glib2 since version 2.6, therefore in configure.ac added this check.
2009-05-14 16:21:28 +03:00
Slava Zanko 4648ad8bf9 Replace self-made code for work with ini-files to glib native code 2009-05-14 16:21:22 +03:00
Ilia Maslakov f8a487de01 Merge branch '351_show_number_line'
* 351_show_number_line:
  fix hotkey menu entry "Toggle li&ne state" now highlighted "n"
  add call CK_Toggle_Line_State to edit menu
  show line number in left part of screen (hotkey alt-n)
2009-05-14 07:57:51 +00:00
Mikhail S. Pobolovets ec8711ca99 Merge branch '350_compare_empty_files' 2009-05-13 14:33:12 +03:00
Ilia Maslakov e9fe86f149 fix hotkey menu entry "Toggle li&ne state" now highlighted "n" 2009-05-13 09:00:49 +00:00
Slava Zanko dd27f52286 Merge branch '352_add_XZ_compression_support'
* 352_add_XZ_compression_support:
  Added XZ compression support. Signed-off-by: xgizzmo <xgizzmo@slackbuilds.org>
2009-05-13 11:35:54 +03:00
xgizzmo 24ca27fe30 Added XZ compression support. Signed-off-by: xgizzmo <xgizzmo@slackbuilds.org>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-05-13 11:35:22 +03:00
Ilia Maslakov c1413bb370 add call CK_Toggle_Line_State to edit menu 2009-05-13 07:34:32 +00:00
Sergei Trofimovich a70a6e278e Merge branch 'mc-4.6'
* mc-4.6:
  commandline: strip_escape: strip xterm OSC commands in $PS1
  src/main.c (main): create MC home directory with 700 mode instead of 755 one.
  src/main.c (main): create MC home directory (~/.mc) if absent.
2009-05-13 10:21:16 +03:00
Ilia Maslakov 854f214563 show line number in left part of screen (hotkey alt-n)
add option editor_line_status to ini (src/setup.c)
    add action CK_Toggle_Line_State (edt/editcmddef.h)
    change "print_to_widget()" to show line state, if option_line_state = 1 show line num (edit/editdraw.c)
    change "edit_draw_this_line()", (set line state: line num, etc)
    add const LINE_STATE_WIDTH, add options: option_line_state, option_line_state_width (edit/edit.h)
    add switch on/off show line number (edit/edit.c)
    add CK_Toggle_Line_State to translation table command_names (bindings name is Toggle-Line-State).
    add const LINE_STATE_COLOR for draw left area bar line state
    add color pair "editlinestate" for set in ini
    add help for keyword "editlinestate" on "mc --help-color" (src/main.c)
2009-05-13 07:09:47 +00:00
Ilia Maslakov d839793b75 Merge branch '342_tabs_spaces_mark'
* 342_tabs_spaces_mark:
  fix mark tab and spaces
  fix highlight tab and spaces in mark procces.
2009-05-12 18:53:44 +00:00
Ilia Maslakov 427ecef234 fix mark tab and spaces 2009-05-12 14:14:27 +00:00
Slava Zanko 121ff2965c Merge branch '345_mcfs_build_failure'
* 345_mcfs_build_failure:
  Fixed mcfs build failure (after reorganize M4-autoconf stuff)
2009-05-12 16:27:55 +03:00
Mikhail S. Pobolovets 9041e6c81f commandline: strip_escape: strip xterm OSC commands in $PS1
Correctly deal with prompts like (appear in debian/ubuntu):
  PS1='\[\e]0;\u@\h: \w\a\]\u@\h:\w\$'
  PS1='\[\e]0;\u@\h: \w\e\\\]\u@\h:\w\$'

Based on patch provided provided by Sergey Nizovtsev
    https://bugs.launchpad.net/ubuntu/+source/mc/+bug/330633

Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
2009-05-12 13:27:00 +03:00
Ilia Maslakov 7fbff4fa86 fix highlight tab and spaces in mark procces. 2009-05-12 10:06:37 +00:00
Slava Zanko 8c441fdd12 src/cmd.c: Fixed bug was caused by mmap behaviour when length = 0
Here is quote from man(3) mmap:

SUSv3 specifies that mmap() should fail if length is 0. However, in kernels before 2.6.12, mmap()
succeeded in this case: no mapping was created and the call returned addr.
Since kernel 2.6.12, mmap() fails with the error EINVAL for this case.

Thanks to snizovtsev
2009-05-12 10:03:32 +03:00
Ilia Maslakov 25d5ed8c6a Merge branch '344_optional_shift_block'
* 344_optional_shift_block:
  add check option persistent_selection if persistent_selection = 0 Tab shift block
2009-05-11 17:59:57 +00:00
Slava Zanko c3e4187b4c Merge branch '140_move_docs_and_contrib'
* 140_move_docs_and_contrib:
  Change name of automake constant 'USE_MCFS' to 'ENABLE_VFS_MCFS'
  Move some files from contrib into misc directory
  Move all stuff from lib to contrib
  Move all hints-files from lib to doc/hints
  mc.qpg.in mc.spec.in pkginfo.in prototype.in: moved to contrib/dist
  2009-01-10  Enrico Weigelt, metux ITS <weigelt@metux.de>
2009-05-11 15:12:22 +03:00
Ilia Maslakov 6a5dab64fe add check option persistent_selection if persistent_selection = 0 Tab shift block 2009-05-11 11:34:22 +00:00
Slava Zanko 428ea1b406 Change name of automake constant 'USE_MCFS' to 'ENABLE_VFS_MCFS' 2009-05-11 13:42:49 +03:00
Mikhail S. Pobolovets 31332a2f00 src/utils.[ch]: _icase_search clean up
_icase_search and icase_search stuff has been removed,
    because it's not used for now (it is also buggy)

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-11 11:40:33 +03:00
Slava Zanko ae46a004e9 Fixed mcfs build failure (after reorganize M4-autoconf stuff)
Defined variable WITH_MCFS renamed to ENABLE_VFS_MCFS for more sence
2009-05-11 10:28:57 +03:00
Slava Zanko 0a08e13a6c Merge branch '341_broken_file_mark' 2009-05-10 15:10:55 +03:00
Mikhail S. Pobolovets c079e73d08 Warning fix: assignment from incompatible pointer type
wtools.c:347: assignment from incompatible pointer type
wtools.c:353: assignment from incompatible pointer type
wtools.c:361: assignment from incompatible pointer type
wtools.c:373: assignment from incompatible pointer type
wtools.c:377: assignment from incompatible pointer type

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-10 14:22:24 +03:00
Mikhail S. Pobolovets 5f448874e2 Warning fix: format not a string literal and no format arguments
view.c:3196:
        format not a string literal and no format arguments

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-10 14:22:24 +03:00
Mikhail S. Pobolovets 171d6cae22 Warning fix: wrong qualifier in g_snprintf
view.c:124: wrong field type
    view.c:3064: cast from pointer to integer of different size

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-10 14:22:24 +03:00
Mikhail S. Pobolovets 4fd6869be2 Warning fix: return discards qualifiers from pointer target type
search.c:312:
        return discards qualifiers from pointer target type

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-10 14:22:24 +03:00
Mikhail S. Pobolovets a91e5be8b7 Warning fix: may be used uninitialized
cmd.c:536: ‘c’ may be used uninitialized in this function
    At the real position ‘c’ shouldn't be used

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-10 14:20:12 +03:00
Slava Zanko f49ce170f0 Move some files from contrib into misc directory
Also fix error with make install action
2009-05-08 16:56:02 +03:00
Mikhail S. Pobolovets a55a505160 Move all stuff from lib to contrib
Also added template in contrib/distr for some distro-related files (spec, deb, ebuild, etc)
2009-05-08 15:12:48 +03:00
Mikhail S. Pobolovets 906d25c5c8 Warning fix: defined but not used
view.c:2739: ‘icase_search_p’ defined but not used
    charsets.c:161: unused variable ‘obuflen’

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-08 13:30:32 +03:00
Slava Zanko 73159dbc32 Move all hints-files from lib to doc/hints 2009-05-08 13:23:42 +03:00
Enrico Weigelt, metux IT service 52897029dc mc.qpg.in mc.spec.in pkginfo.in prototype.in: moved to contrib/dist 2009-05-08 13:23:42 +03:00
Enrico Weigelt, metux IT service 13d5c72108 2009-01-10 Enrico Weigelt, metux ITS <weigelt@metux.de>
* doc/*: moved manpages to doc/man/
    * NEWS INSTALL README: moved to doc and left a symlink in .
    * FAQ HACKING INSTALL.FAST MAINTAINERS README.QNX TODO: moved to doc
2009-05-08 13:21:52 +03:00