From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Winston Newsgroups: gmane.emacs.bugs Subject: bug#28403: 25.2; find-tag works, but xref-find-definitions Date: Sun, 10 Sep 2017 17:19 EDT Message-ID: <201709102119.v8ALJipg019297@psr.com> References: <201709092240.v89MeFUo014854@psr.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=fixed X-Trace: blaine.gmane.org 1505078429 10142 195.159.176.226 (10 Sep 2017 21:20:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Sep 2017 21:20:29 +0000 (UTC) Cc: 28403@debbugs.gnu.org, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 10 23:20:21 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 1dr9eD-0001Zh-Pb for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Sep 2017 23:20:09 +0200 Original-Received: from localhost ([::1]:54306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dr9eH-0002u9-TN for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Sep 2017 17:20:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dr9e9-0002te-9e for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2017 17:20:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dr9e6-00057A-34 for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2017 17:20:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51146) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dr9e6-00056l-01 for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2017 17:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dr9e5-0001kg-JP for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2017 17:20:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <201709092240.v89MeFUo014854@psr.com> Resent-From: Winston Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Sep 2017 21:20: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.15050783906712 (code B ref 28403); Sun, 10 Sep 2017 21:20:01 +0000 Original-Received: (at 28403) by debbugs.gnu.org; 10 Sep 2017 21:19:50 +0000 Original-Received: from localhost ([127.0.0.1]:59827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dr9dt-0001kA-9u for submit@debbugs.gnu.org; Sun, 10 Sep 2017 17:19:50 -0400 Original-Received: from mail.psr.com ([67.212.42.216]:23499 helo=psr.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dr9dr-0001jv-Pm for 28403@debbugs.gnu.org; Sun, 10 Sep 2017 17:19:48 -0400 Original-Received: from psr.com (localhost [127.0.0.1]) by psr.com (8.15.2/8.15.2) with ESMTPS id v8ALJjS2019298 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 10 Sep 2017 17:19:45 -0400 (EDT) (envelope-from wbe@psr.com) Original-Received: (from wbe@localhost) by psr.com (8.15.2/8.15.2/Submit) id v8ALJipg019297; Sun, 10 Sep 2017 17:19:44 -0400 (EDT) (envelope-from wbe) 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:136745 Archived-At: Progress, but it's not working as expected. I ran etags --regex="/\([^ ]+\) +_ARGS[0-9]+/\1/" ... It added lines of the form: foo1 _ARGS2^?foo1^A341,12188 foo2 _ARGS1^?foo2^A368,12664 to TAGS, which looked reasonable. I then started up a fresh Emacs that uses xref-find-definitions instead of find-tag, and that did not have the setq change. The results surprised me: * Find "foo1" or "foo2" (complete names) worked, both when typed in and when extracting a name near (point). * Find "foo" (partial name) didn't: rather than creating a window with the alternatives, it failed with "No definitions found for: foo". 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? -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?