From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: abel elenas Newsgroups: gmane.emacs.help Subject: anyway to find the key just hit in a keymap command ? Date: Sun, 18 Jul 2004 15:40:38 +0200 Organization: Wanadoo, l'internet avec France Telecom Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <40FA7DD6.3010208@ecocentre.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1090154861 5600 80.91.224.253 (18 Jul 2004 12:47:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Jul 2004 12:47:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 18 14:47:33 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BmB4n-0004xL-00 for ; Sun, 18 Jul 2004 14:47:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BmB7Q-0002ed-MA for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Jul 2004 08:50:16 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.ip.ndsoftware.net!proxad.net!wanadoo.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: aplessis-bouchard-152-2-8-139.w82-121.abo.wanadoo.fr Original-X-Trace: news-reader3.wanadoo.fr 1090154800 32024 82.121.168.139 (18 Jul 2004 12:46:40 GMT) Original-X-Complaints-To: abuse@wanadoo.fr Original-NNTP-Posting-Date: 18 Jul 2004 12:46:40 GMT User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 X-Accept-Language: en Original-Xref: shelby.stanford.edu gnu.emacs.help:124363 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19699 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19699 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