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:
parent
76a05775d8
commit
f71ee9c1b3
2 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue