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: Fri, 16 Dec 2005 15:53:28 +0100 Message-ID: <43A2D4E8.7090306@student.lu.se> References: <1134660719.186074.250590@z14g2000cwz.googlegroups.com> <43A1B787.9040001@student.lu.se> <43A27ACF.1040705@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 1134761459 19756 80.91.229.2 (16 Dec 2005 19:30:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2005 19:30:59 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 16 20:30:57 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EnLEE-00016J-Mv for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Dec 2005 20:26:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EnLEv-0008Ky-Ed for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Dec 2005 14:27:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EnGzR-0002u2-Ht for help-gnu-emacs@gnu.org; Fri, 16 Dec 2005 09:55:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EnGzO-0002sN-Lh for help-gnu-emacs@gnu.org; Fri, 16 Dec 2005 09:55:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EnGyS-0002Nl-Ep for help-gnu-emacs@gnu.org; Fri, 16 Dec 2005 09:54:20 -0500 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EnH0o-0004mL-IO; Fri, 16 Dec 2005 09:56:47 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn1.fre.skanova.net (7.2.069.1) id 43A1777B0005DD29; Fri, 16 Dec 2005 15:53:29 +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:31995 Archived-At: Eli Zaretskii wrote: >>>>See http://www.emacswiki.org/cgi-bin/wiki/PrintWithWebBrowser >>>> >>>> >>>> >>>> >>>Yuck! Don't we have a better way than to submit print jobs to Notepad >>>and Explorer?? >>> >>> >>> >>Did you try it? >> >> > >What for? I've read the code, and I understand what it does. I don't >doubt for a second that it will work, because I know what ShellExecute >is and does on Windows. > > You have been reading an old version I believe. Please see http://ourcomments.org/Emacs/DL/elisp/htmlize-view.el This does not use Notepad or ShellExecute. It is supposed to be as OS independent as possible. >How is it easier than setting up lpr-program and printer-name in your >`.emacs' (which is what I do on all the Windows machines I use)? > > As I have already told this did not work for me. Let me tell you what I have done and seen. When I started using Emacs I looked in the Emacs NT FAQ, searched the Internet and tried everything. Nothing worked. Or nearly. I did not try GhostScript/GSView because I felt a bit uncomfortable with that. I think the trouble has to do with changing network routines in Windows, but I have not investigated it further. (Too much job and not very interesting, actually.) 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. After lurking around for a while I draw the conclusion that it will not do this in the near future and certainly not in the next release. It would in my opinion be good if it did but I am not sure that everyone agrees on this. (I believe GhostScript/GSView might implement a Windows printing interface but I do not remember the details right now. It might not have been a full implementation.) However I wanted a simple solution that just worked. That is why I suggest the solution above for new users. The browser, whether it is Internet Explorer, Firefox or something else implements Windows printing interface. They have to, otherwise they would not be able to attract a large user base. So I trust that implementation, do not care about it, just tells them to show the file created with htmlize.el/htmlize-view.el. Then the user just prints as usual from the web browser. The only problem I have seen so far with this is that I sometimes forgot that I have left Emacs. The picture in the browser looks exactly as in Emacs, htmlize.el is very good (and I can say that without shame, I did not write it). So our different opinions might come out of different experiences. It may also have to do with that I feel much at home with the interface concept in Windows. Without at all beeing an expert on it I think it is an attempt to a good design. All the attempts in Emacs NT FAQ for printing bypasses this interface as far as I can see. >You are free to do what you want, but I have grave reservations about >recommending such solutions to Emacs users at large, while other >solutions exist. Certainly not as the first alternative. IMHO, at >the very least. > As you probably understand I disagree. I think it creates much less trouble for the user if the proposed solution tries to follow the interface designed for printing in Windows.