Function: print-region
print-region is an autoloaded, interactive and byte-compiled function
defined in lpr.el.gz.
Signature
(print-region START END)
Documentation
Paginate and print the region contents.
The variable lpr-headers-switches controls how to paginate.
If it is nil (the default), we run the pr program (or whatever program
lpr-page-header-program specifies) to paginate.
lpr-page-header-switches specifies the switches for that program.
Otherwise, the switches in lpr-headers-switches are used
in the print command itself; we expect them to request pagination.
See the variables lpr-switches and lpr-command
for further customization of the printer command.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/lpr.el.gz
;;;###autoload
(defun print-region (start end)
"Paginate and print the region contents.
The variable `lpr-headers-switches' controls how to paginate.
If it is nil (the default), we run the `pr' program (or whatever program
`lpr-page-header-program' specifies) to paginate.
`lpr-page-header-switches' specifies the switches for that program.
Otherwise, the switches in `lpr-headers-switches' are used
in the print command itself; we expect them to request pagination.
See the variables `lpr-switches' and `lpr-command'
for further customization of the printer command."
(interactive
(if (y-or-n-p "Send selected text to default printer? ")
(list (region-beginning) (region-end))
(error "Canceled")))
(print-region-1 start end lpr-switches t))