From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: defun.foo--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#56643: 29.0.50; Help-mode bookmarks not loading with native compilation Date: Thu, 21 Jul 2022 10:01:57 +0000 Message-ID: References: <83k089m4j0.fsf@gnu.org> <8335ewm2i1.fsf@gnu.org> <83a693lhms.fsf@gnu.org> <87sfmvtn99.fsf@web.de> <838ronkpzh.fsf@gnu.org> Reply-To: defun.foo@proton.me 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="17100"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen , 56643@debbugs.gnu.org, akrl@sdf.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 21 12:03:14 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 1oET1W-00049I-M4 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jul 2022 12:03:14 +0200 Original-Received: from localhost ([::1]:54086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oET1V-0004Pg-9D for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jul 2022 06:03:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oET1K-0004N2-LL for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 06:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46996) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oET1K-0004h4-1S for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 06:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oET1J-0002cz-OQ for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 06:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: defun.foo@proton.me Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Jul 2022 10:03:01 +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.165839773810042 (code B ref 56643); Thu, 21 Jul 2022 10:03:01 +0000 Original-Received: (at 56643) by debbugs.gnu.org; 21 Jul 2022 10:02:18 +0000 Original-Received: from localhost ([127.0.0.1]:36745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oET0b-0002bu-T6 for submit@debbugs.gnu.org; Thu, 21 Jul 2022 06:02:18 -0400 Original-Received: from mail-4316.protonmail.ch ([185.70.43.16]:52707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oET0Y-0002be-0x for 56643@debbugs.gnu.org; Thu, 21 Jul 2022 06:02:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=fa56qecb7zh7zfbayb4o6ie7qm.protonmail; t=1658397727; x=1658656927; bh=BESDz5PQMEaLFvaNtDNTiwYdR1tPQYexlEk4H8ioUXM=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=jDPT9nWF/l+Fuba1ynJbk3sbZWI5U/9/B3QkKQu2A2Et8Yn4lhoHqYms+fsLhgSOX n2yajnj+ThIT/ohEl0WAgF4LsGaVMD2BIhv95A0gjGGCh1XvovorO3rUz+0CGjKBf6 I5XANcfPOLQo76jz5JatJM533GUfsDX3PznWImry5U/R4xbId0ovCwGxr8jF79iQbg 4yzIENIO/Z+5seBDl7YEuL/pl/5xDpxbxbr8xBS3uzNaVgjOOwkl+MjKvXk7+PgVfm ilT0WW1Rw5DtiIUC7iaJ4ldAjRKzccAtS6L5ulkMvTuo4jaFykPfK/g14m8WloiGXe Y1xmBxaVGndBg== In-Reply-To: <838ronkpzh.fsf@gnu.org> Feedback-ID: 52178609:user:proton 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" X-ACL-Warn: , defun.foo@proton.me Xref: news.gmane.io gmane.emacs.bugs:237541 Archived-At: > > 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 tried it with describe-function and it does solve the problem, although a= s noted above there are many other functions that generate help buffers and= pass in a lambda. Named helper: (defun describe-function-xref-func (function buffer) (let ((describe-function-orig-buffer (if (buffer-live-p buffer) buffer))) (describe-function function))) Revised describe-function snippet: (help-setup-xref (list 'describe-function-xref-func function describe-function-orig-buf= fer) (called-interactively-p 'interactive)) This produces the following bookmark, which I confirmed still works after r= estarting Emacs: ("named-function-help-bookmark" (position . 1) (last-modified 25305 7198 806743 243000) (help-fn . describe-function-xref-func) (help-args completing-read "*scratch*") (position . 1) (handler . help-bookmark-jump)) > > 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? That would be quite a limitation. I had the same thought. I'd bet there are other packages that rely on being= able to read code back reliably. I"m curious if there is any metadata at a= ll attached to a natively-compiled function?