diff options
| author | Karl Heuer | 1996-01-08 22:41:40 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-01-08 22:41:40 +0000 |
| commit | 04f3a6563a5c268d5e22a466d0b13014ed6f9a43 (patch) | |
| tree | fb1f1c0fc83d89018457d09b107414bfb17d68f7 | |
| parent | 7ac098ffa96fa2f2828eebe488053eb1183c10be (diff) | |
| download | emacs-04f3a6563a5c268d5e22a466d0b13014ed6f9a43.tar.gz emacs-04f3a6563a5c268d5e22a466d0b13014ed6f9a43.zip | |
(uniquify-rationalize-file-buffer-names): If
newbuffile is nil, don't call expand-file-name on it.
| -rw-r--r-- | lisp/uniquify.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/uniquify.el b/lisp/uniquify.el index 495d893baf0..3bf889f0996 100644 --- a/lisp/uniquify.el +++ b/lisp/uniquify.el | |||
| @@ -147,7 +147,8 @@ pathname elements. Arguments cause only a subset of buffers to be renamed." | |||
| 147 | (while buffers | 147 | (while buffers |
| 148 | (let* ((buffer (car buffers)) | 148 | (let* ((buffer (car buffers)) |
| 149 | (bfn (if (eq buffer newbuf) | 149 | (bfn (if (eq buffer newbuf) |
| 150 | (expand-file-name newbuffile) | 150 | (and newbuffile |
| 151 | (expand-file-name newbuffile)) | ||
| 151 | (uniquify-buffer-file-name buffer))) | 152 | (uniquify-buffer-file-name buffer))) |
| 152 | (rawname (and bfn (file-name-nondirectory bfn))) | 153 | (rawname (and bfn (file-name-nondirectory bfn))) |
| 153 | (deserving (and rawname | 154 | (deserving (and rawname |