]> git.eshelyaron.com Git - emacs.git/commitdiff
(abbreviate-file-name): Ignore automount-dir-prefix if nil.
authorRichard M. Stallman <rms@gnu.org>
Fri, 28 Jun 1996 08:28:51 +0000 (08:28 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 28 Jun 1996 08:28:51 +0000 (08:28 +0000)
lisp/files.el

index 089a553ce589f701b0aa6ecbc504a6cfafde4378..943622064f39c86a5b6e10902f3232536c64f2a1 100644 (file)
@@ -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)))))