From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56643: 29.0.50; Help-mode bookmarks not loading with native compilation Date: Wed, 20 Jul 2022 22:16:11 +0300 Message-ID: <83a693lhms.fsf@gnu.org> References: <83k089m4j0.fsf@gnu.org> <8335ewm2i1.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20575"; mail-complaints-to="usenet@ciao.gmane.io" Cc: defun.foo@proton.me, 56643@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 20 21:17:24 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 1oEFCF-000565-QS for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Jul 2022 21:17:23 +0200 Original-Received: from localhost ([::1]:37676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEFCE-0006fQ-VF for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Jul 2022 15:17:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEFBu-0006IB-Sw for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 15:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32897) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEFBu-0001qv-K2 for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 15:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oEFBu-0004oO-Fi for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 15:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jul 2022 19:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56643 X-GNU-PR-Package: emacs Original-Received: via spool by 56643-submit@debbugs.gnu.org id=B56643.165834459418451 (code B ref 56643); Wed, 20 Jul 2022 19:17:02 +0000 Original-Received: (at 56643) by debbugs.gnu.org; 20 Jul 2022 19:16:34 +0000 Original-Received: from localhost ([127.0.0.1]:58888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEFBS-0004nV-6e for submit@debbugs.gnu.org; Wed, 20 Jul 2022 15:16:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEFBO-0004nH-QK for 56643@debbugs.gnu.org; Wed, 20 Jul 2022 15:16:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36308) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEFBG-0001pJ-Qe; Wed, 20 Jul 2022 15:16:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6H5dXNpTMdD5LGEAZBAeWbI1p1alyPutzZz9lbGIh+Y=; b=Huhw4Dzl2A0G 9nruxqRrtrSRQa85A55c+nzCpm9b+Rvid6oKcN4ZmS/XUt6lzqb8yEtOkZfnWUIc3BZ9ns+XV4vNY InFER4+Q35+NDmdvmPa6WhEMujJCBQIoSeR1Gb8d+LL6zaqLMHgrfpAw46JZdjvwSfKtNDRs9XL2F jXZHOjnwcmlrcLJbsoMdsYQ9/M31HlMxvnQO3gIDVomOtlgbcKOfaRDNgFUPjxfC2sMFg8qeGEVS/ nYHSnqGXVSjz3sZ05fyowBGVCzXsV/9IqoplgRt2zXg5y4MH7uyAeOr9bbYml/z4W7odR3qiTK5Qc 8J3+YI10A+/4cLmzNiJaiQ==; Original-Received: from [87.69.77.57] (port=2104 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEFBD-0003HP-GD; Wed, 20 Jul 2022 15:16:22 -0400 In-Reply-To: (message from Andrea Corallo on Wed, 20 Jul 2022 18:31:56 +0000) 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:237520 Archived-At: > From: Andrea Corallo > Cc: defun.foo@proton.me, 56643@debbugs.gnu.org > Date: Wed, 20 Jul 2022 18:31:56 +0000 > > Eli Zaretskii writes: > > > Can we deduce the name of the Lisp function (a symbol) whose > > native-compilation result is a given natively-compiled subr? If so, > > perhaps we could substitute the function's symbol for the subr name. > > Not that I'm aware. > > I guest would be necessary to keep some global (or per native function) > hash table that is updated in Fset? > > I hope there's some workaround to this in the help / bookmarks machinery > cause this does not look very neat to me. The relevant code looks like this: (help-setup-xref (list (lambda (function buffer) (let ((describe-function-orig-buffer (if (buffer-live-p buffer) buffer))) (describe-function function))) function describe-function-orig-buffer) (called-interactively-p 'interactive)) In a natively-compiled Emacs, this lambda produces a native-compiled subr. Is there a way of telling Emacs not to produce such a subr, but instead to produce byte-code for this lambda? If yes, that could be a (somewhat ugly) workaround in this case.