]> git.eshelyaron.com Git - emacs.git/commitdiff
Reformulate compile-command condition
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 31 Jul 2022 09:07:04 +0000 (11:07 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 31 Jul 2022 09:17:29 +0000 (11:17 +0200)
* lisp/progmodes/compile.el: Reformulate to avoid a byte-compile
warning when compiling loaddefs.el.

lisp/progmodes/compile.el

index a665fccc733c94bdcf89934c0064dca7ae7ea6aa..9ecea7d21b639078e3d4221f8ff7915bf1a6a21a 100644 (file)
@@ -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