all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Rebinding international characters
Date: Fri, 20 Aug 2004 09:06:44 +0900 (JST)	[thread overview]
Message-ID: <200408200006.JAA06036@etlken.m17n.org> (raw)
In-Reply-To: <jwvwtzvfe49.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on 19 Aug 2004 09:41:55 -0400)

In article <jwvwtzvfe49.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>  But, as function-key-map can't override global/local map,
>>  ESC $ ... can't be handled.

> Huh?  Why not?  You have to bind it to an empty map anyway, no?
> Or did you find some other workaround?

Currently, this works (typing "ESC $ a" inserts `A'):
  (local-set-key "\e$a" 'ignore)
  (define-key key-translation-map "\e$a" [?A])
but this doesn't work:
  (local-set-key "\e$a" 'ignore)
  (define-key function-key-map "\e$a" [?A])

That is what I meant in "function-key-map can't override
global/local map".

> PS: I personally don't think it's a good idea to use function-key-map for
>     that (I think the encoded-kdb translation should be "strong"
>     (i.e. not overridable other than via things like `read-byte'), just like
>     it is under X11).
>     It is very unusual for people to rebind non-ASCII characters (at least
>     this is my impression based on the frequency of such questions in
>     gnu.emacs.help) and it has always been tricky to do and brittle (based
>     on the lack of useful and correct answers those rare questions
>     received), so I think that the current situation is already an
>     improvement and making it work for unibyte modes is not important.

I agree.  So, we should adjust info to the current behaviour
instead of changing the code.

---
Ken'ichi HANDA
handa@m17n.org

  reply	other threads:[~2004-08-20  0: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
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 [this message]
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=200408200006.JAA06036@etlken.m17n.org \
    --to=handa@m17n.org \
    --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.