From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: coding system Date: Tue, 22 Mar 2005 20:08:25 +0100 Message-ID: References: <4240134e$1_3@x-privat.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1111518523 13821 80.91.229.2 (22 Mar 2005 19:08:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2005 19:08:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 22 20:08:43 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DDojx-0005jD-Mu for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Mar 2005 20:08:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDp1J-0001Sg-Ba for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Mar 2005 14:26:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DDp0h-0001Cg-Rf for help-gnu-emacs@gnu.org; Tue, 22 Mar 2005 14:25:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DDp0d-0001Aj-0J for help-gnu-emacs@gnu.org; Tue, 22 Mar 2005 14:25:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDp0c-0001AS-V6 for help-gnu-emacs@gnu.org; Tue, 22 Mar 2005 14:25:46 -0500 Original-Received: from [217.72.192.209] (helo=smtp05.web.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DDojt-0007nQ-1P for help-gnu-emacs@gnu.org; Tue, 22 Mar 2005 14:08:29 -0500 Original-Received: from [84.245.189.242] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.104 #268) id 1DDojr-0006H8-00; Tue, 22 Mar 2005 20:08:27 +0100 In-Reply-To: <4240134e$1_3@x-privat.org> Original-To: Olive X-Mailer: Apple Mail (2.619.2) X-Sender: Peter_Dyballa@web.de 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:25095 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25095 Am 22.03.2005 um 13:47 schrieb Olive: > I am confused about emacs and coding system. If I evaluate the=20 > following function > > (read-event "Press a key: ") > > and press the =E9 key (e acute); I see 2281 in the echo aera. If I = want=20 > to rebind the =E9 key the command which works is > > (global-set-key [2281] 'foo) > > the command > > (global-set-key "=E9" 'foo) > > does not work. Can it be that you too are confused about the difference of an event=20 and a character representation? I think your keyboard does not deliver=20= glyphs or characters, it's just an event that has to be transformed=20 into some other property. So your both global-set-key's are distinct. If you want to know a character's representation, position the cursor=20 on it and type C-u C-x =3D. For me (kbd "=E9") is 2281 ... -- Greetings Pete "Eternity is a terrible thought. I mean, where's it going to end?" - Tom Stoppard