From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help,gmane.emacs.devel Subject: Re: Printing from WindowXP version of emacs Date: Mon, 09 Jan 2006 12:42:34 +0100 Message-ID: <43C24C2A.50405@student.lu.se> References: <49e1de249db600.49db60049e1de2@net.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 1136816284 25031 80.91.229.2 (9 Jan 2006 14:18:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Jan 2006 14:18:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Emacs Devel Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 09 15:18:03 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EvxqG-0004ve-Mw for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jan 2006 15:17:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EvxZM-00039j-61 for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jan 2006 09:00:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EvwPA-00042H-5i for help-gnu-emacs@gnu.org; Mon, 09 Jan 2006 07:45:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EvwFo-0001Js-Bi for help-gnu-emacs@gnu.org; Mon, 09 Jan 2006 07:36:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EvvS2-0000Wr-Rp; Mon, 09 Jan 2006 06:44:41 -0500 Original-Received: from [81.228.11.98] (helo=pne-smtpout1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EvvUI-0005GG-S4; Mon, 09 Jan 2006 06:46:59 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn1.fre.skanova.net (7.2.069.1) id 43C23B6900006973; Mon, 9 Jan 2006 12:42:35 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: BRUCE INGALLS , Eli Zaretskii In-Reply-To: <49e1de249db600.49db60049e1de2@net.lu.se> 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:32562 gmane.emacs.devel:48872 Archived-At: LENNART BORGMAN wrote: >>>That sure does not look right. >>> >>> >>What doesn't look right, exactly? I took the above as a template, not >>as a literal string that is the printer's name. If it's a literal >>string, then it is indeed strange, but default-printer-name simply >>calls GetProfileString and GetPrinter APIs, so whatever those return, >>it's the system's notion of the printer. Unless there's a bug in >>default-printer-name, in which case please step through it and tell >>what goes wrong there. >> >> > >I have felt a bit nervous over the weekend. Did I really test this with -Q? Or is it something long forgotten I have in my initialization files. > >I tried again with -Q. And yes, it is literally the share name I told ("1234567890"). > > I also tested to print after (setq printer-name (default-printer-name)) The result is somewhat perplexing perhaps, but is consistent with my suspiciouns. I tried two physical printers. I tested two queues on the first and one queue on the second. ** With "Print Buffer" I got no output from the first printer on any of the two printer queues I tested. On the second printer I got a correctly printed buffer. ** With "Postscript Print Buffer" the result was the opposite. On the first printer the result looks like the expeced emacs postscript print of the buffer for both queue. On the second printer I just got the postscript code printed. (And this was the color printer .... - it surely supports postscript. The one where I can get postscript printed this way is only black and white.) To me this suggest that the way Emacs get the default printer name with (default-printer-name) is correct enough in at least my circumstances. However the name "1234567890" is not the name that the queue is normally known by. The result also seems to confirm that the printing modell used by Emacs on w32 is not correct. The GDI model for printing is the one that according to MS should be used on w32 in the general case. Emacs does not use that model now. So my suggested workaround using htmlize-view.el still seems to be a good one on w32.