From 5d8d3a34e511f31561f031abc804645e6eb7dcd7 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 27 Dec 2004 16:41:59 +0000 Subject: [PATCH] (bookmark-jump): Nice error if BOOKMARK is nil. --- lisp/bookmark.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/bookmark.el b/lisp/bookmark.el index b25c261c1e7..949434baffb 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el @@ -1049,6 +1049,8 @@ of the old one in the permanent bookmark record." (interactive (list (bookmark-completing-read "Jump to bookmark" bookmark-current-bookmark))) + (unless bookmark + (error "No bookmark specified")) (bookmark-maybe-historicize-string bookmark) (let ((cell (bookmark-jump-noselect bookmark))) (and cell -- 2.39.5