From d78b75dd4de4c40e1c2cb51906d971801ffd57e9 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 24 Dec 2006 16:36:26 +0000 Subject: [PATCH] (Variable Definitions): Document new name custom-add-frequent-value. --- lispref/ChangeLog | 5 +++++ lispref/customize.texi | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lispref/ChangeLog b/lispref/ChangeLog index 39975f4e9e9..1e93fe189e0 100644 --- a/lispref/ChangeLog +++ b/lispref/ChangeLog @@ -1,3 +1,8 @@ +2006-12-24 Richard Stallman + + * customize.texi (Variable Definitions): Document + new name custom-add-frequent-value. + 2006-12-19 Kim F. Storm * commands.texi (Misc Events): User signals now result in sigusr1 diff --git a/lispref/customize.texi b/lispref/customize.texi index 6d93d6fdb9b..ee188c76c79 100644 --- a/lispref/customize.texi +++ b/lispref/customize.texi @@ -418,18 +418,18 @@ Keywords}. Here is an example, from the library @file{saveplace.el}: 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 - 'my-lisp-mode-initialization) +(custom-add-frequent-value 'emacs-lisp-mode-hook + 'my-lisp-mode-initialization) @end example -@defun custom-add-option symbol value +@defun custom-add-frequent-value symbol value For the customization option @var{symbol}, add @var{value} to the list of reasonable values. -- 2.39.2