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:
parent
0d8a31423a
commit
59da5020da
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue