]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-ensure-vc-buffer): Only change current-buffer, not the window config.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 11 Apr 2006 23:05:31 +0000 (23:05 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 11 Apr 2006 23:05:31 +0000 (23:05 +0000)
(vc-annotate-display-select): Select the buffer so that current-buffer
(and selected-window) is the output buffer at the end of vc-annotate.

lisp/ChangeLog
lisp/vc.el

index dbc1231354c339656eb2467a570562d6dc9c60b2..b7dcf0229966ac9bff7eca2ca71112f92fd77a25 100644 (file)
@@ -1,6 +1,13 @@
+2006-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * vc.el (vc-ensure-vc-buffer): Only change current-buffer, not the
+       window configuration.
+       (vc-annotate-display-select): Select the buffer so that current-buffer
+       (and selected-window) is the output buffer at the end of vc-annotate.
+
 2006-04-11  J.D. Smith  <jdsmith@as.arizona.edu>
 
-       * vc.el (vc-annotate-color-map): Added custom TTY color map for
+       * vc.el (vc-annotate-color-map): Add custom TTY color map for
        8-color terminals, to use all of the colors in a sensible order.
        256-color terminals work well with the standard map.
        (vc-annotate-lines): Only strip the first color character if it
index 96d85e7b1e0eedca6700c941f34091f3c1a4865b..19b2f0f4a72b6184466089e7fdd8e702beea8642 100644 (file)
@@ -886,7 +886,7 @@ However, before executing BODY, find FILE, and after BODY, save buffer."
   (if vc-dired-mode
       (set-buffer (find-file-noselect (dired-get-filename)))
     (while vc-parent-buffer
-      (pop-to-buffer vc-parent-buffer))
+      (set-buffer vc-parent-buffer))
     (if (not buffer-file-name)
        (error "Buffer %s is not associated with a file" (buffer-name))
       (if (not (vc-backend buffer-file-name))
@@ -3047,9 +3047,7 @@ BUFFER.  `vc-annotate-display-mode' specifies the highlighting mode to
 use; you may override this using the second optional arg MODE."
   (interactive)
   (if mode (setq vc-annotate-display-mode mode))
-  (when buffer
-    (set-buffer buffer)
-    (display-buffer buffer))
+  (pop-to-buffer (or buffer (current-buffer)))
   (cond ((null vc-annotate-display-mode)
          ;; The ratio is global, thus relative to the global color-map.
          (kill-local-variable 'vc-annotate-color-map)