branch: externals/beardbolt commit 526ed37d71c1d5ed28c78e512995c6e611f26f04 Author: Jay Kamat <jaygka...@gmail.com> Commit: Jay Kamat <jaygka...@gmail.com>
Don't add overlays to non-rmsbolt-mode buffers --- rmsbolt.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rmsbolt.el b/rmsbolt.el index 4760413ec9..53654acf60 100644 --- a/rmsbolt.el +++ b/rmsbolt.el @@ -1055,7 +1055,8 @@ Argument STR compilation finish status." (src-buffer (buffer-local-value 'rmsbolt-src-buffer (current-buffer))) ;; Don't run on unsaved buffers - (should-run (not (buffer-modified-p src-buffer))) + (should-run (and (not (buffer-modified-p src-buffer)) + (buffer-local-value 'rmsbolt-mode src-buffer))) (output-buffer (get-buffer-create rmsbolt-output-buffer)) (current-line (line-number-at-pos)) (src-current-line