From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Mode_switch in Emacs (was: wish: right alt/meta to switch keyboard layout while pressed) Date: Mon, 28 Nov 2005 22:27:14 +0200 Organization: JURTA Message-ID: <87d5kkfrkm.fsf@jurta.org> References: <200511222150.54248.pogonyshev@gmx.net> <200511261846.25153.pogonyshev@gmx.net> <87zmnq3qhh.fsf-monnier+emacs@gnu.org> <200511272339.02509.pogonyshev@gmx.net> <87acfp4itm.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1133210593 17497 80.91.229.2 (28 Nov 2005 20:43:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2005 20:43:13 +0000 (UTC) Cc: emacs-devel@gnu.org, pogonyshev@gmx.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 28 21:43:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EgppA-0000uk-BD for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2005 21:42:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Egpp8-0004UH-SM for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2005 15:42:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Egpn7-0003YU-6A for emacs-devel@gnu.org; Mon, 28 Nov 2005 15:40:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Egpn5-0003Xk-0Y for emacs-devel@gnu.org; Mon, 28 Nov 2005 15:40:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Egpn4-0003Xf-Pc for emacs-devel@gnu.org; Mon, 28 Nov 2005 15:39:58 -0500 Original-Received: from [194.126.101.98] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Egpn4-0007QV-Jg for emacs-devel@gnu.org; Mon, 28 Nov 2005 15:39:58 -0500 Original-Received: from mail.neti.ee (80-235-44-28-dsl.mus.estpak.ee [80.235.44.28]) by Relayhost1.neti.ee (Postfix) with ESMTP id 0A2761A64; Mon, 28 Nov 2005 22:40:10 +0200 (EET) Original-To: Stefan Monnier In-Reply-To: <87acfp4itm.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun, 27 Nov 2005 21:39:22 -0500") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:46716 Archived-At: > Regarding the XKB feature, I hope someone here will know what should be= done > so the bug can be fixed. > >> It should be deactivated while the Mode_switch is hold. I.e. it shoul= d >> work like Shift, if you like. Otherwise there's little point in it, s= ince >> 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 switch= ing >> to a different layout significantly disrupts the process. As I can see, everything works fine in CVS Emacs already. The Mode_switc= h key temporarily disables the russian layout while it is held in Emacs. Perhaps something is wrong in Paul's configuration where Mode_switch doesn't work correctly. > This requires several changes at the C level (at the very least so as t= o > get and process (mostly, ignore) key-release events). But you may be a= ble > to simulate the behavior as follows: > > - set your xmodmap such that Mode_switch is assigned to an unused modif= ier > (e.g. Hyper). > - add bindings in your .emacs of the form > (global-set-key [?\H-\[] "[") > (global-set-key [?\H-\'] "'") I tried to assign Mode_switch to Hyper, and it works too, without the nee= d to add Emacs bindings to translate [?\H-\'] to "'". > * BUGS > =20 > +** When using a russian+latin layout with > + > + setxkbmap -model pc104 -layout us,ru -variant ,winkeys > + > +pressing the W key while control is held generates a =F3-=E3 rather th= an C-W. This is not a bug, but quite a useless feature. It enables only a small subset of standard Emacs keybindings in the russian layout. --=20 Juri Linkov http://www.jurta.org/emacs/