From: Richard M. Stallman Date: Mon, 27 Dec 2004 16:41:59 +0000 (+0000) Subject: (bookmark-jump): Nice error if BOOKMARK is nil. X-Git-Tag: ttn-vms-21-2-B4~3117 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5d8d3a34e511f31561f031abc804645e6eb7dcd7;p=emacs.git (bookmark-jump): Nice error if BOOKMARK is nil. --- 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