From f71ee9c1b32f5145829aa0d3eb5c6a302734c2cd Mon Sep 17 00:00:00 2001 From: Vinicius Jose Latorre Date: Thu, 8 Nov 2007 17:14:46 +0000 Subject: [PATCH] Change regexp to match dir like 'a...b' --- lisp/ChangeLog | 5 +++++ lisp/eshell/em-dirs.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ee381421a7d..30b0241e8fd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 --git a/lisp/eshell/em-dirs.el b/lisp/eshell/em-dirs.el index 0000cae5adf..02556661b1b 100644 --- a/lisp/eshell/em-dirs.el +++ b/lisp/eshell/em-dirs.el @@ -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) -- 2.39.2