unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Cc: emacs-pretest-bug@gnu.org, jasonr@gnu.org
Subject: Re: 23.0.50; ps-print-buffer-with-faces hangs on w32
Date: Fri, 11 Jan 2008 12:28:08 +0200	[thread overview]
Message-ID: <ufxx4sll3.fsf@gnu.org> (raw)
In-Reply-To: <478643B8.5010903@gmail.com> (lennart.borgman@gmail.com)

> Date: Thu, 10 Jan 2008 17:11:36 +0100
> From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
> CC: Vinicius Jose Latorre <viniciusjl@ig.com.br>, 
>  emacs-pretest-bug@gnu.org, Eli Zaretskii <eliz@gnu.org>
> 
> 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.

  reply	other threads:[~2008-01-11 10:28 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-09 16:20 23.0.50; ps-print-buffer-with-faces hangs on w32 Lennart Borgman (gmail)
2008-01-09 17:09 ` Jason Rumney
2008-01-09 18:09   ` Lennart Borgman (gmail)
2008-01-09 19:12     ` Eli Zaretskii
2008-01-09 19:16       ` Lennart Borgman (gmail)
2008-01-10  4:09         ` Eli Zaretskii
2008-01-10  7:57           ` Lennart Borgman (gmail)
2008-01-09 18:24 ` Vinicius Jose Latorre
2008-01-09 18:02   ` Lennart Borgman (gmail)
2008-01-09 20:14     ` Vinicius Jose Latorre
2008-01-10 14:36     ` Jason Rumney
2008-01-10 16:11       ` Lennart Borgman (gmail)
2008-01-11 10:28         ` Eli Zaretskii [this message]
2008-01-11 10:47           ` Jason Rumney
2008-01-11 10:59             ` Eli Zaretskii
2008-01-11 11:29               ` Lennart Borgman (gmail)
2008-01-11 12:50               ` Vinicius Jose Latorre
2008-01-11 15:29                 ` Eli Zaretskii
2008-01-14 15:42                   ` Vinicius Jose Latorre
2008-01-14 20:32                     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ufxx4sll3.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=jasonr@gnu.org \
    --cc=lennart.borgman@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).