Commit Graph

12996 Commits

Author SHA1 Message Date
Andrew Borodin
b698b7e834 Ticket #3435: clang compiler fixes/cleanups.
Since O_* macros are used in lib/global.h, include <fcntl.h> there.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 19:43:49 +03:00
Slava Zanko
517cc5cfe4 Fixes in tests
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2015-05-03 19:43:49 +03:00
Andreas Mohr
495b4d662f Ticket #3134: fix cflags check when using clang compiler.
With clang invalid cflags usage result in exit 0, we expect exit 1.

$ clang -c -Wmaybe-uninitialized conftest.c ; echo $?
warning: unknown warning option '-Wmaybe-uninitialized'; did you mean '-Wuninitialized'? [-Wunknown-warning-option]
1 warning generated.
0

solution with -Werror on cflags check

$ clang -c -Werror -Wmaybe-uninitialized conftest.c ; echo $?
error: unknown warning option '-Wmaybe-uninitialized'; did you mean '-Wuninitialized'? [-Werror,-Wunknown-warning-option]
1

(Tested with clang 3.6.)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 19:43:49 +03:00
Andreas Mohr
850073cbbb Add -Wundef compiler option for future compile checks.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 19:43:49 +03:00
Andrew Borodin
e3a3424c28 Use #ifdef for autoconf provided marcos (continue).
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 19:43:49 +03:00
Andreas Mohr
57452f656b Use #ifdef for autoconf provided marcos...
...until autoconf switch from un/define marco logic to always existing
macro with 0/1 value.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 19:43:48 +03:00
Andreas Mohr
d0d7d412a7 Better use of S_IS* macros.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 19:43:48 +03:00
Andreas Mohr
8a2f9e253d Ticket #3430: introduce -Wundef check to catch macro typos.
Use always defined MC_HOMEDIR_XDG macro.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 19:43:48 +03:00
Andreas Mohr
1a5015aa87 Ticket #3429: fix -Wstrict-prototypes compiler warnings...
...and use compiler option for future compile checks.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 19:43:48 +03:00
Andrew Borodin
44bf7e8d80 reset_hp_softkeys variable is used in S-Lang-based mc only.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 19:43:48 +03:00
Andreas Mohr
ca95dec659 Ticket #3428: fix -Wredundant-decls compiler warnings...
...and use compiler option for future compile checks.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 19:43:48 +03:00
Andreas Mohr
e9b41e5215 Ticket #3427: fix -Wmissing-field-initializers compiler warnings...
...and use compiler option for future compile checks.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 19:43:48 +03:00
Andreas Mohr
24f0e19ac6 Ticket #3426: fix -Wmaybe-uninitialized compiler warnings...
...and use compiler option for future compiles.
Since gcc 4.7.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 19:43:48 +03:00
Andreas Mohr
7665a2a2e2 Ticket #3420: code cleanup before 3.4.15 release.
Ticket #3424: fix -Wdeclaration-after-statement compiler warnings.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 19:43:48 +03:00
Andrew Borodin
c23324013e Merge branch '3445_mcedit_status_filename'
* 3445_mcedit_status_filename:
  Ticket #3445: mcedit: choose filename format in the status line.
2015-05-03 19:00:13 +03:00
Andrew Borodin
587329a683 Ticket #3445: mcedit: choose filename format in the status line.
Add editor_state_full_filename option to choose full or base file name
in the mceditor status line. Option is hidden and accessible in the
mc.ini configuration file only. Disabled by default to be consistent
with the file name format in the mcviewer status line.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 18:59:09 +03:00
Andrew Borodin
f38a2f7775 Merge branch '3422_gmo'
* 3422_gmo:
  Ticket #3422: recognize .gmo files as well as .mo ones.
2015-05-03 18:52:43 +03:00
Andrew Borodin
0add36df23 Ticket #3422: recognize .gmo files as well as .mo ones.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 18:51:50 +03:00
Andrew Borodin
f391e31f27 Merge branch '3441_startup_segfault'
* 3441_startup_segfault:
  Ticket #3441: fix Linux kernel-specific segfault on startup.
2015-05-03 18:46:23 +03:00
Andrew Borodin
5ceb5e2bef Ticket #3441: fix Linux kernel-specific segfault on startup.
Sync with gnulib 3fb6e360363744462ce15c381f0b116c6fc4ce82.

src/filemanager/mountlist.c: remove dependency on libmount.
Parse /proc/self/mountinfo directly, rather than depending on libmount,
which has many dependencies due to its dependence on libselinux, as
detailed at:
http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00063.html.
Note we restrict this to __linux__ as that's probably where this
interface will remain.  If ever porting, it would be best to first pull
the makedev() wrapper from coreutils to a gnulib module.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-03 18:45:02 +03:00
Marco Ciampa
17bdcfa8b0 Merge pull request #60 from volftomas/patch-1
Fixed typo in man page
2015-04-29 16:14:59 +02:00
Tomas Paladin Volf
99226f9e30 Fixed typo in man page 2015-04-29 15:47:56 +02:00
Andrew Borodin
ba9a5af10e Merge branch '3444_path_mc_popen'
* 3444_path_mc_popen:
  Revert "Clarify description of clipboard_store and clipboard_paste options."
  Ticket #3444: (mc_popen): use the PATH environment variable
2015-04-19 15:30:34 +03:00
Andrew Borodin
325e3a0c62 Revert "Clarify description of clipboard_store and clipboard_paste options."
This reverts commit ede5f9bad4.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-04-19 15:30:27 +03:00
Ben Woods
544a6b625e Ticket #3444: (mc_popen): use the PATH environment variable
...to search for the executable when opening pipe:
add the G_SPAWN_SEARCH_PATH flag to the g_spawn_async_with_pipes() call,
which cause mc to use the PATH environment variable to search for the
executable.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-04-19 15:29:39 +03:00
Marco Ciampa
6c33f259b6 Updated italian translation 2015-04-08 09:56:50 +02:00
Andrew Borodin
7c3903894a Indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-03-29 17:20:49 +03:00
Andrew Borodin
ca18b855c0 Merge branch '3155_info_panel_align'
* 3155_info_panel_align:
  Ticket #3155: align text in Info panel.
2015-03-29 15:55:37 +03:00
Egmont Koblinger
50439cc85d Ticket #3155: align text in Info panel.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-03-29 15:47:30 +03:00
Slava Zanko
d487ed487f Updated doc/NEWS file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2015-03-20 21:07:26 +03:00
Slava Zanko
cd04e9170d Revert "Fix vertical line color if a file is marked and selected"
This reverts commit 25d554ab03.
2015-03-19 15:03:39 +03:00
Slava Zanko
a37373d4ad Updated doc/NEWS file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2015-03-19 13:56:03 +03:00
Slava Zanko
351cc26db5 Updated the hints translations from Transifex
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2015-03-19 13:19:04 +03:00
Slava Zanko
5f56f839ff Updated translations from Transifex
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2015-03-19 13:02:05 +03:00
Slava Zanko
553dd8053b Merge branch '3417_marked_selected'
* 3417_marked_selected:
  Fix vertical line color if a file is marked and selected
2015-03-19 12:16:46 +03:00
oblique
25d554ab03 Fix vertical line color if a file is marked and selected 2015-03-19 11:59:54 +03:00
Slava Zanko
ada7f97f4e Merge branch '3416_find_accents'
* 3416_find_accents:
  Ticket #3416: viewer case insensitive search doesn't find accents.
2015-03-19 11:36:08 +03:00
Egmont Koblinger
1a1496fc0d Ticket #3416: viewer case insensitive search doesn't find accents.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2015-03-19 11:16:24 +03:00
Andrew Borodin
920403884d Merge branch '3285_mcedit_full_path'
* 3285_mcedit_full_path:
  Ticket #3285: mcedit: show full path to file in the status line.
2015-03-15 07:52:45 +03:00
Andrew Borodin
be38f70704 Ticket #3285: mcedit: show full path to file in the status line.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-03-15 07:15:23 +03:00
Slava Zanko
054182b877 Merge branch '3409_user_menu_help'
* 3409_user_menu_help:
  Ticket #3409: (user_menu_cmd): fix help topic for user menu.
2015-03-14 13:37:12 +03:00
Andrew Borodin
8549dd9aa9 Ticket #3409: (user_menu_cmd): fix help topic for user menu.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-03-14 13:36:24 +03:00
Marco Ciampa
9323e47bc2 Updated Italian translation 2015-03-13 11:28:04 +01:00
Marco Ciampa
85332186c2 Added autocreated pot file to git ignored list 2015-03-13 11:27:41 +01:00
Andrew Borodin
a03fe94170 Merge branch '3265_cleanup'
* 3265_cleanup: (22 commits)
  Update po/*.po files.
  tests/lib/search/Makefile.am: fix name of variable.
  Remove code required for GLib < 2.14.0.
  Minimal version of GLib is 2.14.0
  Ticket #3405: mcview: use VIEW_SELECTED_COLOR in plain mode.
  Hints: capitalize Lynx since it is the proper noun.
  (dirsize_status_update_cb): use local variables instead of type casting.
  doc/NEWS: cosmetics.
  (input_execute_cmd): refactoring.
  * background.c (background_attention): Fix memory leak.
  g_utf8_next_char() never returns NULL. Remove redundant checks.
  diffviewer: clarify support of UTF-8 codeset.
  Ticket #3246: misc/mcedit.menu.in: better grammar.
  Ticket #3262: rename variables.
  Add IS_PATH_SEP macro and use it.
  (edit_get_match_keyword_cmd): use PATH_SEP_STR instead of G_DIR_SEPARATOR_S.
  Update copyright years.
  (mc_search_regex_prepare_replace_str): refactoring.
  lib/search/regex.c: use [] to get char in string.
  (mc_search_prepare_replace_str2): make replace_str const.
  ...
2015-02-26 09:57:46 +03:00
Andrew Borodin
96fcc449c8 Update po/*.po files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-02-26 09:47:12 +03:00
Andrew Borodin
573136ac64 tests/lib/search/Makefile.am: fix name of variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-02-26 09:41:09 +03:00
Andrew Borodin
8c88aa01ad Remove code required for GLib < 2.14.0.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-02-26 09:20:54 +03:00
Andrew Borodin
1fa8bd3d62 Minimal version of GLib is 2.14.0
...because of g_unichar_ismark().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-02-26 09:20:54 +03:00
Andrew Borodin
ea2e5bf0b2 Ticket #3405: mcview: use VIEW_SELECTED_COLOR in plain mode.
Thanks Andreas Mohr <and@gmx.li> for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-02-26 09:20:54 +03:00