[PATCH] Setup Xref in 'sweeprolog-top-level-mode'
Export this patch
---
sweeprolog.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/sweeprolog.el b/sweeprolog.el
index 7c5167d..2634722 100644
--- a/sweeprolog.el
+++ b/sweeprolog.el
@@ -3325,6 +3325,7 @@ GOAL. Otherwise, GOAL is set to a default value specified by
comment-start "%")
(add-hook 'post-self-insert-hook #'sweeprolog-top-level--post-self-insert-function nil t)
(add-hook 'completion-at-point-functions #'sweeprolog-completion-at-point nil t)
+ (add-hook 'xref-backend-functions #'sweeprolog--xref-backend nil t)
(setq sweeprolog-top-level-timer (run-with-idle-timer 0.2 t #'sweeprolog-colourise-query (current-buffer)))
(add-hook 'kill-buffer-hook
(lambda ()
Thank you!
Applied in 4d1bb198d89b111bfcd20a7bfa81ae2006599396 after solving a
merge conflict with the current master.
Best,
Eshel
--
2.39.2
Philip Kaludercic <philipk@posteo.net> writes: