GNU bug report logs - #56648
29.0.50; Need for `compiled-function-p`

Previous Next

Package: emacs;

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

Date: Tue, 19 Jul 2022 20:44:02 UTC

Severity: wishlist

Found in version 29.0.50

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

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 56648 <at> debbugs.gnu.org
Subject: Re: bug#56648: 29.0.50; Need for `compiled-function-p`
Date: Sun, 14 Aug 2022 13:51:57 -0400
>> -  (or (byte-code-function-p (symbol-function 'byte-compile-form))
>> -      (subr-native-elisp-p (symbol-function 'byte-compile-form))
>> -      (assq 'byte-code (symbol-function 'byte-compile-form)) <<<<<<<<<<<<<

According to my reading of the code, this `assq` can never return
non-nil.

I think it was a left-over from many years ago when the byte-compiler
cuold generated code of the form (lambda (..) (byte-code ...)).

Strictly speaking we still occasionally generate such (byte-code ...)
thingies, but only in cases that don't apply here (e.g. it's not applied
for functions, see `byte-compile-out-toplevel`).


        Stefan





This bug report was last modified 2 years and 337 days ago.

Previous Next


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