fix: void-variable read-symbol-positions-list w/ helpful

Only affects users on Emacs HEAD (29+), where read-symbol-positions-list
has been removed. This is a temporary solution until the reference is
addressed upstream, in the elisp-ref package.

Ref: Wilfred/elisp-refs#35
Fix: #6063
This commit is contained in:
Henrik Lissner 2022-02-02 01:51:52 +01:00
parent f26094b4ab
commit c6d3ceef7e

View file

@ -521,6 +521,10 @@ files, so this replace calls to `pp' with the much faster `prin1'."
:commands helpful--read-symbol
:hook (helpful-mode . visual-line-mode)
:init
(when EMACS29+
;; REVIEW See Wilfred/elisp-refs#35. Remove once fixed upstream.
(defvar read-symbol-positions-list nil))
;; Make `apropos' et co search more extensively. They're more useful this way.
(setq apropos-do-all t)