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
ac0aae44
Commit
ac0aae44
authored
Nov 26, 2001
by
André Spiegel
Browse files
(vc-find-version): New function.
(vc-version-other-window): Redefined in terms of the above.
parent
8868cc34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
lisp/vc.el
lisp/vc.el
+9
-5
No files found.
lisp/vc.el
View file @
ac0aae44
...
...
@@ -6,7 +6,7 @@
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
;; Keywords: tools
;; $Id: vc.el,v 1.32
0
2001/11/
15
10:
31:17
spiegel Exp $
;; $Id: vc.el,v 1.32
1
2001/11/
23
10:
11:29
spiegel Exp $
;; This file is part of GNU Emacs.
...
...
@@ -1908,14 +1908,18 @@ If `F.~REV~' already exists, use it instead of checking it out again."
(
let*
((
file
buffer-file-name
)
(
version
(
if
(
string-equal
rev
""
)
(
vc-workfile-version
file
)
rev
))
(
automatic-backup
(
vc-version-backup-file-name
file
version
))
(
manual-backup
(
vc-version-backup-file-name
file
version
'manual
)))
rev
)))
(
switch-to-buffer-other-window
(
vc-find-version
file
version
))))
(
defun
vc-find-version
(
file
version
)
"Read VERSION of FILE into a buffer and return the buffer."
(
let
((
automatic-backup
(
vc-version-backup-file-name
file
version
))
(
manual-backup
(
vc-version-backup-file-name
file
version
'manual
)))
(
unless
(
file-exists-p
manual-backup
)
(
if
(
file-exists-p
automatic-backup
)
(
rename-file
automatic-backup
manual-backup
nil
)
(
vc-call
checkout
file
nil
version
manual-backup
)))
(
find-file-
other-window
manual-backup
)))
(
find-file-
noselect
manual-backup
)))
;; 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