From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel =?UTF-8?Q?Mart=C3=ADn?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#60568: [FR] 30.0.50; Help buffers and function bodies for generated functions Date: Thu, 05 Jan 2023 11:45:15 +0100 Message-ID: References: <87fscpifdw.fsf@localhost> Reply-To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40288"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cc: 60568@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 05 11:46:31 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 1pDNlX-000AJL-0N for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Jan 2023 11:46:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDNlD-0005WK-Ew; Thu, 05 Jan 2023 05:46:11 -0500 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 1pDNl5-0005Uh-Js for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 05:46:04 -0500 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 1pDNl5-0006zd-4a for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 05:46:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDNl4-0006Il-Fr for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 05:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jan 2023 10:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60568 X-GNU-PR-Package: emacs Original-Received: via spool by 60568-submit@debbugs.gnu.org id=B60568.167291552824177 (code B ref 60568); Thu, 05 Jan 2023 10:46:02 +0000 Original-Received: (at 60568) by debbugs.gnu.org; 5 Jan 2023 10:45:28 +0000 Original-Received: from localhost ([127.0.0.1]:50354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDNkW-0006Ht-9P for submit@debbugs.gnu.org; Thu, 05 Jan 2023 05:45:28 -0500 Original-Received: from sonic306-19.consmr.mail.ir2.yahoo.com ([77.238.176.205]:42690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDNkT-0006Hc-CG for 60568@debbugs.gnu.org; Thu, 05 Jan 2023 05:45:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1672915517; bh=twGRyRfht2CdKAT310yqqkE3AWX9yXOZLTxwZEJGjGo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=mVRdJxZFPIWLfvBlrMYIWGhcdymHfO0LGznGbx3i22E+TFp/r20TbjheWkzOUWanszVh96yA+7VEZkDw2gLBOBKbAzCbYxpWrW8CRicB0FKA6BVsmTe+ZST3efE1Wgnl4keLwZ3wuiAqdSfEU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u4RZIrr_W9J pMKGKFJAo34sxeOJ_8LdLagLFihWhLU9urXyMKEPv52dS3GE2twFJKwG4eddWbB4opTZY2brEc2B iwriFcQhGRJ4wWxUii5IHR8E7n0gyUqNM0My.UfVRhI9BKgAu_3fsOw8m_daUFOEXDrgdXPA4l4P Zo.ijaRU4u6QcTc7cNxcMi6PDdz9qkVfnqXhUkCzVlHo0LpebV8GNithsm5uWiqLSJUwNeLwgVCw N6CSSy_Ps8kTRmo4nX3t0fD1f_qwNER5OabbXHBSLEtgK9uIyEKn4rZ90Iin_NIbJEJCHaT41Jc9 .LiigWcgxhPc3Ad9zbAUEpHLn6Dg4sdOlHmaCbZ4YdD9RCRZ.r0fJH0e1wxhmJQGJO5PLErVvnf1 GywWeTJGrkU4ojVDWsLGyhnWbKM1w6CP__j_rc5RB8Il.Md59754RVDxM6GE7fTd0QPz_tNHLgff fydGtqf485ELzNSxfQ4djR3jw5Wxlbz6.pEpGN4cCd X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ir2.yahoo.com with HTTP; Thu, 5 Jan 2023 10:45:17 +0000 Original-Received: by hermes--production-ir2-5795fc58c8-jdjsh (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID f5dd310fa3d1fd10be80e02c76ea6d2e; Thu, 05 Jan 2023 10:45:16 +0000 (UTC) In-Reply-To: <87fscpifdw.fsf@localhost> (Ihor Radchenko's message of "Thu, 05 Jan 2023 07:56:11 +0000") X-Mailer: WebService/1.1.20982 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:252589 Archived-At: Ihor Radchenko writes: > Recently, we have stumbled upon a situation when showing function code > is not only useful, but one of the few sane ways to examine it [3]. > Functions that are not directly written in the source but rather > generated programmatically cannot currently be easily examined using > built-in help functionality (using describe-function or other means). > The help buffer only links to the (point-min) in the library defining > the generated function - not very helpful. In contrast, helpful extracts > function body from symbol function slot. I'd prefer we teach the Help facilities how to go to the source code of that kind of functions. Some years ago, I added support for go to definition from *Help* buffers when the symbol was generated by a Lisp macro; there's no reason we couldn't extend the code to also handle this particular case. Showing the source code inline is something I feel more suitable for third-party packages. It is probably more interesting from a core Emacs perspective to make sure that help-mode provides the appropriate hooks for users and packages to customize what to show without needing to reimplement *Help* from scratch. I don't know what other people think, my opinion about this may be a minority.