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: Translating keys Date: 20 Oct 2005 02:09:45 -0700 Organization: http://groups.google.com Message-ID: <1129799385.213322.228220@o13g2000cwo.googlegroups.com> References: <87d5m4c2r3.fsf@thalassa.informatimago.com> <87k6g9p0j3.fsf-monnier+gnu.emacs.help@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1129804773 12998 80.91.229.2 (20 Oct 2005 10:39:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2005 10:39:33 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 20 12:39:31 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ESXnd-0001SD-Vj for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Oct 2005 12:37:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESXnd-00030s-AU for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Oct 2005 06:37:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 84.101.13.220 Original-X-Trace: posting.google.com 1129799390 2172 127.0.0.1 (20 Oct 2005 09:09:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 20 Oct 2005 09:09:50 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: o13g2000cwo.googlegroups.com; posting-host=84.101.13.220; posting-account=5sCX1wwAAADL-GczDyFDQJZ_-7LYJBrL Original-Xref: shelby.stanford.edu gnu.emacs.help:134812 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:30397 Archived-At: I'm fed up with this 9telecom news server. > Check some of those threads that have been running these days. > I've recently posted an explanation of the problem along with solutions. My server news is really rubbish. By Google, I've read your message (hope this is this one you told about)_: > Try M-: (read-event) RET and then hit your =F2 key. It'll return the code > Elisp receives in response to this key (e.g. 2290). You can then bind it > with (local-set-key [2290] "{"). Yep, it works (on my keyboard this is 3945 for "=E9"). I've found this solution (cf "Non-ascii key binding..." thread) through (read-key-sequence ""). Also I've remarked this : (kbd "=E9") =3D> 233 (multibyte-char-to-unibyte 3945) =3D> 233 (unibyte-char-to-multibyte 233) =3D> 2281 (- (unibyte-char-to-multibyte 233) (multibyte-char-to-unibyte 3945)) =3D> 2048 nonascii-insert-offset =3D> 2048 Interesting... I have now what i need. Except the way to make a difference between console and (X/Xterm) mode. --=20 Mounir AITTAHAR