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: Tue, 06 Jun 2023 06:24:18 -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="34019"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Lars Ingebrigtsen , monnier@iro.umontreal.ca, 58314-done@debbugs.gnu.org, bugs@gnu.support, akrl@sdf.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 06 12:25:33 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 1q6Tsb-0008g8-HQ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Jun 2023 12:25:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6TsC-0003Yk-SV; Tue, 06 Jun 2023 06:25:09 -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 1q6Ts8-0003Xo-Tb for bug-gnu-emacs@gnu.org; Tue, 06 Jun 2023 06:25:05 -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 1q6Ts7-0000qv-GS for bug-gnu-emacs@gnu.org; Tue, 06 Jun 2023 06:25:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q6Ts6-0002kp-Ht for bug-gnu-emacs@gnu.org; Tue, 06 Jun 2023 06:25:02 -0400 Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Jun 2023 10:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 58314 X-GNU-PR-Package: emacs Mail-Followup-To: 58314@debbugs.gnu.org, acorallo@gnu.org, bugs@gnu.support Original-Received: via spool by 58314-done@debbugs.gnu.org id=D58314.168604706710521 (code D ref 58314); Tue, 06 Jun 2023 10:25:02 +0000 Original-Received: (at 58314-done) by debbugs.gnu.org; 6 Jun 2023 10:24:27 +0000 Original-Received: from localhost ([127.0.0.1]:51024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6TrW-0002jb-Ph for submit@debbugs.gnu.org; Tue, 06 Jun 2023 06:24:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6TrU-0002jN-KY for 58314-done@debbugs.gnu.org; Tue, 06 Jun 2023 06:24:25 -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 1q6TrO-0000fz-Sl; Tue, 06 Jun 2023 06:24:18 -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=9FXYCG9otq9CWOv4WK9hJa48x1R4bqHqiNU9jz9hW1I=; b=Wts35Oiz6a4mxijH959D 2qxoq0xhnbnxt+9jA818XyQjhxDyMDuUyIHQDEHrg6wcxQh2Wx4udBNfMu9mJZCEWeqD2PKu7Zz7q 7Bn/RGeXjsQX3Yj2/JvNbXixpIuZSWc9879drQMFg0Q7ws9lBxtdK+NeoHOqHZcN2HOhX8mCwrIB9 Pip6Bsv+Bw4r9UPCOotIQf5i3UUdVsNUmBPFDxy6SASDntUvHEWvfvFjmDHm9EgBGSMboR5cV+/JY ztzJLPnEccKnLEyfZORhyvtuRJ4oZ2KE0YRUnA/ehWyz2l0Mhd5VyUa/rk7ERvvaNJpiV/V0dbcMq brgUmJ02tBH4jg==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1q6TrO-0001pB-LB; Tue, 06 Jun 2023 06:24:18 -0400 In-Reply-To: (Andrea Corallo's message of "Mon, 05 Jun 2023 18:49:34 -0400") 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:263046 Archived-At: Andrea Corallo writes: > Eli Zaretskii writes: > >>> From: Lars Ingebrigtsen >>> Cc: Eli Zaretskii , 58314@debbugs.gnu.org, Stefan Monni= er >>> , 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-14785= 989.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. Hi all, bcc222251e1 now into emacs-29 fixes this bug. I'm closing this report, happy to repoen if necessary. Thanks Andrea