On Sun, Nov 27, 2022 at 1:33 PM Dmitry Gutov <dgutov@yandex.ru> wrote:

> Sorry, brain fart. I meant
>
>   (setq add-log-current-defun-function #'ignore)

That "works", in the sense that now which-func gets "n/a" in the xref results buffer instead of a bogus name. But which-func can be useful in xref result buffers.