Function: print-region-new-buffer
print-region-new-buffer is a byte-compiled function defined in
lpr.el.gz.
Signature
(print-region-new-buffer OSTART OEND)
Source Code
;; Defined in /usr/src/emacs/lisp/lpr.el.gz
;; This function copies the text between start and end
;; into a new buffer, makes that buffer current.
;; It returns the new range to print from the new current buffer
;; as (START . END).
(defun print-region-new-buffer (ostart oend)
(if (string= (buffer-name) " *spool temp*")
(cons ostart oend)
(let ((oldbuf (current-buffer)))
(set-buffer (get-buffer-create " *spool temp*"))
(widen)
(erase-buffer)
(insert-buffer-substring oldbuf ostart oend)
(cons (point-min) (point-max)))))