aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2016-01-28 17:45:50 -0500
committerGlenn Morris2016-01-28 17:45:50 -0500
commitc51943d71d99b7196957292e2cf9a9c554ec4d21 (patch)
treea5a98dd5e1081a2faa8eddb376ac74214ba206f8
parentaf5cff969e2a07e85735c05049aa8e1a475eac5e (diff)
downloademacs-c51943d71d99b7196957292e2cf9a9c554ec4d21.tar.gz
emacs-c51943d71d99b7196957292e2cf9a9c554ec4d21.zip
* lisp/custom.el (defcustom): Doc fix.
* doc/lispref/customize.texi (Variable Definitions): Defcustom should always have a type.
-rw-r--r--doc/lispref/customize.texi3
-rw-r--r--lisp/custom.el1
2 files changed, 3 insertions, 1 deletions
diff --git a/doc/lispref/customize.texi b/doc/lispref/customize.texi
index 1f207dce823..994c346331f 100644
--- a/doc/lispref/customize.texi
+++ b/doc/lispref/customize.texi
@@ -334,7 +334,8 @@ macro accepts the following keywords:
334@item :type @var{type} 334@item :type @var{type}
335Use @var{type} as the data type for this option. It specifies which 335Use @var{type} as the data type for this option. It specifies which
336values are legitimate, and how to display the value 336values are legitimate, and how to display the value
337(@pxref{Customization Types}). 337(@pxref{Customization Types}). Every @code{defcustom} should specify
338a value for this keyword.
338 339
339@item :options @var{value-list} 340@item :options @var{value-list}
340@kindex options@r{, @code{defcustom} keyword} 341@kindex options@r{, @code{defcustom} keyword}
diff --git a/lisp/custom.el b/lisp/custom.el
index f84aed2b135..550ba440c0f 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -224,6 +224,7 @@ The remaining arguments to `defcustom' should have the form
224The following keywords are meaningful: 224The following keywords are meaningful:
225 225
226:type VALUE should be a widget type for editing the symbol's value. 226:type VALUE should be a widget type for editing the symbol's value.
227 Every `defcustom' should specify a value for this keyword.
227:options VALUE should be a list of valid members of the widget type. 228:options VALUE should be a list of valid members of the widget type.
228:initialize 229:initialize
229 VALUE should be a function used to initialize the 230 VALUE should be a function used to initialize the