emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 c51943d: * lisp/custom.el (defcustom): Doc fix.


From: Glenn Morris
Subject: [Emacs-diffs] emacs-25 c51943d: * lisp/custom.el (defcustom): Doc fix.
Date: Thu, 28 Jan 2016 22:45:55 +0000

branch: emacs-25
commit c51943d71d99b7196957292e2cf9a9c554ec4d21
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>

    * lisp/custom.el (defcustom): Doc fix.
    
    * doc/lispref/customize.texi (Variable Definitions):
    Defcustom should always have a type.
---
 doc/lispref/customize.texi |    3 ++-
 lisp/custom.el             |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/doc/lispref/customize.texi b/doc/lispref/customize.texi
index 1f207dc..994c346 100644
--- a/doc/lispref/customize.texi
+++ b/doc/lispref/customize.texi
@@ -334,7 +334,8 @@ macro accepts the following keywords:
 @item :type @var{type}
 Use @var{type} as the data type for this option.  It specifies which
 values are legitimate, and how to display the value
-(@pxref{Customization Types}).
+(@pxref{Customization Types}).  Every @code{defcustom} should specify
+a value for this keyword.
 
 @item :options @var{value-list}
 @kindex address@hidden, @code{defcustom} keyword}
diff --git a/lisp/custom.el b/lisp/custom.el
index f84aed2..550ba44 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -224,6 +224,7 @@ The remaining arguments to `defcustom' should have the form
 The following keywords are meaningful:
 
 :type  VALUE should be a widget type for editing the symbol's value.
+       Every `defcustom' should specify a value for this keyword.
 :options VALUE should be a list of valid members of the widget type.
 :initialize
        VALUE should be a function used to initialize the



reply via email to

[Prev in Thread] Current Thread [Next in Thread]