Mercurial > emacs
diff lisp/eshell/em-dirs.el @ 85966:90ed3b3932bf
Change regexp to match dir like 'a...b'
author | Vinicius Jose Latorre <viniciusjl@ig.com.br> |
---|---|
date | Thu, 08 Nov 2007 17:11:47 +0000 |
parents | a1e8300d3c55 |
children | 48c4bb2b7d11 14174df2455d 880960b70474 |
line wrap: on
line diff
--- 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)