diff options
| author | Glenn Morris | 2012-12-08 17:04:43 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-12-08 17:04:43 -0800 |
| commit | c6c08d3f8fe4d2c9e588189e46d60a30ef3e8d20 (patch) | |
| tree | 8e718fe194d3924669bdb8c4c28f74ad127ccaf9 /doc | |
| parent | 858aab4c0267bd9c3760f337e03916b238d712c1 (diff) | |
| download | emacs-c6c08d3f8fe4d2c9e588189e46d60a30ef3e8d20.tar.gz emacs-c6c08d3f8fe4d2c9e588189e46d60a30ef3e8d20.zip | |
Make eval-defun on a pre-defined defcustom call any :set function
* lisp/emacs-lisp/lisp-mode.el (eval-defun-1): Doc fix.
Respect a defcustom's :set function, if appropriate.
(eval-defun): Doc fix.
* doc/lispref/customize.texi (Variable Definitions): Mention eval-defun
on a defcustom calls the :set function when appropriate.
* etc/NEWS: Mention this.
Fixes: debbugs:109
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/customize.texi | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index a26bfdc2e4b..7238d958d8a 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-12-09 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * customize.texi (Variable Definitions): Mention eval-defun | ||
| 4 | on a defcustom calls the :set function when appropriate. | ||
| 5 | |||
| 1 | 2012-12-06 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2012-12-06 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | * doclicense.texi, gpl.texi: Update to latest version from FSF. | 8 | * doclicense.texi, gpl.texi: Update to latest version from FSF. |
diff --git a/doc/lispref/customize.texi b/doc/lispref/customize.texi index 1fb8bb3e71a..c8d09760b53 100644 --- a/doc/lispref/customize.texi +++ b/doc/lispref/customize.texi | |||
| @@ -308,8 +308,10 @@ Every @code{defcustom} should specify @code{:group} at least once. | |||
| 308 | When you evaluate a @code{defcustom} form with @kbd{C-M-x} in Emacs Lisp | 308 | When you evaluate a @code{defcustom} form with @kbd{C-M-x} in Emacs Lisp |
| 309 | mode (@code{eval-defun}), a special feature of @code{eval-defun} | 309 | mode (@code{eval-defun}), a special feature of @code{eval-defun} |
| 310 | arranges to set the variable unconditionally, without testing whether | 310 | arranges to set the variable unconditionally, without testing whether |
| 311 | its value is void. (The same feature applies to @code{defvar}.) | 311 | its value is void. (The same feature applies to @code{defvar}, |
| 312 | @xref{Defining Variables}. | 312 | @pxref{Defining Variables}.) Using @code{eval-defun} on a defcustom |
| 313 | that is already defined calls the @code{:set} function (see below), | ||
| 314 | if there is one. | ||
| 313 | 315 | ||
| 314 | If you put a @code{defcustom} in a pre-loaded Emacs Lisp file | 316 | If you put a @code{defcustom} in a pre-loaded Emacs Lisp file |
| 315 | (@pxref{Building Emacs}), the standard value installed at dump time | 317 | (@pxref{Building Emacs}), the standard value installed at dump time |