changeset 59133:55f8ffb8e523

(bookmark-jump): Nice error if BOOKMARK is nil.
author Richard M. Stallman <rms@gnu.org>
date Mon, 27 Dec 2004 16:41:59 +0000
parents 38f1d5865861
children 26d02bae850d
files lisp/bookmark.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/bookmark.el	Mon Dec 27 16:40:50 2004 +0000
+++ b/lisp/bookmark.el	Mon Dec 27 16:41:59 2004 +0000
@@ -1049,6 +1049,8 @@
   (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