1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Remove assumptions about buffer names.

This commit is contained in:
Eric S. Raymond 2008-05-15 14:32:49 +00:00
parent 97275f80a9
commit d536a90488
3 changed files with 19 additions and 16 deletions

View file

@ -1983,7 +1983,7 @@ outside of VC) and one wants to do some operation on it."
(defun vc-dir (dir)
"Show the VC status for DIR."
(interactive "DVC status for directory: ")
(pop-to-buffer (vc-dir-prepare-status-buffer dir))
(pop-to-buffer (vc-dir-prepare-status-buffer "*vc-dir*" dir))
(if (and (derived-mode-p 'vc-dir-mode) (boundp 'client-object))
(vc-dir-refresh)
;; Otherwise, initialize a new view using the dispatcher layer