From: Andrea Corallo <akrl@sdf.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Knut Anders Hatlen <kahatlen@gmail.com>, 54437@debbugs.gnu.org
Subject: bug#54437: 28.0.92; command-modes returns nil for native compiled functions
Date: Thu, 17 Mar 2022 22:50:25 +0000 [thread overview]
Message-ID: <xjfzglob3da.fsf@ma.sdf.org> (raw)
In-Reply-To: <83h77wh3en.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 17 Mar 2022 19:53:04 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Knut Anders Hatlen <kahatlen@gmail.com>
>> Date: Thu, 17 Mar 2022 15:53:18 +0100
>>
>>
>> With Emacs built with --with-native-compilation, command-modes appear to
>> return nil for native compiled functions:
>>
>> (progn
>> (load "help-mode")
>> (command-modes 'help-view-source))
>> => nil
>>
>> When the function is interpreted or byte-compiled, it returns the
>> expected result:
>>
>> (progn
>> (load "help-mode.el")
>> (command-modes 'help-view-source))
>> => (help-mode)
>>
>> (progn
>> (load "help-mode.elc")
>> (command-modes 'help-view-source))
>> => (help-mode)
>
> Obviously, command-modes doesn't consider natively-compiled functions,
> but even if it did, it sounds like the information is lost at some
> point, even with loading *.el and *.elc files:
>
> (progn
> (load "help-mode.elc")
> (interactive-form 'help-view-source))
> => (interactive nil)
>
> Shouldn't interactive-form return the 3rd element as well?
>
> Andrea, can you please look at this? This is about the Emacs 28
> pretest, so it's quite urgent. TIA.
Hi Eli & all,
I'm reading this mail now while catching a plane, I won't be able to
actively look at it before the weekend. If no one finds a solution
sooner I'll look into it as soon as I can.
Best Regards
Andrea
prev parent reply other threads:[~2022-03-17 22:50 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-17 14:53 bug#54437: 28.0.92; command-modes returns nil for native compiled functions Knut Anders Hatlen
2022-03-17 16:29 ` Lars Ingebrigtsen
2022-03-17 16:44 ` Lars Ingebrigtsen
2022-03-19 14:13 ` Lars Ingebrigtsen
2022-03-19 15:20 ` Eli Zaretskii
2022-03-19 17:54 ` Andrea Corallo
2022-03-19 18:05 ` Lars Ingebrigtsen
2022-03-20 10:40 ` Andrea Corallo
2022-03-20 15:18 ` Lars Ingebrigtsen
2022-03-21 9:56 ` Andrea Corallo
2022-03-21 14:53 ` Lars Ingebrigtsen
2022-03-19 18:49 ` Knut Anders Hatlen
2022-03-17 17:53 ` Eli Zaretskii
2022-03-17 17:56 ` Lars Ingebrigtsen
2022-03-17 17:58 ` Lars Ingebrigtsen
2022-03-17 18:21 ` Eli Zaretskii
2022-03-17 18:22 ` Lars Ingebrigtsen
2022-03-17 20:02 ` Lars Ingebrigtsen
2022-03-17 22:50 ` Andrea Corallo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xjfzglob3da.fsf@ma.sdf.org \
--to=akrl@sdf.org \
--cc=54437@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=kahatlen@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.