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#60568: [FR] 30.0.50; Help buffers and function bodies for generated functions Date: Thu, 05 Jan 2023 16:16:13 +0200 Message-ID: <83r0w9vzgy.fsf@gnu.org> References: <87fscpifdw.fsf@localhost> <83wn61w7lc.fsf@gnu.org> <8dea9f3e0e7865d8f3c6@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34752"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@posteo.net, 60568@debbugs.gnu.org, mardani29@yahoo.es To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 05 15:17:47 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 1pDR3x-0008l6-T3 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Jan 2023 15:17:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDR3g-0006C9-8J; Thu, 05 Jan 2023 09:17:28 -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 1pDR3G-0006AT-CE for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 09:17:25 -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 1pDR3G-0002mN-1B for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 09:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDR3F-0008AX-SY for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 09:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jan 2023 14:17:01 +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.167292816631330 (code B ref 60568); Thu, 05 Jan 2023 14:17:01 +0000 Original-Received: (at 60568) by debbugs.gnu.org; 5 Jan 2023 14:16:06 +0000 Original-Received: from localhost ([127.0.0.1]:50547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDR2M-00089G-3L for submit@debbugs.gnu.org; Thu, 05 Jan 2023 09:16:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDR2K-00088W-3F for 60568@debbugs.gnu.org; Thu, 05 Jan 2023 09:16:05 -0500 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 1pDR2E-00028V-TK; Thu, 05 Jan 2023 09:15:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=+ORhVDN6pr24NiL6O3whyxr066vLInEsKGyJkf3Tkwc=; b=jvnnBTY8CdDEiFbRRG7J JEsYEzq59Etq1VBodZMYVVa+5muoGNIsBPQDiheBGpDDiC/q/+s+EMJ+Ehl8bEyqHVAJNnDQem45Q as9xVhZuD5sV36eW131fDHUUiXc/C/XQqwDg0qiwX0axotKF3itbbVO9Dg3EGVCc52OsIDoYoeQzK ujnZEMvVMzMOG6WSn9YfvUySsxZYMuy/tos7+Zm+/S0dpy6WVQzWhBQz0jcB7El9mlXn3zVKxgIe4 40/VsblxGbQjGac5OtwYBYp7Qr9nAWuy4dVQG7wP/I4/UHNrRGKNNZlbgMi6CuzwS8DjbBIRVP3v+ u6pmG9Jt10E0hA==; Original-Received: from [87.69.77.57] (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 1pDR2E-0004sJ-91; Thu, 05 Jan 2023 09:15:58 -0500 In-Reply-To: <8dea9f3e0e7865d8f3c6@heytings.org> (message from Gregory Heytings on Thu, 05 Jan 2023 12:33:26 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252603 Archived-At: > Date: Thu, 05 Jan 2023 12:33:26 +0000 > From: Gregory Heytings > cc: Daniel Martín , yantar92@posteo.net, > 60568@debbugs.gnu.org > > > >> I'd prefer we teach the Help facilities how to go to the source code of > >> that kind of functions. > > > > Agreed. > > > > What is missing in the five-line patch that does this? With the recipe, > the file in which org-babel-execute:sh was defined (ob-shell.el) is > opened, and the function definition is displayed. I don't think we can do > much better (e.g. reliably find the place where the function was defined). Why not? A function definition usually has some specific keywords in it. It is true that someone could have obfuscated the code which generates a function to the degree that it would be infeasible to recognize, but we don't need to support such arbitrary measures, we only need to support what's really being used. IOW, "reliably" doesn't need to mean with 110% reliability.