From 2efe7e10f3904a8a80b5d967f46c58b0b31fd853 Mon Sep 17 00:00:00 2001 From: Dominik Kellner Date: Fri, 20 Sep 2024 16:13:59 +0200 Subject: [PATCH] Use the buffer's last command for recompile This makes `justl-recompile' execute the last just target that was executed in that buffer, not the last one across all buffers. Without this, using `justl-recompile' with `justl-per-recipe-buffer' has really surprising behaviour. --- justl.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/justl.el b/justl.el index 11a03ef..32f0445 100644 --- a/justl.el +++ b/justl.el @@ -242,7 +242,7 @@ controls if we are going to display the process status on mode line." (eq compilation-scroll-output 'first-error)) (set (make-local-variable 'compilation-auto-jump-to-next) t))))) -(defvar justl--compile-command nil +(defvar-local justl--compile-command nil "Last shell command used to do a compilation; default for next compilation.") (defun justl--make-process (command &optional args)