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: Mode_switch in Emacs (was: wish: right alt/meta to switch keyboard layout while pressed) Date: Sun, 27 Nov 2005 21:39:22 -0500 Message-ID: <87acfp4itm.fsf-monnier+emacs@gnu.org> References: <200511222150.54248.pogonyshev@gmx.net> <200511261846.25153.pogonyshev@gmx.net> <87zmnq3qhh.fsf-monnier+emacs@gnu.org> <200511272339.02509.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 1133145622 15038 80.91.229.2 (28 Nov 2005 02:40:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2005 02:40:22 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 28 03:40:12 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EgYw3-0002xG-Nk for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2005 03:40:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgYw1-0002ga-Lq for ged-emacs-devel@m.gmane.org; Sun, 27 Nov 2005 21:40:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EgYvO-0002Wa-EG for emacs-devel@gnu.org; Sun, 27 Nov 2005 21:39:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EgYvM-0002Vv-H9 for emacs-devel@gnu.org; Sun, 27 Nov 2005 21:39:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgYvM-0002Vq-BG for emacs-devel@gnu.org; Sun, 27 Nov 2005 21:39:24 -0500 Original-Received: from [209.226.175.188] (helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EgYvM-0002n6-BK for emacs-devel@gnu.org; Sun, 27 Nov 2005 21:39:24 -0500 Original-Received: from alfajor ([67.68.219.18]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20051128023923.VHVE28424.tomts25-srv.bellnexxia.net@alfajor>; Sun, 27 Nov 2005 21:39:23 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 0C788D73E6; Sun, 27 Nov 2005 21:39:23 -0500 (EST) Original-To: Paul Pogonyshev In-Reply-To: <200511272339.02509.pogonyshev@gmx.net> (Paul Pogonyshev's message of "Sun, 27 Nov 2005 23:39:02 +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:46676 Archived-At: Regarding the XKB feature, I hope someone here will know what should be done so the bug can be fixed. Also I hope Richard can tell us if it should be considered as a bug to be fixed before the release. I.e. should I apply the patch below? > 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. Wh= en > it works like a modifier, I can keep on typing as normal, while switching > to a different layout significantly disrupts the process. This requires several changes at the C level (at the very least so as to get and process (mostly, ignore) key-release events). But you may be able to simulate the behavior as follows: - set your xmodmap such that Mode_switch is assigned to an unused modifier (e.g. Hyper). - add bindings in your .emacs of the form (global-set-key [?\H-\[] "[") (global-set-key [?\H-\'] "'") ... Stefan --- FOR-RELEASE 19 nov 2005 10:48:53 -0500 1.174 +++ FOR-RELEASE 27 nov 2005 21:26:55 -0500=09 @@ -49,6 +49,21 @@ =20 * 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 =D0=A1-=D0=A6 rather = than C-W. +A probably related bug is that if you use + + setxkbmap -option grp:switch + +the russian layout should temporarily be disabled while the Mode_switch key +is held. + +Qt and Gdk apps seem to do it right, and supposedly XEmacs now handles it +right as well. + ** Fix window resizing bug: C-x 2, C-x 3, C-x 2. Now try to move the bottom of the=20 second window to the left.