Variable: compilation-read-command

compilation-read-command is a customizable variable defined in compile.el.gz.

Value

t

Documentation

Non-nil means M-x compile (compile) reads the compilation command to use.

Otherwise, M-x compile (compile) just uses the value of compile-command.

Note that changing this to nil may be a security risk, because a file might define a malicious compile-command as a file local variable, and you might not notice. Therefore, compile-command is considered unsafe if this variable is nil.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/compile.el.gz
(defcustom compilation-read-command t
  "Non-nil means \\[compile] reads the compilation command to use.
Otherwise, \\[compile] just uses the value of `compile-command'.

Note that changing this to nil may be a security risk, because a
file might define a malicious `compile-command' as a file local
variable, and you might not notice.  Therefore, `compile-command'
is considered unsafe if this variable is nil."
  :type 'boolean)