aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/vc-annotate.el
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2010-06-15 00:51:42 -0400
committerStefan Monnier <[email protected]>2010-06-15 00:51:42 -0400
commit12755d08466fd26fcba7d9b9c7ed4f466f4ad2ca (patch)
tree707087cd72184c8f5b8b29775298fee924b6b3bb /lisp/vc-annotate.el
parent95344a11bf9cc3a26985892bba37176dd0972a04 (diff)
* lisp/vc-annotate.el (vc-annotate): Use vc-read-revision.
Diffstat (limited to 'lisp/vc-annotate.el')
-rw-r--r--lisp/vc-annotate.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/vc-annotate.el b/lisp/vc-annotate.el
index 7183944355..437081293c 100644
--- a/lisp/vc-annotate.el
+++ b/lisp/vc-annotate.el
@@ -315,7 +315,7 @@ use; you may override this using the second optional arg MODE."
;;;###autoload
(defun vc-annotate (file rev &optional display-mode buf move-point-to)
- "Display the edit history of the current file using colors.
+ "Display the edit history of the current FILE using colors.
This command creates a buffer that shows, for each line of the current
file, when it was last edited and by whom. Additionally, colors are
@@ -325,7 +325,7 @@ default, the time scale stretches back one year into the past;
everything that is older than that is shown in blue.
With a prefix argument, this command asks two questions in the
-minibuffer. First, you may enter a revision number; then the buffer
+minibuffer. First, you may enter a revision number REV; then the buffer
displays and annotates that revision instead of the working revision
\(type RET in the minibuffer to leave that default unchanged). Then,
you are prompted for the time span in days which the color range
@@ -347,9 +347,9 @@ mode-specific menu. `vc-annotate-color-map' and
(list buffer-file-name
(let ((def (vc-working-revision buffer-file-name)))
(if (null current-prefix-arg) def
- (read-string
+ (vc-read-revision
(format "Annotate from revision (default %s): " def)
- nil nil def)))
+ (list buffer-file-name) nil def)))
(if (null current-prefix-arg)
vc-annotate-display-mode
(float (string-to-number