Function: gnus-summary-print-article
gnus-summary-print-article is an interactive and byte-compiled
function defined in gnus-sum.el.gz.
Signature
(gnus-summary-print-article &optional FILENAME N)
Documentation
Generate and print a PostScript image of the process-marked (mail) articles.
If used interactively, print the current article if none are process-marked. With prefix arg, prompt the user for the name of the file to save in.
When used from Lisp, accept two optional args FILENAME and N. N means to print the next N articles. If N is negative, print the N previous articles. If N is nil and articles have been marked with the process mark, print these instead.
If the optional first argument FILENAME is nil, send the image to the printer. If FILENAME is a string, save the PostScript image in a file with that name. If FILENAME is a number, prompt the user for the name of the file to save in.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-sum.el.gz
(defun gnus-summary-print-article (&optional filename n)
"Generate and print a PostScript image of the process-marked (mail) articles.
If used interactively, print the current article if none are
process-marked. With prefix arg, prompt the user for the name of the
file to save in.
When used from Lisp, accept two optional args FILENAME and N. N means
to print the next N articles. If N is negative, print the N previous
articles. If N is nil and articles have been marked with the process
mark, print these instead.
If the optional first argument FILENAME is nil, send the image to the
printer. If FILENAME is a string, save the PostScript image in a file with
that name. If FILENAME is a number, prompt the user for the name of the file
to save in."
(interactive
(list (ps-print-preprint current-prefix-arg))
gnus-summary-mode)
(dolist (article (gnus-summary-work-articles n))
(gnus-summary-select-article nil nil 'pseudo article)
(gnus-eval-in-buffer-window gnus-article-buffer
(gnus-print-buffer))
(gnus-summary-remove-process-mark article))
(ps-despool filename))