]> code.delx.au - gnu-emacs/commitdiff
Change regexp to match dir like 'a...b'
authorVinicius Jose Latorre <viniciusjl@ig.com.br>
Thu, 8 Nov 2007 17:12:37 +0000 (17:12 +0000)
committerVinicius Jose Latorre <viniciusjl@ig.com.br>
Thu, 8 Nov 2007 17:12:37 +0000 (17:12 +0000)
lisp/ChangeLog
lisp/eshell/em-dirs.el

index d78f776bc19613288c6bdaf518a2472e9fe0f787..b1c520e6d97b42cf2832014b6ad62302317fa4c8 100644 (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.
index 0000cae5adf89195c8dbd7f5c89f08053fef6fac..02556661b1b5a15a04045432d308d716b861cbfa 100644 (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)