all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Lennart Borgman \(gmail\)" <lennart.borgman@gmail.com>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: I do not understand input-decode-map
Date: Mon, 29 Sep 2008 21:31:14 -0400	[thread overview]
Message-ID: <jwvk5cutot4.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <48E14168.5060400@gmail.com> (Lennart Borgman's message of "Mon,  29 Sep 2008 22:58:16 +0200")

> This works, ie typing "." gives ":" (even in for example Viper)
>   (define-key input-decode-map [?\.] [?\:])

> Why does not the next work?

>   (setq input-decode-map (make-sparse-keymap))
>   (defvar my-second-map (make-sparse-keymap))
>   (define-key my-second-map [?\:] [?\.])
>   (define-key input-decode-map [?\,] my-second-map)

> Typing "," does what it use to do. Not too bad, but not what I expected ...

The detailed behavior is fairly tricky.  Basically, it's difficult to
know when to stop waiting for more keys.  IIRC the code basically stops
if the current input (rewritten/remapped as necessary) is a valid key
sequence bound to a command.


        Stefan




  reply	other threads:[~2008-09-30  1:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-29 20:58 I do not understand input-decode-map Lennart Borgman (gmail)
2008-09-30  1:31 ` Stefan Monnier [this message]
2008-09-30  1:36   ` Lennart Borgman (gmail)

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=jwvk5cutot4.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    /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.