GNU bug report logs - #69739
30.0.50; `type-of` is not precise enough

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Mon, 11 Mar 2024 23:22:01 UTC

Severity: normal

Found in version 30.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


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

From: Rudolf Schlatte <rudi <at> constantly.at>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#69739: 30.0.50; `type-of` is not precise enough
Date: Tue, 12 Mar 2024 17:07:47 +0100
Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:

>  * Incompatible Changes in Emacs 30.1
>  
> +** 'type-of' sometimes returns more precise types.
> +More specifically, for nil and t it returns 'null' and 'boolean'
> +instead of just 'symbol' and for "subrs", it now returns one of
> +'special-form', 'subr-primitive', or 'subr-native-elisp'.

Is it true that in all cases, if `(type-of x)' used to return `foo'
before the change, `(typep x 'foo)' still returns t after the change?
If so, that might be worth mentioning, since it makes fixing broken code
easier.





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

Previous Next


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