[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
anyway to find the key just hit in a keymap command ?
From: |
abel elenas |
Subject: |
anyway to find the key just hit in a keymap command ? |
Date: |
Sun, 18 Jul 2004 15:40:38 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 |
I am trying to make a keymap 4 a mode in emacs.
the commands run by many key is the same but it needs to know the key
just hit...
(define-key sel-key-map "e" 'sel-insert)
(defun sel-insert (&optional nbr)
(interactive "p")
(put-char-just-hit-in-table char)
(self-insert-command (or nbr 1)))
But i don't know the way to get the char that have just been hit ...
Any way to do that ? (Self-insert-command seems to find it easy but i
don't know how...
thanks
- anyway to find the key just hit in a keymap command ?,
abel elenas <=