all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Antoine Levitt <antoine.levitt@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Random idea: Debugging `quit'
Date: Sun, 11 Sep 2011 16:38:58 +0200	[thread overview]
Message-ID: <87aaab6t4t.fsf@gmail.com> (raw)
In-Reply-To: m28vpvv7ca.fsf@linux-m68k.org

11/09/11 09:58, Andreas Schwab
> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>
>> So wouldn't it be nice if we could say, for instance, `C-u C-g' to get a
>> debugging `quit'?  Or perhaps `C-u 6 6 6 C-g', or whatever deemed
>> necessary to avoid annoying people...
>
> That's really hard to do since quit-char is very special.  It can only
> be a single character and it is handled very low in the keyboard
> handler.
>
> Andreas.

Is it feasible to instead add a third value to debug-on-quit that'd only
popup a debug window if emacs isn't waiting on user input? So
"problematic" uses of C-g (break out of an infinite loop, or external
process) would run the debugger, but C-x C-f C-g wouldn't.




  reply	other threads:[~2011-09-11 14:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-11  4:01 Random idea: Debugging `quit' Lars Magne Ingebrigtsen
2011-09-11  7:58 ` Andreas Schwab
2011-09-11 14:38   ` Antoine Levitt [this message]
2011-09-11 15:24   ` Lars Magne Ingebrigtsen
2011-09-11 15:42     ` Andreas Schwab
2011-09-11 23:28     ` Stephen J. Turnbull
2011-09-11 11:25 ` Sean Sieger
2011-09-11 16:51 ` Helmut Eller
2011-09-11 21:01   ` Lars Magne Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=87aaab6t4t.fsf@gmail.com \
    --to=antoine.levitt@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.