aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJuanma Barranquero2014-03-19 00:31:17 +0100
committerJuanma Barranquero2014-03-19 00:31:17 +0100
commit6b88e570d87bbf8e3e36f6cb25a3791d047e8c35 (patch)
treeb112a3e1599406ab812dc1c42c01a86443db72c4 /doc
parent4d99c93d27d47ff9f5fb941fe92e3b4b9cf5cf43 (diff)
downloademacs-6b88e570d87bbf8e3e36f6cb25a3791d047e8c35.tar.gz
emacs-6b88e570d87bbf8e3e36f6cb25a3791d047e8c35.zip
Recommend not modifying :set's value arg in defcustom (bug#16755).
* doc/lispref/customize.texi (Variable Definitions): * lisp/custom.el (defcustom): Recommend avoiding destructive modification of the value argument of :set.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/customize.texi5
2 files changed, 8 insertions, 2 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 723bd1188c6..2749a521c9a 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12014-03-18 Juanma Barranquero <lekktu@gmail.com>
2
3 * customize.texi (Variable Definitions): Recommend avoiding
4 destructive modification of the value argument of :set (bug#16755).
5
12014-03-18 Stefan Monnier <monnier@iro.umontreal.ca> 62014-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * modes.texi (Auto-Indentation): Mention electric-indent variables. 8 * modes.texi (Auto-Indentation): Mention electric-indent variables.
diff --git a/doc/lispref/customize.texi b/doc/lispref/customize.texi
index 094beef01ec..0c6497fb4ef 100644
--- a/doc/lispref/customize.texi
+++ b/doc/lispref/customize.texi
@@ -353,8 +353,9 @@ option when using the Customize interface. The function
353@var{setfunction} should take two arguments, a symbol (the option 353@var{setfunction} should take two arguments, a symbol (the option
354name) and the new value, and should do whatever is necessary to update 354name) and the new value, and should do whatever is necessary to update
355the value properly for this option (which may not mean simply setting 355the value properly for this option (which may not mean simply setting
356the option as a Lisp variable). The default for @var{setfunction} is 356the option as a Lisp variable); preferably, though, it should not
357@code{set-default}. 357modify its value argument destructively. The default for
358@var{setfunction} is @code{set-default}.
358 359
359If you specify this keyword, the variable's documentation string 360If you specify this keyword, the variable's documentation string
360should describe how to do the same job in hand-written Lisp code. 361should describe how to do the same job in hand-written Lisp code.