[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lispref/customize.texi,v
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lispref/customize.texi,v |
Date: |
Sun, 24 Dec 2006 16:36:22 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Richard M. Stallman <rms> 06/12/24 16:36:22
Index: customize.texi
===================================================================
RCS file: /cvsroot/emacs/emacs/lispref/customize.texi,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -b -r1.63 -r1.64
--- customize.texi 17 Dec 2006 22:20:40 -0000 1.63
+++ customize.texi 24 Dec 2006 16:36:22 -0000 1.64
@@ -418,18 +418,18 @@
If a customization item has a type such as @code{hook} or
@code{alist}, which supports @code{:options}, you can add additional
values to the list from outside the @code{defcustom} declaration by
-calling @code{custom-add-option}. For example, if you define a
+calling @code{custom-add-frequent-value}. For example, if you define a
function @code{my-lisp-mode-initialization} intended to be called from
@code{emacs-lisp-mode-hook}, you might want to add that to the list of
reasonable values for @code{emacs-lisp-mode-hook}, but not by editing
its definition. You can do it thus:
@example
-(custom-add-option 'emacs-lisp-mode-hook
+(custom-add-frequent-value 'emacs-lisp-mode-hook
'my-lisp-mode-initialization)
@end example
address@hidden custom-add-option symbol value
address@hidden custom-add-frequent-value symbol value
For the customization option @var{symbol}, add @var{value} to the
list of reasonable values.