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

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

[elpa] externals/beardbolt 3514e6f288 237/323: rmsbolt-compile: Only ask


From: ELPA Syncer
Subject: [elpa] externals/beardbolt 3514e6f288 237/323: rmsbolt-compile: Only ask to save the current buffer
Date: Thu, 9 Mar 2023 10:58:34 -0500 (EST)

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

    rmsbolt-compile: Only ask to save the current buffer
    
    Other buffers with `rmsbolt-mode` enabled are usually unrelated to the
    current compilation, so don't ask to save them.
---
 rmsbolt.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/rmsbolt.el b/rmsbolt.el
index 20b9755d9c..e403a7db26 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -1468,7 +1468,9 @@ and return it."
 (defun rmsbolt-compile ()
   "Compile the current rmsbolt buffer."
   (interactive)
-  (save-some-buffers nil (lambda () rmsbolt-mode))
+  (when (and (buffer-modified-p)
+             (yes-or-no-p (format "Save buffer %s? " (buffer-name))))
+    (save-buffer))
   (rmsbolt--gen-temp)
   ;; Current buffer = src-buffer at this point
   (setq rmsbolt-src-buffer (current-buffer))



reply via email to

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