From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Printing from WindowXP version of emacs Date: Tue, 20 Dec 2005 12:59:14 -0800 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1135120476 9860 80.91.229.2 (20 Dec 2005 23:14:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Dec 2005 23:14:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 21 00:14:35 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EoqgG-0007D8-Sc for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Dec 2005 00:14:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EoqhB-00039x-6A for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Dec 2005 18:15:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Eoqgd-00039R-OB for help-gnu-emacs@gnu.org; Tue, 20 Dec 2005 18:14:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Eoqga-00036e-LP for help-gnu-emacs@gnu.org; Tue, 20 Dec 2005 18:14:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eoqga-00036F-B2 for help-gnu-emacs@gnu.org; Tue, 20 Dec 2005 18:14:24 -0500 Original-Received: from [148.87.122.30] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Eoqjm-0002Oh-Ek for help-gnu-emacs@gnu.org; Tue, 20 Dec 2005 18:17:42 -0500 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.186.50]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id jBKNDMUH002066 for ; Tue, 20 Dec 2005 16:13:22 -0700 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id jBKNCIik029257 for ; Tue, 20 Dec 2005 16:13:22 -0700 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id jBKKxEXd029022 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Tue, 20 Dec 2005 13:59:15 -0700 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 In-Reply-To: Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE 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:32122 Archived-At: I have not been following this thread closely. If this helps at all, good; if not, please ignore. I use native Emacs on Windows XP, and I use printing.el for printing. I use Cygwin, but I don't use the Emacs built especially for Cygwin. Below are my printer settings, in case they help someone. I use network printers (in my case, named 4op1135b and 4op1107a) at work, and a local printer (via PRN) at home. All of the printers are PostScript printers. printing.el is a great package, IMO. I generally print using the menus it provides, but you can alternatively use commands (key bindings). The menus make everything very clear - it's easy to choose exactly the kind of printing you want, and to switch printing options, including which printer to use. Configuration options are well documented in the source file, printing.el. The exact syntax to use for configuration is a bit confusing (e.g. "/D:\\\\printer-server\\4op1135b" for non-PostScript printing vs "\\\\printer-server\\4op1135b" for PostScript printing), but once you have configured things, the functionality is great. So, if you're having trouble, try my settings (with your printer names and addresses, of course) and see if they don't do the trick for you. HTH. ------------8<--------------------------- (setq pr-path-alist '((windows "c:/Program Files" PATH ghostview ghostscript) (ghostview "c:/Program Files/Ghostgum/gsview") (ghostscript "c:/gs/gs8.11/bin") (cygwin windows))) (setq pr-txt-name 'home) (setq pr-txt-printer-alist '((home "" nil "PRN") ; Local printer (4op1135b nil nil ; Network printer "/D:\\\\printer-server\\4op1135b") (4op1107a nil nil ; Network printer "/D:\\\\printer-server\\4op1107a"))) (setq pr-ps-name '4op1135b) (setq pr-ps-printer-alist '((home "" nil "" "PRN" (ps-spool-duplex)) ; Local (not duplex) (4op1135b "print" nil "/D:" ; Network "\\\\printer-server\\4op1135b" (ps-spool-duplex . t)) (4op1107a "print" nil "/D:" ; Network "\\\\printer-server\\4op1107a" (ps-spool-duplex . t)))) (setq pr-temp-dir "c:/Documents and Settings/you/Local Settings/Temp") ; Temp files ;;;(setq pr-delete-temp-file nil) ; Don't delete temp file (setq pr-faces-p nil) ; Don't print using Emacs face attributes ;; Don't insert ^D (blank page) at end of PostScript. (setq ps-end-with-control-d nil) (when (fboundp 'pr-update-menus) (pr-update-menus t)) (global-set-key "\C-ci" 'pr-interface) (global-set-key "\C-cbp" 'pr-ps-buffer-print) (global-set-key "\C-cbx" 'pr-ps-buffer-preview) (global-set-key "\C-cbb" 'pr-ps-buffer-using-ghostscript) (global-set-key "\C-cb1f" ; Prompt for file (lambda () (interactive) (pr-ps-buffer-ps-print 1 t))) (global-set-key "\C-cb1p" (lambda () (interactive) (pr-ps-buffer-ps-print 1 nil))) (global-set-key "\C-crp" 'pr-ps-region-print) (global-set-key "\C-crx" 'pr-ps-region-preview) (global-set-key "\C-crr" 'pr-ps-region-using-ghostscript) (global-set-key "\C-cr1f" (lambda () (interactive) (pr-ps-buffer-ps-print 1 t))) (global-set-key "\C-cr1p" (lambda () (interactive) (pr-ps-buffer-ps-print 1 nil)))