1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-05 20:43:08 +00:00

Change regexp to match dir like 'a...b'

This commit is contained in:
Vinicius Jose Latorre 2007-11-08 17:12:37 +00:00
parent f56f00fa57
commit 661192e6b7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-11-08 David Hansen <david.hansen@gmx.net> (tiny change)
* eshell/em-dirs.el (eshell-expand-multiple-dots): Change regexp to
match dir like "a...b".
2007-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
* smerge-mode.el (smerge-refine-subst): Pass "-d" to diff.

View File

@ -319,7 +319,7 @@ in the minibuffer:
(before translate-multiple-dots
(filename &optional directory) activate)
(setq filename (eshell-expand-multiple-dots filename)))"
(while (string-match "\\.\\.\\(\\.+\\)" path)
(while (string-match "\\(?:^\\|/\\)\\.\\.\\(\\.+\\)\\(?:$\\|/\\)" path)
(let* ((extra-dots (match-string 1 path))
(len (length extra-dots))
replace-text)