X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=elpher.git;a=blobdiff_plain;f=elpher.el;h=2b24bcf1084517064a566a6e9cf0042d18dd9520;hp=1c4293760451a07e6e2636fa8aaffd8f7393063d;hb=30fb51c374afe4e1c3a6aabe6c669f6b6936a14b;hpb=297f223afe310a0acbe395c79c4c13b1257b0d0c diff --git a/elpher.el b/elpher.el index 1c42937..2b24bcf 100644 --- a/elpher.el +++ b/elpher.el @@ -1863,14 +1863,14 @@ To bookmark the link at point use \\[elpher-bookmark-link]." (elpher-with-clean-buffer (insert " ---- Elpher Bookmarks ---- \n\n") (bookmark-maybe-load-default-file) - (let ((bookmarks (bookmark-maybe-sort-alist))) - (if bookmarks - (dolist (bookmark bookmarks) - (let* ((name (car bookmark)) - (url (alist-get 'location (cdr bookmark))) - (address (elpher-address-from-url url))) - (elpher-insert-index-record name address))) - (insert "No bookmarked pages found.\n"))) + (dolist (bookmark (bookmark-maybe-sort-alist)) + (when (eq #'elpher-bookmark-jump (alist-get 'handler (cdr bookmark))) + (let* ((name (car bookmark)) + (url (alist-get 'location (cdr bookmark))) + (address (elpher-address-from-url url))) + (elpher-insert-index-record name address)))) + (when (<= (line-number-at-pos) 3) + (insert "No bookmarked pages found.\n")) (insert "\n --------------------------\n\n" "Select an entry or press 'u' to return to the previous page.\n\n" "Bookmarks can be renamed or deleted via the ")