GNU bug report logs - #6578
24.0.50; defcustom :set does not apply to `set-variable'

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Wed, 7 Jul 2010 04:54:01 UTC

Severity: wishlist

Tags: notabug

Found in version 24.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 6578 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 6578 <at> debbugs.gnu.org
Subject: Re: bug#6578: 24.0.50; defcustom :set does not apply to `set-variable'
Date: Wed, 21 Aug 2019 15:52:33 -0700
"Drew Adams" <drew.adams <at> oracle.com> writes:

> [Tried to send this earlier, but there was a mail delivery problem, for some
> reason.  Trying again.]
>
> ----
>
> If you use a :set entry for defcustom, it is not respected by
> `set-variable'.  It should be.  When a user uses `M-x set-variable' s?he
> should get the effect of :set.  Otherwise, the defcustom is not serving
> its purpose.  defcustom is not only for Customize - it needs to work
> with `set-variable' also.  And it does, for :type; but it does not, for
> :set.

This is apparently by design:

----
Note that this function is at heart equivalent to the basic ‘set’ function.
For a variable defined with ‘defcustom’, it does not pay attention to
any :set property that the variable might have (if you want that, use
M-x customize-set-variable instead).
----

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 273 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.