mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
help-setup-xref: Fix the previous changes
* lisp/help-mode.el (help-setup-xref): Instead of killing all local variables directly, call the current major mode function, to preserve its own locals while dropping the rest (bug#73637).
This commit is contained in:
parent
44aa385b9a
commit
ef87ce0ffa
1 changed files with 2 additions and 1 deletions
|
|
@ -505,7 +505,8 @@ 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)
|
||||
(kill-all-local-variables)
|
||||
;; Re-enable major mode, killing all unrelated local vars.
|
||||
(funcall major-mode)
|
||||
(when help-xref-stack-item
|
||||
(push (cons (point) help-xref-stack-item) help-xref-stack)
|
||||
(setq help-xref-forward-stack nil))
|
||||
|
|
|
|||
Loading…
Reference in a new issue