]> git.eshelyaron.com Git - emacs.git/commitdiff
(log-view-annotate-version): Let vc-annotate manage windows instead
authorChong Yidong <cyd@stupidchicken.com>
Mon, 24 Nov 2008 21:19:56 +0000 (21:19 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 24 Nov 2008 21:19:56 +0000 (21:19 +0000)
of calling switch-to-buffer.

lisp/log-view.el

index 097471c514c48e0aa010a089ba1be4ea402b4826..0912462b92e950932bbf181837f960e52ecaf23b 100644 (file)
@@ -474,10 +474,10 @@ log entries."
       (error "Multiple files shown in this buffer, cannot use this command here")))
   (save-excursion
     (goto-char pos)
-    (switch-to-buffer (vc-annotate (if log-view-per-file-logs
-                                      (log-view-current-file)
-                                    (car log-view-vc-fileset))
-                                  (log-view-current-tag)))))
+    (vc-annotate (if log-view-per-file-logs
+                    (log-view-current-file)
+                  (car log-view-vc-fileset))
+                (log-view-current-tag))))
 
 ;;
 ;; diff