unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Andrey Paramonov <cmr.Pent@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Keybindings in non-Latin layout
Date: Tue, 05 May 2009 02:57:08 +0300	[thread overview]
Message-ID: <87ws8wtoa3.fsf@mail.jurta.org> (raw)
In-Reply-To: <loom.20090503T172524-541@post.gmane.org> (Andrey Paramonov's message of "Sun, 3 May 2009 18:47:21 +0000 (UTC)")

>> This is possible with the following patch:
>> http://thread.gmane.org/gmane.emacs.devel/46455/focus=46602
>
> I've read the thread you pointed out, and the fact that devs consider the
> current GNU Emacs behavior a bug gives some hope. From the discussion I
> understand that the patch doesn't solve the problem completely, i.e. C-x b won't
> work in Russian layout anyway.

As you already noticed `C-x b' won't work, and a Mozilla-like patch
won't help with a single characters like `b' in a key sequence.

Now I see one way to fix this problem.  What if we would define
a parallel branch in a keymap where every defined key sequence
has a copy translated according to a conversion table.

So, for example, a define-key call:

(define-key global-map [(control ?x) ?b] 'switch-to-buffer)

would also define [(control ?ч) ?и] with the same binding
in the same keymap as if it were defined explicitly with:

(define-key global-map [(control ?ч) ?и] 'switch-to-buffer)

-- 
Juri Linkov
http://www.jurta.org/emacs/




  parent reply	other threads:[~2009-05-04 23:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-02 15:30 Keybindings in non-Latin layout Андрей Парамонов
2009-05-03  0:28 ` Stephen J. Turnbull
2009-05-03 11:55 ` Juri Linkov
2009-05-03 18:47   ` Andrey Paramonov
2009-05-03 19:18     ` Drew Adams
2009-05-04  5:01       ` Andrey Paramonov
2009-05-04  5:51         ` Drew Adams
2009-05-04  5:11     ` Jason Rumney
2009-05-04  5:27       ` Andrey Paramonov
2009-05-04 23:57     ` Juri Linkov [this message]
2009-05-05  2:40       ` Miles Bader
2009-05-05  4:41         ` Stefan Monnier
2009-05-05 15:13           ` Samuel Bronson
2009-05-05 18:29           ` Andrey Paramonov
2009-05-05 20:11             ` Lennart Borgman
2009-05-06 12:19             ` James Cloos
2009-05-06 18:28               ` Andrey Paramonov
2009-05-05 11:02         ` Juri Linkov

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=87ws8wtoa3.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=cmr.Pent@gmail.com \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).