Subject: bug#60578: closed (Re: bug#60578: xref-query-replace-in-results doesn't replace truncated lines)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 06 Jan 2023 07:32:03 +0000

Your bug report

#60578: xref-query-replace-in-results doesn't replace truncated lines

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
60578: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60578
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#60578: xref-query-replace-in-results doesn't replace truncated lines
From: Juri Linkov <[email-masked]>
To: Dmitry Gutov <[email-masked]>
Cc: [email-masked]
Date: Fri, 06 Jan 2023 09:30:04 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

>> 1. (setq xref-search-program 'ripgrep)
>> 2. (setq xref-search-program-alist '((ripgrep .
>>       "xargs -0 rg <C> -M 200 --max-columns-preview --null -nH --no-heading --no-messages -g '!*/' -e <R>")))
>> where "-M 200 --max-columns-preview" is added to default settings.
>> Then 'C-x p g' shows matches on truncated lines before the text
>> "[... omitted end of long line]".
>> But 'r' (xref-query-replace-in-results) skips these matches
>> that are displayed on truncated lines.
>
> What if you remove "-M 200 --max-columns-preview" from the invocation
> arguments, and instead customize xref-truncation-width to whatever value
> you want? E.g. the same -- 200.
>
> Does replacement work then?

Thanks for suggestion, I used "-M 200" when even xref-truncation-width
was still quite slow, but now with long-line-optimizations there should
not be such problems anymore.  So closing.

Subject: xref-query-replace-in-results doesn't replace truncated lines
From: Juri Linkov <[email-masked]>
To: [email-masked]
Date: Thu, 05 Jan 2023 19:52:59 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

1. (setq xref-search-program 'ripgrep)
2. (setq xref-search-program-alist '((ripgrep .
     "xargs -0 rg <C> -M 200 --max-columns-preview --null -nH --no-heading --no-messages -g '!*/' -e <R>")))

where "-M 200 --max-columns-preview" is added to default settings.
Then 'C-x p g' shows matches on truncated lines before the text
"[... omitted end of long line]".

But 'r' (xref-query-replace-in-results) skips these matches
that are displayed on truncated lines.