emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/beardbolt 3cace942b8 251/323: Fix buffer selection prob


From: ELPA Syncer
Subject: [elpa] externals/beardbolt 3cace942b8 251/323: Fix buffer selection problems
Date: Thu, 9 Mar 2023 10:58:35 -0500 (EST)

branch: externals/beardbolt
commit 3cace942b8e5641d15ee69cd205d10c5e7243386
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Fix buffer selection problems
    
    No more spurious jumps to the assembler buffer and unexpected display
    of the assembler buffer in the same window.  There are still problems
    with compile.el not cleaning up the process correctly, though.
    
    * rmsbolt.el: Fix buffer selection issues
---
 rmsbolt.el | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/rmsbolt.el b/rmsbolt.el
index d263ad5272..98c79fd394 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -1477,15 +1477,11 @@ Argument STOPPED The compilation was stopped to start 
another compilation."
                  
                  (rmsbolt--rainbowize ht src-buffer)
                  (setq rmsbolt-src-buffer src-buffer)
-                 (display-buffer (current-buffer))
+                 (display-buffer (current-buffer) '(nil (inhibit-same-window . 
t)))
                  (run-at-time 0 nil #'rmsbolt-update-overlays))))
             (t ; Compilation failed
              ;; Display compilation buffer
-             (if rmsbolt--automated-compile
-                 (display-buffer buffer)
-               ;; If the compilation was directly started by the user,
-               ;; select the compilation buffer.
-               (pop-to-buffer buffer))
+             (display-buffer buffer '(nil (inhibit-same-window . t)))
              ;; TODO find a cleaner way to disable overlays.
              (with-current-buffer src-buffer
                (setq rmsbolt-line-mapping nil))



reply via email to

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