From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#69462: 29.2.50; describe-function should support finding references Date: Thu, 3 Oct 2024 03:07:03 +0300 Message-ID: References: <2db7a569-d887-4336-a13d-6cdc9eb036a8@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28840"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: Spencer Baugh , 69462-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 03 02:08:23 2024 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 1sw9OH-0007JW-DK for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Oct 2024 02:08:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sw9O0-0004Ht-5D; Wed, 02 Oct 2024 20:08:04 -0400 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 1sw9Nx-0004H5-MN for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2024 20:08:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sw9Nx-0006EM-EE for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2024 20:08:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:References:From:MIME-Version:Date:To:Subject; bh=PQ6q9Q9xiconUyoOQyKNT2xgkQhSSLam25VkwLlgdtk=; b=Fj5PxFLD0WXniCj4BWBYRE9noNTkqDGPMDBVGzaRBtJyyjJnA+1G8D3dwoxYJV1Y6JhGSvsEC6oEtsh7O1u1eJPHnygLtLq6NmCCzmhxkCbGAA/GvYVsXfGQIE+gzIGhXwHaS7HjI/aU1MsrYMjuF3j3mGgeImFl0qoP+3aAcjpS3jmR5eo9ZXRSGd3R7PcR1nmGJ4UJ7mjk9g4BxqP0AEDAmKHzzGvpPk7GgtmznQEtqM5I50CRRxnJZ452/QwTbg0/X1gOBg5nuWgFWZdVbsB/6G6hUUQOhxijUUiz+gHpEEotoNCAiQ3mXbqwY4QX8msT9Z7H4cMm7umOuv/5TQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sw9Ny-0002Sz-7e for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2024 20:08:02 -0400 Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Oct 2024 00:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 69462 X-GNU-PR-Package: emacs Mail-Followup-To: 69462@debbugs.gnu.org, dmitry@gutov.dev, sbaugh@janestreet.com Original-Received: via spool by 69462-done@debbugs.gnu.org id=D69462.17279140379418 (code D ref 69462); Thu, 03 Oct 2024 00:08:01 +0000 Original-Received: (at 69462-done) by debbugs.gnu.org; 3 Oct 2024 00:07:17 +0000 Original-Received: from localhost ([127.0.0.1]:59505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sw9NE-0002Rq-HC for submit@debbugs.gnu.org; Wed, 02 Oct 2024 20:07:16 -0400 Original-Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]:55945) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sw9NB-0002Rb-H2 for 69462-done@debbugs.gnu.org; Wed, 02 Oct 2024 20:07:14 -0400 Original-Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id D4D351380250; Wed, 2 Oct 2024 20:07:06 -0400 (EDT) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Wed, 02 Oct 2024 20:07:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1727914026; x=1728000426; bh=PQ6q9Q9xiconUyoOQyKNT2xgkQhSSLam25VkwLlgdtk=; b= SaOwS/a3M34qKG4PEdi8QqSAef2bPYbxiEnHWtlubPKjKrSzqqZ5x27izmfsZanw 2/0sW8osktp4pxmk1kHC4VhDKLhzeKW6oEIghEH6Iub9JKXrOVxPnP1FA8tIzQBx X7TiYv0YLW68VGNaKnqI5bbkYLon/bl0rbjEPHiniD2u08APi3sjxHbheZl96cAu FQvyUN3rk2JNupFrn1ttjHvASU3tJqWUjEq7kxr9lhwxNgXHMAOIQxFMOGo0oROD 0bBNP4Zd1meyuDCLnQs5Gw5vGV40nK8KpAbPgtDGvA9kj2rSXYrxI/sWPmiT3EO3 cuBdX7zAgnqFsGmxFG3omQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1727914026; x= 1728000426; bh=PQ6q9Q9xiconUyoOQyKNT2xgkQhSSLam25VkwLlgdtk=; b=N Al2Ot3Yn2TLWqznTuVjNSDMKyUz0oex6GKfo5rgnyXUajs0JCiQEXaWlYN16oV9H 7YmpmPmlhe3AkgVqFt9zGFHUMSREYn3gxV2vPF65oPEO1e+1gqgp1EE8KQgvZHZ+ PGryDBO0jmTx6MGYNwTPI7JVNmmRCjQcD0DuQvSKXnT7Y/ZMv43etZ6pX7xaR64Z DAfzKX5pcbTVxrke3a1aoc6Tw+T+NUY0YlVIlmz4z0+reW+Wuak4nv4LbJLWO+wS FSLJCsav/X7XDi/JJPCrm5kPLGZnswlyU2qwxeVM5lIv1xxVKencWzRr6Kogds+J 6h6HjL/9vHplBGeTuoIsg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvddvtddgfedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffhvfhfjggtgfesthejredttddvjeen ucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvg hvqeenucggtffrrghtthgvrhhnpefgieetieduhfefgeegveekfeevfeevjedtleejgeei vdevudefvedtkeegiedvleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvhdpnhgspghrtghpthhtohep vddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepshgsrghughhhsehjrghnvghsth hrvggvthdrtghomhdprhgtphhtthhopeeileegiedvqdguohhnvgesuggvsggsuhhgshdr ghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Oct 2024 20:07:05 -0400 (EDT) Content-Language: en-US In-Reply-To: <2db7a569-d887-4336-a13d-6cdc9eb036a8@gutov.dev> 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:292873 Archived-At: Pushed to master in revision c8ecd7fa0da. Closing, but feedback welcome. On 28/09/2024 02:01, Dmitry Gutov wrote: > Hi! > > On 28/02/2024 19:31, Spencer Baugh wrote: >> >> In emacs-lisp-mode in an Emacs git checkout, M-? (xref-find-references) >> nicely searches the load path for references to a symbol. >> >> It would be neat if this feature could be accessed from >> describe-function and describe-variable as well, perhaps by just hitting >> M-? in the help buffer. >> >> The feature may need to be redesigned somewhat, since it's currently >> dependent on being run from a project; to use it from a >> describe-function help buffer, we'd want to only search the load-path. > > Reusing the Elisp backend seems the easiest approach. > > Caveats: > > * You need to press RET after M-? like anywhere else (unless xref- > prompt-for-identifier is customized). > * A bit hackish change in 'xref-backend-definitions'. > > Pros: > > * Both M-? and M-. work on anything that looks like symbol in the help > buffer, quoted or not - though there will be false positives like usual. > * Can be similarly added to cl-describe-type.