From 0f90cc033d24ce64e116d7920ec3a1f2b08a370f Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 30 Nov 2025 18:32:51 +0000 Subject: [PATCH] ; * lisp/progmodes/project.el (project-compile): Fix last change. --- lisp/progmodes/project.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 38ca44bc1fb..8a128df0d16 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -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)