GNU bug report logs - #63410
30.0.50; [FR] Optionally allow defcustom to check type for standard value

Previous Next

Package: emacs;

Reported by: Ruijie Yu <ruijie <at> netyu.xyz>

Date: Wed, 10 May 2023 05:37:01 UTC

Severity: wishlist

Found in version 30.0.50

Full log


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

From: Drew Adams <drew.adams <at> oracle.com>
To: Ruijie Yu <ruijie <at> netyu.xyz>, "63410 <at> debbugs.gnu.org"
 <63410 <at> debbugs.gnu.org>
Subject: RE: [External] : bug#63410: 30.0.50; [FR] Optionally allow defcustom
 to check type for standard value
Date: Wed, 10 May 2023 13:36:49 +0000
> Similar to `setopt' introduced in 29, which warns when a variable gets
> assigned a value with an incorrect type, I hope `defcustom' can
> (optionally) check that the standard value of a customizable variable is
> correct.  This would help external as well as internal package authors
> to catch errors on the types.

Not sure I understand.  Doesn't it do that already,
showing "mismatch" next to the default value if it
doesn't match the type definition?




This bug report was last modified 1 year and 283 days ago.

Previous Next


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