From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: Rebinding international characters
Date: Wed, 18 Aug 2004 14:06:07 +0900 (JST) [thread overview]
Message-ID: <200408180506.OAA01667@etlken.m17n.org> (raw)
In-Reply-To: <E1BxFLB-0003QJ-9y@fencepost.gnu.org> (message from Richard Stallman on Tue, 17 Aug 2004 21:34:13 -0400)
In article <E1BxFLB-0003QJ-9y@fencepost.gnu.org>, Richard Stallman <rms@gnu.org> writes:
>> If you bind 8-bit characters like this in your init file, you may find it
>> convenient to specify that it is unibyte. @xref{Enabling Multibyte}.
>> Is that still correct?
> No.
> Are you saying I should delete those two lines?
Yes. Actually we should delete all paragraphs after this.
----------------------------------------------------------------------
If you don't specify a keyboard coding system, that approach won't
work. ...
----------------------------------------------------------------------
because specifying a unibyte code doesn't wark anymore even
in --unibyte case.
> The tests you did are interesting, but it is not clear to me how
> they relate to the question of whether to specify that your
> .emacs file is a unibyte file. Could you explain the relationship
> between these two issues?
In --unibyte case, read-key-sequence returns a vector of
multibyte character. So, the key binding should also be
done for the same character instead of unibyte code. But,
as unibyte buffer can't include such a character, what we
can do is only to specify a character code directly as this:
(global-set-key [2289] 'some-function)
But how to tell users to get the number 2289 in unibyte
mode? Something like this?
ESC : (read-event) RET
and type a key
And, this stops working in emacs-unicode because the
character code is different.
Another approach is to modify read_key_sequence so that it
tries to find unibyte binding if multibyte binding was not
found (like the way for finding lowercase/uppercase). Then,
the current info is still valid.
---
Ken'ichi HANDA
handa@m17n.org
next prev parent reply other threads:[~2004-08-18 5:06 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <658l7dju.fsf@wanadoo.es>
[not found] ` <E1BmU78-0000Ei-Lx@fencepost.gnu.org>
[not found] ` <wu103yd7.fsf@wanadoo.es>
[not found] ` <E1Bn1Sw-0005LE-KU@fencepost.gnu.org>
[not found] ` <llhe2nr3.fsf@wanadoo.es>
[not found] ` <E1BnapZ-0003Dl-HT@fencepost.gnu.org>
[not found] ` <ekn418ml.fsf@wanadoo.es>
[not found] ` <E1BoCnX-0006WN-Ko@fencepost.gnu.org>
[not found] ` <acxqyr87.fsf@wanadoo.es>
[not found] ` <m14qnxl3b8.fsf-monnier+emacs@gnu.org>
[not found] ` <200407270250.LAA07100@etlken.m17n.org>
[not found] ` <jwv7jsp7ems.fsf-monnier+emacs@gnu.org>
[not found] ` <200407280152.KAA09883@etlken.m17n.org>
[not found] ` <200407300642.PAA15666@etlken.m17n.org>
[not found] ` <E1Bqk3T-0005md-Nc@fencepost.gnu.org>
[not found] ` <200408021244.VAA22947@etlken.m17n.org>
[not found] ` <jwvvfg18v8y.fsf-monnier+emacs@gnu.org>
[not found] ` <200408030020.JAA24083@etlken.m17n.org>
[not found] ` <200408031209.VAA25650@etlken.m17n.org>
[not found] ` <2914-Tue03Aug2004220812+0300-eliz@gnu.org>
[not found] ` <200408050046.JAA29472@etlken.m17n.org>
[not found] ` <3c32jrng.fsf@wanadoo.es>
[not found] ` <200408050447.NAA29917@etlken.m17n.org>
[not found] ` <E1BwXlc-0005CT-HX@fencepost.gnu.org>
2004-08-17 7:14 ` Rebinding international characters Kenichi Handa
2004-08-17 19:53 ` Stefan
2004-08-18 1:42 ` Kenichi Handa
2004-08-18 15:55 ` Stefan Monnier
2004-08-19 18:04 ` Richard Stallman
2004-08-18 1:34 ` Richard Stallman
2004-08-18 5:06 ` Kenichi Handa [this message]
2004-08-18 15:44 ` Stefan Monnier
2004-08-19 0:25 ` Kenichi Handa
2004-08-19 13:41 ` Stefan Monnier
2004-08-20 0:06 ` Kenichi Handa
2004-08-20 14:59 ` Stefan Monnier
2004-08-21 0:09 ` Kenichi Handa
2004-08-22 1:11 ` Stefan Monnier
2004-08-23 1:27 ` Kenichi Handa
2004-08-23 2:02 ` Stefan Monnier
2004-08-20 6:25 ` Oliver Scholz
2004-08-20 15:05 ` Stefan Monnier
2004-08-21 11:24 ` Oliver Scholz
2004-08-18 1:34 ` Richard Stallman
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=200408180506.OAA01667@etlken.m17n.org \
--to=handa@m17n.org \
--cc=emacs-devel@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.