From 9f54f24e94d039331b982012bd66e960cfc764ff Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sat, 5 Oct 2024 08:55:26 +0200 Subject: [PATCH] ; Fix clean up of local variables in Help buffers * lisp/help-mode.el (help-setup-xref): Kill local values of 'xref-backend-functions' and 'semantic-symref-filepattern-alist' regardless of 'outline-minor-mode'. --- lisp/help-mode.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/help-mode.el b/lisp/help-mode.el index b6757fcdbf1..7bb69a9389f 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el @@ -518,9 +518,9 @@ restore it properly when going back." outline-minor-mode-highlight outline-minor-mode-use-buttons outline-default-state - outline-default-rules - xref-backend-functions - semantic-symref-filepattern-alist))) + outline-default-rules))) + (kill-local-variable 'xref-backend-functions) + (kill-local-variable '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))