From c6d3ceef7e8f3abdfce3cd3e51f1e570603bd230 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 2 Feb 2022 01:51:52 +0100 Subject: [PATCH] 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 --- core/core-editor.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/core-editor.el b/core/core-editor.el index 170ce1be3..6b6c19fed 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -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)