1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08: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