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
08eab195
Commit
08eab195
authored
Sep 17, 2001
by
André Spiegel
Browse files
(vc-annotate): Use current workfile version explicitly as a default,
suggested by Gustav Hallberg <gustav@virtutech.se>.
parent
a5f01960
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
lisp/vc.el
lisp/vc.el
+17
-15
No files found.
lisp/vc.el
View file @
08eab195
...
...
@@ -6,7 +6,7 @@
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
;; Keywords: tools
;; $Id: vc.el,v 1.30
7
2001/09/0
4
1
2
:5
2:10 gerd
Exp $
;; $Id: vc.el,v 1.30
8
2001/09/
1
0 1
7
:5
1:04 spiegel
Exp $
;; This file is part of GNU Emacs.
...
...
@@ -2876,18 +2876,20 @@ mode-specific menu. `vc-annotate-color-map' and
colors. `vc-annotate-background' specifies the background color."
(
interactive
"P"
)
(
vc-ensure-vc-buffer
)
(
let
((
temp-buffer-name
(
concat
"*Annotate "
(
buffer-name
)
"*"
))
(
temp-buffer-show-function
'vc-annotate-display
)
(
vc-annotate-version
(
if
prefix
(
read-string
(
format
"Annotate from version: (default %s) "
(
vc-workfile-version
(
buffer-file-name
)))
nil
nil
(
vc-workfile-version
(
buffer-file-name
)))))
(
vc-annotate-ratio
(
if
prefix
(
string-to-number
(
read-string
"Annotate ratio: (default 1.0) "
nil
nil
"1.0"
))))
(
vc-annotate-backend
(
vc-backend
(
buffer-file-name
))))
(
let*
((
temp-buffer-name
(
concat
"*Annotate "
(
buffer-name
)
"*"
))
(
temp-buffer-show-function
'vc-annotate-display
)
(
rev
(
vc-workfile-version
(
buffer-file-name
)))
(
vc-annotate-version
(
if
prefix
(
read-string
(
format
"Annotate from version: (default %s) "
rev
)
nil
nil
rev
)
rev
))
(
vc-annotate-ratio
(
if
prefix
(
string-to-number
(
read-string
"Annotate ratio: (default 1.0) "
nil
nil
"1.0"
))
1.0
))
(
vc-annotate-backend
(
vc-backend
(
buffer-file-name
))))
(
message
"Annotating..."
)
(
if
(
not
(
vc-find-backend-function
vc-annotate-backend
'annotate-command
))
(
error
"Sorry, annotating is not implemented for %s"
...
...
@@ -2901,8 +2903,8 @@ colors. `vc-annotate-background' specifies the background color."
;; (only after `with-output-to-temp-buffer'.)
(
setq
vc-annotate-buffers
(
append
vc-annotate-buffers
(
list
(
cons
(
get-buffer
temp-buffer-name
)
vc-annotate-backend
))))
)
(
message
"Annotating... done"
))
(
list
(
cons
(
get-buffer
temp-buffer-name
)
vc-annotate-backend
))))
(
message
"Annotating... done"
))
)
(
defun
vc-annotate-car-last-cons
(
a-list
)
...
...
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