Commit Graph

8548 Commits

Author SHA1 Message Date
Slava Zanko
fbcacf4044 Now project don't compile if version of glib less than 2.14 and no have pcre library
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-19 21:47:38 +03:00
Slava Zanko
38601bd224 Removed support of POSIX regexp. Now handled only glib-regexp and pcre
POSIX regexp don't support search by code of character (like \x<HEX>).

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-19 21:47:31 +03:00
Slava Zanko
de248cb274 Ticket 419: (search broken in editor/viewer on glib <2.14)
Added forgotten include of m4.include/ax_path_lib_pcre.m4 file

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-19 21:47:03 +03:00
Sergei Trofimovich
1b5ae972bb Merge commit 'origin/231_bg_shell_fish_support'
* commit 'origin/231_bg_shell_fish_support':
  Start on fish (Friendly Interactive SHell) support.
2009-06-19 14:27:18 +03:00
Andrew Borodin
162bab7b70 Merge branch '260_fix_includes'
* 260_fix_includes:
  Fixed includes.
  edit/edit.h: added function prototypes.
  vfs/gc.c src/widget.c: removed unneeded #include's.
  Fixed missed #include's after rebase to current master.
  ChangeLog: added entry.
  Added Changelog entry.
  Removed unnecessary #include directives and USE_INTERNAL_EDIT define.
  further include file fixups
  fixed several missing #include's
2009-06-19 14:39:15 +04:00
Andrew Borodin
68354273a3 Fixed includes.
Added missed includes. Fixed includes after rebase.

Signed-off-by: Andrew Borodin <borodin@borodin.zarya>
2009-06-19 14:36:36 +04:00
Andrew Borodin
9ef324f7bb edit/edit.h: added function prototypes.
edit/editcmd.c: removed include of eregex.h
vfs/vfs-impl.h: removed commented include of <stddef.h>.
2009-06-18 21:08:24 +04:00
Claes Nästén
128160fef1 Start on fish (Friendly Interactive SHell) support.
This code seems to be working good enough to give commands with fish,
however the prompt display is somewhat broken but that happens with bash
as well.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-06-18 20:08:07 +03:00
Andrew Borodin
26852546b7 vfs/gc.c src/widget.c: removed unneeded #include's.
vfs/vfs-impl.h src/background.h src/charsets.c
src/esc.h src/file.h src/execute.c src/vfsdummy.h: fixed missed #include's.
src/cons.saver.c: include <config.h> unconditionally.
src/complete.c:: fixed #include's.
src/win.h src/win.c: removed unneeded #include's;
check_movement_keys(): fixed type of returned value.
2009-06-18 21:07:10 +04:00
Andrew Borodin
5f61e9aaa4 Fixed missed #include's after rebase to current master. 2009-06-18 21:06:25 +04:00
Andrew Borodin
05c5d16851 ChangeLog: added entry.
src/dialog.h: changed header guard. Added comments.
2009-06-18 21:04:10 +04:00
Andrew Borodin
7c8be9f7c1 Added Changelog entry. 2009-06-18 21:03:47 +04:00
Andrew Borodin
75bf9897f0 Removed unnecessary #include directives and USE_INTERNAL_EDIT define. 2009-06-18 21:03:14 +04:00
Enrico Weigelt, metux IT service
b09a107190 further include file fixups 2009-06-18 21:02:29 +04:00
Enrico Weigelt, metux IT service
c7d04dd47a fixed several missing #include's 2009-06-18 21:02:29 +04:00
Slava Zanko
09bb0c5a6d Merge branch '415_trivial_optimization'
* 415_trivial_optimization:
  Ticket #415 (trivial optimization in src/file.c::panel_operate())
2009-06-18 15:53:43 +03:00
Ilia Maslakov
3ce5fb127b Ticket #412 (Exit from mcedit by sequence Esc-Esc-Esc)
fix: Exit from mcedit by sequence Esc-Esc-Esc, now revert to double Esc
2009-06-18 12:09:13 +00:00
Slava Zanko
df256dbaf6 Ticket #415 (trivial optimization in src/file.c::panel_operate())
This patch contains the following trivial optimizations:

 * merged two identical "dest_dir_ = g_strdup (dest_dir)" ops.
 * simplified check for trailing '/' (no need to strcmp 1-char string).
 * since g_free (NULL) is safe, merged two separate "if empty string then bail out" code paths.
 * fixed wording in a comment.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-18 14:51:05 +03:00
Slava Zanko
5ce3acc134 Merge branch '413_wrong_make_dist'
* 413_wrong_make_dist:
  Ticket #413 (Make dist do not include mc.charset)
2009-06-18 14:14:19 +03:00
Slava Zanko
faac6020ad Ticket #413 (Make dist do not include mc.charset)
Description:
If before
  make dist*
  ./configure

was invoked without parameters next build from resulted tarball with
  ./configure --enable-charset
stop on error "mc.charset not found".
"./configure --enable-charset" hack before make dist* resolve this trouble.

Fix issue: In contrib/Makefile.am EXTRA_DIST variable was contain filenames relative to --enable-charset option.
Now mc.charsets file alvays present in EXTRA_DIST variable.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-18 14:13:54 +03:00
Ilia Maslakov
86ca1f6663 Merge branch 'master' of ssh://angel_il@midnight-commander.org:2222/git/mc 2009-06-17 13:15:17 +00:00
Sergei Trofimovich
3b2707280f Merge commit 'origin/409_regex_build_fix'
* commit 'origin/409_regex_build_fix':
  Ticket #409: search: build failure on glib <2.14
  Ticket #409: search: build failure on glib <2.14
2009-06-17 16:14:15 +03:00
Ilia Maslakov
5c28d2bda4 Ticket #321 (Trouble with mc's clipboard paste)
add: paste as vertical block if clipfile contain magic sequence
add: vertical paste from file
add: symbolic definition MAGIC_VERTICAL for "\1\1\1\1\n" magic sequence
2009-06-17 13:12:03 +00:00
Sergei Trofimovich
f4611f3651 Ticket #409: search: build failure on glib <2.14
During constant renaming #ifdef'ed path was broken.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-06-17 15:52:21 +03:00
Sergei Trofimovich
6ee0ed5750 Ticket #409: search: build failure on glib <2.14
During constant renaming #ifdef'ed path was broken.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-06-17 15:14:47 +03:00
Slava Zanko
8e5cc41da1 Merge branch '305_extra_character_on_renaming'
* 305_extra_character_on_renaming:
  Fixed regex search by mask '.*' in multibyte strings (utf-8)
  Ticket #305 (Extra character on renaming)
2009-06-17 13:04:11 +03:00
Sergei Trofimovich
22ca1a9263 Merge commit 'origin/403_versioning_cleanup'
* commit 'origin/403_versioning_cleanup':
  version.sh: pregenerate version.h to avoid running ./configure twice in clean environment
  version.sh: unbreak version.h generation (--git-dir needs path to bare repo)
  version.sh: fix typo
  version.sh: more elegant extraction of old version
  version.sh: fix bashisms
  version.sh: don't suppress error messages from git availability check
2009-06-17 13:01:28 +03:00
Slava Zanko
a44141e7a0 Fixed regex search by mask '.*' in multibyte strings (utf-8)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-17 11:39:27 +03:00
Slava Zanko
9dbdac0ad3 Ticket #305 (Extra character on renaming)
Fixed renaming/copying utf-8 filenames and directoryes.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-17 11:39:26 +03:00
Ilia Maslakov
a0508934ab Merge branch 'master' of ssh://angel_il@midnight-commander.org:2222/git/mc 2009-06-16 19:07:16 +00:00
Sergei Trofimovich
eea108377d version.sh: pregenerate version.h to avoid running ./configure twice in clean environment
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-06-16 20:40:24 +03:00
Sergei Trofimovich
3e81dd57c1 version.sh: unbreak version.h generation (--git-dir needs path to bare repo)
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-06-16 20:33:24 +03:00
Oswald Buddenhagen
a1864899d2 version.sh: fix typo
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-06-16 20:25:01 +03:00
Oswald Buddenhagen
d327943f4d version.sh: more elegant extraction of old version
sed is rather powerful ;)

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-06-16 20:24:59 +03:00
Oswald Buddenhagen
c7ba6209df version.sh: fix bashisms
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-06-16 20:24:58 +03:00
Oswald Buddenhagen
9a5c9cbc88 version.sh: don't suppress error messages from git availability check
otherwise there is no feedback at all.
as it happens, this also fixes a bashism

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-06-16 20:24:57 +03:00
Andrew Borodin
3337c39c54 Merge branch '361_editor_public_api'
* 361_editor_public_api:
  Fixed missed declaration of simple_statusbar variable.
  Fixed comments and copyright info.
  Hide private API of editor (#361).
2009-06-16 15:37:25 +04:00
Andrew Borodin
0c51aa5ae1 Fixed missed declaration of simple_statusbar variable. 2009-06-16 15:36:45 +04:00
Andrew Borodin
6999a6123b Fixed comments and copyright info. 2009-06-16 15:36:45 +04:00
Andrew Borodin
fd09abaeb2 Hide private API of editor (#361).
All editor private API stuff is located now in edit/edit-impl.h.
Public API is located in edit/edit.h.
Added functions to read some fields of WEdit struct.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-06-16 15:36:45 +04:00
Andrew Borodin
537bc71069 Merge branch '402_select_codepage'
* 402_select_codepage:
  Fixed source_codepage handling in editor (#402).
  Fixed type of variables that store result of get_codepage_id().
  Fixed codepage selection (#402).
2009-06-16 15:18:12 +04:00
Andrew Borodin
efbbd3883f Fixed source_codepage handling in editor (#402).
Signed-off-by: Andrew Borodin <borodin@borodin.zarya>
2009-06-16 11:32:59 +04:00
Ilia Maslakov
dc6cf0b6fa Ticket #305 (dont work rename/copy on some chars)
fix: incorrect work rename/copy
2009-06-15 20:48:42 +00:00
Andrew Borodin
6e86e9f383 Fixed type of variables that store result of get_codepage_id(). 2009-06-15 23:35:20 +04:00
Andrew Borodin
205fa24e7d Fixed codepage selection (#402).
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-06-15 20:27:17 +04:00
Slava Zanko
8bc27c83e8 Merge branch '340_forgotten_include'
* 340_forgotten_include:
  Added forgotten #include "../src/strescape.h" for avoid warnings
2009-06-15 10:10:15 +03:00
Ilia Maslakov
2dffac596d Merge branch '327_simple_editor_status'
* 327_simple_editor_status:
  Simple statusbar mode for editor.
2009-06-14 18:25:27 +00:00
Ilia Maslakov
2f8e7cae7a Ticket #404 (Need more action in Editor menu)
add entries for many action:

 menu Edit
   * Copy to clipfile
   * Cut to clipfile
   * Paste from clipfile
   * Toggle bookmark
   * Next bookmark
   * Prev bookmark
   * Flush bookmark
 menu Command
   * Find declaration
   * Back from declaration
   * Forward to declaration

add show shortcuts for copy/cut/paste clipfile
2009-06-14 17:17:32 +00:00
Slava Zanko
80ad54decb Added forgotten #include "../src/strescape.h" for avoid warnings
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-13 00:27:23 +03:00
Sergei Trofimovich
f5dce266fe Merge commit 'origin/340_inrorrect_handling_of_wildcards'
* commit 'origin/340_inrorrect_handling_of_wildcards': (21 commits)
  Fixed work with copying/moving files by mask into subdirs
  Fixed bug with copying files/dirs into directory with 'wild' name (such as ${}, \1, etc.)
  Fixed patterns escaping of wild filenames (such as \1, ${1}, \U, etc).
  Removed unused debug code from src/filegui.c
  Refactoring: renamed variable 'loop' into 'curr_index'
  Changed defined constants to static const char[] declarations.
  Fixed declarations of functions. May be, need to split with previous commmit...
  Reworked functions strutils_shell_escape and strutils_shell_unescape
  Renamed functions shell_escape (to strutils_shell_escape) and shell_unescape (to strutils_shell_unescape)
  Just identation of some source files
  Renamed function shell_is_char_escaped to strutils_is_char_escaped; removed function mc_search_is_char_escaped
  Moved 'escape' and 'unescape' strings functions from src/util.[ch] into src/strescape.[ch]
  Fixed crash if replace group ${N} used into replace string
  Some cosmetic optimisation for less code :)
  Fixed searched token in source file mask.
  Fixed NULL acertion if replacement don't correct
  Handle new search replace behaviour into src/file.c. Also fixed filemask into src/filegui.c
  Search Replace now handled \U,\u,\L,\l and \E modificators.
  Just identation of regex.c and search.h
  search engine: Added new syntax for replace tokenks.
  ...
2009-06-12 23:02:44 +03:00