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: wish: right alt/meta to switch keyboard layout while pressed Date: Tue, 29 Nov 2005 01:14:27 +0200 Organization: JURTA Message-ID: <87br041fa4.fsf@jurta.org> References: <200511222150.54248.pogonyshev@gmx.net> <200511252137.13822.pogonyshev@gmx.net> <87y83c5qg7.fsf-monnier+emacs@gnu.org> <200511260033.24103.pogonyshev@gmx.net> <87hd9z5u9y.fsf-monnier+emacs@gnu.org> <87irucecw5.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133223991 26382 80.91.229.2 (29 Nov 2005 00:26:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2005 00:26:31 +0000 (UTC) Cc: pogonyshev@gmx.net, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 29 01:26:19 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EgtHY-0005mk-9t for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2005 01:23:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgtHX-0002pe-M3 for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2005 19:23:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EgtBS-0007PE-9f for emacs-devel@gnu.org; Mon, 28 Nov 2005 19:17:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EgtBQ-0007Mj-5V for emacs-devel@gnu.org; Mon, 28 Nov 2005 19:17:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgtBP-0007MQ-K3 for emacs-devel@gnu.org; Mon, 28 Nov 2005 19:17:19 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EgtBP-00082T-HG for emacs-devel@gnu.org; Mon, 28 Nov 2005 19:17:19 -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 532561A64; Tue, 29 Nov 2005 02:17:31 +0200 (EET) Original-To: Stefan Monnier In-Reply-To: <87irucecw5.fsf@jurta.org> (Juri Linkov's message of "Mon, 28 Nov 2005 22:27:38 +0200") 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:46743 Archived-At: >> So you'd want hitting Mode_switch to toggle the LEIM input method or would >> you want pressing to turn it off and releasing to turn it back on? > > I think hitting Mode_switch to toggle the LEIM input method would be > very useful feature, since it allows using the same key to switch > Emacs input methods and X layouts in non-Emacs applications. > But perhaps it is not easy to implement. I just noticed that emacs/lisp/term/w32-win.el contains the following lines: ;; Keyboard layout/language change events ;; For now ignore language-change events; in the future ;; we should switch the Emacs Input Method to match the ;; new layout/language selected by the user. (global-set-key [language-change] 'ignore) It is interesting that Windows generates `language-change' key event. I guess it is currently ignored because it is not trivial to process it in Emacs. -- Juri Linkov http://www.jurta.org/emacs/