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: Fri, 25 Nov 2005 21:37:13 +0200 Message-ID: <200511252137.13822.pogonyshev@gmx.net> References: <200511222150.54248.pogonyshev@gmx.net> <200511242145.11221.pogonyshev@gmx.net> <87iruhahvv.fsf-monnier+emacs@gnu.org> 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 1132947695 27475 80.91.229.2 (25 Nov 2005 19:41:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 Nov 2005 19:41:35 +0000 (UTC) Cc: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 25 20:41:27 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EfjRZ-00068q-V9 for ged-emacs-devel@m.gmane.org; Fri, 25 Nov 2005 20:41:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EfjRU-0005FW-Ap for ged-emacs-devel@m.gmane.org; Fri, 25 Nov 2005 14:41:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EfjR9-0005F3-MR for emacs-devel@gnu.org; Fri, 25 Nov 2005 14:40:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EfjR0-0005Ax-3I for emacs-devel@gnu.org; Fri, 25 Nov 2005 14:40:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EfjQz-0005Ah-MD for emacs-devel@gnu.org; Fri, 25 Nov 2005 14:40:37 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1EfjQy-0004iC-Sw for emacs-devel@gnu.org; Fri, 25 Nov 2005 14:40:37 -0500 Original-Received: (qmail invoked by alias); 25 Nov 2005 19:33:51 -0000 Original-Received: from unknown (EHLO [194.158.221.104]) [194.158.221.104] by mail.gmx.net (mp017) with SMTP; 25 Nov 2005 20:33:51 +0100 X-Authenticated: #16844820 Original-To: emacs-devel@gnu.org User-Agent: KMail/1.7.2 In-Reply-To: <87iruhahvv.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:46579 Archived-At: 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'. >=20 > 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 Ema= cs. 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-=D0=B2 is undefined Working with Emacs with essentially all commands except `self-insert-comman= d' disabled is not something I like. I guess your second layout also works wi= th Latin alphabet, so it's not a problem for you. > >> Can you check with `xev' to see what events your right Alt key generat= es? > > It shows up as `Super_R', while the left Alt is `Alt_L'. >=20 > So maybe the physical key is located on the right side of the space bar a= nd > it has a little bit of text on it that says "alt", so *you* think of it as > a "right alt key". > But as far as X clients are concerned this is not a "right alt key". Uh, I just checked again, it is actually `Mode_switch' for X, I must have pressed the right key with the Windows logo the previous time. 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'. Paul