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

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

[nongnu] elpa/zig-mode 42aa16cac2 2/2: Save buffers before running zig c


From: ELPA Syncer
Subject: [nongnu] elpa/zig-mode 42aa16cac2 2/2: Save buffers before running zig commands
Date: Sun, 3 Nov 2024 10:00:57 -0500 (EST)

branch: elpa/zig-mode
commit 42aa16cac26cb62768d3cba9854af904c35dbbf9
Author: vent <ventlark@gmail.com>
Commit: Joachim Schmidt <joachim.schmidt557@outlook.com>

    Save buffers before running zig commands
    
    This ensures our source files are in sync before zig reads them,
    otherwise zig may implicitly compile out-of-date source files.
---
 zig-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/zig-mode.el b/zig-mode.el
index 8db326fc1c..b9b61e77f3 100644
--- a/zig-mode.el
+++ b/zig-mode.el
@@ -67,6 +67,7 @@
   "Use compile command to execute a zig CMD with ARGS if given.
 If given a SOURCE, execute the CMD on it."
   (let ((cmd-args (if source (cons source args) args)))
+    (save-some-buffers)
     (compilation-start (mapconcat 'shell-quote-argument
                                   `(,zig-zig-bin ,cmd ,@cmd-args) " "))))
 



reply via email to

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