Function: gnus-summary-prepare
gnus-summary-prepare is an interactive and byte-compiled function
defined in gnus-sum.el.gz.
Signature
(gnus-summary-prepare)
Documentation
Generate the summary buffer.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-sum.el.gz
(defun gnus-summary-prepare ()
"Generate the summary buffer."
(interactive nil gnus-summary-mode)
(let ((inhibit-read-only t))
(erase-buffer)
(setq gnus-newsgroup-data nil
gnus-newsgroup-data-reverse nil)
(gnus-run-hooks 'gnus-summary-generate-hook)
;; Generate the buffer, either with threads or without.
(when (boundp 'gnus-pick-line-number)
(setq gnus-pick-line-number 0))
(when gnus-newsgroup-headers
(gnus-summary-prepare-threads
(if gnus-show-threads
(gnus-sort-gathered-threads
(funcall gnus-summary-thread-gathering-function
(gnus-sort-threads
(gnus-cut-threads (gnus-make-threads)))))
;; Unthreaded display.
(gnus-sort-articles gnus-newsgroup-headers))))
(setq gnus-newsgroup-data (nreverse gnus-newsgroup-data))
;; Call hooks for modifying summary buffer.
(goto-char (point-min))
(gnus-run-hooks 'gnus-summary-prepare-hook)))