From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#28403: 25.2; find-tag works, but xref-find-definitions Date: Mon, 11 Sep 2017 00:35:01 +0300 Message-ID: References: <201709092240.v89MeFUo014854@psr.com> <201709102119.v8ALJipg019297@psr.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1505321446 23830 195.159.176.226 (13 Sep 2017 16:50:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Sep 2017 16:50:46 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Thunderbird/56.0 Cc: 28403@debbugs.gnu.org To: Winston , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 10 23:36:22 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dr9tc-00038W-N3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Sep 2017 23:36:04 +0200 Original-Received: from localhost ([::1]:54345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dr9tj-0005Io-T4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Sep 2017 17:36:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dr9td-0005Id-GI for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2017 17:36:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dr9ta-00051V-Ax for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2017 17:36:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51159) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dr9ta-00051B-6I for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2017 17:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dr9tZ-00027U-Qi for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2017 17:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Sep 2017 21:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28403 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28403-submit@debbugs.gnu.org id=B28403.15050793128087 (code B ref 28403); Sun, 10 Sep 2017 21:36:01 +0000 Original-Received: (at 28403) by debbugs.gnu.org; 10 Sep 2017 21:35:12 +0000 Original-Received: from localhost ([127.0.0.1]:59839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dr9sl-00026N-Uu for submit@debbugs.gnu.org; Sun, 10 Sep 2017 17:35:12 -0400 Original-Received: from mail-lf0-f68.google.com ([209.85.215.68]:38598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dr9sk-000269-Hk for 28403@debbugs.gnu.org; Sun, 10 Sep 2017 17:35:10 -0400 Original-Received: by mail-lf0-f68.google.com with SMTP id m199so3146497lfe.5 for <28403@debbugs.gnu.org>; Sun, 10 Sep 2017 14:35:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=DY9X8sOqJ8Yth7jm0qx1pu58GLqJrfHWd2i3/LkGBT4=; b=LPuS1MaYe4yTCpQjp24NNBoBVb/7pesh1Y3c6l/1l7Vs90pTGiengzTZoVKtYS4b+O JVZer6G28Zivuf33px4JENgfaZF+jr8Jb+DeHI414jIGppXMmxeXvwNPsCSlgUNgzguv oj8SP37F8ewaZTfqTYGe88j63h0WZmAzz9GzpxUuLmawKBmYbhZCeud5oM1D9zbJSZD7 X1HQ0wrbWXC3RZQUxesaPzwfCedZtdc30mu3GZ82ZZzbfLjW7dFw0hcFZxrckaOAA7Sw 6+FGzt23OuPpzHrgAcZEhui2vadTu0MtKlNslPIBn0HOfHO/163BD9veuGsEDJKASLtn BROQ== 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:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DY9X8sOqJ8Yth7jm0qx1pu58GLqJrfHWd2i3/LkGBT4=; b=oIFJLS82lcMYzlgfbHMhnw1mNAdCEHZu+u4bRo1JV5CbACEXRzvsKc3A8uCm1Snl9z iMNMcqQ/13EKuO1qTzlCnxUM0USQd1M81pyWoGzKKktVmL6zly5h6SyTt9F0+0PyRLqD jvwiodpowMCK06IM+3vvKiOZ+wTUa9fZo4WzHrhzblyJJsqZwZZJGfBR6MrgZ5RSsut0 t1YVI5/SA93/Qm/yun8ixWkhNPTIz77LX4DzhPWTiV+lUSnGwiT2oWYu0JO20Ayk2w5A QvNQTgoy4SIWrBKrerQqWO52z+vYldeSKwZgU+acHoL39Azbe+m7sYAqg3k3mMqTu/FO USVQ== X-Gm-Message-State: AHPjjUjywvSV8RWk5pxwOydPrwbBQTqpeGfyb1IAxFxYYEwM3cUqkS71 zEqpg8fqz27QtyUrM1U= X-Google-Smtp-Source: AOwi7QCps/DfxrmJi/EeJl3/PVRPOPN5SPieszfwY/rEUNEMsdM2kST/L3di2TXo1mqIbIlkIoKlCw== X-Received: by 10.46.83.22 with SMTP id h22mr2949712ljb.96.1505079304104; Sun, 10 Sep 2017 14:35:04 -0700 (PDT) Original-Received: from [192.168.1.174] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id y17sm1462383lje.31.2017.09.10.14.35.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Sep 2017 14:35:03 -0700 (PDT) In-Reply-To: <201709102119.v8ALJipg019297@psr.com> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136892 On 9/11/17 12:18 AM, Winston wrote: > * Find "foo" (partial name) didn't: rather than creating a window with > the alternatives, it failed with "No definitions found for: foo". That is because 'foo' is not defined in that file. And showing either of the two lines as a match for it would be a false positive. You should probably use project-find-regexp. Or use C-u M-x xref-find-definitions with completion: you type 'foo', TAB, then see the available tags that start with that string, pick one of them, and see its definitions. > find-tag given the same string "foo" went to the first one. > xref-find-definitions with Dmitry's suggested change also worked > (yesterday, without the special etags --regex TAGS, popping up a > window with the alternatives). > > Any suggestions? Just what I suggested before. But this problem is not related to your use of macros anymore. > -WBE > > P.S. Also, I'm finding it mildly annoying that xref-find-definitions, > when next to just about any word, including text in comments, tries > immediately to go to that word as a tag rather than prompting me > for a name with the word as the default, as find-tag did. That > means I'll have to remember to use my {arg} key fairly often to > tell it "don't do that, prompt me." Is there an "always prompt" > option, or do I need to write a trivial wrapper function? You can customize xref-prompt-for-identifier to t.