Skip to content

Commit

Permalink
Use the buffer's last command for recompile
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dkellner committed Sep 20, 2024
1 parent 9bf1fc6 commit 2efe7e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion justl.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2efe7e1

Please sign in to comment.