diff options
| author | Dan Nicolaescu | 2008-08-23 16:57:13 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-08-23 16:57:13 +0000 |
| commit | 4714a48169761d83a09a23cea3e7dd20226ae6e3 (patch) | |
| tree | a99917c5f2da5230b018e5b0e4b56c5700b77bc7 | |
| parent | 99dda2cdb74c3549e378ce483984971a04833fbe (diff) | |
| download | emacs-4714a48169761d83a09a23cea3e7dd20226ae6e3.tar.gz emacs-4714a48169761d83a09a23cea3e7dd20226ae6e3.zip | |
(vc-dir-prepare-status-buffer): Make sure we use a
directory name.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc-dir.el | 2 |
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 @@ | |||
| 1 | 2008-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 | |||
| 1 | 2008-08-23 Nick Roberts <nickrob@snap.net.nz> | 6 | 2008-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 |