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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: bug#56648: closed (Re: bug#56648: 29.0.50; Need for
 `compiled-function-p`)
Date: Sun, 14 Aug 2022 16:31:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#56648: 29.0.50; Need for `compiled-function-p`

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 56648 <at> debbugs.gnu.org.

-- 
56648: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56648
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 56648-done <at> debbugs.gnu.org
Subject: Re: bug#56648: 29.0.50; Need for `compiled-function-p`
Date: Sun, 14 Aug 2022 12:30:20 -0400
Pushed to `master` with some tweaks and doc,


        Stefan


[Message part 3 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; Need for `compiled-function-p`
Date: Tue, 19 Jul 2022 16:43:27 -0400
Package: Emacs
Version: 29.0.50


I think we need something like `compiled-function-p`, i.e. a function
which will return non-nil for both byte-code and native-code functions.
Its definition would be

    (defun compiled-function-p (obj)
      "<Appropriate doc here>"
      (or (byte-code-function-p obj)
          (subr-native-elisp-p obj)))

This is because `byte-code-function-p` shouldn't be changed to return
non-nil for native-code functions (both because it would break a lot of
code and because the name would be too confusing), but several uses of
`byte-code-function-p` actually want to know "is this an (inefficient)
source code function or not" (e.g. in unidata-gen.el,
loadup.el, bytecomp.el, ...).


        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.