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

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

[elpa] externals/beardbolt 3a1e068bb8 228/323: Don't update overlays if


From: ELPA Syncer
Subject: [elpa] externals/beardbolt 3a1e068bb8 228/323: Don't update overlays if the src buffer is no longer current
Date: Thu, 9 Mar 2023 10:58:33 -0500 (EST)

branch: externals/beardbolt
commit 3a1e068bb8460686b329e774ecdf1f234c868032
Author: Erik Arvstedt <erik.arvstedt@gmail.com>
Commit: Erik Arvstedt <erik.arvstedt@gmail.com>

    Don't update overlays if the src buffer is no longer current
    
    This prevents movements in src buffers from previous compilations
    updating the overlays of the current compilation.
---
 rmsbolt.el | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/rmsbolt.el b/rmsbolt.el
index 1224c74862..3136b69de1 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -1639,12 +1639,13 @@ Are you running two compilations at the same time?"))
   of the last block."
   (when rmsbolt-mode
     (if-let ((should-run rmsbolt-use-overlays)
-             (src-buffer
-              (buffer-local-value 'rmsbolt-src-buffer (current-buffer)))
-             ;; Don't run on unsaved buffers
-             (should-run (and (not (buffer-modified-p src-buffer))
-                              (buffer-local-value 'rmsbolt-mode src-buffer)))
              (output-buffer (get-buffer rmsbolt-output-buffer))
+             (src-buffer (buffer-local-value 'rmsbolt-src-buffer 
output-buffer))
+             (should-run (and (or (eq (current-buffer) src-buffer)
+                                  (eq (current-buffer) output-buffer))
+                              ;; Don't run on unsaved buffers
+                              (not (buffer-modified-p src-buffer))
+                              (buffer-local-value 'rmsbolt-mode src-buffer)))
              (current-line (line-number-at-pos))
              (src-current-line
               (if (eq (current-buffer) src-buffer)



reply via email to

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