From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: w32 issues Date: Sun, 20 Jan 2008 23:38:53 +0100 Message-ID: <4793CD7D.6070004@gmail.com> References: <200801192020.m0JKKUWl017748@sallyv1.ics.uci.edu> <200801201710.m0KHAoKn021472@sallyv1.ics.uci.edu> <479388A9.9010600@gmail.com> <200801201755.m0KHtuDH003880@sallyv1.ics.uci.edu> <47938D58.4010809@gmail.com> <200801201820.m0KIKxtW012230@sallyv1.ics.uci.edu> <47939341.6010903@gmail.com> <4793C620.2000500@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200868853 26099 80.91.229.12 (20 Jan 2008 22:40:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2008 22:40:53 +0000 (UTC) Cc: Eli Zaretskii , dann@ics.uci.edu, emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 20 23:41:10 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JGiqk-0002EH-Fh for ged-emacs-devel@m.gmane.org; Sun, 20 Jan 2008 23:41:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGiqL-0008Tr-1T for ged-emacs-devel@m.gmane.org; Sun, 20 Jan 2008 17:40:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JGiot-0007FD-1Y for emacs-devel@gnu.org; Sun, 20 Jan 2008 17:39:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JGior-0007Cm-On for emacs-devel@gnu.org; Sun, 20 Jan 2008 17:39:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGior-0007C8-5G for emacs-devel@gnu.org; Sun, 20 Jan 2008 17:39:13 -0500 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JGioj-0000ak-LJ; Sun, 20 Jan 2008 17:39:06 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:59455 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JGioh-0008BT-57; Sun, 20 Jan 2008 23:39:03 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <4793C620.2000500@gnu.org> X-Antivirus: avast! (VPS 080120-1, 2008-01-20), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1JGioh-0008BT-57. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1JGioh-0008BT-57 0fff5303bbf8a30abcef7dddb47759ee X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87138 Archived-At: Jason Rumney wrote: > Eli Zaretskii wrote: >> You mean that printing is broken? I don't agree with your wording, >> but I have no objections to saying something like "Emacs will hang if >> the user tries to print to a port that has no printer device connected >> to it." >> > > Since that issue is a Windows problem, and unfixable in Emacs AFAIK, I > think the problem to put in FOR-RELEASE is that the DEFAULT setting for > printer-name on windows is a port that in 2008, will not be connected to > a printer for probably more than 90% of users. > > I am confused by all the code we have for printing these days. There is > a function default-printer-name, which would seem to offer a big > improvement on what we have now. It is used in dos-w32.el in functions > called from printing.el, but the code in printing.el does not seem to be > involved in the standard ps-print-* or print-* commands. It looks to me like (defcustom printer-name (and lpr-windows-system "PRN") should be just (defcustom printer-name nil If printer-name is nil then the routines in dos-w32.el will use (default-printer-name). But it does not help directly for the problem that Emacs hangs badly if it is a GDI printer on a USB port. But maybe we can just check that the name contains USB and assume if so at least warn the user? (In my case it is "USB001".) However I wonder if we should not issue the same warning in other cases too (see my previous messages). Jason, you mentioned a work around setting up the printer to be networked. Is not the chance that it is a GDI printer rather high and that it will not work because of this?