From: Paul Pogonyshev <pogonyshev@gmx.net>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: wish: right alt/meta to switch keyboard layout while pressed
Date: Sat, 26 Nov 2005 00:33:23 +0200 [thread overview]
Message-ID: <200511260033.24103.pogonyshev@gmx.net> (raw)
In-Reply-To: <87y83c5qg7.fsf-monnier+emacs@gnu.org>
Stefan Monnier wrote:
> >> > Emacs has no way of handling it correctly out-of-the-box, since it uses
> >> > internal input methods, which are a completely separate from `xkb'.
> >> You mean you use Emacs's internal input methods. I occasionally use them as
> >> well, but I mostly use XIM input methods and they work just fine with Emacs.
> > You could put it that way, yes. However, with Russian layout, it is almost
> > impossible to do otherwise. If I switch my `global' layout (handled by KDE,
> > which AFAIK falls back to `xkb'), I get this on response to `M-d':
>
> > M-в is undefined
>
> Interesting. I guess that could be considered as a bug.
> How do other X apps handle this problem?
I use KDE. There I have the Russian (winkeys) layout added with "Include latin
layout" option turned on. This gives this command line:
setxkbmap -model pc104 -layout us,ru -variant ,winkeys
After this, most applications handle, say `Сtrl-Ц' just like `Ctrl-W' (`Ц' and
`W' are on the same key.) However, Firefox doesn't, for some reason (which pisses
me off a lot, BTW) and so doesn't Emacs... No idea why.
> > So yes, let me rephrase. I wish `Mode_switch' would deactivate the current
> > input method while pressed in Emacs. Or so that I could turn such feature
> > on with something as simple as `setq ... t'.
>
> Is that what the Mode_switch key does in other X apps? I.e. what does the
> Mode_switch key do, "normally"?
Yes, if you use `setxkbmap -option grp:switch'. In KDE Control Center this
option is called ``Right Alt key switches group while pressed.'' There is a
lot of similar options, though. Somehow, I think this one is `standard' in
some way (I vaguelly recall some old DOS drivers behaving this way), but I may
be wrong.
> The question is mostly to figure out whether it's a bug in our X event
> handling or whether you're asking for an Emacs-only feature (the
> implementation would most likely be different).
Maybe if you could make it behave like most other apps do (and unlike Firefox),
that is enough. Than I would be able to just use global layout switching and
not internal Emacs input methods. However, making it work with internal methods
would be even better for me, since I like separate input methods for each buffer
etc., which is impossible with global layout switching. (Well, there are some
horrible hacks I was privately given links to, but I'm not diving into something
as complicated as that.)
Paul
next prev parent reply other threads:[~2005-11-25 22:33 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-22 19:50 wish: right alt/meta to switch keyboard layout while pressed Paul Pogonyshev
2005-11-22 22:31 ` Andreas Schwab
2005-11-23 5:14 ` Richard M. Stallman
2005-11-23 19:52 ` Paul Pogonyshev
2005-11-25 15:50 ` Richard M. Stallman
2005-11-25 18:00 ` Andreas Schwab
2005-11-23 6:07 ` Juri Linkov
2005-11-24 17:18 ` Stefan Monnier
2005-11-24 19:45 ` Paul Pogonyshev
2005-11-24 20:56 ` Stefan Monnier
2005-11-25 19:37 ` Paul Pogonyshev
2005-11-25 22:17 ` Stefan Monnier
2005-11-25 22:33 ` Paul Pogonyshev [this message]
2005-11-25 22:44 ` Aidan Kehoe
2005-11-26 16:43 ` Paul Pogonyshev
2005-11-27 5:26 ` Tomas Zerolo
2005-11-26 8:15 ` Eugene Vlasov
2005-11-26 19:44 ` Paul Pogonyshev
2005-11-28 20:33 ` Juri Linkov
2005-11-26 15:10 ` Stefan Monnier
2005-11-26 16:46 ` Paul Pogonyshev
2005-11-27 18:19 ` Stefan Monnier
2005-11-27 21:39 ` Paul Pogonyshev
2005-11-28 2:39 ` Mode_switch in Emacs (was: wish: right alt/meta to switch keyboard layout while pressed) Stefan Monnier
2005-11-28 20:27 ` Juri Linkov
2005-11-28 22:14 ` Mode_switch in Emacs Stefan Monnier
2005-11-28 23:08 ` Juri Linkov
2005-11-29 16:24 ` Stefan Monnier
2005-11-29 19:54 ` Paul Pogonyshev
2005-11-30 2:43 ` Juri Linkov
2005-11-28 20:27 ` wish: right alt/meta to switch keyboard layout while pressed Juri Linkov
2005-11-28 23:14 ` Juri Linkov
2005-11-26 4:22 ` Richard M. Stallman
[not found] ` <200511261925.20191.pogonyshev@gmx.net>
[not found] ` <17288.41589.506361.323637@parhasard.net>
2005-11-26 23:01 ` thoughts on interaction of key bindings and input methods (was Re: wish: right alt/meta to switch keyboard layout while pressed) Paul Pogonyshev
2005-11-27 1:48 ` Ben Wing
2005-11-27 5:35 ` Tomas Zerolo
2005-11-27 11:29 ` thoughts on interaction of key bindings and input methods (was Re: wish: right alt/meta to switch keyboard layout while pressed ) Paul Pogonyshev
2005-11-28 5:25 ` thoughts on interaction of key bindings and input methods (was Re: wish: right alt/meta to switch keyboard layout while pressed) Ben Wing
2005-11-28 19:09 ` Paul Pogonyshev
2005-11-27 18:35 ` Aidan Kehoe
2005-11-28 2:39 ` wish: right alt/meta to switch keyboard layout while pressed Stefan Monnier
2005-11-28 20:28 ` Juri Linkov
2005-11-28 22:16 ` Stefan Monnier
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=200511260033.24103.pogonyshev@gmx.net \
--to=pogonyshev@gmx.net \
--cc=monnier@iro.umontreal.ca \
/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).