From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mounir AITTAHAR Newsgroups: gmane.emacs.help Subject: Re: Non-ASCII characters Key binding (emacs 21.4) Date: Wed, 19 Oct 2005 10:51:32 +0200 Organization: 9Telecom Message-ID: References: <87mzl8j14y.fsf-monnier+gnu.emacs.help@gnu.org> <1129651136.682593.202470@f14g2000cwb.googlegroups.com> <87ll0q7oqq.fsf@thalassa.informatimago.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1129718722 9492 80.91.229.2 (19 Oct 2005 10:45:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2005 10:45:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 19 12:45:22 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ESBQT-0000Az-GC for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Oct 2005 12:44:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESBMR-0001l9-VP for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Oct 2005 06:39:56 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!news.nl.colt.net!newsgate.cistron.nl!skynet.be!grolier!usenet-fr.net!gaoland.net!grec.isp.9tel.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: 31.13.101-84.rev.gaoland.net Original-X-Trace: apollon.grec.isp.9tel.net 1129711955 13575 84.101.13.31 (19 Oct 2005 08:52:35 GMT) Original-X-Complaints-To: abuse@9online.fr Original-NNTP-Posting-Date: Wed, 19 Oct 2005 08:52:35 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) X-Accept-Language: en-us, en In-Reply-To: <87ll0q7oqq.fsf@thalassa.informatimago.com> Original-Xref: shelby.stanford.edu gnu.emacs.help:134785 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: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30368 Archived-At: > Here: (kbd "é") --> [2281] > What do you get on your computer? Something amazing :) See yourself : (kbd "é")-->[233] (kbd "è")-->[232] Okay, but read this : (read-key-sequence ""), and typing "é" ---> [3945] (read-key-sequence ""), and typing "è" ---> [3944] It seems this is (kbd %c) + 3712. Why 3712. So, if I do emacs (with X), it works : (global-set-key [3945] (lambda()(interactive)(insert "e acute"))) (global-set-key [3944] (lambda()(interactive)(insert "e grave"))) Amazing, isn't it ? ----------------------------------------------------------------- Related : If i do this in emacs -nw, it works (unless i put keyboard-coding-system to iso-latin-1 or latin-1) : (global-set-key [233] (lambda()(interactive)(insert "e acute"))) (global-set-key [232] (lambda()(interactive)(insert "e grave"))) or (global-set-key (kbd "é") (lambda()(interactive)(insert "e acute"))) (global-set-key (kbd "è") (lambda()(interactive)(insert "e grave"))) If i do this in emacs (*true* console mode), it works too. ------------------------------------------------------------------ -- Mounir AITTAHAR