GNU bug report logs - #30990
Should the byte compiler warn about :type mismatches?

Previous Next

Package: emacs;

Reported by: Alex Branham <alex.branham <at> gmail.com>

Date: Thu, 29 Mar 2018 16:56:02 UTC

Severity: wishlist

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

Bug is archived. No further changes may be made.

Full log


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

From: Glenn Morris <rgm <at> gnu.org>
To: Alex Branham <alex.branham <at> gmail.com>
Cc: 30990 <at> debbugs.gnu.org
Subject: Re: bug#30990: Should the byte compiler warn about :type mismatches?
Date: Thu, 29 Mar 2018 13:11:00 -0400
Alex Branham wrote:

> Would it be possible/desirable to make the byte-compiler warn about
> :type mismatches with defcustoms?

I think that to do this in general requires evaluating the defcustom at
compile time, which probably isn't the right thing.

emacs -batch -l admin/cus-test.el -f cus-test-opts all

will find these mismatches. I think it should be converted to an
(expensive) ert test, which would solve the problem for Emacs itself.




This bug report was last modified 4 years and 238 days ago.

Previous Next


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