From: Juri Linkov Date: Thu, 13 Jul 2023 16:38:36 +0000 (+0300) Subject: * lisp/help-mode.el (help-setup-xref): Disable outline-minor-mode (bug#64575). X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b94e7e6334718061879c32025941f00913078230;p=emacs.git * lisp/help-mode.el (help-setup-xref): Disable outline-minor-mode (bug#64575). --- diff --git a/lisp/help-mode.el b/lisp/help-mode.el index bf64d032b65..b51276d5e06 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el @@ -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))