Commit Graph

12080 Commits

Author SHA1 Message Date
Andrew Borodin
62d14bd140 Rename _syntax_marker to syntax_marker_t and reimplement it using GSList.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Andrew Borodin
ee1f657994 (compare_word_to_right): minor refactoring.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Andrew Borodin
576412634f Fix types for line numbers and byte offsets in syntax highlighting engine.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Andrew Borodin
962259a224 Many editor functions: take editor as constant object.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Andrew Borodin
7f7a75f988 (get_first_editor_line): minor refactoring.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Andrew Borodin
8883273bdd (edit_get_syntax_color): return color directly.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Andrew Borodin
ef0dd43430 Rename syntax_rule to edit_syntax_rule_t.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Andrew Borodin
3c69a2cafb (book_mark_clear): return gboolean instead of int.
(book_mark_query_color): likewise.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Andrew Borodin
15446985bf Rename _book_mark to edit_book_mark_t.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Andrew Borodin
96e463086b (edit_delete): take gboolean instead of int.
(edit_backspace): likewise.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Andrew Borodin
8b0062ad8a (edit_block_move_cmd): minor cleanup.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Ilia Maslakov
01bf58e688 mcedit: fix block movement.
steps to reproduce:
1) create text
111111111111111111
222222222222222222
333333333333333333
444444444444444444
555555555555555555

2) select text from line 2 to line 4
3) move cursor to line 3
4) press F6

The block was moved but should't.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-10-20 15:39:44 +04:00
Andrew Borodin
b8e02442fd Fixed typo in sound file extension: "wvm4a" should be "wv".
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Andrew Borodin
a8b8cdcc47 Use AC_MSG_NOTICE to print configure results.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Andrew Borodin
8031fa3a65 Fix name of LibreOffice executable file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Andrew Borodin
8b3ed9bfdc (mc_mkstemps): use g_mkstemp() to generate name of temporary file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Andrew Borodin
d27a4f86ea Ticket #2888: cleanups in master branch.
Check perl, python and ruby programs and substitute them in various files.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:39:44 +04:00
Andrew Borodin
ef9d337d6f Merge branch '2917_cppflags_cleanup'
* 2917_cppflags_cleanup:
  Ticket #2917: Makefile.ams cleanup: remove unused AM_CPPFLAGS.
2012-10-20 15:25:07 +04:00
Andrew Borodin
d82757d233 Ticket #2917: Makefile.ams cleanup: remove unused AM_CPPFLAGS.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-20 15:24:30 +04:00
Andrew Borodin
be6a99f910 src/filemanager/mountlist.c: fix indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-12 14:45:39 +04:00
Andrew Borodin
80bfefe0ff Merge branch '2906_copy_crash_on_solaris'
* 2906_copy_crash_on_solaris:
  (get_fs_usage): avoid compile warning about mixed declarations and code.
  Sync with gnulib ffe10f3d20c2eb77efd56b68f2c22b2a810c289d.
  Sync with gnulib 2ab2617ee340ff35a9a4c713004fb302868d41b0
  Sync with gnulib 0a6dafee2bb8f69a931345a1f67d835ee5062967
  Sync with gnulib b1fac377605c0eef8844fc8d3818d360f37d6fa4:
  Ticket #2906: crash on Solaris while trying to copy a file.
2012-10-12 13:59:52 +04:00
Andrew Borodin
7298a32e0f (get_fs_usage): avoid compile warning about mixed declarations and code.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-12 11:52:52 +04:00
Andrew Borodin
d53dc96704 Sync with gnulib ffe10f3d20c2eb77efd56b68f2c22b2a810c289d.
fsusage: port back to Solaris

* src/filemanager/mountlist.c (get_fs_usage): Fix busted logic causing
compile-time error (fsd not declared) on Solaris 10.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-12 11:52:52 +04:00
Andrew Borodin
be2f25862b Sync with gnulib 2ab2617ee340ff35a9a4c713004fb302868d41b0
* src/filemanager/mountlist.c [STAT_STATVFS && (__linux__ && (__GLIBC__||__UCLIBC__))]:
Undefine STAT_STATFS2_FRSIZE to exclude code not used in this case.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-12 11:52:52 +04:00
Andrew Borodin
099052efc7 Sync with gnulib 0a6dafee2bb8f69a931345a1f67d835ee5062967
Avoid needless check on GNU/Linux.

* m4.include/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
on GNU/Linux systems, since it can't possibly work.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-12 11:52:52 +04:00
Andrew Borodin
37873e6df4 Sync with gnulib b1fac377605c0eef8844fc8d3818d360f37d6fa4:
fs usage: fix block size returned on older Linux 2.6.

* src/filemanager/mountlist.c: Fall back to (struct statfs).f_frsize
which is available since Linux 2.6.
* m4.include/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
when the member is available so it can be used as a fallback.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-12 11:52:52 +04:00
Andrew Borodin
4db9168a93 Ticket #2906: crash on Solaris while trying to copy a file.
Sync with gnulib c25bdbae48977a527dff69150f59fb0746d31b51:
fs usage: check for GNU/Linux statvfs problem dynamically.

* src/filemanager/mountlist.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
Define STAT_STATFS2_BSIZE too, since in this case the code now
checks dynamically whether statvfs is reliable, falling back on
Linux-style statfs otherwise.
(statvfs_works): New function, for dynamically testing statvfs.
(get_fs_usage) [STAT_STATVFS]: Use it.
* src/filemanager/filegui.c (filegui__check_attrs_on_fs): apply the same
statvfs_works function.
* m4.include/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
statvfs on GNU/Linux hosts, since it's now done dynamically.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-12 11:52:52 +04:00
Andrew Borodin
91f919531b Merge branch '2897_mc_ext_updates'
* 2897_mc_ext_updates:
  Ticket #1686: use 'see' utility for vieweing images
  Ticket #1686: use 'see' utility as default pdf viewer when found
  Ticket #1686: use dvicat if dvi2tty not found
  Ticket #2723: use libreoffice instead of ooffice, if found.
  Ticket #2739: add support of PAR archives.
  Ticket #2739: add support of epub format.
  Ticket #2739: add support of comic books.
  Ticket #2767: mc.ext: add support of ape, aac and wvm4a formats.
  Ticket #2895: add support of SVG images.
  Ticket #2890: make a choice between archivers for 7z.
  Ticket #2890: make a choice between archivers for arj.
  Ticket #2891: add support of .war archives.
  Ticket #2892: mc.ext: expand support of file extentions for source files
  Ticket #2894: add support of Gnumeric's spreadsheets.
  Ticket #2897: a lot of updates of mc.ext and ext.d.
2012-10-09 14:27:35 +04:00
Slava Zanko
5082d01ebd Ticket #1686: use 'see' utility for vieweing images
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:26:41 +04:00
Slava Zanko
804ccfb467 Ticket #1686: use 'see' utility as default pdf viewer when found
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:22:45 +04:00
Slava Zanko
1aa122b765 Ticket #1686: use dvicat if dvi2tty not found
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:22:45 +04:00
Slava Zanko
246c072e24 Ticket #2723: use libreoffice instead of ooffice, if found.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:22:45 +04:00
Slava Zanko
c44aabebe7 Ticket #2739: add support of PAR archives.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:22:45 +04:00
Slava Zanko
72db209691 Ticket #2739: add support of epub format.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:22:45 +04:00
Slava Zanko
fa3c7e71a8 Ticket #2739: add support of comic books.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:22:40 +04:00
Slava Zanko
5738b8d863 Ticket #2767: mc.ext: add support of ape, aac and wvm4a formats.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:22:27 +04:00
Andrew Borodin
30cdf01d05 Ticket #2895: add support of SVG images.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-09 14:21:09 +04:00
Andrew Borodin
d1779a895d Ticket #2890: make a choice between archivers for 7z.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-09 14:21:00 +04:00
Slava Zanko
2120c32b5a Ticket #2890: make a choice between archivers for arj.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:20:41 +04:00
Andrew Borodin
98a1acbf8e Ticket #2891: add support of .war archives.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-09 14:20:29 +04:00
Slava Zanko
b3931a032e Ticket #2892: mc.ext: expand support of file extentions for source files
* Added support of .asm file extention
* Added support of .hh file extention
* All file extentions for source files now case insentetive.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-10-09 14:20:29 +04:00
Andrew Borodin
71ca307910 Ticket #2894: add support of Gnumeric's spreadsheets.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-09 14:20:29 +04:00
Sergey Y. Afonin
013a3ff098 Ticket #2897: a lot of updates of mc.ext and ext.d.
Ticket #2893: add support of JNG and MNG images.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-09 14:18:38 +04:00
Andrew Borodin
c2ba41cdfc Ticket #2912: add psgi extension to Perl syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-08 16:52:04 +04:00
Andrew Borodin
5a02c9f83e Merge branch '2910_patch_symlink'
* 2910_patch_symlink:
  Ticket #2910: enter into symlink to commpressed patch shows empty patch.
2012-10-04 10:58:29 +04:00
Andrew Borodin
9af54886d6 Ticket #2910: enter into symlink to commpressed patch shows empty patch.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-02 18:25:22 +04:00
Andrew Borodin
9b99f5b659 Merge branch '2888_cleanup'
* 2888_cleanup:
  Ticket #2871: remove the empty contrib/dist/debian/
  Update Spanish man page.
  Fix i18n of file operation dialog titles.
  Add info about ext.d directory to output of 'mc -F' command.
  Ticket #2888: cleanups in master branch.
2012-09-27 17:17:40 +04:00
Adrian Bunk
adbb6492ec Ticket #2871: remove the empty contrib/dist/debian/
It was empty and the up-to-date Debian packaging is anyway
maintained separately in Debian.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-09-27 17:17:03 +04:00
David Mart?n
672c572e9b Update Spanish man page.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-09-27 17:17:03 +04:00
Andrew Borodin
aa39bb48b2 Fix i18n of file operation dialog titles.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-09-27 17:17:03 +04:00