Function: gnus-summary-set-bookmark
gnus-summary-set-bookmark is an interactive and byte-compiled function
defined in gnus-sum.el.gz.
Signature
(gnus-summary-set-bookmark ARTICLE)
Documentation
Set a bookmark in current article.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-sum.el.gz
(defun gnus-summary-set-bookmark (article)
"Set a bookmark in current article."
(interactive (list (gnus-summary-article-number))
gnus-summary-mode)
(when (or (not (get-buffer gnus-article-buffer))
(not gnus-current-article)
(not gnus-article-current)
(not (equal gnus-newsgroup-name (car gnus-article-current))))
(error "No current article selected"))
;; Remove old bookmark, if one exists.
(gnus-alist-pull article gnus-newsgroup-bookmarks)
;; Set the new bookmark, which is on the form
;; (article-number . line-number-in-body).
(push
(cons article
(with-current-buffer gnus-article-buffer
(count-lines
(min (point)
(save-excursion
(article-goto-body)
(point)))
(point))))
gnus-newsgroup-bookmarks)
(gnus-message 6 "A bookmark has been added to the current article."))