From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#60568: [FR] 30.0.50; Help buffers and function bodies for generated functions Date: Thu, 05 Jan 2023 20:44:21 +0000 Message-ID: <8dea9f3e0ea1de84c49a@heytings.org> References: <87fscpifdw.fsf@localhost> <83wn61w7lc.fsf@gnu.org> <8dea9f3e0e7865d8f3c6@heytings.org> <83r0w9vzgy.fsf@gnu.org> <8dea9f3e0e8e6114ffc3@heytings.org> <83pmbtvwyr.fsf@gnu.org> <8dea9f3e0e160e17818f@heytings.org> <83mt6xvsct.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="AgRskj2K88" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5112"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@posteo.net, 60568@debbugs.gnu.org, mardani29@yahoo.es To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 05 21:45:22 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 1pDX73-00018t-MW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Jan 2023 21:45:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDX6q-00012a-6I; Thu, 05 Jan 2023 15:45:08 -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 1pDX6l-00011s-Cn for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 15:45: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 1pDX6l-0002W6-26 for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 15:45:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDX6k-0004P4-H9 for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 15:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jan 2023 20:45: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.167295146516856 (code B ref 60568); Thu, 05 Jan 2023 20:45:02 +0000 Original-Received: (at 60568) by debbugs.gnu.org; 5 Jan 2023 20:44:25 +0000 Original-Received: from localhost ([127.0.0.1]:53045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDX68-0004No-HK for submit@debbugs.gnu.org; Thu, 05 Jan 2023 15:44:24 -0500 Original-Received: from heytings.org ([95.142.160.155]:60418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDX66-0004Nd-Sb for 60568@debbugs.gnu.org; Thu, 05 Jan 2023 15:44:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1672951461; bh=PwXiqOO2EkVoAl+cGJOX/LzCrPymok+JHVVSxxTlJHo=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=8n6BbLfCWUlPicZ6/ryMm3AbJlf4IUjB9BlQFDluT8zM/gvLscsPmsWf5WlFL/8BA thSFxVXWnm0Jn4G/F6ZvjxkMLv2gRy3yzeSFE7LFnPPjcIMjL9KZbeB/0br+ZSB5TG tA0eCSwXmoIQ9hmdTW9nPtYur540WRiGIwK4Sl9Uxwt9BYBOCzJ15z7EGJ/KwO27g6 QV8pef0Lpckm7NiNWvq5eFOg1M2SXZX4c4YWv/nymG2fj4uKIOukwDIhSpgoHYJqnt M4EjBQah9CGRFnj9XIHo6gWHfFxEnee1lWr0wGmMRxrQc3fwsUESATUvL/m4ZsLOHq Lotyo82CUBbzw== In-Reply-To: <83mt6xvsct.fsf@gnu.org> Content-ID: <8dea9f3e0ece614cf680@heytings.org> 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:252637 Archived-At: --AgRskj2K88 Content-Type: text/plain; charset=us-ascii; format=flowed Content-ID: <8dea9f3e0e77b69b38ab@heytings.org> >>> Well, searching for the regexp "defun .*org-babel-execute:" would have >>> done that, right? >> >> In this specific case, yes. But in general? > > I hope that in a more general case we could use something similar, since > every definition of a function should start from "defun " followed by > some part of its name, right? > Not always, I can imagine functions defined with fset for example. What about the attached patch? It seems to work well. --AgRskj2K88 Content-Type: text/x-diff; name=Try-to-find-where-dynamically-defined-functions-were.patch; charset=us-ascii Content-Transfer-Encoding: base64 Content-ID: <8dea9f3e0e7c5aa74f2f@heytings.org> Content-Disposition: attachment; filename=Try-to-find-where-dynamically-defined-functions-were.patch RnJvbSAzOGQwOTQxYmI4N2MwYjQ2ZjI3ZWI0Y2Y0OTZmMjRiYmEwNzFkOTgy IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ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XMNCisgICAgICAgIDs7IGZvdW5kLg0KKyAg ICAgICAgKGRvbGlzdCAoZWwgbmFtZXMpDQorICAgICAgICAgIDs7IEV4Y2x1 ZGUgc3ltYm9scyB0aGF0IGFyZSAzIGNoYXJhY3RlcnMgb3IgbGVzcy4NCisg ICAgICAgICAgKHdoZW4gKD4gKGxlbmd0aCBlbCkgOSkNCisgICAgICAgICAg ICAobGV0IChyZXN1bHQpDQorICAgICAgICAgICAgICAoZ290by1jaGFyIChw b2ludC1taW4pKQ0KKyAgICAgICAgICAgICAgKHdoaWxlIChyZS1zZWFyY2gt Zm9yd2FyZCBlbCBuaWwgdCkNCisgICAgICAgICAgICAgICAgKHB1c2ggKGxp c3AtY3VycmVudC1kZWZ1bi1uYW1lKSByZXN1bHQpKQ0KKyAgICAgICAgICAg ICAgKGRlbGV0ZS1kdXBzIHJlc3VsdCkNCisgICAgICAgICAgICAgICh3aGVu IHJlc3VsdA0KKyAgICAgICAgICAgICAgICAocHVzaCAoY29ucyBlbCByZXN1 bHQpIHJlc3VsdHMpKSkpKQ0KKyAgICAgICAgKHdoZW4gcmVzdWx0cw0KKyAg ICAgICAgICA7OyBGaXJzdCBjaGVjayBpZiBvbmUgb2YgdGhlIHN5bWJvbHMg aXMgZm91bmQgaW4gYSBzaW5nbGUNCisgICAgICAgICAgOzsgZnVuY3Rpb24u DQorICAgICAgICAgIChsZXQgKChlbCAoY2F0Y2ggJ2ZvdW5kDQorICAgICAg ICAgICAgICAgICAgICAgIChtYXBjYXINCisgICAgICAgICAgICAgICAgICAg ICAgIChsYW1iZGEgKGVsKQ0KKyAgICAgICAgICAgICAgICAgICAgICAgICAo aWYgKD0gKGxlbmd0aCBlbCkgMikNCisgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICh0aHJvdyAnZm91bmQgKGNhciBlbCkpKSkNCisgICAgICAgICAg ICAgICAgICAgICAgIHJlc3VsdHMpKSkpDQorICAgICAgICAgICAgKGlmIChz dHJpbmdwIGVsKQ0KKyAgICAgICAgICAgICAgICA7OyBJZiBvbmUgc3VjaCBm dW5jdGlvbiB3YXMgZm91bmQsIGl0J3MgdGhlIGZ1bmN0aW9uDQorICAgICAg ICAgICAgICAgIDs7IHdlIGFyZSBhZnRlci4NCisgICAgICAgICAgICAgICAg KHByb2duDQorICAgICAgICAgICAgICAgICAgKGdvdG8tY2hhciAocG9pbnQt bWluKSkNCisgICAgICAgICAgICAgICAgICAocmUtc2VhcmNoLWZvcndhcmQg ZWwgbmlsIHQpDQorICAgICAgICAgICAgICAgICAgKGJlZ2lubmluZy1vZi1k ZWZ1bikNCisgICAgICAgICAgICAgICAgICAoY29ucyAobGlzcC1jdXJyZW50 LWRlZnVuLW5hbWUpIChwb2ludCkpKQ0KKyAgICAgICAgICAgICAgOzsgT3Ro ZXJ3aXNlLCBmaW5kIHdoaWNoIGZ1bmN0aW9uIGNvbnRhaW5zIHRoZSBtb3N0 DQorICAgICAgICAgICAgICA7OyBzeW1ib2xzIGluIEZVTi4NCisgICAgICAg ICAgICAgIChsZXQgKHBsYWNlcykNCisgICAgICAgICAgICAgICAgKGRvbGlz dCAoZWwgcmVzdWx0cykNCisgICAgICAgICAgICAgICAgICAoZG9saXN0IChl IChjZHIgZWwpKQ0KKyAgICAgICAgICAgICAgICAgICAgKHB1c2ggZSBwbGFj ZXMpKSkNCisgICAgICAgICAgICAgICAgKGxldCogKChzb3J0ZWQtcGxhY2Vz IChzb3J0IHBsYWNlcyAjJ3N0cmluZzwpKQ0KKyAgICAgICAgICAgICAgICAg ICAgICAgKHB0ciBzb3J0ZWQtcGxhY2VzKQ0KKyAgICAgICAgICAgICAgICAg ICAgICAgKGNvdW50IDEpDQorICAgICAgICAgICAgICAgICAgICAgICAobWF4 IDApDQorICAgICAgICAgICAgICAgICAgICAgICByZXN1bHQpDQorICAgICAg ICAgICAgICAgICAgKHdoaWxlIHB0cg0KKyAgICAgICAgICAgICAgICAgICAg KGlmIChzdHJpbmc9IChjYXIgcHRyKSAoY2FkciBwdHIpKQ0KKyAgICAgICAg ICAgICAgICAgICAgICAgIChzZXRxIGNvdW50ICgxKyBjb3VudCkpDQorICAg ICAgICAgICAgICAgICAgICAgICh3aGVuICg+IGNvdW50IG1heCkNCisgICAg ICAgICAgICAgICAgICAgICAgICAoc2V0cSBtYXggY291bnQpDQorICAgICAg ICAgICAgICAgICAgICAgICAgKHNldHEgcmVzdWx0IChjYXIgcHRyKSkpDQor ICAgICAgICAgICAgICAgICAgICAgIChzZXRxIGNvdW50IDEpKQ0KKyAgICAg ICAgICAgICAgICAgICAgKHNldHEgcHRyIChjZHIgcHRyKSkpDQorICAgICAg ICAgICAgICAgICAgKHdoZW4gcmVzdWx0DQorICAgICAgICAgICAgICAgICAg ICA7OyBEZXRlcm1pbmUgdGhlIGJlZ2lubmluZyBwb3NpdGlvbiBvZiB0aGF0 DQorICAgICAgICAgICAgICAgICAgICA7OyBmdW5jdGlvbi4NCisgICAgICAg ICAgICAgICAgICAgIChnb3RvLWNoYXIgKHBvaW50LW1pbikpDQorICAgICAg ICAgICAgICAgICAgICAoY2F0Y2ggJ2ZvdW5kDQorICAgICAgICAgICAgICAg ICAgICAgICh3aGlsZSAocmUtc2VhcmNoLWZvcndhcmQNCisgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAoY29uY2F0ICJcXF88IiAocmVnZXhwLXF1 b3RlIHJlc3VsdCkgIlxcXz4iKSkNCisgICAgICAgICAgICAgICAgICAgICAg ICAod2hlbiAoc3RyaW5nPSAobGlzcC1jdXJyZW50LWRlZnVuLW5hbWUpDQor ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVzdWx0 KQ0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgKHRocm93ICdmb3VuZCBu aWwpKSkpDQorICAgICAgICAgICAgICAgICAgICAoYmVnaW5uaW5nLW9mLWRl ZnVuKQ0KKyAgICAgICAgICAgICAgICAgICAgKGNvbnMgcmVzdWx0IChwb2lu dCkpKSkpKSkpKSkpKQ0KKw0KIChkZWZ1biBoZWxwLWZ1bmN0aW9uLWRlZi0t YnV0dG9uLWZ1bmN0aW9uIChmdW4gJm9wdGlvbmFsIGZpbGUgdHlwZSkNCiAg IChvciBmaWxlDQogICAgICAgKHNldHEgZmlsZSAoZmluZC1saXNwLW9iamVj dC1maWxlLW5hbWUgZnVuIHR5cGUpKSkNCkBAIC0yODEsNyArMzYyLDE4IEBA IGhlbHAtZnVuY3Rpb24tZGVmLS1idXR0b24tZnVuY3Rpb24NCiAgICAgICAg ICAgICAodW5sZXNzICg9IChwb2ludCkgcG9zaXRpb24pDQogICAgICAgICAg ICAgICAocHVzaC1tYXJrIG5pbCB0KSkNCiAgICAgICAgICAgICAoZ290by1j aGFyIHBvc2l0aW9uKSkNCi0gICAgICAgIChtZXNzYWdlICJVbmFibGUgdG8g ZmluZCBsb2NhdGlvbiBpbiBmaWxlIikpKSkpDQorICAgICAgICAobGV0ICgo cHJvYmFibGUtZGVmaW5pdGlvbi1wbGFjZQ0KKyAgICAgICAgICAgICAgICho ZWxwLWZ1bmN0aW9uLWRlZi0tZmluZC1wcm9iYWJsZS1kZWZpbml0aW9uLXBs YWNlIGZ1bikpKQ0KKyAgICAgICAgICAod2hlbiBwcm9iYWJsZS1kZWZpbml0 aW9uLXBsYWNlDQorICAgICAgICAgICAgKGdvdG8tY2hhciAoY2RyIHByb2Jh YmxlLWRlZmluaXRpb24tcGxhY2UpKSkNCisJICAod2l0aC1oZWxwLXdpbmRv dyAoaGVscC1idWZmZXIpDQorCSAgICAoaW5zZXJ0IChmb3JtYXQgIkZ1bmN0 aW9uICVzIGNvdWxkIG5vdCBiZSBmb3VuZCBpbiAlcy5cblxuIg0KKyAgICAg ICAgICAgICAgICAgICAgICAgICAgICBmdW4gKGZpbGUtbmFtZS1ub25kaXJl Y3RvcnkgZmlsZSkpKQ0KKyAgICAgICAgICAgICh3aGVuIHByb2JhYmxlLWRl ZmluaXRpb24tcGxhY2UNCisgICAgICAgICAgICAgIChpbnNlcnQgKGZvcm1h dCAiSXQgd2FzIHByb2JhYmx5IGRlZmluZWQgYnkgJXMuXG5cbiINCisgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAoY2FyIHByb2JhYmxlLWRlZmlu aXRpb24tcGxhY2UpKSkpDQorCSAgICAoaW5zZXJ0ICJGdW5jdGlvbiBkZWZp bml0aW9uOlxuXG4iKQ0KKwkgICAgKGluc2VydCAocHAtdG8tc3RyaW5nIChz eW1ib2wtZnVuY3Rpb24gZnVuKSkpKSkpKSkpDQogDQogKGRlZmluZS1idXR0 b24tdHlwZSAnaGVscC1mdW5jdGlvbi1kZWYNCiAgIDpzdXBlcnR5cGUgJ2hl bHAteHJlZg0KLS0gDQoyLjM5LjANCg0K --AgRskj2K88--