From 59da5020da703aae784ec8afeaa32348c6b6bfd5 Mon Sep 17 00:00:00 2001 From: Augusto Stoffel Date: Sun, 12 Oct 2025 16:13:11 +0200 Subject: [PATCH] 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) --- lisp/bookmark.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 344ad4ec7d0..75071ddb9ce 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el @@ -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)