GNU bug report logs - #2914
a signal to just slap emacs' face, not kill it

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Tue, 7 Apr 2009 03:45:03 UTC

Severity: wishlist

Fixed in version 24.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2914 in the body.
You can then email your comments to 2914 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2914; Package emacs. (Tue, 07 Apr 2009 03:45:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 07 Apr 2009 03:45:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: a signal to just slap emacs' face, not kill it
Date: Tue, 07 Apr 2009 11:38:04 +0800
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.)





Severity set to `wishlist' from `normal' Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> emacsbugs.donarmstrong.com. (Tue, 07 Apr 2009 04:20:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2914; Package emacs. (Tue, 07 Apr 2009 14:15:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 07 Apr 2009 14:15:07 GMT) Full text and rfc822 format available.

Message #12 received at 2914 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: jidanni <at> jidanni.org
Cc: 2914 <at> debbugs.gnu.org
Subject: Re: bug#2914: a signal to just slap emacs' face, not kill it
Date: Tue, 07 Apr 2009 10:06:39 -0400
> 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).




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2914; Package emacs. (Wed, 08 Apr 2009 01:40:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 08 Apr 2009 01:40:04 GMT) Full text and rfc822 format available.

Message #17 received at 2914 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: jidanni <at> jidanni.org
To: monnier <at> iro.umontreal.ca
Cc: 2914 <at> debbugs.gnu.org
Subject: Re: bug#2914: a signal to just slap emacs' face, not kill it
Date: Wed, 08 Apr 2009 09:30:55 +0800
Stefan Monnier <monnier <at> 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...




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Wed, 22 Feb 2012 04:21:02 GMT) Full text and rfc822 format available.

Notification sent to jidanni <at> jidanni.org:
bug acknowledged by developer. (Wed, 22 Feb 2012 04:21:02 GMT) Full text and rfc822 format available.

Message #22 received at 2914-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 2914-done <at> debbugs.gnu.org
Subject: Re: bug#2914: a signal to just slap emacs' face, not kill it
Date: Tue, 21 Feb 2012 23:18:09 -0500
Version: 24.1

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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 21 Mar 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 95 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.