From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: wish: right alt/meta to switch keyboard layout while pressed Date: Sat, 26 Nov 2005 10:10:54 -0500 Message-ID: <87hd9z5u9y.fsf-monnier+emacs@gnu.org> References: <200511222150.54248.pogonyshev@gmx.net> <200511252137.13822.pogonyshev@gmx.net> <87y83c5qg7.fsf-monnier+emacs@gnu.org> <200511260033.24103.pogonyshev@gmx.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1133019895 21755 80.91.229.2 (26 Nov 2005 15:44:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 26 Nov 2005 15:44:55 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 26 16:44:48 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eg2Cj-0001dF-ED for ged-emacs-devel@m.gmane.org; Sat, 26 Nov 2005 16:43:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eg2Ch-0001xp-8o for ged-emacs-devel@m.gmane.org; Sat, 26 Nov 2005 10:43:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Eg1hh-0005lf-KR for emacs-devel@gnu.org; Sat, 26 Nov 2005 10:11:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Eg1hb-0005f4-Tu for emacs-devel@gnu.org; Sat, 26 Nov 2005 10:11:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eg1hX-0005eD-L8 for emacs-devel@gnu.org; Sat, 26 Nov 2005 10:10:56 -0500 Original-Received: from [209.226.175.110] (helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Eg1hX-0004EX-9f for emacs-devel@gnu.org; Sat, 26 Nov 2005 10:10:55 -0500 Original-Received: from alfajor ([67.71.33.38]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20051126151054.BVYX2981.tomts43-srv.bellnexxia.net@alfajor>; Sat, 26 Nov 2005 10:10:54 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 4F345D73E6; Sat, 26 Nov 2005 10:10:54 -0500 (EST) Original-To: Paul Pogonyshev In-Reply-To: <200511260033.24103.pogonyshev@gmx.net> (Paul Pogonyshev's message of "Sat, 26 Nov 2005 00:33:23 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Originating-IP: [0] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:46618 Archived-At: >> 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 `=D0=A1trl-=D0=A6' just like `C= trl-W' (`=D0=A6' > 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. When you say "most applications" does that only include KDE (Qt) apps, or does it also include apps that use completely different toolkits? I guess it also includes other apps, right? If so, I think this behavior of Emacs should be considered as a bug. >> > So yes, let me rephrase. I wish `Mode_switch' would deactivate the cu= rrent >> > input method while pressed in Emacs. Or so that I could turn such fea= ture >> > on with something as simple as `setq ... t'. >> Is that what the Mode_switch key does in other X apps? I.e. what does t= he >> Mode_switch key do, "normally"? > Yes, if you use `setxkbmap -option grp:switch'. Then Emacs should do the same. I suspect it's the same bug. > 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.) Yes, that makes sense as well. So you'd want hitting Mode_switch to toggle the LEIM input method or would you want pressing to turn it off and releasing to turn it back on? Stefan