1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

; * lisp/progmodes/project.el (project-compile): Fix last change.

This commit is contained in:
Sean Whitton 2025-11-30 18:32:51 +00:00
parent 30e178e7cb
commit 0f90cc033d

View file

@ -1659,8 +1659,9 @@ If non-nil, it overrides `compilation-buffer-name-function' for
(when orig-current-buffer
(kill-local-variable 'compile-command))
(unwind-protect (call-interactively #'compile)
(with-current-buffer orig-current-buffer
(setq-local compile-command orig-compile-command)))))
(when orig-current-buffer
(with-current-buffer orig-current-buffer
(setq-local compile-command orig-compile-command))))))
;;;###autoload
(defun project-recompile (&optional edit-command)