summaryrefslogtreecommitdiff
path: root/lisp/vc.el
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-07-06 06:18:50 +0000
committerJim Blandy <jimb@redhat.com>1993-07-06 06:18:50 +0000
commitcf50f71757a88c37d8c35f458d53fbe697a8e11b (patch)
tree2b163e433c911244d736de3a740f3a4120097c63 /lisp/vc.el
parentfc593b05890222a0cbc128e2f8888a9d1405ced5 (diff)
downloademacs-cf50f71757a88c37d8c35f458d53fbe697a8e11b.tar.gz
* vc.el (vc-start-entry): Don't call file-name-nondirectory on
FILE before passing it to vc-mode-line. Everyplace else passes vc-mode-line full filenames, and vc-mode-line now needs the real file name to decide which version-control system the file is under.
Diffstat (limited to 'lisp/vc.el')
-rw-r--r--lisp/vc.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index 830444feee6..6670ed68e9a 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -513,7 +513,7 @@ lock steals will raise an error."
(set (make-local-variable 'vc-parent-buffer) parent)
(set (make-local-variable 'vc-parent-buffer-name)
(concat " from " (buffer-name vc-parent-buffer)))
- (vc-mode-line (if file (file-name-nondirectory file) " (no file)"))
+ (vc-mode-line (or file " (no file)"))
(vc-log-mode)
(setq vc-log-operation action)
(setq vc-log-file file)