diff options
| author | Glenn Morris | 2016-01-28 17:45:50 -0500 |
|---|---|---|
| committer | Glenn Morris | 2016-01-28 17:45:50 -0500 |
| commit | c51943d71d99b7196957292e2cf9a9c554ec4d21 (patch) | |
| tree | a5a98dd5e1081a2faa8eddb376ac74214ba206f8 | |
| parent | af5cff969e2a07e85735c05049aa8e1a475eac5e (diff) | |
| download | emacs-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.texi | 3 | ||||
| -rw-r--r-- | lisp/custom.el | 1 |
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} |
| 335 | Use @var{type} as the data type for this option. It specifies which | 335 | Use @var{type} as the data type for this option. It specifies which |
| 336 | values are legitimate, and how to display the value | 336 | values are legitimate, and how to display the value |
| 337 | (@pxref{Customization Types}). | 337 | (@pxref{Customization Types}). Every @code{defcustom} should specify |
| 338 | a 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 | |||
| 224 | The following keywords are meaningful: | 224 | The 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 |