GNU bug report logs -
#60578
xref-query-replace-in-results doesn't replace truncated lines
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Thu, 5 Jan 2023 17:57:02 UTC
Severity: normal
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Fri, 06 Jan 2023 09:30:04 +0200
with message-id <864jt4ruw9.fsf <at> mail.linkov.net>
and subject line Re: bug#60578: xref-query-replace-in-results doesn't replace truncated lines
has caused the debbugs.gnu.org bug report #60578,
regarding xref-query-replace-in-results doesn't replace truncated lines
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
60578: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60578
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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.
[Message part 3 (message/rfc822, inline)]
>> 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.
This bug report was last modified 2 years and 136 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.