all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: Andreas Schwab <schwab@linux-m68k.org>, emacs-devel@gnu.org
Subject: Re: Random idea: Debugging `quit'
Date: Mon, 12 Sep 2011 08:28:18 +0900	[thread overview]
Message-ID: <87ty8ipskt.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <m3sjo3qeyc.fsf@stories.gnus.org>

Lars Magne Ingebrigtsen writes:

 > Yes, but could the `C-g' handler then check the prefix, and see whether
 > anything is in there?  I'm assuming that Emacs would know at that point
 > (since it's already parsed its way to the `C-g' in the input stream),
 > which may be a totally wrong assumption, of course.  :-)

It is a wrong assumption for XEmacs, at least.  XEmacs checks the
incoming event for C-g at the time of queueing the event for later
processing by XEmacs.  The only "parsing" of events at that level is
into "quit events" and "non-quit events".

I suspect Emacs does the same.  In theory one could force parsing of
the queue, somehow disabling "undesirable" actions, but this would be
fragile since commands in the queue could install keymaps etc which
changes the interpretation of the event stream.



  parent reply	other threads:[~2011-09-11 23:28 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
2011-09-11 15:24   ` Lars Magne Ingebrigtsen
2011-09-11 15:42     ` Andreas Schwab
2011-09-11 23:28     ` Stephen J. Turnbull [this message]
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=87ty8ipskt.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=schwab@linux-m68k.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.