From unknown Sat Aug 16 19:21:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66332: Xref mode-line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Oct 2023 06:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66332 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 66332@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169640053711456 (code B ref -1); Wed, 04 Oct 2023 06:23:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Oct 2023 06:22:17 +0000 Received: from localhost ([127.0.0.1]:41328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnvGz-0002yh-2j for submit@debbugs.gnu.org; Wed, 04 Oct 2023 02:22:17 -0400 Received: from lists.gnu.org ([2001:470:142::17]:38904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnvGw-0002yT-6L for submit@debbugs.gnu.org; Wed, 04 Oct 2023 02:22:16 -0400 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 1qnvGX-0001TH-ST for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2023 02:21:50 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qnvGV-00060R-Cd for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2023 02:21:49 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 4279920005 for ; Wed, 4 Oct 2023 06:21:41 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET Date: Wed, 04 Oct 2023 09:20:39 +0300 Message-ID: <867co2c3p4.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net Received-SPF: pass client-ip=217.70.183.200; envelope-from=juri@linkov.net; helo=relay7-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) grep-mode shows the number of matches on the mode-line. Could xref do the same? From unknown Sat Aug 16 19:21:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66332: Xref mode-line Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Oct 2023 11:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66332 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov , 66332@debbugs.gnu.org Received: via spool by 66332-submit@debbugs.gnu.org id=B66332.169641933511665 (code B ref 66332); Wed, 04 Oct 2023 11:36:02 +0000 Received: (at 66332) by debbugs.gnu.org; 4 Oct 2023 11:35:35 +0000 Received: from localhost ([127.0.0.1]:41721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo0AA-000325-N3 for submit@debbugs.gnu.org; Wed, 04 Oct 2023 07:35:34 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:33979) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo0A8-00031l-8k for 66332@debbugs.gnu.org; Wed, 04 Oct 2023 07:35:33 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id E78045C0435; Wed, 4 Oct 2023 07:35:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 04 Oct 2023 07:35:08 -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:sender:subject:subject:to:to; s=fm1; t= 1696419308; x=1696505708; bh=KsmKmR8YgtuPnhpWHOtsB31stDD6Jhh3n2r 6Z2CLPzo=; b=ucZKQ+sfVq9pHB1/qsHSCW3TPlZ+yAGowwle5UO1Whyqnv8j5zb LD9BeBHvZvrsDTU2+LltRE54Oqd1D6SkRlrf2eOceIFNq1WDiVLLobPlKS3nqe8y Lp28cUo+5ASHILK3p22PHxuHF45XC6DOd9dzvWUGzu4F4lOIj+3mBFA5C1LZXuq+ Ix8UXKugtoqZhwbXz9ULcLZPrHoY60dKH7o8+pJiwpaDUOgAdXZPbG2lMvsvGioF UYfGQKiVWtkBb6GzOl//xz8qKS9UgT5SY7Ui3faVufVyD6UXZ9rUa6Fyrc+2wGvy BSyLwIMam7LsYa825if5wD+JTBZ2hHU8Yyg== 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:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1696419308; x= 1696505708; bh=KsmKmR8YgtuPnhpWHOtsB31stDD6Jhh3n2r6Z2CLPzo=; b=N OligkH0Gm4qvHeqSLr9DOerLY7XGUw+mAFjV8cWcFL9VKB0p0dN5f5DX+oGrZpbV g7l1aDDQtjGGfHLF8SdjnBASky9aB97SPzixBSCtnFCMF9lKnWD4BGUSjeAUwxGd Qz55zAY+LwZAu4NAMiWDniisUSiwQa7X/atZlD1fhXSsq5IT2VPQwxk3a9mWGHPM /Ibwtz745DquoluNY/ypgg8kX8LNkEaadoE7truysamDAurAGS+erZWg8R/mjtEu mQQ0o88KFr/fMuDr/EajStBgZx5MoKLOk2zhGhYblJ6FS+PDxoBh7mHTmCkioAPa fzX2CbgOrCxUbQpNm1F0A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrgedvgdegtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhithhr hicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrthhtvg hrnhepgeehtdehudejieetuedttdejkeehjeetueekheffuddtjeeuvdefveeuveeiuddu necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmih htrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 Oct 2023 07:35:07 -0400 (EDT) Message-ID: Date: Wed, 4 Oct 2023 14:35:05 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US References: <867co2c3p4.fsf@mail.linkov.net> From: Dmitry Gutov In-Reply-To: <867co2c3p4.fsf@mail.linkov.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.2 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.2 (---) On 04/10/2023 09:20, Juri Linkov wrote: > grep-mode shows the number of matches on the mode-line. > > Could xref do the same? Certainly. This should be especially useful later, when we make it update asynchronously. From unknown Sat Aug 16 19:21:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66332: Xref mode-line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Oct 2023 17:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66332 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 66332@debbugs.gnu.org Received: via spool by 66332-submit@debbugs.gnu.org id=B66332.169643936524700 (code B ref 66332); Wed, 04 Oct 2023 17:10:02 +0000 Received: (at 66332) by debbugs.gnu.org; 4 Oct 2023 17:09:25 +0000 Received: from localhost ([127.0.0.1]:45232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo5NE-0006QI-Lo for submit@debbugs.gnu.org; Wed, 04 Oct 2023 13:09:24 -0400 Received: from relay7-d.mail.gandi.net ([2001:4b98:dc4:8::227]:47353) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo5NC-0006Pr-Hg; Wed, 04 Oct 2023 13:09:22 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id C129220005; Wed, 4 Oct 2023 17:08:54 +0000 (UTC) From: Juri Linkov In-Reply-To: (Dmitry Gutov's message of "Wed, 4 Oct 2023 14:35:05 +0300") Organization: LINKOV.NET References: <867co2c3p4.fsf@mail.linkov.net> Date: Wed, 04 Oct 2023 19:59:06 +0300 Message-ID: <86y1gi9vdx.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) severity 66332 wishlist thanks >> grep-mode shows the number of matches on the mode-line. >> Could xref do the same? > > Certainly. > > This should be especially useful later, when we make it update > asynchronously. Should I look into the implementation, or you already know how it could work? From unknown Sat Aug 16 19:21:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66332: Xref mode-line Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Oct 2023 17:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66332 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: 66332@debbugs.gnu.org Received: via spool by 66332-submit@debbugs.gnu.org id=B66332.16964399113260 (code B ref 66332); Wed, 04 Oct 2023 17:19:02 +0000 Received: (at 66332) by debbugs.gnu.org; 4 Oct 2023 17:18:31 +0000 Received: from localhost ([127.0.0.1]:45249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo5W3-0000qW-Ec for submit@debbugs.gnu.org; Wed, 04 Oct 2023 13:18:31 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:35083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo5W0-0000qF-KS for 66332@debbugs.gnu.org; Wed, 04 Oct 2023 13:18:29 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 86DC25C0399; Wed, 4 Oct 2023 13:18:04 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 04 Oct 2023 13:18:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :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:sender:subject:subject:to:to; s=fm1; t= 1696439884; x=1696526284; bh=4kRD4/5v7o91gIE0qHmoKRaZUdLbcrBEE3j Mgsr15Yo=; b=B5KlcqmSIqzKn7HR67kFAe7d3csGe+UU20t7mv7bcoHXq4khpxn SnUrX+H3VQ9GUWlCT26BO5wgry7+x64rUVsPfA9GuyyEmNDXNidXUsHahTiuhSP3 mNZFg+OaA4qNPUEzDFz+WjqAOehwTLbGozxKPgwe8xBmThsRIriCiPNTbJ6+783P tVzLoVgVuh2Umcnd1qau4bZwgW3ih8LFltvwJdnfH6qnN3KZCADmWjZVYTPozQvu ngWRfTHu2eglJSUQwC5xnjVzt0JPn/kDHRgi0tF7T6O3w8nk9XVgnGXrUJ+1MsBR rR8w+0Ql967F9x2H9/MXFj8ShFKKxoPXz4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1696439884; x=1696526284; bh=4kRD4/5v7o91gIE0qHmoKRaZUdLbcrBEE3j Mgsr15Yo=; b=X1YmYOq5vdXqzJA0z3FUSsR5SRoypIAHKvaCq49Ac2u2BqF8Ykk 9trXE4KYdXyHFZtEEZWqlP6TXNYgdWaSkW0lWHWtHyy05CXLrvnpiVhZwodi8Q2p uEKYyd3eOy7wnzJcCNIksYoilKBoRcCoNA/pW96TZFNpz/PCyqme8rm/dKs9DGnj E57xacT3F0x8/cEEgKuIbJTMJDX7Z3wqk98nay+weBxf6ygfccSVH3StvOYh0C90 8XaKbZrNNzG/Rx3ty95UeC7+BGlFAVaXTDb6FshbDgpIBg9nZJtW3l0mNmm2ea6/ uenz2oBPqGnD5lWDVkX2/KwDTKJnf6aq1HQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrgedvgddutdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 Oct 2023 13:18:03 -0400 (EDT) Message-ID: <29cc81a6-0629-38d9-e69e-c7934432cf47@gutov.dev> Date: Wed, 4 Oct 2023 20:18:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US References: <867co2c3p4.fsf@mail.linkov.net> <86y1gi9vdx.fsf@mail.linkov.net> From: Dmitry Gutov In-Reply-To: <86y1gi9vdx.fsf@mail.linkov.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.2 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.2 (---) On 04/10/2023 19:59, Juri Linkov wrote: >>> grep-mode shows the number of matches on the mode-line. >>> Could xref do the same? >> Certainly. >> >> This should be especially useful later, when we make it update >> asynchronously. > Should I look into the implementation, or you already know how it could work? I might not get around to this until after the next few weeks, so you're welcome to take initiative. From unknown Sat Aug 16 19:21:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66332: Xref mode-line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Oct 2023 07:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66332 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 66332@debbugs.gnu.org Received: via spool by 66332-submit@debbugs.gnu.org id=B66332.169657754021021 (code B ref 66332); Fri, 06 Oct 2023 07:33:02 +0000 Received: (at 66332) by debbugs.gnu.org; 6 Oct 2023 07:32:20 +0000 Received: from localhost ([127.0.0.1]:49068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qofJr-0005Sy-LG for submit@debbugs.gnu.org; Fri, 06 Oct 2023 03:32:19 -0400 Received: from relay8-d.mail.gandi.net ([2001:4b98:dc4:8::228]:45727) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qofJm-0005Sh-0i for 66332@debbugs.gnu.org; Fri, 06 Oct 2023 03:32:18 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id D00341BF208; Fri, 6 Oct 2023 07:31:47 +0000 (UTC) From: Juri Linkov In-Reply-To: <29cc81a6-0629-38d9-e69e-c7934432cf47@gutov.dev> (Dmitry Gutov's message of "Wed, 4 Oct 2023 20:18:00 +0300") Organization: LINKOV.NET References: <867co2c3p4.fsf@mail.linkov.net> <86y1gi9vdx.fsf@mail.linkov.net> <29cc81a6-0629-38d9-e69e-c7934432cf47@gutov.dev> Date: Fri, 06 Oct 2023 09:59:51 +0300 Message-ID: <86bkdcw6mo.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain >>>> grep-mode shows the number of matches on the mode-line. >>>> Could xref do the same? >>> Certainly. >>> >>> This should be especially useful later, when we make it update >>> asynchronously. >> Should I look into the implementation, or you already know how it could work? > > I might not get around to this until after the next few weeks, so you're > welcome to take initiative. Ok, here is the initial version based on grep/compilation variables: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=xref-num-matches-found.patch diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index b7bfb192d87..dbf013bdba2 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -626,6 +626,18 @@ xref-pop-to-location (defconst xref-buffer-name "*xref*" "The name of the buffer to show xrefs.") +(defvar-local xref-num-matches-found 0) + +(defvar xref-num-matches-face 'compilation-info + "Face name to show the number of matches on the mode line.") + +(defconst xref-mode-line-matches + `(" [" (:propertize (:eval (int-to-string xref-num-matches-found)) + face ,xref-num-matches-face + help-echo "Number of matches so far") + "]")) +(put 'xref-mode-line-matches 'risky-local-variable t) + (defface xref-file-header '((t :inherit compilation-info)) "Face used to highlight file header in the xref buffer." :version "27.1") @@ -1235,6 +1229,8 @@ xref--show-xref-buffer (xref--ensure-default-directory dd (current-buffer)) (xref--xref-buffer-mode) (xref--show-common-initialize xref-alist fetcher alist) + (setq xref-num-matches-found (length xrefs)) + (setq mode-line-process (list xref-mode-line-matches)) (pop-to-buffer (current-buffer)) (setq buf (current-buffer))) (xref--auto-jump-first buf (assoc-default 'auto-jump alist)) --=-=-=-- From unknown Sat Aug 16 19:21:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66332: Xref mode-line Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Oct 2023 10:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66332 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: 66332@debbugs.gnu.org Received: via spool by 66332-submit@debbugs.gnu.org id=B66332.16965870896050 (code B ref 66332); Fri, 06 Oct 2023 10:12:01 +0000 Received: (at 66332) by debbugs.gnu.org; 6 Oct 2023 10:11:29 +0000 Received: from localhost ([127.0.0.1]:49298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qohnt-0001ZW-3V for submit@debbugs.gnu.org; Fri, 06 Oct 2023 06:11:29 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:60819) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qohnp-0001ZH-AB for 66332@debbugs.gnu.org; Fri, 06 Oct 2023 06:11:28 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 2CC2F5C0258; Fri, 6 Oct 2023 06:11:01 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 06 Oct 2023 06:11:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :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:sender:subject:subject:to:to; s=fm1; t= 1696587061; x=1696673461; bh=zocEQTckFVAEQJndDDzTH8zvEXbvZK9gy7G pWz7VuuA=; b=d57pgKt/Oy/UB3CLca6FKa2vq2jzGAx9Tq2e9/Kcvhc1J+BFWzp BAGOkxJR2obd6wKR0B/mXHWQAVnWEYMfSrc4efiqTIoItofBF9fAXrTg6xnierm3 Ez/GzqbExuSZe+NaVMJxzWthUfghvF0Ib4mDasNBswX1uOjTm4Utnsrs4gVfA6VY sywiK9QXRRipHjkOKD1V8DFfa+ONsO37jK4O+LzEZmxLdyAGs7yocraKTBwVOnAm Ux32j9xSNNvhT+ezB5MFWaUvuZoFxW9Tv2cSb2B98VelXGnh4rx6IOtpA4P4Vk+f 3xjwD6m6ihtFdyEZ2FOtMsouR8kJgHGDG0w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1696587061; x=1696673461; bh=zocEQTckFVAEQJndDDzTH8zvEXbvZK9gy7G pWz7VuuA=; b=FLh6dcTEcuQK/wdKWkCDMngnXSXc7t6KN+dyDcqhvw7BqYVIGWO AwUVdaH/WA6b9jNj7HIWLljkTMjttFuN3kes/QBHrGlggfxYY1BCC8wD3UNxijZg H6YsRH3BtSyBcZIBEf8yYQL3UW/Jzlbu+EM3cGU1JP9/WHevK4y4QC3YGyY1spzH kyvz91PLj/1r9RQSZ0qQUR5mjDCIF7DWXFe3/CFFrHlelegEVHRFzwm2T8/ooBOc 0mjMSfjaKcHK0cxdnjk4eBgOaOvU17L0vX4ETjOZiXOT7Nm/BPYQju4f7WDYL2UY 1rve3IWj6dsXey2tWpScWfh4pkbECwi1Avw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrgeeigddvgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeevledv veenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 6 Oct 2023 06:11:00 -0400 (EDT) Message-ID: <5d2d364b-862f-24b4-13c3-a38f0047a939@gutov.dev> Date: Fri, 6 Oct 2023 13:10:58 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US References: <867co2c3p4.fsf@mail.linkov.net> <86y1gi9vdx.fsf@mail.linkov.net> <29cc81a6-0629-38d9-e69e-c7934432cf47@gutov.dev> <86bkdcw6mo.fsf@mail.linkov.net> From: Dmitry Gutov In-Reply-To: <86bkdcw6mo.fsf@mail.linkov.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.2 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.2 (---) On 06/10/2023 09:59, Juri Linkov wrote: > Ok, here is the initial version based on grep/compilation variables: Looking good, thanks! From unknown Sat Aug 16 19:21:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66332: Xref mode-line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Oct 2023 18:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66332 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 66332@debbugs.gnu.org Received: via spool by 66332-submit@debbugs.gnu.org id=B66332.16968751445398 (code B ref 66332); Mon, 09 Oct 2023 18:13:02 +0000 Received: (at 66332) by debbugs.gnu.org; 9 Oct 2023 18:12:24 +0000 Received: from localhost ([127.0.0.1]:33099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpujw-0001Oz-27 for submit@debbugs.gnu.org; Mon, 09 Oct 2023 14:12:24 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:35233) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpuju-0001Oi-BU; Mon, 09 Oct 2023 14:12:23 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id D02121C0003; Mon, 9 Oct 2023 18:11:53 +0000 (UTC) From: Juri Linkov In-Reply-To: <5d2d364b-862f-24b4-13c3-a38f0047a939@gutov.dev> (Dmitry Gutov's message of "Fri, 6 Oct 2023 13:10:58 +0300") Organization: LINKOV.NET References: <867co2c3p4.fsf@mail.linkov.net> <86y1gi9vdx.fsf@mail.linkov.net> <29cc81a6-0629-38d9-e69e-c7934432cf47@gutov.dev> <86bkdcw6mo.fsf@mail.linkov.net> <5d2d364b-862f-24b4-13c3-a38f0047a939@gutov.dev> Date: Mon, 09 Oct 2023 21:03:36 +0300 Message-ID: <86jzrvhdvr.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) close 66332 30.0.50 thanks >> Ok, here is the initial version based on grep/compilation variables: > > Looking good, thanks! So pushed and closed.