GNU bug report logs -
#46859
28.0.50; [PATCH]: Add option to truncate long lines in xref.el
Previous Next
Reported by: Theodor Thornhill <theo <at> thornhill.no>
Date: Mon, 1 Mar 2021 20:42:01 UTC
Severity: normal
Tags: patch
Found in version 28.0.50
Fixed in version 28.1
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 03.03.2021 23:06, Gregory Heytings wrote:
>
>>
>> With your approach we'll have to deal with interpreting Grep outputs
>> which list every line in the searched files. This will almost
>> certainly be slower in the case when there are only handful of
>> matches. But benchmarks welcome.
>>
>
> I don't know what you exactly need (I don't (yet?) use project), so I
> can't elaborate further or provide benchmarks alas.
The same code is also used in the default implementation of
xref-find-references, in case you ever tried it.
> Could you perhaps tell me what you need?
We are discussing changes to xref.el, because project-find-regexp
delegates a lot of its logic to it.
Check out xref-matches-in-files and xref--convert-hits which it calls at
the end. What you're thinking of seems to require a Grep-specific
version of xref--convert-hits logic, which in the end constructs
specialized xref items with a new type of location (alternative to
xref-file-location).
This bug report was last modified 4 years and 89 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.