aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/eshell
diff options
context:
space:
mode:
authorVinicius Jose Latorre2007-11-08 17:14:46 +0000
committerVinicius Jose Latorre2007-11-08 17:14:46 +0000
commitf71ee9c1b32f5145829aa0d3eb5c6a302734c2cd (patch)
tree1e41c8bd465c5e4b0a21195d6fb0dc11f22b08df /lisp/eshell
parent76a05775d83f87c9ce17a2f16883b04e253c41ea (diff)
downloademacs-f71ee9c1b32f5145829aa0d3eb5c6a302734c2cd.tar.gz
emacs-f71ee9c1b32f5145829aa0d3eb5c6a302734c2cd.zip
Change regexp to match dir like 'a...b'
Diffstat (limited to 'lisp/eshell')
-rw-r--r--lisp/eshell/em-dirs.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/eshell/em-dirs.el b/lisp/eshell/em-dirs.el
index 0000cae5adf..02556661b1b 100644
--- a/lisp/eshell/em-dirs.el
+++ b/lisp/eshell/em-dirs.el
@@ -319,7 +319,7 @@ in the minibuffer:
319 (before translate-multiple-dots 319 (before translate-multiple-dots
320 (filename &optional directory) activate) 320 (filename &optional directory) activate)
321 (setq filename (eshell-expand-multiple-dots filename)))" 321 (setq filename (eshell-expand-multiple-dots filename)))"
322 (while (string-match "\\.\\.\\(\\.+\\)" path) 322 (while (string-match "\\(?:^\\|/\\)\\.\\.\\(\\.+\\)\\(?:$\\|/\\)" path)
323 (let* ((extra-dots (match-string 1 path)) 323 (let* ((extra-dots (match-string 1 path))
324 (len (length extra-dots)) 324 (len (length extra-dots))
325 replace-text) 325 replace-text)