1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00

Fix an error when bookmark handler is a lambda

* lisp/bookmark.el (bookmark-type-from-full-record): Ensure
handler is a symbol before calling 'symbol-function'.
(Bug#79618)
This commit is contained in:
Augusto Stoffel 2025-10-12 16:13:11 +02:00 committed by Eli Zaretskii
parent 0d8a31423a
commit 59da5020da

View file

@ -376,7 +376,7 @@ BOOKMARK-RECORD is, e.g., one element from `bookmark-alist'. Its
type is read from the symbol property named
`bookmark-handler-type' read on the record handler function."
(let ((handler (bookmark-get-handler bookmark-record)))
(when (autoloadp (symbol-function handler))
(when (and (symbolp handler) (autoloadp (symbol-function handler)))
(autoload-do-load (symbol-function handler)))
(if (symbolp handler)
(get handler 'bookmark-handler-type)