emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 78ff925: * lisp/simple.el (next-error-no-select): S


From: Juri Linkov
Subject: [Emacs-diffs] master 78ff925: * lisp/simple.el (next-error-no-select): Set display-buffer-overriding-action
Date: Wed, 12 Sep 2018 17:47:09 -0400 (EDT)

branch: master
commit 78ff92597ef6e9493a4f06cd9bb5eb4fd1faff5f
Author: Juri Linkov <address@hidden>
Commit: Juri Linkov <address@hidden>

    * lisp/simple.el (next-error-no-select): Set 
display-buffer-overriding-action
    
    to display-buffer-reuse-window (bug#32607).
---
 lisp/simple.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisp/simple.el b/lisp/simple.el
index 0ccf2f1..ffd7fcc 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -385,7 +385,11 @@ select the source buffer."
   (interactive "p")
   (let ((next-error-highlight next-error-highlight-no-select))
     (next-error n))
-  (pop-to-buffer next-error-last-buffer))
+  (let ((display-buffer-overriding-action '(display-buffer-reuse-window)))
+    ;; Override user customization such as display-buffer-same-window
+    ;; and use display-buffer-reuse-window to ensure next-error-last-buffer
+    ;; is displayed somewhere, not necessarily in the same window (bug#32607).
+    (pop-to-buffer next-error-last-buffer)))
 
 (defun previous-error-no-select (&optional n)
   "Move point to the previous error in the `next-error' buffer and highlight 
match.



reply via email to

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