[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 02c14216db 1/3: Reformulate compile-command condition
From: |
Lars Ingebrigtsen |
Subject: |
master 02c14216db 1/3: Reformulate compile-command condition |
Date: |
Sun, 31 Jul 2022 05:17:36 -0400 (EDT) |
branch: master
commit 02c14216db46ca3402fdb34062f83132dc3cc1f7
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Reformulate compile-command condition
* lisp/progmodes/compile.el: Reformulate to avoid a byte-compile
warning when compiling loaddefs.el.
---
lisp/progmodes/compile.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index a665fccc73..9ecea7d21b 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -860,7 +860,7 @@ You might also use mode hooks to specify it in certain
modes, like this:
It's often useful to leave a space at the end of the value."
:type 'string)
-;;;###autoload(put 'compile-command 'safe-local-variable (lambda (a) (and
(stringp a) (or (not (boundp 'compilation-read-command))
compilation-read-command))))
+;;;###autoload(put 'compile-command 'safe-local-variable (lambda (a) (and
(stringp a) (if (boundp 'compilation-read-command) compilation-read-command
t))))
;;;###autoload
(defcustom compilation-disable-input nil