unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Andreas Politz <politza@fh-trier.de>
To: help-gnu-emacs@gnu.org
Subject: Re: precedence of keymaps
Date: Tue, 21 Oct 2008 23:05:14 +0200	[thread overview]
Message-ID: <1224623466.182442@arno.fh-trier.de> (raw)
In-Reply-To: <bbde6eb6-3308-4895-9032-8c230e2d7bbd@a19g2000pra.googlegroups.com>

Xah wrote:
> On Oct 21, 9:32 am, Andreas Politz <poli...@fh-trier.de> wrote:
>> Hi,
>>
>> some time ago I wrote a little global minor mode,
>> which defines a couple of keys for resizing, moving windows etc.
>> The idea is, that every key which is not bound in this mode
>> is bound to "exit-mode, restuff event".
> 
> humm? i don't quite understand what u mean ... exit-mode and restuff
> event?
> 

Like the repeat `mode', where you press 'y' and it repeats the last command,
but every other key works normally.
When a keymap has a (t . some-command) cons, every key not mapped calls
some-command. If this some-command turns of the keymap (the mode) and
pushes the event, which was not mapped, back in the event loop, it's like
auto-shut-down (mode wise), might call it a mini-mode.

-ap


      parent reply	other threads:[~2008-10-21 21:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-21 16:32 precedence of keymaps Andreas Politz
2008-10-21 19:11 ` Xah
2008-10-21 21:02   ` Lennart Borgman (gmail)
2008-10-21 21:05   ` Andreas Politz [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=1224623466.182442@arno.fh-trier.de \
    --to=politza@fh-trier.de \
    --cc=help-gnu-emacs@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.
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).