From unknown Fri Aug 15 01:55:23 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#25593 <25593@debbugs.gnu.org> To: bug#25593 <25593@debbugs.gnu.org> Subject: Status: Feature request: xref-find-definitions in current file Reply-To: bug#25593 <25593@debbugs.gnu.org> Date: Fri, 15 Aug 2025 08:55:23 +0000 retitle 25593 Feature request: xref-find-definitions in current file reassign 25593 emacs submitter 25593 Joel Ekstr=C3=B6m severity 25593 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 31 17:00:45 2017 Received: (at submit) by debbugs.gnu.org; 31 Jan 2017 22:00:45 +0000 Received: from localhost ([127.0.0.1]:52622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYgTl-0006or-AJ for submit@debbugs.gnu.org; Tue, 31 Jan 2017 17:00:45 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYgDK-0006Qc-Pn for submit@debbugs.gnu.org; Tue, 31 Jan 2017 16:43:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYgDE-0008Hl-Vl for submit@debbugs.gnu.org; Tue, 31 Jan 2017 16:43:41 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41760) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cYgDE-0008Hh-S4 for submit@debbugs.gnu.org; Tue, 31 Jan 2017 16:43:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYgDD-0003NZ-QK for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 16:43:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYgDA-0008H0-Mx for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 16:43:39 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:47536) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cYgDA-0008Ev-G7 for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 16:43:36 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4469723F43 for ; Tue, 31 Jan 2017 16:43:34 -0500 (EST) Received: from web5 ([10.202.2.215]) by compute4.internal (MEProxy); Tue, 31 Jan 2017 16:43:34 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=ekstrom.io; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=yivKWjzHOobctIXanEzNIvHxNZw=; b=XcHDkRb2WROzB/fEp38YR /Id8kQeSB1/1WL9zT7xTA2Uyfmm8E+jhXi/KodrGxkvvqU4qSYljgOKAm17uDnpE Evvlw67+O+xbRHSmfdkI+BwItKBSbXWAs5UHLMVjgC/oKFuUQvcQt/oEg9Vbk1b7 3X9MMPy79DH2hu/fWKajXg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=smtpout; bh=yivKWjzHOobctIXanEzNIvHxN Zw=; b=BCSrlV1mcKtWXGKcTlsZBDoUWXxI4CTBvG/9zGjSuYMKVie6TyQRUgWwv nE/cfhZtmaADuibDcGVGHCKvVy22aAwaCiBCeDPf//TgJcOUolHRaG6Gx9WHnQcY 4r2KDa5xYGwxTaEx3OY4aM0ERgrZdT29oaZKUoDdstDUHJZ3IA= X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 1CF2D6ABF9; Tue, 31 Jan 2017 16:43:34 -0500 (EST) Message-Id: <1485899014.3004769.866003688.171DD58C@webmail.messagingengine.com> From: =?utf-8?Q?Joel=20Ekstr=C3=B6m?= To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-37809a74 Date: Tue, 31 Jan 2017 22:43:34 +0100 Subject: Feature request: xref-find-definitions in current file X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 31 Jan 2017 17:00:42 -0500 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: -4.3 (----) Hi! In certain programming environments (especially object/protocol oriented ones), it is very common that the same function exists in many files. I often find myself needing to jump to a definition I know is in the file I'm currently working on. xref-find-definitions can make this hard if there are many candidates. What I would like is to be able to filter xref-find-definitions to only show definitions in the currently open buffer. Sort of like what list-tags does already, but without having to specify the file and switch to another buffer. Thanks! Date: Tue, 31 Jan 2017 22:40:34 +0100 Message-ID: From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 02 20:25:32 2017 Received: (at 25593) by debbugs.gnu.org; 3 Feb 2017 01:25:33 +0000 Received: from localhost ([127.0.0.1]:54324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZSd2-00043u-NW for submit@debbugs.gnu.org; Thu, 02 Feb 2017 20:25:32 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZSd1-00043i-AJ for 25593@debbugs.gnu.org; Thu, 02 Feb 2017 20:25:31 -0500 Received: by mail-wm0-f66.google.com with SMTP id u63so822496wmu.2 for <25593@debbugs.gnu.org>; Thu, 02 Feb 2017 17:25:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=1uWBbUo2/0LouQ0rYFdP+VeN10XARp1T8jREoTAH+w4=; b=D/1bBBWP8Fn9hXRpFBMdVPNgtdWqdQL3zNAq3+g2La4XKT6Vdmu8KYOLEA1JHaRWP5 lU48FD1j6jZJNImk1mDvSHxKuETfXylJx1Zt+qYuF4n+rs+GfK7w921sOvYxkxkYadtz Kur5wZOCyoCjrOXdXv9wpLSAp84w5Tbqnr8aYfimPMM0CisB3wVYHMzx5p4kh5EIqh30 A2Ik/FG47C2TOCPqV9HGpeFw+kwA2sk/p+8qP/e95h411Fb4zil+N4J3YGHsu3tM9lRV 9k6fXD5MrrA0Dkw5VTJc4T5S+3qcmVqVJrx9uyJBNQMsoh5bFu4m/cBK9KsWA2AiPY9f 4lUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1uWBbUo2/0LouQ0rYFdP+VeN10XARp1T8jREoTAH+w4=; b=kOUBXTVoT7t3Ss88v/AM25bjUyvuHyh/7Q+fG1wRYVNsD+lY1Y/Kh2kcW1xi87f1E7 jt+YQWem45Pew0C/BlhaxdPtArfDClojvuI3ZetOQKW3rV1NnHa3gdKWG5orHJR4GYEl R9TStqtsFbHC1fMNvn4X42ORjhD0H78MdR0M1KqDDmdBa0D84x+0sFR+rdtACsczQtrq vkY4aTxv+xcxoSAESdodSoHQ3dOvD+mp5Ym4SyWhjWoAjBDpiJyC89J/Khfguvr+Canv 2OX/fyh9zL7a7D52odvMkbzDUG+WHvB2tQRY3lG2E0kMXthoY37mvsq5BJvAAtG+G+60 sF/g== X-Gm-Message-State: AMke39mTbvkvmbe9ZlTKD0U+i6M6Rak5+458hP2VeU74AKi91YzBr7W4zDhKrc+TtpJYwA== X-Received: by 10.28.214.137 with SMTP id n131mr264175wmg.120.1486085125162; Thu, 02 Feb 2017 17:25:25 -0800 (PST) Received: from [192.168.1.3] ([185.105.173.41]) by smtp.googlemail.com with ESMTPSA id v67sm42518801wrc.45.2017.02.02.17.25.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Feb 2017 17:25:24 -0800 (PST) Subject: Re: bug#25593: Feature request: xref-find-definitions in current file To: =?UTF-8?Q?Joel_Ekstr=c3=b6m?= , 25593@debbugs.gnu.org References: <1485899014.3004769.866003688.171DD58C@webmail.messagingengine.com> From: Dmitry Gutov Message-ID: Date: Fri, 3 Feb 2017 03:25:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: <1485899014.3004769.866003688.171DD58C@webmail.messagingengine.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 25593 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.5 (/) Hi Joel, On 31.01.2017 23:43, Joel Ekström wrote: > I often find myself needing to jump to a definition I know is in the > file I'm currently working on. Normally, I'd use M-x imenu for that. Or actually counsel-imenu, the third-party frontend to this information. IME this is most useful when the language in question doesn't have a smart navigation backend, and the project is not indexed with TAGS. > xref-find-definitions can make this hard > if there are many candidates. Sounds about right. > What I would like is to be able to filter xref-find-definitions to only > show definitions in the currently open buffer. Sort of like what > list-tags does already, but without having to specify the file and > switch to another buffer. There are multiple possible ways to solve that problem. One that you are directly requesting would involve creating a new backend-agnostic command, as well as either a way to hint the backend that we only want xrefs from a particular file, or codyfing that the "group" field in xrefs is always a file name, and filtering by it. On the other hand, we could create a dedicated command like xref-show-imenu which will pull information from imenu specifically. Does that sound appealing to you? Personally, Counsel's UI feels best for displaying IMenu entries, and I'd be happy to use something like that for xref-find-definitions as well. Unfortunately, there's no similar UI in the core so far. If you haven't known about imenu before, does me mentioning it actually solve your problem already? From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 03 03:43:08 2017 Received: (at 25593) by debbugs.gnu.org; 3 Feb 2017 08:43:08 +0000 Received: from localhost ([127.0.0.1]:54458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZZSV-0003zp-E5 for submit@debbugs.gnu.org; Fri, 03 Feb 2017 03:43:07 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:41235) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZZST-0003zg-RJ for 25593@debbugs.gnu.org; Fri, 03 Feb 2017 03:43:06 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 16C4C2096D; Fri, 3 Feb 2017 03:43:05 -0500 (EST) Received: from web6 ([10.202.2.216]) by compute4.internal (MEProxy); Fri, 03 Feb 2017 03:43:05 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=ekstrom.io; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=YVD8Fqj7UhNqXqqgXb5+jBgG1u k=; b=l14iK3YDzk9BlXkU0UYcToBwybQS0lc3yMQxrjoo1ID7nXQ2T/DDtFesmY Xj0Y5mxIOH5GsBTxNV1uuJJiM3uunFA5PTDCUt60u12WvQ0zTHK47Crgm83KheVg w/SwY/e95K0302n58+rsdApNcVe+rKEec+Bn2aXPif7HmNhYo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=smtpout; bh=YV D8Fqj7UhNqXqqgXb5+jBgG1uk=; b=BWoCYmTBRwOuv5IFP29MyAB9dWiA78cWtu oqORKzkIPkvbgGNApjPHQi59wdqGQHcIstkATIxqueC7GfsEGnWbx5m00+Gf3HQx 3+QrKWr58xKkYS4AmMeXkUmxG/P2gl9M4sq1RR6fnuCs6ytpvE2MCEHDsCaBufF0 weTB29q/M= X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id E8D4348004; Fri, 3 Feb 2017 03:43:04 -0500 (EST) Message-Id: <1486111384.683437.868968984.70981A3D@webmail.messagingengine.com> From: =?utf-8?Q?Joel=20Ekstr=C3=B6m?= To: Dmitry Gutov , 25593@debbugs.gnu.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-e9b51b02 In-Reply-To: Date: Fri, 03 Feb 2017 09:43:04 +0100 Subject: Re: bug#25593: Feature request: xref-find-definitions in current file References: <1485899014.3004769.866003688.171DD58C@webmail.messagingengine.com> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 25593 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.7 (/) Hi Dmitry, thanks for your response. It's funny that you mention counsel-imenu, because counsel/ivy-mode is actually one of the reasons I wanted this in the first place. xref-find-definitions displays perfectly in ivy-mode (similar to how counsel-imenu works), while list-tags does not. I was actually not aware that counsel-imenu exists, so this solves my problem to some extent. It's a great improvement compared to using list-tags. That said - having an option to have xref-find-definitions filter by file would still be useful, since ctags is able to index things that imenu does not. However - if it isn't a simple fix then I don't think it's worth it, since imenu is "good enough". From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 03 06:53:34 2017 Received: (at 25593) by debbugs.gnu.org; 3 Feb 2017 11:53:34 +0000 Received: from localhost ([127.0.0.1]:54530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZcQo-0008OA-Ep for submit@debbugs.gnu.org; Fri, 03 Feb 2017 06:53:34 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:37707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZcQm-0008Nx-Kn for 25593@debbugs.gnu.org; Fri, 03 Feb 2017 06:53:33 -0500 Received: by mail-wm0-f41.google.com with SMTP id v77so24268041wmv.0 for <25593@debbugs.gnu.org>; Fri, 03 Feb 2017 03:53:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=oGJkXfZYMjNaydo4jSCUzzCpWwf0NY/uFWMhdNxJ7hM=; b=XDIHbqd72FlWrLP3TsC/32WajBCxG+7cc9qZx/eREK222vAePDGH2eULjOWQso0eut y7XwxW5OClZyybjmlgzLnaBnLx5bpeojeQ5tM2EBbCt7d8lhMmhch3R9ceHQyJDfJQJt 9Bqxt2XCdAye5FL3x1VA3pQOjTMtv+Eg+dXYbHZ/dWxk0HrGP5CRgtjxWuguzOpTtrIZ w9yUC4eAAiAdEh8XP/0XfvImPPNp/Z6l9QjIAoTL/ab2I/vUshj381wdlsbH/4MrEC3T mrPPHrheBAw0pCtbxOALh+tXwmoGueGqx4SW5RLk1IwroQw2t6o6oOnJ+zFew2eRmwjO 8T8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oGJkXfZYMjNaydo4jSCUzzCpWwf0NY/uFWMhdNxJ7hM=; b=GlJf9iPQNJKep6C9ieFjCDiIAeYAVcxAXiOwP9Uaz/zZArH8qG2bAwZ0M4IQ4hepjq 2BKJXmEf4f7i7qZvUEGm/TeZATYranEnJ3HJ+pEJ112q3KxXScjPVmgnVASn3G88Y1O/ N+bsDNG5XMVse3KMQ7U8QcCiyLq9EdTLGHuLykS9nuYdOJYpKpLi36FOoIntPbQL/Ype 2FkG43YTFRBAL9wMFUFJKRIZp9wt6Bq9Q+Y/9n9X7I7C9Lbw5WXm/jOD67vueDzGbMJu N55sBg9ipqYEtG1N4BtEn0NwJYHt/iyPcdjJ5J8pPQ77P351rwYOpiXbJZAj8B1IBEYO O+kw== X-Gm-Message-State: AMke39ngYxn6OMSPe4cBmCCmBdXm3ndC1DNHc3sCgA8rQXzkjlZXFBHrJyq5rW72RpkdYA== X-Received: by 10.28.22.146 with SMTP id 140mr1073832wmw.22.1486122806485; Fri, 03 Feb 2017 03:53:26 -0800 (PST) Received: from [192.168.1.3] ([185.105.173.41]) by smtp.googlemail.com with ESMTPSA id r24sm8355756wrr.34.2017.02.03.03.53.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Feb 2017 03:53:25 -0800 (PST) Subject: Re: bug#25593: Feature request: xref-find-definitions in current file To: =?UTF-8?Q?Joel_Ekstr=c3=b6m?= , 25593@debbugs.gnu.org References: <1485899014.3004769.866003688.171DD58C@webmail.messagingengine.com> <1486111384.683437.868968984.70981A3D@webmail.messagingengine.com> From: Dmitry Gutov Message-ID: Date: Fri, 3 Feb 2017 13:53:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: <1486111384.683437.868968984.70981A3D@webmail.messagingengine.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 25593 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.5 (/) On 03.02.2017 10:43, Joel Ekström wrote: > It's funny that you mention counsel-imenu, because counsel/ivy-mode is > actually one of the reasons I wanted this in the first place. > xref-find-definitions displays perfectly in ivy-mode (similar to how > counsel-imenu works), I see what you mean. ivy-mode switches completing-read to its UI. But if there are several locations corresponding to the given name, you'll see them in an *xref* buffer. > I was actually not aware that counsel-imenu exists, so this solves my > problem to some extent. Happy to help. I use it a lot. > That said - having an option to have xref-find-definitions filter by > file would still be useful, since ctags is able to index things that > imenu does not. Maybe that happens too, but my experience is usually the opposite. > However - if it isn't a simple fix then I don't think > it's worth it, since imenu is "good enough". Let's see if someone else wants xref-find-definitions-in-current-file as well, or if they have some other ideas on this issue. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 11 04:08:37 2020 Received: (at 25593) by debbugs.gnu.org; 11 Aug 2020 08:08:37 +0000 Received: from localhost ([127.0.0.1]:38497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5PKm-0007PX-PQ for submit@debbugs.gnu.org; Tue, 11 Aug 2020 04:08:36 -0400 Received: from mail-yb1-f179.google.com ([209.85.219.179]:33739) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5PKl-0007PJ-6M for 25593@debbugs.gnu.org; Tue, 11 Aug 2020 04:08:35 -0400 Received: by mail-yb1-f179.google.com with SMTP id p191so6598474ybg.0 for <25593@debbugs.gnu.org>; Tue, 11 Aug 2020 01:08:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=yU7XQkTpypUuVktxLwtwDv1rY8F2mEva5MLsYjBTLdM=; b=eL5TBmIlG83F7MLeJp95zbYfnFcn+UHfJq4H3Oi6YD7BcbVHFnqRK9wWpmrf4lkTKy KEeHPfC0ygskJuj0pRpcuqpW+gbd1oaZg+T2mXm5XfDYliJ/s1Uz9ibVETELUEJ3BvSN AyducNA93DxGkyYem6NYRXUdGe7NjRxdKJ02pJZJ97nMg0cN9okXFZyK3WO6KQaN9f4H uA7JMMenxyoaSLs/j6mPGA7qj3s90AAjM9PHKbKjB378sKaiXOtn3eND/iCVSVUUwFl0 xgIqrqas/iTTfklzuRgbcAaZ8QaMHbk1qvtft4eywHMrIyxBEBOHwHEliXMbhPaMEu11 Id/A== X-Gm-Message-State: AOAM5321lOBMzM5hm1b4Vdqv2XY1GtM1CXeFpKqHOZ3gCK4Al+yl9MDh 3v7ytyypRPQ+SOGvk+ouLQppBpUmwjfapsyOQXs= X-Google-Smtp-Source: ABdhPJxL8MzjsS1X0KVzVqieyjLU2kx5RcGQFMq741vLPhW7nd8NFvY92tTKbZd+XgNxG0cF4y/JGDT7NX3esUfSKRc= X-Received: by 2002:a25:b88b:: with SMTP id w11mr48390915ybj.129.1597133309807; Tue, 11 Aug 2020 01:08:29 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 11 Aug 2020 01:08:29 -0700 From: Stefan Kangas In-Reply-To: (Dmitry Gutov's message of "Fri, 3 Feb 2017 13:53:23 +0200") References: <1485899014.3004769.866003688.171DD58C@webmail.messagingengine.com> <1486111384.683437.868968984.70981A3D@webmail.messagingengine.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 11 Aug 2020 01:08:29 -0700 Message-ID: Subject: Re: bug#25593: Feature request: xref-find-definitions in current file To: Dmitry Gutov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25593 Cc: =?UTF-8?Q?Joel_Ekstr=C3=B6m?= , 25593@debbugs.gnu.org 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.0 (-) Dmitry Gutov writes: > On 03.02.2017 10:43, Joel Ekstr=C3=B6m wrote: > >> It's funny that you mention counsel-imenu, because counsel/ivy-mode is >> actually one of the reasons I wanted this in the first place. >> xref-find-definitions displays perfectly in ivy-mode (similar to how >> counsel-imenu works), > > I see what you mean. ivy-mode switches completing-read to its UI. > > But if there are several locations corresponding to the given name, you'l= l see > them in an *xref* buffer. > >> I was actually not aware that counsel-imenu exists, so this solves my >> problem to some extent. > > Happy to help. I use it a lot. > >> That said - having an option to have xref-find-definitions filter by >> file would still be useful, since ctags is able to index things that >> imenu does not. > > Maybe that happens too, but my experience is usually the opposite. > >> However - if it isn't a simple fix then I don't think >> it's worth it, since imenu is "good enough". > > Let's see if someone else wants xref-find-definitions-in-current-file as = well, > or if they have some other ideas on this issue. That was 3.5 years ago, and it seems like the bug reporter was happy with the proposed alternative. Does anyone else have an opinion on the proposal here, or should this be closed? Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 01 07:59:49 2020 Received: (at 25593-done) by debbugs.gnu.org; 1 Oct 2020 11:59:49 +0000 Received: from localhost ([127.0.0.1]:34300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNxFU-0006yG-B9 for submit@debbugs.gnu.org; Thu, 01 Oct 2020 07:59:49 -0400 Received: from mail-ej1-f54.google.com ([209.85.218.54]:39339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNxFR-0006xz-NW for 25593-done@debbugs.gnu.org; Thu, 01 Oct 2020 07:59:47 -0400 Received: by mail-ej1-f54.google.com with SMTP id p9so7611047ejf.6 for <25593-done@debbugs.gnu.org>; Thu, 01 Oct 2020 04:59:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=jD8Yyt2kpqLaa1aAubLumtIqu381WFqmMfbjf/vZxnA=; b=ZitiQ3LJ9oSKUv0BccPtbxWWYPFOijBnL2rHI7+7tIP78ai2+OmyMVIH1xenE+wZ0y fh+fPClFWn2LTSnlpNQr+BhDwjLffx2E6JfMQyg0eW11JEGeIlIZrD1+dPA3smLK9vyj vVpptlP0X30oS4zlmvhY7G0l32aCUfVzOakXKBkibE06oxTrTgU5+xOnVXOQrLIGkxOW cY3+Hs5fn0SZZ6LjkDzGFxEacb95xjsyVZgAjfmbU6S2JPord+XODS71QHVoW9YrtN71 mrzaAywROCoVcPDuDlOdoDXm7PNLJ7D6rDWQp9TcZYamVGghbHaPV1uLL0Zd9ARO5G+J 05sQ== X-Gm-Message-State: AOAM530FOnZD+zj6M0TZO8Lx2fy73qbSNdkfkefaPo5IWsYZ6p7ZJBqe 8veD5v+R0oWNrurLHIqUm4bpm4RQJ9e3BuN1JbQ= X-Google-Smtp-Source: ABdhPJyzPSEu7esHeeTqi+csZnsIR7LaMpI73g3jXm+qUHDimLFDyLiQUht/iAZcv8CN/sWSUYxwyoN/rdYif1OLc+w= X-Received: by 2002:a17:906:11d2:: with SMTP id o18mr7526744eja.420.1601553580016; Thu, 01 Oct 2020 04:59:40 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 1 Oct 2020 04:59:39 -0700 From: Stefan Kangas In-Reply-To: (Stefan Kangas's message of "Tue, 11 Aug 2020 01:08:29 -0700") References: <1485899014.3004769.866003688.171DD58C@webmail.messagingengine.com> <1486111384.683437.868968984.70981A3D@webmail.messagingengine.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Thu, 1 Oct 2020 04:59:39 -0700 Message-ID: Subject: Re: bug#25593: Feature request: xref-find-definitions in current file To: Dmitry Gutov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 25593-done Cc: =?UTF-8?Q?Joel_Ekstr=C3=B6m?= , 25593-done@debbugs.gnu.org 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.7 (/) Stefan Kangas writes: > Dmitry Gutov writes: > >> On 03.02.2017 10:43, Joel Ekstr=C3=B6m wrote: >> >>> It's funny that you mention counsel-imenu, because counsel/ivy-mode is >>> actually one of the reasons I wanted this in the first place. >>> xref-find-definitions displays perfectly in ivy-mode (similar to how >>> counsel-imenu works), >> >> I see what you mean. ivy-mode switches completing-read to its UI. >> >> But if there are several locations corresponding to the given name, you'= ll see >> them in an *xref* buffer. >> >>> I was actually not aware that counsel-imenu exists, so this solves my >>> problem to some extent. >> >> Happy to help. I use it a lot. >> >>> That said - having an option to have xref-find-definitions filter by >>> file would still be useful, since ctags is able to index things that >>> imenu does not. >> >> Maybe that happens too, but my experience is usually the opposite. >> >>> However - if it isn't a simple fix then I don't think >>> it's worth it, since imenu is "good enough". >> >> Let's see if someone else wants xref-find-definitions-in-current-file as= well, >> or if they have some other ideas on this issue. > > That was 3.5 years ago, and it seems like the bug reporter was happy > with the proposed alternative. > > Does anyone else have an opinion on the proposal here, or should this be > closed? That was 7 weeks ago, and there has been no further comments. I'm therefore closing this bug now. From unknown Fri Aug 15 01:55:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 30 Oct 2020 11:24:14 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator