emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Unconditional quit on SIGUSR2


From: Richard Stallman
Subject: Re: [PATCH] Unconditional quit on SIGUSR2
Date: Tue, 26 Apr 2011 10:47:01 -0400

    That reminds me of the idea to turn C-g C-g C-g into a "really break, no
    matter what" key sequence.

Do you mean that it would quit even from code that does not allow
quitting?  Nowadays, why would you want that?  Isn't it always
possible to switch to or create another terminal?

The patch sent a few days ago handles SIGUSR2, which presumably you
send from another terminal.  That patch is useful as a way to get
into the debugger.

C-g C-g is already emergency escape; it gives you a way to get out of
Emacs when you can't quit.  It asks questions about what to do.  If
some other option is desirable advisable, we could make emergency
escape offer some other option.  I believe you can already syspend at
those questions by typing C-z.  That would enable you to attach with
GDB and debug the unquittable loop.

If it is a matter of a loop in Lisp code with quitting inhibited,
in such cases emergency stop could offer the option to quit out of it
and return to the C code that called that Lisp code.


-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org, www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]