summaryrefslogtreecommitdiff
path: root/lisp/vc-hooks.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2008-11-23 05:10:53 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2008-11-23 05:10:53 +0000
commit066b7259c26def3b9e0530a4be7a156f6d1256fe (patch)
tree42b2118417827fb38bb2ac8a83d7676efdc65823 /lisp/vc-hooks.el
parent179bdd6061be0e2e41d34d702ee12221fe02aec0 (diff)
downloademacs-066b7259c26def3b9e0530a4be7a156f6d1256fe.tar.gz
(vc-follow-link): Complete last change.
Diffstat (limited to 'lisp/vc-hooks.el')
-rw-r--r--lisp/vc-hooks.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index 85f665bc9de..318f58e4f62 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -853,7 +853,7 @@ current, and kill the buffer that visits the link."
(let* ((true-buffer (find-buffer-visiting buffer-file-truename))
(this-buffer (current-buffer)))
(if (eq true-buffer this-buffer)
- (progn
+ (let ((truename buffer-file-truename))
(kill-buffer this-buffer)
;; In principle, we could do something like set-visited-file-name.
;; However, it can't be exactly the same as set-visited-file-name.