[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/beardbolt 0f3293c607 224/323: Early-exit `when-let` if
From: |
ELPA Syncer |
Subject: |
[elpa] externals/beardbolt 0f3293c607 224/323: Early-exit `when-let` if output-buffer has no window |
Date: |
Thu, 9 Mar 2023 10:58:33 -0500 (EST) |
branch: externals/beardbolt
commit 0f3293c60736d9ed89d83a2d4b65615df775ff77
Author: Erik Arvstedt <erik.arvstedt@gmail.com>
Commit: Erik Arvstedt <erik.arvstedt@gmail.com>
Early-exit `when-let` if output-buffer has no window
In this case we don't need to calculate `line-scroll`.
---
rmsbolt.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rmsbolt.el b/rmsbolt.el
index b578c18ab9..30b9a8a6ed 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -1692,6 +1692,7 @@ Are you running two compilations at the same time?"))
(when-let ((scroll-buffer (if scroll-src-buffer-p
src-buffer
output-buffer))
+ (window (get-buffer-window scroll-buffer))
(line-scroll (if scroll-src-buffer-p
src-current-line
(progn
@@ -1699,8 +1700,7 @@ Are you running two compilations at the same time?"))
;; If forcing, pick the min line
instead
(if force
(car-safe (last asm-lines))
- (cl-first asm-lines))))))
- (window (get-buffer-window scroll-buffer)))
+ (cl-first asm-lines)))))))
(with-selected-window window
(rmsbolt--goto-line line-scroll)
;; If we scrolled, recenter
- [elpa] externals/beardbolt d51e71f894 188/323: Use special named buffer for compilation, (continued)
- [elpa] externals/beardbolt d51e71f894 188/323: Use special named buffer for compilation, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 712981e16c 187/323: Remove langauges godbolt has added support for, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt ff496660cc 205/323: Migrate irc channel to libera, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 42edd955ae 201/323: Move filename massaging out of hot loop, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 972e6f41a2 207/323: Merge branch 'faerryn-master-patch-16796' into 'master', ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt bc0652e56e 197/323: Add support for indirect buffers, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt df7451ee35 191/323: Avoid insert on new file creation, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 95130c1421 203/323: Update copyright and headers, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt f098a467c5 206/323: Add missing `:keymap' key to `define-minor-mode rmsbolt'., ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt c88196439f 211/323: Support Zig 0.9, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 0f3293c607 224/323: Early-exit `when-let` if output-buffer has no window,
ELPA Syncer <=
- [elpa] externals/beardbolt fffadc0b86 214/323: Allow configuring objdump binary in disassembly mode, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 68af010f02 064/323: Add support for haskell, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt f0be36f4b5 063/323: Update link, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 8213e24af3 070/323: Update README, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt e71061f509 075/323: Fix readme, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt c442960f16 076/323: Add an easy way to turn off automatic recompilation, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt a191eb9c73 071/323: Add basic Java support, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 77398fec4f 078/323: Clarify starter/ folder message, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 8cfb5b1968 086/323: Upgrade information and docs for melpa, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt cfe809f979 095/323: Revert regexp changes, ELPA Syncer, 2023/03/09