aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2004-12-27 16:41:59 +0000
committerRichard M. Stallman2004-12-27 16:41:59 +0000
commit5d8d3a34e511f31561f031abc804645e6eb7dcd7 (patch)
treea05b169c01aaf0be5ef4c3bbe7c2ae131a61336b
parentf4c4fc7494fffbea678c6ec39647cb3036d58619 (diff)
downloademacs-5d8d3a34e511f31561f031abc804645e6eb7dcd7.tar.gz
emacs-5d8d3a34e511f31561f031abc804645e6eb7dcd7.zip
(bookmark-jump): Nice error if BOOKMARK is nil.
-rw-r--r--lisp/bookmark.el2
1 files changed, 2 insertions, 0 deletions
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."
1049 (interactive 1049 (interactive
1050 (list (bookmark-completing-read "Jump to bookmark" 1050 (list (bookmark-completing-read "Jump to bookmark"
1051 bookmark-current-bookmark))) 1051 bookmark-current-bookmark)))
1052 (unless bookmark
1053 (error "No bookmark specified"))
1052 (bookmark-maybe-historicize-string bookmark) 1054 (bookmark-maybe-historicize-string bookmark)
1053 (let ((cell (bookmark-jump-noselect bookmark))) 1055 (let ((cell (bookmark-jump-noselect bookmark)))
1054 (and cell 1056 (and cell