emacs-devel
[Top][All Lists]
Advanced

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

Re: defcustom and the stars.


From: Juanma Barranquero
Subject: Re: defcustom and the stars.
Date: Wed, 3 Jan 2007 14:29:16 +0100

On 1/3/07, Michaël Cadilhac <address@hidden> wrote:

« Same goals, different tactics :-) ». I used substring :-)

Sorry, I didn't see your patch.

And what about an opinion on the rest of the patch I proposed in
Message-ID: <address@hidden> ?

A link to the archives would be helpful.

I'm a little confused about that difference between what is a user
variable in the doc and what it is regarding user-variable-p.

I'm not sure what doc are you referring to. In the "Defining Global
Variables" node I see this:

    If the variable is a user option that users would want to set
    interactively, you should use `*' as the first character of
    DOC-STRING.  This lets users set the variable conveniently using
    the `set-variable' command.  Note that you should nearly always
    use `defcustom' instead of `defvar' to define these variables, so
    that users can use `M-x customize' and related commands to set
    them.

I don't see contradiction. Note that you are *not* forced to use
defcustom, so "*docstring" is still relevant. The "*" is only obsolete
in defcustom's docstrings. In my .emacs, for example, I define
variables that sometimes I want to change with M-x set-variable; but
certainly I don't want to use the customize stuff for them.

                   /L/e/k/t/u

reply via email to

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