]> git.eshelyaron.com Git - emacs.git/commitdiff
(bookmark-jump): Nice error if BOOKMARK is nil.
authorRichard M. Stallman <rms@gnu.org>
Mon, 27 Dec 2004 16:41:59 +0000 (16:41 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 27 Dec 2004 16:41:59 +0000 (16:41 +0000)
lisp/bookmark.el

index b25c261c1e79eab71df950287a5a6fe1072bf322..949434baffbe71bbe11905d5d3ddce06bbd1c80f 100644 (file)
@@ -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