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 Date: Tue, 29 Nov 2005 01:08:36 +0200 Organization: JURTA Message-ID: <87mzjo2vvn.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> <87d5kkfrkm.fsf@jurta.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 1133222055 21527 80.91.229.2 (28 Nov 2005 23:54:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2005 23:54:15 +0000 (UTC) Cc: emacs-devel@gnu.org, pogonyshev@gmx.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 29 00:54:04 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Egsmd-0002Qc-Fr for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2005 00:51:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Egsmc-0007WK-84 for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2005 18:51:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EgsmQ-0007Vu-F5 for emacs-devel@gnu.org; Mon, 28 Nov 2005 18:51:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EgsmK-0007V4-95 for emacs-devel@gnu.org; Mon, 28 Nov 2005 18:51:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgsmK-0007V1-3L for emacs-devel@gnu.org; Mon, 28 Nov 2005 18:51:24 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EgsmJ-0002Jy-3g for emacs-devel@gnu.org; Mon, 28 Nov 2005 18:51:23 -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 00F221FB9; Tue, 29 Nov 2005 01:51:34 +0200 (EET) Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Mon, 28 Nov 2005 17:14:03 -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:46739 Archived-At: >> As I can see, everything works fine in CVS Emacs already. The Mode_sw= itch >> 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. > > Does that hold for XIM russian layout or for LEIM russian layout or > for both? For XIM russian layout. If the LEIM russian input method is enabled in Emacs, I think it is too much to ask Emacs to temporarily disable the input method while Mode_switch is held. As I understand even XEmacs doesn't try to do this. I see no reason to activate both XIM russian layout and LEIM russian input method in Emacs. But using them separately, to disable the russian layout in each of them is easy. With XIM russian layout, this can be done with Mode_switch configured with `setxkbmap -option grp:switch'. With LEIM, C-q does the job. >>> +** 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 = than 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. > > The way I understand the situation it is a bug because the above settin= g > exlpicitly asks for it not to happen. It doesn't specify what to do with key combinations. It is up to the application to translate raw key combinations to something else. > If you want to get =F3-=E3 rather than C-W than you'd use a different > config. In any case if it's a feature, it should be possible to > turn it off since in such a situation it can be a really > annoying feature. Somewhere =F3-=C3 may be preferable to C-w, but at least in Emacs I think interpreting =F3-=C3 as C-w is more natural. However, this is still not very useful in Emacs because it will enable only key sequences with control/meta modifiers, but not with raw letters. I.e. what good is to process =F3-=C3 as C-w, if `C-x b' will produce useless `C-x =C9'? --=20 Juri Linkov http://www.jurta.org/emacs/