From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Printing from WindowXP version of emacs Date: Sat, 17 Dec 2005 03:42:09 +0100 Message-ID: <43A37B01.6080603@student.lu.se> References: <1134660719.186074.250590@z14g2000cwz.googlegroups.com> <43A1B787.9040001@student.lu.se> <43A27ACF.1040705@student.lu.se> <43A2D4E8.7090306@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134787452 24872 80.91.229.2 (17 Dec 2005 02:44:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Dec 2005 02:44:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 17 03:44:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EnS1l-0005sH-HC for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Dec 2005 03:42:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EnS2T-0007LX-VV for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Dec 2005 21:43:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EnS2F-0007L8-Sk for help-gnu-emacs@gnu.org; Fri, 16 Dec 2005 21:42:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EnS2E-0007Kn-D5 for help-gnu-emacs@gnu.org; Fri, 16 Dec 2005 21:42:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EnS2E-0007Kk-Ad for help-gnu-emacs@gnu.org; Fri, 16 Dec 2005 21:42:58 -0500 Original-Received: from [81.228.8.164] (helo=pne-smtpout2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EnS4j-0002ZM-Rz; Fri, 16 Dec 2005 21:45:34 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn2.hy.skanova.net (7.2.069.1) id 43A178700007DE5E; Sat, 17 Dec 2005 03:42:10 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: Eli Zaretskii In-Reply-To: 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:32007 Archived-At: Eli Zaretskii wrote: >>Then I looked into the Emacs C development sources and read a bit about >>the printing interface in Windows. As far as I can see Emacs just does >>not implement the printing interface currently. >> >> > >Emacs needs either a port name or a printer name, and it treats those >as if they were files. These two possibilities cover most of the >Windows printer configurations I've seen. The question is, what is >your configuration, and why these two possibilities don't work for it. > > You might be right. Maybe it can work. I do not remember all the tests I did any more why they failed and I leave it to someone else who think this is worth trying. However if you want to do it the way you suggest don't you have to know the specifics of the printer then? In the environment where I am using a printer there are a lot of different printers so I really want to avoid doing anything that is printer specific. I want to use the printing interface that Windows supply. That interface handles all the printer specific details if you call it the right way. Have I missed something in the sources? Does Emacs use this interface? If it does then I am simply wrong. If it does not then I prefer to use the system independent interface that Emacs supplies in browse-url-of-file which I use in htmlize-view.el. The implementation of this interface is of course system dependent. What I am using is however could be described as the contract called browse-url-of-file that has been agreed upon in Emacs. It gives simple printing through the browser at least on Windows (and I guess many other systems). A big advantage as I see it is that it uses the printing interface that Windows has. This makes the handling of printers exactly as they use to be in all other Windows programs. I can choose printer, orientation, scaling, etc.