From: Mounir AITTAHAR <mounir.aittahar@fri.fr>
Subject: Re: Non-ASCII characters Key binding (emacs 21.4)
Date: Wed, 19 Oct 2005 10:51:32 +0200 [thread overview]
Message-ID: <dj51gj$d87$1@apollon.grec.isp.9tel.net> (raw)
In-Reply-To: <87ll0q7oqq.fsf@thalassa.informatimago.com>
> 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
next prev parent reply other threads:[~2005-10-19 8:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-16 21:54 Non-ASCII characters Key binding (emacs 21.4) Mounir AITTAHAR
2005-10-17 3:08 ` Stefan Monnier
2005-10-18 15:58 ` Mounir AITTAHAR
2005-10-18 16:06 ` Mounir AITTAHAR
2005-10-18 16:51 ` Pascal Bourguignon
2005-10-19 8:51 ` Mounir AITTAHAR [this message]
2005-10-19 23:11 ` Stefan Monnier
2005-10-17 11:47 ` Mounir AITTAHAR
2005-10-18 12:35 ` Mounir AITTAHAR
2005-10-19 1:47 ` Pascal Bourguignon
2005-10-24 19:23 ` [solved] " Mounir AITTAHAR
2005-10-24 23:52 ` Stefan Monnier
2005-10-25 13:29 ` Mounir AITTAHAR
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='dj51gj$d87$1@apollon.grec.isp.9tel.net' \
--to=mounir.aittahar@fri.fr \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).