bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#4755: 23.1; case where `C-M-x' on defcustom doesn't seem to work


From: Noam Postavsky
Subject: bug#4755: 23.1; case where `C-M-x' on defcustom doesn't seem to work
Date: Tue, 5 Jul 2016 13:00:19 -0400

On Tue, Jul 5, 2016 at 10:30 AM, Drew Adams <drew.adams@oracle.com> wrote:
> `foo', not `toto' was customized, and the Value shown
> here is correct. But the "Original value" is incorrect.
> The "Original value" shown is the new, current value
> of `foo'.  `toto' never had, as still does not have,
> that "Original value".

Ah, but this appears to be expected behaviour:

    (defcustom SYMBOL STANDARD DOC &rest ARGS)

    [...]
    STANDARD is an expression specifying the variable's standard
    value.  It should not be quoted.  It is evaluated once by
    `defcustom', and the value is assigned to SYMBOL if the variable
    is unbound.  The expression itself is also stored, so that
    Customize can re-evaluate it later to get the standard value.
    DOC is the variable documentation.

Compare what happens with:

(defcustom time (current-time)
  "the time"
  :type '(list integer))

So perhaps the thing to be fixed is that describe-variable should say
"Standard value" rather than "Original value".





reply via email to

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