all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Rebinding international characters
Date: 18 Aug 2004 11:55:59 -0400	[thread overview]
Message-ID: <jwv8yccih6m.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <200408180142.KAA01263@etlken.m17n.org>

>> I think that the --unicode mode is a dead-end (it made sense when it was
>                    ^^^^^^^^^--> --unibyte

Oops, indeed, thank you for fixing the typo.

> I agree.  Temporary unibyte buffer/string is still useful
> for raw data, but, yes, --unibyte mode is just a headache.

Yes, of course I was only talking about the unibyte *mode*: unibyte buffers
and strings will always be at least very useful if not necessary (remember
how I think of unibyte objects as "sequences of bytes" as opposed to
"sequences of chars" for multibyte objects).

>> I agree that C-1 should be fixed, but that implies doing the translation at
>> a lower level than we currently do.  It gets us back to the previous
>> discussion of the relationship betwen function-key-map and
>> key-translation-map and that we should have a key-translation-map-like step
>> before function-key-map.

> What do you think about my previous suggesion; i.e. handling
> it between keyboard-translate-table and input method in
> read_char?

I'd be happy to simply use keyboard-translate-table for keyboards coded in
latin-1, and to extend keyboard-translate-table so that an entry in the
table can be mapped to another table (thus being able to handle sequences of
chars in input) for encodings that use multiple bytes per char.

But maybe adding a separate step that directly obeys keyboard-coding-system
would be simpler  (with the addition that it makes it much easier to
temporarily change the encoding).

In general I agree that the keyboard decoding should be changed so that it
is done "within read-char" (i.e. read-char should return decoded chars).

>> Also we should be careful that applications like xterm-mouse-mode which want
>> to read keyboard input events as binary (even if the rest of the events are
>> normally treated as latin-1 or utf-8) can still do that properly.
>> It shouldn't be a source of problems, but it's still worth remembering.

> Ah, yes.

Maybe a `read-byte' function is in order.


        Stefan

  reply	other threads:[~2004-08-18 15:55 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 [this message]
2004-08-19 18:04                                                     ` Richard Stallman
2004-08-18  1:34                                                 ` Richard Stallman
2004-08-18  5:06                                                   ` Kenichi Handa
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=jwv8yccih6m.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=rms@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.