all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: encoded-kbd-mode
Date: Tue, 03 Apr 2007 03:46:58 -0400	[thread overview]
Message-ID: <E1HYdjG-000742-2p@fencepost.gnu.org> (raw)
In-Reply-To: <E1HYBsS-0000oo-Pr@etlken.m17n.org> (message from Kenichi Handa on Mon, 02 Apr 2007 11:02:36 +0900)

    Encoded-kdb-mode is designed to convert raw-byte event
    sequence into character event sequence by utilizing keymap
    look-up mechanism.  So, it creates key-translation-map that
    maps raw-byte events to proper commands or to deeper maps.

    To make it handle a raw-byte event with modifers, we must
    create key-bindings for all combinations of modifiers.

That is one possible approach.  Another approach would be to have it
remove the modifier, convert the character, and then add the modifier
back.  Maybe that is easier.  It doesn't have to be done IN
encoded-kdb-mode.  It could be done by some higher level of input
processing.

      We may be able to
    catch all events by [t], but that requires another event
    parsing state (extract modifiers from the event, remember it
    in some variable, delete modifiers from the event, feed it
    again to key-translation-map, modify the last character
    event generator to handle the remembered modifiers, etc).

That doesn't sound very hard.  Would it fix the bug?

    Another anxiety is for those Windows user who have already
    found this workaround:
      (global-set-key [?\M-\351] ...)
    If we make [?\M-é] work for Windows now, the above setting
    stops working.

If anyone wants to complain that a bizarre and incorrect work-around
ceases to work, he will be satisfied when he learns that this is due
to a fix that makes "the right thing" work properly.

      reply	other threads:[~2007-04-03  7:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-31 23:20 encoded-kbd-mode Richard Stallman
2007-04-02  2:02 ` encoded-kbd-mode Kenichi Handa
2007-04-03  7:46   ` Richard Stallman [this message]

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=E1HYdjG-000742-2p@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.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.