branch: externals/beardbolt
commit 3cace942b8e5641d15ee69cd205d10c5e7243386
Author: João Távora <[email protected]>
Commit: João Távora <[email protected]>
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))