changeset 45358:f57a87acf8bf

(uniquify-rationalize-file-buffer-names): Always strip the trailing / even if the file is not a directory.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 19 May 2002 02:11:03 +0000
parents a0eaee1a642d
children 6dbb4ce89a70
files lisp/uniquify.el
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/uniquify.el	Sun May 19 01:38:37 2002 +0000
+++ b/lisp/uniquify.el	Sun May 19 02:11:03 2002 +0000
@@ -199,9 +199,7 @@
 		 (setq bfn (if (eq buffer newbuf)
 			       (when newbuffile
 				 (expand-file-name
-				  (if (file-directory-p newbuffile)
-				      (directory-file-name newbuffile)
-				    newbuffile)))
+				  (directory-file-name newbuffile)))
 			     (uniquify-buffer-file-name buffer)))
 		 (setq rawname (uniquify-file-name-nondirectory bfn))
 		 (or (not newbuffile)