unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Mounir AITTAHAR <mounir.aittahar@fri.fr>
Subject: Re: Translating keys
Date: Thu, 20 Oct 2005 10:38:40 +0200	[thread overview]
Message-ID: <dj7l4e$js3$1@apollon.grec.isp.9tel.net> (raw)
In-Reply-To: <87k6g9p0j3.fsf-monnier+gnu.emacs.help@gnu.org>

> 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 ò 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 "é"). I've found this 
solution (cf "Non-ascii key binding..." thread) through 
(read-key-sequence "").

Also I've remarked this :

(kbd "é") => 233
(multibyte-char-to-unibyte 3945) => 233
(unibyte-char-to-multibyte 233) => 2281

(- (unibyte-char-to-multibyte 233) (multibyte-char-to-unibyte 3945)) => 2048

I remember to have got 2048 with a lisp function which returns the value 
to add to a unibyte to get the multibyte sequence... But what function ?

-- 
Mounir AITTAHAR

  parent reply	other threads:[~2005-10-20  8:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-16 19:58 Translating keys Elena Garrulo
2005-10-16 20:18 ` Peter Dyballa
     [not found] ` <mailman.11540.1129493899.20277.help-gnu-emacs@gnu.org>
2005-10-16 22:07   ` Elena Garrulo
2005-10-17  0:07     ` Peter Dyballa
2005-10-17  2:10 ` Pascal Bourguignon
2005-10-17 10:48   ` Mounir AITTAHAR
2005-10-17 13:27     ` Pascal Bourguignon
2005-10-17 15:15       ` Mounir AITTAHAR
2005-10-18 14:52         ` Mounir AITTAHAR
2005-10-18 16:50           ` Pascal Bourguignon
2005-10-19  8:29             ` Mounir AITTAHAR
2005-10-19 23:09     ` Stefan Monnier
2005-10-20  8:22       ` Mounir AITTAHAR
2005-10-20  9:09         ` Mounir AITTAHAR
2005-10-20  8:38       ` Mounir AITTAHAR [this message]
2005-10-21  8:37         ` Translating keys [solved] Mounir AITTAHAR
2005-10-17  3:03 ` Translating keys Stefan Monnier

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='dj7l4e$js3$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).