From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#54437: 28.0.92; command-modes returns nil for native compiled functions Date: Thu, 17 Mar 2022 22:50:25 +0000 Message-ID: References: <87y218pr4x.fsf@dell.mail-host-address-is-not-set> <83h77wh3en.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9784"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Knut Anders Hatlen , 54437@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 17 23:51:12 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nUyxc-0002O5-Gw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Mar 2022 23:51:12 +0100 Original-Received: from localhost ([::1]:52644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUyxb-0001UN-Cz for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Mar 2022 18:51:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUyxS-0001RG-2x for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2022 18:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33465) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nUyxR-0005ky-QU for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2022 18:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nUyxR-0008Tj-My for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2022 18:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Mar 2022 22:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54437 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 54437-submit@debbugs.gnu.org id=B54437.164755742932550 (code B ref 54437); Thu, 17 Mar 2022 22:51:01 +0000 Original-Received: (at 54437) by debbugs.gnu.org; 17 Mar 2022 22:50:29 +0000 Original-Received: from localhost ([127.0.0.1]:55595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUywu-0008Sw-VX for submit@debbugs.gnu.org; Thu, 17 Mar 2022 18:50:29 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:54868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUyws-0008Sn-Rp for 54437@debbugs.gnu.org; Thu, 17 Mar 2022 18:50:27 -0400 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 22HMoP5t024698 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Thu, 17 Mar 2022 22:50:25 GMT In-Reply-To: <83h77wh3en.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 17 Mar 2022 19:53:04 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228516 Archived-At: Eli Zaretskii writes: >> From: Knut Anders Hatlen >> 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