changeset 79351:e0ca14d507a5

Change regexp to match dir like 'a...b'
author Vinicius Jose Latorre <viniciusjl@ig.com.br>
date Thu, 08 Nov 2007 17:14:46 +0000
parents 89a3e7e4d349
children 1fc9da4bef9f
files lisp/ChangeLog lisp/eshell/em-dirs.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Nov 08 08:51:39 2007 +0000
+++ b/lisp/ChangeLog	Thu Nov 08 17:14:46 2007 +0000
@@ -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-07  Johan Bockg,Ae(Brd  <bojohan@gnu.org>
 
 	* eshell/esh-mode.el (eshell-output-filter):
--- a/lisp/eshell/em-dirs.el	Thu Nov 08 08:51:39 2007 +0000
+++ b/lisp/eshell/em-dirs.el	Thu Nov 08 17:14:46 2007 +0000
@@ -319,7 +319,7 @@
     (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)