From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#58314: 29.0.50; C-h k with native compilation not conclusive Date: Wed, 5 Oct 2022 22:50:32 +0300 Message-ID: References: <86czb65axv.fsf@protected.rcdrun.com> <83bkqqrr4q.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10293"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) Cc: 58314@debbugs.gnu.org, Stefan Monnier To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 05 21:54:37 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 1ogATV-0002RO-NS for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Oct 2022 21:54:37 +0200 Original-Received: from localhost ([::1]:57608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogATU-0002v6-7n for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Oct 2022 15:54:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogAR2-0001B5-Df for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 15:52:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59070) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogAR1-0002CL-17 for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 15:52:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogAR0-0001wW-KK for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 15:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2022 19:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58314 X-GNU-PR-Package: emacs Original-Received: via spool by 58314-submit@debbugs.gnu.org id=B58314.16649994817385 (code B ref 58314); Wed, 05 Oct 2022 19:52:02 +0000 Original-Received: (at 58314) by debbugs.gnu.org; 5 Oct 2022 19:51:21 +0000 Original-Received: from localhost ([127.0.0.1]:58147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogAQL-0001v2-1J for submit@debbugs.gnu.org; Wed, 05 Oct 2022 15:51:21 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:54595) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogAQI-0001tG-RX for 58314@debbugs.gnu.org; Wed, 05 Oct 2022 15:51:19 -0400 Original-Received: from localhost ([::ffff:154.227.156.251]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000BA40A.00000000633DE036.00007EB5; Wed, 05 Oct 2022 12:51:18 -0700 Content-Disposition: inline In-Reply-To: <83bkqqrr4q.fsf@gnu.org> 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:244569 Archived-At: * Eli Zaretskii [2022-10-05 22:47]: > > From: Jean Louis > > Date: Wed, 05 Oct 2022 22:26:20 +0300 > >=20 > >=20 > > I remember with byte compiling I was never lead to go into byte compiled > > file when I was inspecting commands with C-h k > >=20 > > With native compilation, I do: C-h k and I get this: > >=20 > > v n runs the command cf-people-view-notes (found in > > rcd-db-people-mode-map), which is an interactive native-compiled Lisp > > function in > > =E2=80=98../eln-cache/29.0.50-44cd31c8/rcd-cf-a9476332-a313d4ff.eln=E2= =80=99. > >=20 > > It is bound to v n. >=20 > I cannot reproduce this. I don't have rcd-cf.el here, of course, but > I tested with "C-h k n" in Help mode, and I see the expected: >=20 > n runs the command help-goto-next-page (found in help-mode-map), which > is an interactive native-compiled Lisp function in =E2=80=98help-mode.e= l=E2=80=99. >=20 > So this is somehow related to your own files. Maybe it's because how > we store the doc strings or something? Stefan, any ideas? 1. emacs -Q 2. {C-x C-f my-file.el RET} 3. write in my-file.el: (defun my-function () (message "Hello")) 4. {M-x emacs-lisp-native-compile-and-load RET} 5. {C-h f my-function RET} 6. Then I see: my-function is a native-compiled Lisp function in =E2=80=98~/.emacs.d/eln-cache/29.0.50-44cd31c8/my-file-fb862712-14785989.el= n=E2=80=99. (my-function) Not documented. But I am expecting to see link to my-file.el and not to compiled file. And if I click on the link: =E2=80=98~/.emacs.d/eln-cache/29.0.50-44cd31c8/my-file-fb862712-14785989.el= n=E2=80=99. then I get: Debugger entered--Lisp error: (wrong-type-argument stringp nil) locate-file(nil ("/home/data1/protected/Programming/Software/emacs/l..." = "/home/data1/protected/Programming/Software/emacs/l..." "/home/data1/protec= ted/Programming/Software/emacs/l..." "/home/data1/protected/Programming/Sof= tware/emacs/l..." "/home/data1/protected/Programming/Software/emacs/l..." "= /home/data1/protected/Programming/Software/emacs/l..." "/home/data1/protect= ed/Programming/Software/emacs/l..." "/home/data1/protected/Programming/Soft= ware/emacs/l..." "/home/data1/protected/Programming/Software/emacs/l..." "/= home/data1/protected/Programming/Software/emacs/l..." "/home/data1/protecte= d/Programming/Software/emacs/l..." "/home/data1/protected/Programming/Softw= are/emacs/l..." "/home/data1/protected/Programming/Software/emacs/l..." "/h= ome/data1/protected/Programming/Software/emacs/l..." "/home/data1/protected= /Programming/Software/emacs/l..." "/home/data1/protected/Programming/Softwa= re/emacs/l..." "/home/data1/protected/Programming/Software/emacs/l..." "/ho= me/data1/protected/Programming/Software/emacs/l..." "/home/data1/protected/= Programming/Software/emacs/l..." "/home/data1/protected/Programming/Softwar= e/emacs/l..." "/home/data1/protected/Programming/Software/emacs/l..." "/hom= e/data1/protected/Programming/Software/emacs/l..." "/home/data1/protected/P= rogramming/Software/emacs/l..." "/home/data1/protected/Programming/Software= /emacs/l...") (".so" ".so.gz" ".el" ".el.gz")) find-library-name("/home/data1/protected/.emacs.d/eln-cache/29.0.50-4...") find-function-search-for-symbol(my-function nil "/home/data1/protected/.e= macs.d/eln-cache/29.0.50-4...") help-function-def--button-function(my-function "/home/data1/protected/.em= acs.d/eln-cache/29.0.50-4..." nil) help-do-xref(nil help-function-def--button-function (my-function "/home/d= ata1/protected/.emacs.d/eln-cache/29.0.50-4...")) help-button-action(#) button-activate(# nil) push-button(54) funcall-interactively(push-button 54) command-execute(push-button) -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/