emacs-devel
[Top][All Lists]
Advanced

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

Re: I do not understand input-decode-map


From: Stefan Monnier
Subject: Re: I do not understand input-decode-map
Date: Mon, 29 Sep 2008 21:31:14 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> 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 via email to

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