From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Printing from WindowXP version of emacs Date: Mon, 19 Dec 2005 23:25:13 +0200 Message-ID: References: <1134660719.186074.250590@z14g2000cwz.googlegroups.com> <43A1B787.9040001@student.lu.se> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1135027726 31285 80.91.229.2 (19 Dec 2005 21:28:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Dec 2005 21:28:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 19 22:28:42 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EoSWE-0003FF-6V for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Dec 2005 22:26:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EoSX5-0007U2-AG for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Dec 2005 16:26:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EoSWH-00078Z-Hp for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 16:26:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EoSWE-000779-Rr for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 16:26:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EoSWE-000770-HJ for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 16:26:06 -0500 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EoSZE-0000fR-S3 for help-gnu-emacs@gnu.org; Mon, 19 Dec 2005 16:29:13 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-80-85.inter.net.il [80.230.80.85]) by romy.inter.net.il (MOS 3.7.2-GA) with ESMTP id DFB12848 (AUTH halo1); Mon, 19 Dec 2005 23:25:08 +0200 (IST) Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from Mathias Dahl on Mon, 19 Dec 2005 10:58:35 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32073 Archived-At: > From: Mathias Dahl > Date: Mon, 19 Dec 2005 10:58:35 +0100 > > So I set it to "//gbgfs1/gbg2b" and then called M-x lpr-buffer > > It worked. Thanks for testing. This is how things are supposed to work, and on many Windows machines it is that easy to accomplish that, > I did not test with colors (it is no color printer) but that probably > won't work in the same way, will it? Well, obviously you cannot see colors on a printer that doesn't support color ;-). If the printer is a Postscript printer, though, ps-print has a feature whereby you can remap faces to use color-less typefaces instead; for example, the face for comments could use bold-italic, keywords could come out underlined, etc. I attach below the mapping I use for a very long time. > Btw, I first tested without setting printer-name (which on Windows XP > has the default value PRN) and printed, and Emacs froze. Don't know > why though. Probably the PRN port is captured by some non-existing device, or something like that. (setq ps-bold-faces '(font-lock-comment-face font-lock-keyword-face font-lock-builtin-face font-lock-function-name-face diff-hunk-header-face diff-changed-face diff-removed-face diff-added-face)) (setq ps-italic-faces '(font-lock-comment-face font-lock-variable-name-face font-lock-string-face diff-header-face)) (setq ps-underlined-faces '(font-lock-type-face font-lock-reference-face font-lock-builtin-face diff-file-header-face diff-function-face))