[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/vc.el

From: Thien-Thi Nguyen
Subject: [Emacs-diffs] Changes to emacs/lisp/vc.el
Date: Thu, 13 Apr 2006 13:35:55 +0000

Index: emacs/lisp/vc.el
diff -u emacs/lisp/vc.el:1.417 emacs/lisp/vc.el:1.418
--- emacs/lisp/vc.el:1.417      Thu Apr 13 13:29:22 2006
+++ emacs/lisp/vc.el    Thu Apr 13 13:35:55 2006
@@ -3107,7 +3107,11 @@
   (setq vc-annotate-display-mode display-mode) ;Not sure why.  --Stef
   (let* ((temp-buffer-name (format "*Annotate %s (rev %s)*" (buffer-name) rev))
-         (temp-buffer-show-function 'vc-annotate-display-select))
+         (temp-buffer-show-function 'vc-annotate-display-select)
+         ;; If BUF is specified, we presume the caller maintains current line,
+         ;; so we don't need to do it here.  This implementation may give
+         ;; strange results occasionally in the case of REV != WORKFILE-REV.
+         (current-line (unless buf (line-number-at-pos))))
     (message "Annotating...")
     ;; If BUF is specified it tells in which buffer we should put the
     ;; annotations.  This is used when switching annotations to another
@@ -3129,6 +3133,8 @@
         (set (make-local-variable 'vc-annotate-parent-rev) rev)
         (set (make-local-variable 'vc-annotate-parent-display-mode)
+    (when current-line
+      (goto-line current-line temp-buffer-name))
     (message "Annotating... done")))
 (defun vc-annotate-prev-version (prefix)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]