Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
48b43130
Commit
48b43130
authored
Nov 20, 2007
by
Dan Nicolaescu
Browse files
(vc-find-revision): Set the parent buffer.
Use when instead of if.
parent
6d00e226
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/vc.el
lisp/vc.el
+8
-3
No files found.
lisp/ChangeLog
View file @
48b43130
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/ps-mode.el (doc-view-minor-mode):
* mail/emacsbug.el (Info-menu, Info-goto-node):
...
...
lisp/vc.el
View file @
48b43130
...
...
@@ -2069,11 +2069,16 @@ If `F.~REV~' already exists, use it instead of checking it out again."
(with-current-buffer filebuf
(vc-call find-revision file revision outbuf))))
(setq failed nil))
(
if
(and failed (file-exists-p filename))
(
when
(and failed (file-exists-p filename))
(delete-file filename))))
(vc-mode-line file))
(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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment