emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r107138: * lisp/custom.el (defcustom)


From: Chong Yidong
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r107138: * lisp/custom.el (defcustom): Doc fix.
Date: Mon, 06 Feb 2012 20:36:31 +0800
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 107138
fixes bug(s): http://debbugs.gnu.org/9711
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Mon 2012-02-06 20:36:31 +0800
message:
  * lisp/custom.el (defcustom): Doc fix.
modified:
  lisp/ChangeLog
  lisp/custom.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-02-05 16:30:51 +0000
+++ b/lisp/ChangeLog    2012-02-06 12:36:31 +0000
@@ -1,3 +1,7 @@
+2012-02-06  Chong Yidong  <address@hidden>
+
+       * custom.el (defcustom): Doc fix (Bug#9711).
+
 2012-02-05  Chong Yidong  <address@hidden>
 
        * cus-edit.el (custom-variable-reset-backup): Quote the value

=== modified file 'lisp/custom.el'
--- a/lisp/custom.el    2012-02-05 06:44:47 +0000
+++ b/lisp/custom.el    2012-02-06 12:36:31 +0000
@@ -200,10 +200,14 @@
 
 (defmacro defcustom (symbol value doc &rest args)
   "Declare SYMBOL as a customizable variable that defaults to VALUE.
+SYMBOL is the variable name; it should not be quoted.
+VALUE is an expression specifying the variable's standard value.
+This expression should not be quoted.  It is evaluated once by
+`defcustom', and the value is assigned to SYMBOL if the variable
+is unbound.  The expression may also be re-evaluated by Customize
+whenever it needs to get the variable's standard value.
 DOC is the variable documentation.
 
-Neither SYMBOL nor VALUE need to be quoted.
-If SYMBOL is not already bound, initialize it to VALUE.
 The remaining arguments should have the form
 
    [KEYWORD VALUE]...


reply via email to

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