X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=man%2Fcustom.texi;h=fc3a9e46c9b93fdf4cc15c2d268bc643176f129f;hb=9846c5dbd623b60aa1ed8e7a6b45c0b9116057bc;hp=7990383fb39efe3f94baf6e56ce56d22790c276e;hpb=1e7fd761ecf5fd2208bde8e30fc6f7cbf789b7db;p=chise%2Fxemacs-chise.git.1 diff --git a/man/custom.texi b/man/custom.texi index 7990383..fc3a9e4 100644 --- a/man/custom.texi +++ b/man/custom.texi @@ -165,13 +165,13 @@ specified default value, @code{saved-value} for a value saved by the user, and @code{variable-documentation} for the documentation string. Use @code{custom-add-option} to specify that a specific function is -useful as an member of a hook. +useful as a member of a hook. @defun custom-add-option symbol option To the variable @var{symbol} add @var{option}. If @var{symbol} is a hook variable, @var{option} should be a hook -member. For other types variables, the effect is undefined." +member. For other types of variables, the effect is undefined." @end defun @node Declaring Faces, Usage for Package Authors, Declaring Variables, Top @@ -278,12 +278,24 @@ The menu is in a format applicable to @code{easy-menu-define}. @comment node-name, next, previous, up @section The Init File -When you save the customizations, call to @code{custom-set-variables}, -@code{custom-set-faces} are inserted into the file specified by -@code{custom-file}. By default @code{custom-file} is your @file{.emacs} -file. If you use another file, you must explicitly load it yourself. -The two functions will initialize variables and faces as you have -specified. +Customizations are saved to the file specified by @code{custom-file}, as +calls to @code{custom-set-variables} and @code{custom-set-faces}. + +When you save customizations, the current implementation removes the +calls to @code{custom-set-variables} and @code{custom-set-faces}, and +replaces them with code generated on the basis of the current +customization state in Emacs. + +By default @code{custom-file} is your @file{.emacs} file (for GNU Emacs +and older XEmacs) and is @file{custom.el} in the same directory as +@file{init.el} (in XEmacs 21.4 and later). If you use another file, you +must explicitly load it yourself. + +As of XEmacs 21.4.7, when @code{custom-file} is present, it is loaded +@emph{after} @file{init.el}. This is likely to change in the future, +because (1) actions in @file{init.el} often would like to depend on +customizations for consistent appearance and (2) Custom is quite brutal +about enforcing its idea of the correct values at initialization. @node Wishlist, , The Init File, Top @comment node-name, next, previous, up