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


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: alex.branham <at> gmail.com
Cc: 30990 <at> debbugs.gnu.org, Stefan Kangas <stefan <at> marxist.se>
Subject: bug#30990: Should the byte compiler warn about :type mismatches?
Date: Fri, 25 Sep 2020 15:36:01 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> I don't quite understand what's wrong here:
>
> (defcustom whitespace-indentation-regexp
>   '("^\t*\\(\\( \\{%d\\}\\)+\\)[^\n\t]"
>     . "^ *\\(\t+\\)[^\n]")
> [...]
>   :type '(cons (regexp :tag "Indentation SPACEs")
> 	       (regexp :tag "Indentation TABs"))
>   :group 'whitespace)
>
> Isn't that how you specify a cons of two values?

That wasn't the problem -- the first bit here isn't really a regexp,
it's a string passed to format to yield a regexp.

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




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.