mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-03 04:21:28 -08:00
(abbreviate-file-name): Ignore automount-dir-prefix if nil.
This commit is contained in:
parent
4343281289
commit
a8f34fc083
1 changed files with 2 additions and 1 deletions
|
|
@ -627,7 +627,8 @@ Choose the buffer's name using `generate-new-buffer-name'."
|
|||
This also substitutes \"~\" for the user's home directory.
|
||||
Type \\[describe-variable] directory-abbrev-alist RET for more information."
|
||||
;; Get rid of the prefixes added by the automounter.
|
||||
(if (and (string-match automount-dir-prefix filename)
|
||||
(if (and automount-dir-prefix
|
||||
(string-match automount-dir-prefix filename)
|
||||
(file-exists-p (file-name-directory
|
||||
(substring filename (1- (match-end 0))))))
|
||||
(setq filename (substring filename (1- (match-end 0)))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue