Subject: bug#46992: xref-after-update-hook

From: Juri Linkov <[email-masked]>
Date: Sun, 07 Mar 2021 22:43:40 +0200

>> As suggested inhttps://lists.gnu.org/archive/html/emacs-devel/2021-03/msg00161.html
>> here is a patch that adds such hook:
>
> The patch LGTM, but have you tried using xref--xref-buffer-mode-hook?

This is the first thing that I tried, but the problem is that
it's called before the xref buffer is filled with results
where I need to put overlays on output lines.

Also the hook needs to be called after reverting xref buffer.