From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#60568: [FR] 30.0.50; Help buffers and function bodies for generated functions Date: Sat, 07 Jan 2023 11:32:14 +0000 Message-ID: <87fscmmvgh.fsf@localhost> References: <87fscpifdw.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13592"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60568@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 07 12:32:30 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 1pE7R7-0003KL-No for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Jan 2023 12:32:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pE7Qk-0002cO-D6; Sat, 07 Jan 2023 06:32:06 -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 1pE7Qh-0002cC-1t for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2023 06:32:03 -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 1pE7Qg-0002Ze-8k for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2023 06:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pE7Qf-0004j7-PC for bug-gnu-emacs@gnu.org; Sat, 07 Jan 2023 06:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Jan 2023 11:32: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.167309111318154 (code B ref 60568); Sat, 07 Jan 2023 11:32:01 +0000 Original-Received: (at 60568) by debbugs.gnu.org; 7 Jan 2023 11:31:53 +0000 Original-Received: from localhost ([127.0.0.1]:56563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pE7QX-0004ik-9Y for submit@debbugs.gnu.org; Sat, 07 Jan 2023 06:31:53 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:47849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pE7QV-0004iX-1j for 60568@debbugs.gnu.org; Sat, 07 Jan 2023 06:31:51 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 0A5F324004B for <60568@debbugs.gnu.org>; Sat, 7 Jan 2023 12:31:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1673091105; bh=oAr/Nyy5dL006hj78lNjLY48Yh9JA1CFoXL90veDd3E=; h=From:To:Cc:Subject:Date:From; b=HBzpCwJ9ySzFuyhpC1DK485L1A6D6Sl7OVfs+K769cnzfBbMxuLt1YBduZldUobG1 L0zyPQYjT4Xc69NFZwYK7fhzgg8RqommRVS4xOUalmcSzYcMTWcd473ZCWXUMGsfgW XbR7ssE0174686LirTiW8SFiS59iyuNWdtRmbVMS3cly25VQ1t/o08No5oHXRr9XlC 2St/SSFh9AgpR4HFwTe1zCKDvsO8fHDWaW+xO5Ko7SBrFZftcu6YNHiy4Bm0kpwMbB ubLbmIrwyVxhkg4Zgr7edGtVQl+ulZmPISi2R7SBEp3+sJw1HzsOKjBDLMwhPhB/7R CC2i5Tw1A1bQg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Npyht128hz9rxK; Sat, 7 Jan 2023 12:31:41 +0100 (CET) In-Reply-To: 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:252786 Archived-At: Stefan Monnier writes: >> 1. emacs -Q >> 2. M-: (require 'ob-shell) >> 3. f org-babel-execute:sh >> 4. Click on the source code link in *Help* buffer >> 5. Observe point jumping to (point-min) with no obvious way to find the >> function definition. > > We have `definition-name` for that. > I.e. `org-babel-shell-initialize` should arguably do > > (put 'org-babel-execute:sh 'definition-name 'org-babel-shell-initialize) > > so that step 4 above jumps to `org-babel-shell-initialize`. > > The patch below does that, along with saving some kittens. Thanks! > + (funcall (if (fboundp 'defvar-1) #'defvar-1 #'set) ;Emacs-29 > + (intern (concat "org-babel-default-header-args:" name)) > + '()))) Why '()? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at