# HG changeset patch # User Vinicius Jose Latorre # Date 1194541907 0 # Node ID 90ed3b3932bfd57a14279d0990b08195ff3d30a6 # Parent ac6bbbd64b2fcbc67adb5389eb7cf118b0cf68d7 Change regexp to match dir like 'a...b' diff -r ac6bbbd64b2f -r 90ed3b3932bf lisp/ChangeLog --- a/lisp/ChangeLog Thu Nov 08 16:58:07 2007 +0000 +++ b/lisp/ChangeLog Thu Nov 08 17:11:47 2007 +0000 @@ -1,3 +1,8 @@ +2007-11-08 David Hansen + + * eshell/em-dirs.el (eshell-expand-multiple-dots): Change regexp to + match dir like "a...b". + 2007-11-08 Stefan Monnier * smerge-mode.el (smerge-refine-subst): Pass "-d" to diff. diff -r ac6bbbd64b2f -r 90ed3b3932bf lisp/eshell/em-dirs.el --- a/lisp/eshell/em-dirs.el Thu Nov 08 16:58:07 2007 +0000 +++ b/lisp/eshell/em-dirs.el Thu Nov 08 17:11:47 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)