1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00

* custom.el (custom-initialize-delay): Doc fix.

This commit is contained in:
Glenn Morris 2010-02-25 20:42:07 -08:00
parent cdbf910017
commit 90a946031a
2 changed files with 13 additions and 4 deletions

View File

@ -1,5 +1,7 @@
2010-02-26 Glenn Morris <rgm@gnu.org>
* custom.el (custom-initialize-delay): Doc fix.
* mail/sendmail.el (send-mail-function): Autoload the call
to custom-initialize-delay, not otherwise preserved in loaddefs.el.

View File

@ -113,10 +113,17 @@ For the standard setting, use `set-default'."
(defun custom-initialize-delay (symbol value)
"Delay initialization of SYMBOL to the next Emacs start.
This is used in files that are preloaded, so that the initialization is
done in the run-time context rather than the build-time context.
This also has the side-effect that the (delayed) initialization is performed
with the :setter."
This is used in files that are preloaded (or for autoloaded
variables), so that the initialization is done in the run-time
context rather than the build-time context. This also has the
side-effect that the (delayed) initialization is performed with
the :set function.
For variables in preloaded files, you can simply use this
function for the :initialize property. For autoloaded variables,
you will also need to add an autoload stanza calling this
function, and another one setting the standard-value property.
See `send-mail-function' in sendmail.el for an example."
;; Until the var is actually initialized, it is kept unbound.
;; This seemed to be at least as good as setting it to an arbitrary
;; value like nil (evaluating `value' is not an option because it