fix: restrict find-function-search-for-symbol advice to Emacs 29

The issue this advice fixes are fixed at some point in 30.x.
This commit is contained in:
Henrik Lissner 2024-08-15 23:19:49 -04:00
parent 5e2e886b35
commit 0f4328058c
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -577,8 +577,8 @@ files, so this replace calls to `pp' with the much faster `prin1'."
(lambda (button)
(helpful-variable (button-get button 'apropos-symbol))))))
(when (> emacs-major-version 28)
;; REVIEW This should be reported upstream to Emacs.
;; DEPRECATED: Remove when support for 29 is dropped.
(when (= emacs-major-version 29)
(defadvice! doom--find-function-search-for-symbol-save-excursion-a (fn &rest args)
"Suppress cursor movement by `find-function-search-for-symbol'.