GNU bug report logs -
#63410
30.0.50; [FR] Optionally allow defcustom to check type for standard value
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Ruijie Yu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org> writes:
> In that case, I had my semi-parallel second proposal: provide a command
> that checks for a group of variables and see if types of all variables
> within the group (or its subgroups) are correct.
Regarding the second proposal: I have quickly hacked together a
functional example of type checking, see the attachment. If we think
this should be integrated into Emacs, I can make some minor edits and
propose a patch. In that case, I would probably put the functions
somewhere in cus-edit.el or custom.el.
Note that at the moment it depends on the internal function
`custom--standard-value', which is a one-line function accessing a
property of the symbol.
[cfg-check-defcustom.el (text/plain, attachment)]
[Message part 3 (text/plain, inline)]
Also, note that I added the symbol into the warning text because the
goal of this command is to mass-check an entire group, whereas `setopt'
did not mention the variable symbol name. Not sure if `setopt' should
show the symbol in trouble, but I understand if we don't want to do
that.
--
Best,
RY
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.