Commit 48b43130 authored by Dan Nicolaescu's avatar Dan Nicolaescu
Browse files

(vc-find-revision): Set the parent buffer.

Use when instead of if.
parent 6d00e226
2007-11-20 Dan Nicolaescu <dann@ics.uci.edu> 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
* vc.el (vc-find-revision): Set the parent buffer.
Use when instead of if.
* progmodes/python.el (info-lookup-maybe-add-help): * progmodes/python.el (info-lookup-maybe-add-help):
* progmodes/ps-mode.el (doc-view-minor-mode): * progmodes/ps-mode.el (doc-view-minor-mode):
* mail/emacsbug.el (Info-menu, Info-goto-node): * mail/emacsbug.el (Info-menu, Info-goto-node):
......
...@@ -2069,11 +2069,16 @@ If `F.~REV~' already exists, use it instead of checking it out again." ...@@ -2069,11 +2069,16 @@ If `F.~REV~' already exists, use it instead of checking it out again."
(with-current-buffer filebuf (with-current-buffer filebuf
(vc-call find-revision file revision outbuf)))) (vc-call find-revision file revision outbuf))))
(setq failed nil)) (setq failed nil))
(if (and failed (file-exists-p filename)) (when (and failed (file-exists-p filename))
(delete-file filename)))) (delete-file filename))))
(vc-mode-line file)) (vc-mode-line file))
(message "Checking out %s...done" filename))) (message "Checking out %s...done" filename)))
(find-file-noselect filename))) (let ((result-buf (find-file-noselect filename)))
(with-current-buffer result-buf
;; Set the parent buffer so that things like
;; C-x v g, C-x v l, ... etc work.
(setq vc-parent-buffer filebuf))
result-buf)))
;; Header-insertion code ;; Header-insertion code
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment