The Emacs manual says:
M-xprint-bufferPrint hardcopy of current buffer with page headings containing the file name and page number.
M-xlpr-bufferPrint hardcopy of current buffer without page headings.
M-xprint-regionLike
print-bufferbut print only the current region.
M-xlpr-regionLike
lpr-bufferbut print only the current region.[...]
To specify the printer to use, set the variable
printer-name. The default,nil, specifies the default printer.
How do we specify the printer to use?
For example, a PDF printer, which is not shown in the output of
lpstat -p -d
Thanks.