mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
(comint-match-partial-filename): Consider +@: part of
filenames; don't consider parens as part of them.
This commit is contained in:
parent
30b786c340
commit
1ae2f9fe09
1 changed files with 3 additions and 3 deletions
|
|
@ -1741,11 +1741,11 @@ directory tracking functions.")
|
|||
"Return the filename at point, or signal an error.
|
||||
Environment variables are substituted."
|
||||
(save-excursion
|
||||
(if (re-search-backward "[^~/A-Za-z0-9_.$#,={}()-]" nil 'move)
|
||||
(if (re-search-backward "[^~/A-Za-z0-9+@:_.$#,={}-]" nil 'move)
|
||||
(forward-char 1))
|
||||
;; Anchor the search forwards.
|
||||
(if (not (looking-at "[~/A-Za-z0-9_.$#,={}()-]")) (error ""))
|
||||
(re-search-forward "[~/A-Za-z0-9_.$#,={}()-]+")
|
||||
(if (not (looking-at "[~/A-Za-z0-9+@:_.$#,={}-]")) (error ""))
|
||||
(re-search-forward "[~/A-Za-z0-9+@:_.$#,={}-]+")
|
||||
(substitute-in-file-name
|
||||
(buffer-substring (match-beginning 0) (match-end 0)))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue