Commit 5a65439e authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

Clarify evaluation of :type arg in defcustom.

parent 90620d3d
......@@ -344,9 +344,10 @@ which values are legitimate and (2) how to display the value in the
customization buffer for editing.
You specify the customization type in @code{defcustom} with the
@code{:type} keyword. The argument of @code{:type} is evaluated; since
types that vary at run time are rarely useful, normally you use a quoted
constant. For example:
@code{:type} keyword. The argument of @code{:type} is evaluated, but
only once when the @code{defcustom} is executed, so it isn't useful
for the value to vary. Normally we use a quoted constant. For
example:
@example
(defcustom diff-command "diff"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment