all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: coding system
Date: Tue, 22 Mar 2005 20:08:25 +0100	[thread overview]
Message-ID: <a4e27654963df84d7ead76bebc86665f@Web.DE> (raw)
In-Reply-To: <4240134e$1_3@x-privat.org>


Am 22.03.2005 um 13:47 schrieb Olive:

> I am confused about emacs and coding system. If I evaluate the 
> following function
>
> (read-event "Press a key: ")
>
> and press the é key (e acute); I see 2281 in the echo aera. If I want 
> to rebind the é key the command which works is
>
> (global-set-key [2281] 'foo)
>
> the command
>
> (global-set-key "é" 'foo)
>
> does not work.

Can it be that you too are confused about the difference of an event 
and a character representation? I think your keyboard does not deliver 
glyphs or characters, it's just an event that has to be transformed 
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 
on it and type C-u C-x =.

For me (kbd "é") is 2281 ...

--
Greetings

   Pete

"Eternity is a terrible thought. I mean, where's it going to end?"
                                                    - Tom Stoppard

  parent reply	other threads:[~2005-03-22 19:08 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-22 12:47 coding system Olive
2005-03-22 13:57 ` Joe Corneli
     [not found] ` <mailman.4714.1111501237.32256.help-gnu-emacs@gnu.org>
2005-03-22 14:32   ` Olive
2005-03-23  0:43     ` Miles Bader
2005-03-22 19:08 ` Peter Dyballa [this message]
2005-03-26 23:46 ` Stefan Monnier
2005-03-27  6:56   ` B.T. Raven
2005-03-27 10:50     ` Eli Zaretskii
     [not found]     ` <mailman.321.1111924417.28103.help-gnu-emacs@gnu.org>
2005-03-27 15:54       ` Reiner Steib
2005-03-27 20:03         ` B.T. Raven
2005-03-29 14:54     ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2003-05-26  9:58 Stein A. Stromme
2003-05-26 11:05 ` lawrence mitchell
2003-05-26 11:52   ` Stein A. Stromme
2003-05-26 11:58     ` Stein A. Stromme
2003-05-26 13:47     ` Oliver Scholz
2003-05-26 13:55     ` Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a4e27654963df84d7ead76bebc86665f@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.