-
I noticed that there was some prior discussion of this in #59. As far as I understand, the reason not to use xref-after-jump-hook was because the set of hooks that you would want to invoke for previewing a buffer could be a subset of the set of hooks that you would want when jumping for real, which makes sense to me. This came up for me in the context of: emacs-lsp/lsp-mode#4803 The issue there is that lsp-headerline-breadcrumb-mode would need to add a function to consult-after-jump-hook in order to get breadcrumbs on previewed buffers, in addition to adding a function to xref-after-jump-hook. Since it has been awhile since #59, I wanted to confirm if the logic for having consult-after-jump-hook separate from xref-after-jump-hook still holds, and whether it is expected from your end that a project like lsp-mode that wants to run actions on previewed buffers needs to add to consult-after-jump-hook in addition to xref-after-jump-hook. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I think it still holds, but feel free to investigate. I think the problem is also that xref is not always loaded in the context of Consult. |
Beta Was this translation helpful? Give feedback.
I think it still holds, but feel free to investigate. I think the problem is also that xref is not always loaded in the context of Consult.