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: wish: right alt/meta to switch keyboard layout while pressed Date: Tue, 22 Nov 2005 21:50:54 +0200 Message-ID: <200511222150.54248.pogonyshev@gmx.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1132697866 10236 80.91.229.2 (22 Nov 2005 22:17:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Nov 2005 22:17:46 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 22 23:17:38 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EegQb-0001py-T4 for ged-emacs-devel@m.gmane.org; Tue, 22 Nov 2005 23:15:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EegQa-0000Q8-T2 for ged-emacs-devel@m.gmane.org; Tue, 22 Nov 2005 17:15:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EegLx-0004d2-5V for emacs-devel@gnu.org; Tue, 22 Nov 2005 17:11:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EegLv-0004au-4Z for emacs-devel@gnu.org; Tue, 22 Nov 2005 17:11:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EegLt-0004ah-KS for emacs-devel@gnu.org; Tue, 22 Nov 2005 17:11:02 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1EegLt-00061w-Ao for emacs-devel@gnu.org; Tue, 22 Nov 2005 17:11:01 -0500 Original-Received: (qmail invoked by alias); 22 Nov 2005 22:10:58 -0000 Original-Received: from unknown (EHLO [194.158.209.56]) [194.158.209.56] by mail.gmx.net (mp024) with SMTP; 22 Nov 2005 23:10:58 +0100 X-Authenticated: #16844820 Original-To: emacs-devel@gnu.org User-Agent: KMail/1.7.2 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:46455 Archived-At: Hi, It is probably a bit too late now for wishes, but maybe it is trivial to implement in Emacs, so I'll ask just in case. There is a useful feature to switch keyboard layout temporary while the right alt (meta) key is pressed. In xkb you can turn it on with `-option grp:switch'. It is useful, because some characters are absent from some non-English layouts and `normal' switching back and forth is quite annoying for a mere character or two. For instance, you cannot type `[', `]', `{', `}', the apostrophe and some other characters while using Russian layout. So, if I want to type an apostrophe from Russian keyboard layout, I have to type `C-\ ' C-\'. If, however, the temporary-switching was implemented, I could do with `press-right-alt ' release-right-alt', which is obviously much easier. As far as I can tell, Emacs currently just ignores the right Alt. Can this be implemented easily? Paul