diff options
| author | Richard M. Stallman <rms@gnu.org> | 1996-06-28 08:28:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1996-06-28 08:28:51 +0000 |
| commit | a8f34fc08311490bd11db6f05d7fd1ee376adb2e (patch) | |
| tree | 530146933c73ceefe5f7e83c0d31073843e70838 | |
| parent | 43432812899825f84433065241688965bbc13b83 (diff) | |
| download | emacs-a8f34fc08311490bd11db6f05d7fd1ee376adb2e.tar.gz | |
(abbreviate-file-name): Ignore automount-dir-prefix if nil.
| -rw-r--r-- | lisp/files.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index 089a553ce58..943622064f3 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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))))) |
