unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#2914: a signal to just slap emacs' face, not kill it
@ 2009-04-07  3:38 jidanni
  2009-04-07 14:06 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: jidanni @ 2009-04-07  3:38 UTC (permalink / raw)
  To: bug-gnu-emacs

Recently I made emacs so busy that I could get a C-g in edgewise, and I
had to wait a few minutes for it to finish what it was doing.

I could just from the shell do killall -s HUP emacs but that would just
kill it, without giving me a chance to save my files, etc.

So maybe there should be a way to send it a signal to just slap its face
a little, to get its attention, but not actually kill it.

Perhaps just to do what a C-g would have done, if it had got thru.

(It's besides the point, but I was using
http://test.wikipedia.org/wiki/Special:Allmessages?uselang=zh-tw and C-g
nor C-c C-k could break thru.)







^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#2914: a signal to just slap emacs' face, not kill it
  2009-04-07  3:38 bug#2914: a signal to just slap emacs' face, not kill it jidanni
@ 2009-04-07 14:06 ` Stefan Monnier
  2009-04-08  1:30   ` jidanni
  2012-02-22  4:18   ` Glenn Morris
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Monnier @ 2009-04-07 14:06 UTC (permalink / raw)
  To: jidanni; +Cc: 2914

> Recently I made emacs so busy that I could get a C-g in edgewise, and I
> had to wait a few minutes for it to finish what it was doing.

That's clearly undesirable, tho I do know that it happens in
various cases.  In many cases it can be fixed pretty easily, tho.

> (It's besides the point, but I was using
> http://test.wikipedia.org/wiki/Special:Allmessages?uselang=zh-tw and
> C-g nor C-c C-k could break thru.)

So if you provide a testcase, or at least explain what it is you were
doing with that URL, maybe we can actually fix the problem.


        Stefan


PS: One common situation where C-g is unresponsive is when the redisplay
is too slow (e.g. navigating in a vvveeerrrryyy long line).  In such
a case, iconifying the frame displaying the "offending" buffer may get
you back in business (provided you have another frame or the
emacs-server open).






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#2914: a signal to just slap emacs' face, not kill it
  2009-04-07 14:06 ` Stefan Monnier
@ 2009-04-08  1:30   ` jidanni
  2012-02-22  4:18   ` Glenn Morris
  1 sibling, 0 replies; 4+ messages in thread
From: jidanni @ 2009-04-08  1:30 UTC (permalink / raw)
  To: monnier; +Cc: 2914

Stefan Monnier <monnier@iro.umontreal.ca> writes:
> What were you doing?
I'm sorry. I was using the w3m add on package's
(w3m "http://test.wikipedia.org/wiki/Special:Allmessages?uselang=zh-tw")
and apparently had given it too many other keystokes so that C-g and C-c
C-k wouldn't get thru, or it was too busy rendering or something to
"listen to any phone calls". Anyway, that's all besides the point.

I'm thinking that maybe emacs could catch USR1 or USR2 signals, and
interpret them as C-g's, when the real C-g's just aren't getting thru.
But that is probably a bug in the first place.

Anyway, to test, just do something that makes emacs too busy to hear the
C-g's or maybe you typed a lot of other things that it hasn't read yet
before it can read your C-g's...






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#2914: a signal to just slap emacs' face, not kill it
  2009-04-07 14:06 ` Stefan Monnier
  2009-04-08  1:30   ` jidanni
@ 2012-02-22  4:18   ` Glenn Morris
  1 sibling, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2012-02-22  4:18 UTC (permalink / raw)
  To: 2914-done

Version: 24.1

SIGUSR2 should now cause Emacs to stop and enter the debugger.
C-h v debug-on-event





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-02-22  4:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-07  3:38 bug#2914: a signal to just slap emacs' face, not kill it jidanni
2009-04-07 14:06 ` Stefan Monnier
2009-04-08  1:30   ` jidanni
2012-02-22  4:18   ` Glenn Morris

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).