mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-27 10:54:40 +00:00
Make dynamic info-lookup more backwards-compatible
* lisp/info-look.el (info-lookup--expand-info): Don't try to expand elements that aren't functions (bug#57446).
This commit is contained in:
parent
716441a069
commit
f427b985a1
@ -130,7 +130,8 @@ OTHER-MODES is a list of cross references to other help modes.")
|
|||||||
(defun info-lookup--expand-info (info)
|
(defun info-lookup--expand-info (info)
|
||||||
;; We have a dynamic doc-spec function.
|
;; We have a dynamic doc-spec function.
|
||||||
(when (and (null (nth 3 info))
|
(when (and (null (nth 3 info))
|
||||||
(nth 6 info))
|
(nth 6 info)
|
||||||
|
(functionp (nth 6 info)))
|
||||||
(setf (nth 3 info) (funcall (nth 6 info))
|
(setf (nth 3 info) (funcall (nth 6 info))
|
||||||
(nth 6 info) nil))
|
(nth 6 info) nil))
|
||||||
info)
|
info)
|
||||||
|
Loading…
Reference in New Issue
Block a user