diff options
| author | Richard M. Stallman | 2004-12-27 16:41:59 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-12-27 16:41:59 +0000 |
| commit | 5d8d3a34e511f31561f031abc804645e6eb7dcd7 (patch) | |
| tree | a05b169c01aaf0be5ef4c3bbe7c2ae131a61336b | |
| parent | f4c4fc7494fffbea678c6ec39647cb3036d58619 (diff) | |
| download | emacs-5d8d3a34e511f31561f031abc804645e6eb7dcd7.tar.gz emacs-5d8d3a34e511f31561f031abc804645e6eb7dcd7.zip | |
(bookmark-jump): Nice error if BOOKMARK is nil.
| -rw-r--r-- | lisp/bookmark.el | 2 |
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 |