From: Alex Branham <alex.branham@gmail.com>
To: 30990@debbugs.gnu.org
Subject: bug#30990: Should the byte compiler warn about :type mismatches?
Date: Thu, 29 Mar 2018 11:55:07 -0500 [thread overview]
Message-ID: <87woxu7rf8.fsf@gmail.com> (raw)
severity: wishlist
Would it be possible/desirable to make the byte-compiler warn about
:type mismatches with defcustoms? I've noticed that the default values
for quite a few packages I use (both in Emacs [Bug#30901 for example]
and not) do not match. Presumably this would be easier to catch if the
compiler warned about it.
In case I'm not being clear, writing something like this:
(defcustom my-var t
"Docs."
:group 'text
:type 'string)
Would result in a warning during byte compilation along the lines of:
"Warning: Default value for 'my-var' does not match :type".
next reply other threads:[~2018-03-29 16:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-29 16:55 Alex Branham [this message]
2018-03-29 17:11 ` bug#30990: Should the byte compiler warn about :type mismatches? Glenn Morris
2020-09-25 12:44 ` Lars Ingebrigtsen
2019-09-28 19:00 ` Stefan Kangas
2019-09-28 19:21 ` Eli Zaretskii
2019-09-30 11:49 ` Robert Pluim
2019-09-30 15:45 ` Lars Ingebrigtsen
2019-10-09 13:34 ` Robert Pluim
2019-10-09 17:57 ` Lars Ingebrigtsen
2019-10-09 20:05 ` Lars Ingebrigtsen
2019-10-10 13:11 ` Robert Pluim
2019-10-11 5:54 ` Lars Ingebrigtsen
2020-09-25 13:18 ` Lars Ingebrigtsen
2020-09-25 13:36 ` Lars Ingebrigtsen
2020-09-25 13:43 ` Lars Ingebrigtsen
2019-10-09 18:44 ` Mattias Engdegård
2019-10-11 9:31 ` Robert Pluim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87woxu7rf8.fsf@gmail.com \
--to=alex.branham@gmail.com \
--cc=30990@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).