Commit Graph

9227 Commits

Author SHA1 Message Date
Sergey Fionov
2244f5c2c5 Avoid Sun Studio compiler bug
Modify designators to avoid bug #6888373
(http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6888373)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-11-04 17:30:31 +02:00
Martin Petricek
e2c53eabee Merge branch '1746_passive_mode_over_proxy'
* 1746_passive_mode_over_proxy:
  Ticket #1746: Setting "Use passive mode over proxy" is not remembered
2009-11-03 22:07:18 +01:00
Andrew Borodin
299b04b568 Merge branch '1759_insert_date_time'
* 1759_insert_date_time:
  Ticket #1759: fixed date & time insertion in editor.
2009-11-03 13:51:44 +03:00
Andrew Borodin
d870705e0b Ticket #1759: fixed date & time insertion in editor.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-11-03 13:51:05 +03:00
Martin Petricek
2cfed22012 Ticket #1746: Setting "Use passive mode over proxy" is not remembered
Fix: "Use passive mode over proxy" was not remembered in config

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-11-03 12:20:42 +02:00
Ilia Maslakov
be65c2979c Ticket #1768 (incorrect calculation utf-8 width)
fixed miscalculating of width some utf-8 characters

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-11-01 16:54:00 +00:00
Ilia Maslakov
a501ebd839 Russian translations updated.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-30 20:45:23 +02:00
Slava Zanko
f220002ac3 Merge branch '1755_code_cleanup'
* 1755_code_cleanup:
  Doc cleanup: removed description of removed editor option.
  Added shortcuts for CmdInfo (C-x i) and CmdQuickView (C-x q) commands.
  Fixed Arch packages description in Syntax file.
  Cleanup of code for compile with new warnings options for compilator
  Added macros for simplest debug process (yes, gdb is a better way)
  Reorganization of src/Makefile.am
  Now possible to compile mc in different cases: as mc maintainer or as end-user.
  Added checks for compiler options.
  Ticket #1755: code cleanup before 4.7.0-pre4 release.
2009-10-30 20:37:46 +02:00
Andrew Borodin
15e7fb00c4 Doc cleanup: removed description of removed editor option.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-30 20:36:49 +02:00
Andrew Borodin
61f7d72af6 Added shortcuts for CmdInfo (C-x i) and CmdQuickView (C-x q) commands.
There is a difference between CmdInfo and CmdMenuInfo commands:
  * CmdImfo is assigned with C-x i shortcut and changes the mode
    of inactive panel with flip-flop effect.
  * CmdMenuInfo is assigned with panel according with menu: Left
    or Right. There is no flip-flop effect of this command. This command
    must be present in keymap file to show the assigned shortcut in menu.

The above-written is appropriate for CmdQuickView and CmdMenuQuickView commands.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-30 20:36:48 +02:00
Andrew Borodin
68e813db55 Fixed Arch packages description in Syntax file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-30 20:36:48 +02:00
Slava Zanko
51f10b3038 Cleanup of code for compile with new warnings options for compilator
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-30 20:36:48 +02:00
Slava Zanko
a5fa537f2e Added macros for simplest debug process (yes, gdb is a better way)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-30 20:36:48 +02:00
Slava Zanko
5441d89264 Reorganization of src/Makefile.am
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-30 20:36:41 +02:00
Slava Zanko
2a4075d246 Now possible to compile mc in different cases: as mc maintainer or as end-user.
Some debug-related code will compile just in mainteiner mode.
Also, added new parameter for configure script: --enable-werror

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-30 20:36:15 +02:00
Slava Zanko
2ffb7c6719 Added checks for compiler options.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-30 14:41:03 +02:00
Andrew Borodin
91a4598b54 Ticket #1755: code cleanup before 4.7.0-pre4 release.
Free some variables allocated at MC startup.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-30 14:41:03 +02:00
Ilia Maslakov
7ce5e1eacb Ticket #1628 (editor CJK fix)
fix: incorrect drawing CJK character. Sometimes the CJK character gets replaced by three inverse dots.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-10-30 11:51:40 +00:00
Slava Zanko
dd89ca021f Update Spanish translation.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-30 11:08:08 +02:00
Slava Zanko
35ed8c8df4 Update all translations.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-30 11:03:50 +02:00
Slava Zanko
63b0663860 Merge branch '1753_bad_mounpoint'
* 1753_bad_mounpoint:
  Ticket #1753: panel: bad mounpoint is no longer 'red' highlighted
2009-10-29 16:50:26 +02:00
Slava Zanko
12ed4d0b45 Ticket #1753: panel: bad mounpoint is no longer 'red' highlighted
Restored behavior with stale mountpoint (now handled as stale link).

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-29 16:48:51 +02:00
Slava Zanko
f9fc03d5c5 Revert "unknown.syntax to something more useful"
This reverts commit a8d1c9be43.
2009-10-29 15:39:13 +02:00
Ilia Maslakov
478328812f Ticket #244
add shared clipboard support

Signed-off-by: Ilia Maslakov <il.smind@google.com>

    Fixed memory leaks. Type accuracy. Optimization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>

    * fixed ctrl-g handler
    * change action names from InputKillSave to InputXStore and InputPaste to InputXPaste
    * update mc.keymap.default mc.keymap.emacs

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-10-29 12:18:18 +00:00
Ilia Maslakov
359c9406d1 Ticket #1489 (indent block)
added bindings for shift block 'EditShiftBlockLeft', 'EditShiftBlockRight'
    EditShiftBlockLeft, EditShiftBlockRight - force move block without option_persistent_selections checking

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-10-29 07:58:30 +00:00
Slava Zanko
5ac43584cc Merge branch '1736_multilines_paste_from_xclip'
* 1736_multilines_paste_from_xclip:
  Ticket #1736: editor: X copy/paste eats newlines
2009-10-29 09:46:43 +02:00
Ilia Maslakov
a16b37c8e7 Ticket #1736: editor: X copy/paste eats newlines
1. Open empty file (<Shift-F4>)
2. Fill with data:

1234
5678
9abc

3. Mark contents (or any multiline text in, for example, firefox) with mouse (<Shift+MouseDown???>)
4. Insert somewhere below third line (<Shift+Insert>)
5. Newlines are eaten (xterm)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-29 09:46:20 +02:00
Ilia Maslakov
91c7dbb71c Ticket #1724 (forgotten hotkeys)
* fixed binding in mc.keymap.default and mc.keymap.emacs
    for CmdCopyCurrentTagged, CmdCopyOtherTagged,
    CmdCopyCurrentPathname, CmdCopyOtherPathname
    * fixed typo

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-10-29 06:23:51 +00:00
Slava Zanko
c0575fff3f Merge branch '1703_menubar_colorpair'
* 1703_menubar_colorpair:
  Fixed width calculation of Buttonbar widget.
  Ticket #1703: SKIN: Make own colorpairs for buttonbar widget
2009-10-29 00:03:27 +02:00
Slava Zanko
b62aece7eb Fixed width calculation of Buttonbar widget.
Also Labels on buttonbar aligned to left side.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-29 00:00:26 +02:00
Slava Zanko
742eae18d2 Ticket #1703: SKIN: Make own colorpairs for buttonbar widget
Now buttonbar have own colorpairs:

[buttonbar]
    hotkey=red;black
    button=yellow;cyan

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 17:50:46 +02:00
Ilia Maslakov
d98e14de49 Ticket #1600 (incorrect drawing hint)
drop "LANGUAGE" from checking locale.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-10-28 12:17:02 +00:00
Slava Zanko
09d8293043 Merge branch '1656_lack_rights'
* 1656_lack_rights:
  Fix segfault in charset confirmation dialog at start of mc.
  Code cleanup for compile with new CFLAGS value.
  Added debug options for --enable-maintainer mode
  Ticket #1656: Incorrect processing of cases the lack of rights to save preferences.
2009-10-28 13:38:18 +02:00
Slava Zanko
9c284e99c2 Fix segfault in charset confirmation dialog at start of mc.
When config files is unaccesible, doalig was crashed after 'Esc' pressing.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 13:37:40 +02:00
Slava Zanko
e7c6d59e63 Code cleanup for compile with new CFLAGS value.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 13:37:40 +02:00
Slava Zanko
3518f7c585 Added debug options for --enable-maintainer mode
Also, added extra warnings and now all warnongs threaded as errors.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 13:37:40 +02:00
Slava Zanko
c9b4b0159d Ticket #1656: Incorrect processing of cases the lack of rights to save preferences.
In the case where insufficient rights to the contents of the directory ~/.mc/* to
save preferences I get "settings saved in ~ /.mc/ini", but really nothing is saved.

It would be correct to issue a message like "Not enough permissions to save the ~/.mc/ini"

Also, when autosave should be issued a message about the lack of rights.

This branch will check rights of config-files.

testCase:
 *) chmod 0400 ~/.mc
 *) run mc

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 13:37:39 +02:00
Andrew Borodin
45d8208ff6 Merge branch '1750_view_next_prev_file'
* 1750_view_next_prev_file:
  Sync argument name of mcview_viewer() function in header and in source files.
  Ticket #1750: fix of view next/prev file in viewer.
2009-10-28 14:32:06 +03:00
Andrew Borodin
00e267c2e0 Sync argument name of mcview_viewer() function in header and in source files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-28 14:31:38 +03:00
Andrew Borodin
3d1114652f Ticket #1750: fix of view next/prev file in viewer.
To view the next (C-f) of previous (C-f) file in viewer,
the quit from viewer is required now.
This commit restores the previous behavior.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-28 14:31:38 +03:00
Slava Zanko
35415bbcd8 Merge branch '1748_tlz_extention'
* 1748_tlz_extention:
  Ticket #1748: lzma archives with .tlz extention are not recognized as archives
2009-10-28 13:01:46 +02:00
Slava Zanko
575f996e0d Ticket #1748: lzma archives with .tlz extention are not recognized as archives
Attempting to open a .tlz lzma archive fails - error 'xxx.tlz doesn't look like a tar archive'.
If the file is renamed to .tar.lzma, it is opened without problems.

Fix issue: add recognize of '.tlz' extention.

Refactoring: avoid calls of strlen() function

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 13:00:37 +02:00
Slava Zanko
9c854e73d4 Merge branch '1500_segfault_on_bg_copy'
* 1500_segfault_on_bg_copy:
  Fixed problems:
  Ticket #1500: Segmentation fault while background copying
2009-10-28 12:05:36 +02:00
Alexander Moiseenko
936727622d Fixed problems:
* When try to replace existing file in background operation
  assertion raised (created operations for initialization ctx->ui for background):
  ** (mc:25716): CRITICAL **: file_progress_real_query_replace: assertion `ctx->ui != NULL' failed

 * Process has been already done, but still draw in list (C-x j)

 * Process is stopped or worked, remove operation don't hide process from list, but kill it

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 12:05:07 +02:00
Alexander Moiseenko
81f5b5e0b8 Ticket #1500: Segmentation fault while background copying
Test case:
 * create file with name "test" in "tmp" directory (for example)
 * create directory with same name ("test") in other "tmp2" directory (for example)
 * try to copy or move file "test" into "tmp2" in background mode
 * wait for some time

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 12:05:06 +02:00
Slava Zanko
720eca3fa3 Merge branch '1642_fstype'
* 1642_fstype:
  Ticket #1642: filegui.c contains Linux-specific things
2009-10-28 10:38:38 +02:00
sfionov
1551db2f9f Ticket #1642: filegui.c contains Linux-specific things
mc 4.7.0-pre1 introduced dynamic "Save attributes" checkbox value in Copy/Move dialog.
But code is Linux-specific, and not even isolated by macros.

I suggest to add code specific for BSD and SVR4 systems.

In BSD systems (MacOS X, NetBSD, FreeBSD) there is statfs.f_fstypename which contains name of filesystem.
Valid FS names are: msdos, msdosfs (FreeBSD), ntfs, smbfs, procfs, fusefs (BSD), fusefs_subfstype (Mac)

In SVR4 systems (Solaris and other SVR4 Unixes) there are statvfs.f_basetype and statvfs
syscall instead of statfs and also autotools define STAT_STATVFS.
Valid FS names are: pcfs, proc, ntfs, fuse, smbfs

(Note that NetBSD 3.0+ also use statvfs but with BSD syntax.)

For all other OSes we simply return 1.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 10:38:20 +02:00
Ilia Maslakov
ca79091215 added skin 'Dark FAR' darkfar.ini
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-10-28 08:28:54 +00:00
Slava Zanko
ff860abd70 Merge branch '119_conf_option_preserve_attributes'
* 119_conf_option_preserve_attributes:
  Ticket #119: Persistent global configuration option for "Preserve attributes" wanted
2009-10-27 23:21:31 +02:00
Slava Zanko
27cc9ac15e Ticket #119: Persistent global configuration option for "Preserve attributes" wanted
Currently, there is no way to change the defaults. The file mask
dialog options are not persistent.

Added new config option 'copymove_persistent_attr'. If this option is equal to '0'
then 'Preserve attributes' in copy/move dialog will always switched off.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-27 23:20:48 +02:00