1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Change regexp to match dir like 'a...b'

This commit is contained in:
Vinicius Jose Latorre 2007-11-08 17:14:46 +00:00
parent 76a05775d8
commit f71ee9c1b3
2 changed files with 6 additions and 1 deletions

View file

@ -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)