From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: Re: wish: right alt/meta to switch keyboard layout while pressed Date: Sun, 27 Nov 2005 23:39:02 +0200 Message-ID: <200511272339.02509.pogonyshev@gmx.net> References: <200511222150.54248.pogonyshev@gmx.net> <200511261846.25153.pogonyshev@gmx.net> <87zmnq3qhh.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133127420 7236 80.91.229.2 (27 Nov 2005 21:37:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2005 21:37:00 +0000 (UTC) Cc: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 27 22:36:57 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EgUBw-0001GE-Fi for ged-emacs-devel@m.gmane.org; Sun, 27 Nov 2005 22:36:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgUBv-0007Ml-RQ for ged-emacs-devel@m.gmane.org; Sun, 27 Nov 2005 16:36:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EgUBc-0007MF-9F for emacs-devel@gnu.org; Sun, 27 Nov 2005 16:35:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EgUBa-0007LX-Ff for emacs-devel@gnu.org; Sun, 27 Nov 2005 16:35:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgUBa-0007LS-8h for emacs-devel@gnu.org; Sun, 27 Nov 2005 16:35:50 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1EgUBa-0000fP-32 for emacs-devel@gnu.org; Sun, 27 Nov 2005 16:35:50 -0500 Original-Received: (qmail invoked by alias); 27 Nov 2005 21:35:46 -0000 Original-Received: from unknown (EHLO [194.158.213.194]) [194.158.213.194] by mail.gmx.net (mp001) with SMTP; 27 Nov 2005 22:35:46 +0100 X-Authenticated: #16844820 Original-To: emacs-devel@gnu.org User-Agent: KMail/1.7.2 In-Reply-To: <87zmnq3qhh.fsf-monnier+emacs@gnu.org> Content-Disposition: inline X-Y-GMX-Trusted: 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:46668 Archived-At: Stefan Monnier wrote: > >> 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? > > > It seems in `xkb' Mode_switch disables alternative groups only, i.e. it > > won't start typing in Russian if I hold Mode_switch while using the > > English layout. So, if you manage to implement something similar in > > Emacs, it should probably behave like this (i.e. deactivate any > > non-default input method) for consistency. > > I believe you misunderstood the question. The question is whether the > deactivation should be done while Mode_switch is pressed (as if it were > some kind of modifier), or between two presses of Mode_switch, or yet > something else. Indeed, sorry. It should be deactivated while the Mode_switch is hold. I.e. it should work like Shift, if you like. Otherwise there's little point in it, since I could just press `C-\' twice as well with not so much more trouble. When it works like a modifier, I can keep on typing as normal, while switching to a different layout significantly disrupts the process. Paul