From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23223: 25.0.92; Can xref-find-references be sped up? Date: Wed, 06 Apr 2016 20:20:11 +0300 Message-ID: <834mbemz78.fsf@gnu.org> References: <83pou4m6h7.fsf@gnu.org> <902ac022-3a76-c363-0c77-12b1cdb8d521@yandex.ru> <8351f540-d999-125c-9ad2-2e1b221f9bf5@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1459963290 11919 80.91.229.3 (6 Apr 2016 17:21:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Apr 2016 17:21:30 +0000 (UTC) Cc: 23223@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 06 19:21:17 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1anr8l-0004v4-Ct for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Apr 2016 19:21:15 +0200 Original-Received: from localhost ([::1]:44584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anr8h-0007me-K4 for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Apr 2016 13:21:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anr8d-0007lr-AR for bug-gnu-emacs@gnu.org; Wed, 06 Apr 2016 13:21:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anr8Y-000386-BO for bug-gnu-emacs@gnu.org; Wed, 06 Apr 2016 13:21:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anr8Y-00037w-7t for bug-gnu-emacs@gnu.org; Wed, 06 Apr 2016 13:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1anr8Y-0005c9-3N for bug-gnu-emacs@gnu.org; Wed, 06 Apr 2016 13:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Apr 2016 17:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23223 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23223-submit@debbugs.gnu.org id=B23223.145996324421547 (code B ref 23223); Wed, 06 Apr 2016 17:21:02 +0000 Original-Received: (at 23223) by debbugs.gnu.org; 6 Apr 2016 17:20:44 +0000 Original-Received: from localhost ([127.0.0.1]:52004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anr8G-0005bT-2r for submit@debbugs.gnu.org; Wed, 06 Apr 2016 13:20:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anr8E-0005bA-5a for 23223@debbugs.gnu.org; Wed, 06 Apr 2016 13:20:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anr83-000346-TN for 23223@debbugs.gnu.org; Wed, 06 Apr 2016 13:20:36 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anr83-000340-N2; Wed, 06 Apr 2016 13:20:31 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1913 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1anr83-0003c9-3g; Wed, 06 Apr 2016 13:20:31 -0400 In-reply-to: <8351f540-d999-125c-9ad2-2e1b221f9bf5@yandex.ru> (message from Dmitry Gutov on Wed, 6 Apr 2016 18:09:55 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:116122 Archived-At: > From: Dmitry Gutov > Date: Wed, 6 Apr 2016 18:09:55 +0300 > > On 04/06/2016 03:37 AM, Dmitry Gutov wrote: > > > If id-utils (and some other > > tools we delegate to) know symbol boundaries > > Is that actually the case, though? At most, it's using some wonky > heuristics. > > For instance, if I run 'mkid' in the top directory of the Emacs sources, > I can search for 'defmacro', and get a few lines with 'cl-defmacro' > instead among the results. Or search for 'eval-when', and get some lines > with 'eval-when-compile'. But not, curiously, 'cl-eval-when'. > > id-utils version 4.6 here. Sounds like a bug in reporting matches. We invoke lid with the -w switch, which should have reported only complete symbols, AFAIU (although the documentation confusingly talks about "words"). Perhaps report this to the developers. Anyway, if you search in the hits instead of in the file's buffer, this problem should not affect us, I think.