aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorChong Yidong2010-01-09 15:53:55 -0500
committerChong Yidong2010-01-09 15:53:55 -0500
commitfa7b5f7b98eed1babf0820f08400a04c4c461517 (patch)
tree63f86ac1e11a05825ff446bf54330e6fbf8b9743 /lisp/progmodes
parente5a29a107058c1778796cdb13adeb1e52457455b (diff)
downloademacs-fa7b5f7b98eed1babf0820f08400a04c4c461517.tar.gz
emacs-fa7b5f7b98eed1babf0820f08400a04c4c461517.zip
Fix compile-command's safe-local-variable condition.
* progmodes/compile.el: Don't treat compile-command as safe if compilation-read-command might be nil (Bug#4218).
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/compile.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index cb2b8986f22..6b2b30edb96 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -603,7 +603,7 @@ You might also use mode hooks to specify it in certain modes, like this:
603 (file-name-sans-extension buffer-file-name))))))" 603 (file-name-sans-extension buffer-file-name))))))"
604 :type 'string 604 :type 'string
605 :group 'compilation) 605 :group 'compilation)
606;;;###autoload(put 'compile-command 'safe-local-variable 'stringp) 606;;;###autoload(put 'compile-command 'safe-local-variable (lambda (a) (and (stringp a) (or (not (boundp 'compilation-read-command)) compilation-read-command))))
607 607
608;;;###autoload 608;;;###autoload
609(defcustom compilation-disable-input nil 609(defcustom compilation-disable-input nil