]> git.eshelyaron.com Git - emacs.git/commitdiff
(uniquify-rationalize-file-buffer-names): If
authorKarl Heuer <kwzh@gnu.org>
Mon, 8 Jan 1996 22:41:40 +0000 (22:41 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 8 Jan 1996 22:41:40 +0000 (22:41 +0000)
newbuffile is nil, don't call expand-file-name on it.

lisp/uniquify.el

index 495d893baf06d48b3975b0d37b59c4f525865d09..3bf889f099696d7bb5c0b58cc5e303e9e86014c2 100644 (file)
@@ -147,7 +147,8 @@ pathname elements.  Arguments cause only a subset of buffers to be renamed."
       (while buffers
        (let* ((buffer (car buffers))
               (bfn (if (eq buffer newbuf)
-                       (expand-file-name newbuffile)
+                       (and newbuffile
+                            (expand-file-name newbuffile))
                      (uniquify-buffer-file-name buffer)))
               (rawname (and bfn (file-name-nondirectory bfn)))
               (deserving (and rawname