From 661192e6b710612104ec3716a83743962328f627 Mon Sep 17 00:00:00 2001 From: Vinicius Jose Latorre Date: Thu, 8 Nov 2007 17:12:37 +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 d78f776bc19..b1c520e6d97 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-08 Stefan Monnier * smerge-mode.el (smerge-refine-subst): Pass "-d" to diff. 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