I've tried making compile-command
buffer-local via
(defun compilation-make-locals (process)
(set (make-local-variable 'compile-command)
compile-command))
(add-hook 'compilation-start-hook 'compilation-make-locals)
but without success.
The variable compile-command
is not updated the to latest value when I interactively set a new command when doing M-x compile
.