On Sat, Nov 26, 2022 at 2:03 PM Eli Zaretskii <eliz@gnu.org> wrote:

> It is also possible to have xref.el define its customized
> add-log-current-defun-function, but that sounds like overkill to me.

That's what I meant, because it seemed to me less fragile than fiddling with the regexp. But I don't have a strong preference, as long as it is fixed.