* lisp/help-mode.el (help-setup-xref): Disable outline-minor-mode (bug#64575).

This commit is contained in:
Juri Linkov 2023-07-13 19:38:36 +03:00
parent e5be6c7ae3
commit b94e7e6334

View file

@ -498,6 +498,10 @@ This should be called very early, before the output buffer is cleared,
because we want to record the \"previous\" position of point so we can
restore it properly when going back."
(with-current-buffer (help-buffer)
;; Disable `outline-minor-mode' in a reused Help buffer
;; created by `describe-bindings' that enables this mode.
(when (bound-and-true-p outline-minor-mode)
(outline-minor-mode -1))
(when help-xref-stack-item
(push (cons (point) help-xref-stack-item) help-xref-stack)
(setq help-xref-forward-stack nil))