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#58314: 29.0.50; C-h k with native compilation not conclusive Date: Mon, 05 Jun 2023 18:49:34 -0400 Message-ID: References: <86czb65axv.fsf@protected.rcdrun.com> <83bkqqrr4q.fsf@gnu.org> <874jwhyw1n.fsf@gnus.org> <83o7upowlr.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="37243"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Lars Ingebrigtsen , akrl@sdf.org, 58314@debbugs.gnu.org, bugs@gnu.support, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 06 00:50:25 2023 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 1q6J1s-0009Vt-MS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Jun 2023 00:50:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6J1Z-0007j2-EL; Mon, 05 Jun 2023 18:50:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6J1Y-0007id-0a for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2023 18:50:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q6J1X-0003Rw-O4 for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2023 18:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q6J1W-00066i-Fn for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2023 18:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jun 2023 22:50: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.168600538523449 (code B ref 58314); Mon, 05 Jun 2023 22:50:02 +0000 Original-Received: (at 58314) by debbugs.gnu.org; 5 Jun 2023 22:49:45 +0000 Original-Received: from localhost ([127.0.0.1]:50485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6J1F-000668-7W for submit@debbugs.gnu.org; Mon, 05 Jun 2023 18:49:45 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:32978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6J1C-00065u-KY for 58314@debbugs.gnu.org; Mon, 05 Jun 2023 18:49:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6J15-0003F2-H4; Mon, 05 Jun 2023 18:49:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=xBmuLojtPd7+n6ob9GaCs5BIvrgWQdxpRyXyHvd6U0g=; b=mdmXAPOdOXe9RHxGtJBY SS1Jm5xOP+gyQzncHEd8mU0onMW/hj+IdWP59kCywHzRM6lpcVwiF5SWsSIs/1rxJtWuz0eVk1lL+ wwb5DjYw/ztF/6TaGW3/1Qd+kErYpCkz5k4qjVk2SbmStfB1hfQRCW2W3WxCnCCW7CX6xrkhGbE/F B1V8Ulg28vEhkYwNi9Uq7231PTEsA8bUo97EjYzgnCIFXFOk2IyYK92+663PEUaU13uyJhxxyi5ym K19rlmW8Hd6nbMn788M/yyuuoU1FaNWKdafjceSaZaQFxspwyAPkk41JSq74yoIJ9cIb+fu3hxd4s 7aBgYEDa/bL0hw==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1q6J14-0005mD-Jt; Mon, 05 Jun 2023 18:49:35 -0400 In-Reply-To: <83o7upowlr.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 06 Oct 2022 17:28:00 +0300") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263035 Archived-At: Eli Zaretskii writes: >> From: Lars Ingebrigtsen >> Cc: Eli Zaretskii , 58314@debbugs.gnu.org, Stefan Monnier >> , Andrea Corallo >> Date: Thu, 06 Oct 2022 14:29:56 +0200 >>=20 >> Jean Louis writes: >>=20 >> > 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-147859= 89.eln=E2=80=99. >>=20 >> Thanks for the recipe -- I can reproduce this issue, too. >>=20 >> We could fix this in help-fns, but I wonder whether there's something >> that should be fixed on the nativecomp side -- in this case, it appears >> to not set up... something... that allows you to find my-file.el. >> I.e., `symbol-file' isn't able to find my-file.el, and it probably >> should be? > > It is also interesting that help-fns does find the .el file for the > files that are part of Emacs. So something works differently when the > compiled file is not part of the Emacs build. I think this a bug in `emacs-lisp-native-compile-and-load'. I'll come up with a fix. Andrea