diff lisp/vc/vc-annotate.el @ 109409:ff42e5c5f789

Merge from mainline.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Wed, 16 Jun 2010 22:49:55 +0000
parents e93288477c43 6c39bda25895
children a9586dc942d5
line wrap: on
line diff
--- a/lisp/vc/vc-annotate.el	Tue Jun 15 22:55:36 2010 +0000
+++ b/lisp/vc/vc-annotate.el	Wed Jun 16 22:49:55 2010 +0000
@@ -316,7 +316,7 @@
 
 ;;;###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
@@ -326,7 +326,7 @@
 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
@@ -348,9 +348,9 @@
      (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