From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.50; ps-print-buffer-with-faces hangs on w32 Date: Fri, 11 Jan 2008 12:28:08 +0200 Message-ID: References: <4784F452.6060202@gmail.com> <47851163.8050205@ig.com.br> <47850C39.5060905@gmail.com> <47862D83.3030709@gnu.org> <478643B8.5010903@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1200047313 7218 80.91.229.12 (11 Jan 2008 10:28:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2008 10:28:33 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, jasonr@gnu.org To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 11 11:28:54 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 1JDH84-0003PX-UI for ged-emacs-devel@m.gmane.org; Fri, 11 Jan 2008 11:28:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDH7g-0002wi-Im for ged-emacs-devel@m.gmane.org; Fri, 11 Jan 2008 05:28:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JDH7b-0002uc-2z for emacs-devel@gnu.org; Fri, 11 Jan 2008 05:28:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JDH7a-0002tf-By for emacs-devel@gnu.org; Fri, 11 Jan 2008 05:28:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDH7Z-0002tP-WB for emacs-devel@gnu.org; Fri, 11 Jan 2008 05:28:18 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JDH7Z-0002GZ-RN for emacs-devel@gnu.org; Fri, 11 Jan 2008 05:28:17 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JDH7Z-0000S6-C3 for emacs-pretest-bug@gnu.org; Fri, 11 Jan 2008 05:28:17 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JDH7W-0002Fz-Bg for emacs-pretest-bug@gnu.org; Fri, 11 Jan 2008 05:28:17 -0500 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JDH7S-0002Ez-II; Fri, 11 Jan 2008 05:28:10 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-42-152.inter.net.il [80.230.42.152]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id IVC90218 (AUTH halo1); Fri, 11 Jan 2008 12:25:33 +0200 (IST) In-reply-to: <478643B8.5010903@gmail.com> (lennart.borgman@gmail.com) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:86734 gmane.emacs.pretest.bugs:20584 Archived-At: > Date: Thu, 10 Jan 2008 17:11:36 +0100 > From: "Lennart Borgman (gmail)" > CC: Vinicius Jose Latorre , > emacs-pretest-bug@gnu.org, Eli Zaretskii > > What I was reporting was that under certain (rather common conditions) > Emacs can hang if a user tries to print a file. Emacs hangs very badly > and can not be interrupted. You have to kill Emacs from outside - and > that of course means that the user can loose data. > > (It has nothing per se with ps-print-* to do, it hangs in the same way > if one uses print-buffer. I actually did M-x ps-print-buffer just to see > how Emacs failed.) > > So my question is what we can do about this? > > I doubt that there is anything we easily can do technically about it > since I notice that in a cmd.exe console > > copy /b some-non-emtpy-file.txt PRN: > > hangs the console window rather badly. Exactly. That will happen to any program that tries to write to a device that does not exist. If someone knows how to detect such devices without hanging, I'd be glad to incorporate such detection into Emacs. > What we can do is to warn the user. The best way IMO > would be to add a y/n question in the function > direct-print-region-helper in dos-w32.el that warns the user that Emacs > might hang. I'd be terribly annoyed to have such question each time I print. > (And of course an option to bypass the question.) If the option is off by default, it won't help. If it is on, it will annoy, and will generally be useless anyway, since the user cannot do anything about this warning, except give up the printing command. If she doesn't give up, and she is in your situation, she will hang. There's no way for her to find out whether she will or will not hang.