help-setup-xref: Clean up xref backend before non-Lisp uses

* lisp/help-mode.el (help-setup-xref): Kill more local variables,
previously set in help-fns--setup-xref-backend (bug#69462).
This commit is contained in:
Dmitry Gutov 2024-10-03 22:19:56 +03:00
parent 4d43fbe3f5
commit bde00266db

View file

@ -518,7 +518,9 @@ restore it properly when going back."
outline-minor-mode-highlight
outline-minor-mode-use-buttons
outline-default-state
outline-default-rules)))
outline-default-rules
xref-backend-functions
semantic-symref-filepattern-alist)))
(when help-xref-stack-item
(push (cons (point) help-xref-stack-item) help-xref-stack)
(setq help-xref-forward-stack nil))