Subject: Re: bug#23223: 25.0.92; Can xref-find-references be sped up?

From: Eli Zaretskii <[email-masked]>
Date: Thu, 07 Apr 2016 05:49:33 +0300

> Cc: [email-masked]
> From: Dmitry Gutov <[email-masked]>
> Date: Thu, 7 Apr 2016 02:11:39 +0300
> 
> On 04/06/2016 08:20 PM, Eli Zaretskii wrote:
> 
> > Sounds like a bug in reporting matches.
> 
> A bug in the matcher, maybe?

Could be, but less likely.  I looked at the Lisp scanner code and
didn't say anything that could explain this.  Moreover, the fid
command correctly shows both defmacro and cl-defmacro being present
in, say, lisp/ibuf-macs.el.

> > 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.
> 
> I suspected the wording would mean that it just invokes Grep and uses 
> the "boundary" anchors (\b), but no, doing a Grep search for 
> "\beval-when\b" yields a bigger (and more consistent) set of matches.

No, lid doesn't invoke Grep, AFAIR.