# HG changeset patch # User Vinicius Jose Latorre # Date 1194542086 0 # Node ID e0ca14d507a590e5e9b0d3e073d0f97ac54fe986 # Parent 89a3e7e4d349892eaee86e2c661d4a97f6cb04e6 Change regexp to match dir like 'a...b' diff -r 89a3e7e4d349 -r e0ca14d507a5 lisp/ChangeLog --- 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 (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 * eshell/esh-mode.el (eshell-output-filter): diff -r 89a3e7e4d349 -r e0ca14d507a5 lisp/eshell/em-dirs.el --- 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)