GNU bug report logs -
#44905
27.1; Packages that customize xref-show-xrefs-function can break Dired's dired-do-find-regexp-and-replace
Previous Next
Reported by: Daniel Martín <mardani29 <at> yahoo.es>
Date: Fri, 27 Nov 2020 20:15:03 UTC
Severity: normal
Found in version 27.1
Fixed in version 27.2
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Scenario: A package customizes xref-show-refs-function to use a
different UI to show xref results. If that function does not return a
valid xref buffer, then Dired's dired-do-find-regexp-and-replace (bound
to Q by default) won't work anymore because it calls
xref-query-replace-in-results on the buffer returned by
xref--show-xrefs.
A workaround is that the package explicitly calls
xref--show-xref-buffer, which is done for example at
https://github.com/alexmurray/ivy-xref/commit/aa97103ea8ce6ab8891e34deff7d43aa83fe36dd,
but it doesn't feel like an ideal solution because of the duplicated
work.
Is there a way dired-do-find-regexp-and-replace could not depend on an
actual xref buffer to perform the replacement?
This bug report was last modified 4 years and 174 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.