emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doc problems with defcustom


From: Stephan Stahl
Subject: Re: doc problems with defcustom
Date: Tue, 8 Jun 2004 12:49:30 +0200 (CEST)
User-agent: SquirrelMail/1.4.0

Hi.

Kenichi Handa said:

> Isn't it possible to have a function, say
> custom-set-variable, that sets a value and calls :set action

There is:

customize-set-variable is an interactive compiled Lisp function in
`cus-edit'.
(customize-set-variable variable value &optional comment)

Set the default for variable to value, and return value.
value is a Lisp object.

If variable has a `custom-set' property, that is used for setting
variable, otherwise `set-default' is used.

The `customized-value' property of the variable will be set to a list
with a quoted value as its sole list member.

If variable has a `variable-interactive' property, that is used as if
it were the arg to `interactive' (which see) to interactively read the value.

If variable has a `custom-type' property, it must be a widget and the
`:prompt-value' property of that widget will be used for reading the value.

If given a prefix (or a comment argument), also prompt for a comment.

-- 
Stephan Stahl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]