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: Thu, 21 Jul 2022 08:13:22 +0300 Message-ID: <838ronkpzh.fsf@gnu.org> References: <83k089m4j0.fsf@gnu.org> <8335ewm2i1.fsf@gnu.org> <83a693lhms.fsf@gnu.org> <87sfmvtn99.fsf@web.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2746"; mail-complaints-to="usenet@ciao.gmane.io" Cc: defun.foo@proton.me, 56643@debbugs.gnu.org, akrl@sdf.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 21 07:14:11 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 1oEOVm-0000Xy-P1 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jul 2022 07:14:10 +0200 Original-Received: from localhost ([::1]:49192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEOVl-0000Jf-El for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jul 2022 01:14:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEOVe-0000JT-QN for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 01:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46702) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEOVe-0001Sm-Hp for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 01:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oEOVe-0002sK-BY for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 01:14: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: Thu, 21 Jul 2022 05:14: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.165838041911010 (code B ref 56643); Thu, 21 Jul 2022 05:14:02 +0000 Original-Received: (at 56643) by debbugs.gnu.org; 21 Jul 2022 05:13:39 +0000 Original-Received: from localhost ([127.0.0.1]:36451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEOVH-0002rS-9w for submit@debbugs.gnu.org; Thu, 21 Jul 2022 01:13:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEOVE-0002rC-F0 for 56643@debbugs.gnu.org; Thu, 21 Jul 2022 01:13:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45460) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEOV8-0001QC-Qr; Thu, 21 Jul 2022 01:13:30 -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=g6e4YchL+1jPsar0VXPADIAsbMQ9VU8hgT4qrJgUt7o=; b=Dy/TmYsbjTCL oqHLDwV6n7yL5u25q70OVx1RhL16ZO9x6wdZzspUIehsHXZtYbdE1eMgZyl1JO7jsiPJygqT/smBs trcXL7NuFGqxC20LAN1uKGfR+0Xl3Q4BrFy2Py8apu55HdiUtVzB6AgP/b1o2hwbC2LT9VoTBC8HE kGxfW4n+qtfkEyubZ8yzgoeq2oGaDY6ZnedDga8lGjkYRETn6GK0zWdW7FHUmCH9nYbfYMLKU42nS NPLmly42mkkGgn3rX7wXlxr9Ra0Dhj5V15dautrelSinDNA3p/qq+DWEzVIJyF9gid856iFQMNbgc C8Do6Vz/3KSDzjXwUrwHLw==; Original-Received: from [87.69.77.57] (port=3412 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 1oEOV8-0007JW-A8; Thu, 21 Jul 2022 01:13:30 -0400 In-Reply-To: <87sfmvtn99.fsf@web.de> (message from Michael Heerdegen on Thu, 21 Jul 2022 00:47:30 +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:237525 Archived-At: > From: Michael Heerdegen > Cc: Andrea Corallo , defun.foo@proton.me, 56643@debbugs.gnu.org > Date: Thu, 21 Jul 2022 00:47:30 +0200 > > Eli Zaretskii writes: > > > (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. > > Alternatively we could introduce a named helper function. Note there > are more calls of `help-setup-xref' using lambdas in arguments. And that would solve the problem? Did you try that? > I see a more general problem: anywhere where printing an anonymous > function readably is necessary there is a potential breakage when using > natively compiled Emacs - right? Only if the function is serialized and written somewhere, and then some code wants to read it. Natively-compiled code cannot be read, AFAIU.