emacs-diffs
[Top][All Lists]
Advanced

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

master 8b754ca 2/2: compilation-goto-locus does not handle right display


From: Lars Ingebrigtsen
Subject: master 8b754ca 2/2: compilation-goto-locus does not handle right display-buffer
Date: Sun, 28 Mar 2021 09:19:53 -0400 (EDT)

branch: master
commit 8b754ca318cb88d9e5f437ccd919a722d345f13f
Author: pillule <pillule@riseup.net>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    compilation-goto-locus does not handle right display-buffer
    
    * lisp/progmodes/compile.el (compilation-goto-locus): Pop to the
    source buffer if the match buffer is the selected window (bug#47414).
    
    Copyright-paperwork-exempt: yes
---
 lisp/progmodes/compile.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index d23c77e..7a02c3a 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -2844,8 +2844,9 @@ and overlay is highlighted between MK and END-MK."
     (when (and (not pre-existing) w)
       (compilation-set-window-height w))
 
-    (if from-compilation-buffer
-        ;; If the compilation buffer window was selected,
+    (if (or from-compilation-buffer
+            (eq w (selected-window)))
+        ;; If the compilation buffer window is selected,
         ;; keep the compilation buffer in this window;
         ;; display the source in another window.
         (let ((pop-up-windows t))



reply via email to

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