1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

(bookmark-jump): Nice error if BOOKMARK is nil.

This commit is contained in:
Richard M. Stallman 2004-12-27 16:41:59 +00:00
parent f4c4fc7494
commit 5d8d3a34e5

View 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