aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2008-08-23 16:57:13 +0000
committerDan Nicolaescu2008-08-23 16:57:13 +0000
commit4714a48169761d83a09a23cea3e7dd20226ae6e3 (patch)
treea99917c5f2da5230b018e5b0e4b56c5700b77bc7
parent99dda2cdb74c3549e378ce483984971a04833fbe (diff)
downloademacs-4714a48169761d83a09a23cea3e7dd20226ae6e3.tar.gz
emacs-4714a48169761d83a09a23cea3e7dd20226ae6e3.zip
(vc-dir-prepare-status-buffer): Make sure we use a
directory name.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/vc-dir.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7f4c2d8df6d..f88b7489d97 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-08-23 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * vc-dir.el (vc-dir-prepare-status-buffer): Make sure we use a
4 directory name.
5
12008-08-23 Nick Roberts <nickrob@snap.net.nz> 62008-08-23 Nick Roberts <nickrob@snap.net.nz>
2 7
3 * progmodes/gud.el (gud-common-init): Use absolute file so that 8 * progmodes/gud.el (gud-common-init): Use absolute file so that
diff --git a/lisp/vc-dir.el b/lisp/vc-dir.el
index 011262e488f..bd998fbac3f 100644
--- a/lisp/vc-dir.el
+++ b/lisp/vc-dir.el
@@ -88,7 +88,7 @@ See `run-hooks'."
88 88
89(defun vc-dir-prepare-status-buffer (bname dir backend &optional create-new) 89(defun vc-dir-prepare-status-buffer (bname dir backend &optional create-new)
90 "Find a buffer named BNAME showing DIR, or create a new one." 90 "Find a buffer named BNAME showing DIR, or create a new one."
91 (setq dir (expand-file-name dir)) 91 (setq dir (file-name-as-directory (expand-file-name dir)))
92 (let* 92 (let*
93 ;; Look for another buffer name BNAME visiting the same directory. 93 ;; Look for another buffer name BNAME visiting the same directory.
94 ((buf (save-excursion 94 ((buf (save-excursion