changeset 97660:cf2cf606d5d7

(vc-dir-prepare-status-buffer): Make sure we use a directory name.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sat, 23 Aug 2008 16:57:13 +0000
parents 6358f03eb003
children e4a283c4bc1c
files lisp/ChangeLog lisp/vc-dir.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sat Aug 23 16:56:59 2008 +0000
+++ b/lisp/ChangeLog	Sat Aug 23 16:57:13 2008 +0000
@@ -1,3 +1,8 @@
+2008-08-23  Dan Nicolaescu  <dann@ics.uci.edu>
+
+	* vc-dir.el (vc-dir-prepare-status-buffer): Make sure we use a
+	directory name.
+
 2008-08-23  Nick Roberts  <nickrob@snap.net.nz>
 
 	* progmodes/gud.el (gud-common-init): Use absolute file so that
--- a/lisp/vc-dir.el	Sat Aug 23 16:56:59 2008 +0000
+++ b/lisp/vc-dir.el	Sat Aug 23 16:57:13 2008 +0000
@@ -88,7 +88,7 @@
 
 (defun vc-dir-prepare-status-buffer (bname dir backend &optional create-new)
   "Find a buffer named BNAME showing DIR, or create a new one."
-  (setq dir (expand-file-name dir))
+  (setq dir (file-name-as-directory (expand-file-name dir)))
   (let*
 	 ;; Look for another buffer name BNAME visiting the same directory.
 	 ((buf (save-excursion