From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Wordingham Newsgroups: gmane.emacs.help Subject: Re: Switching non-English keyboard layouts and using Emacs shortcuts Date: Wed, 13 May 2015 06:24:54 +0100 Message-ID: <20150513062454.0e7f56e3@JRWUBU2> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1431494727 1346 80.91.229.3 (13 May 2015 05:25:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 May 2015 05:25:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 13 07:25:20 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YsPAV-0007Ta-0v for geh-help-gnu-emacs@m.gmane.org; Wed, 13 May 2015 07:25:19 +0200 Original-Received: from localhost ([::1]:46442 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsPAU-00013h-2p for geh-help-gnu-emacs@m.gmane.org; Wed, 13 May 2015 01:25:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsPAE-0000zb-5E for help-gnu-emacs@gnu.org; Wed, 13 May 2015 01:25:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsPAA-0000U7-20 for help-gnu-emacs@gnu.org; Wed, 13 May 2015 01:25:02 -0400 Original-Received: from know-smtprelay-omc-7.server.virginmedia.net ([80.0.253.71]:54550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsPA9-0000Td-Nv for help-gnu-emacs@gnu.org; Wed, 13 May 2015 01:24:57 -0400 Original-Received: from JRWUBU2 ([81.103.224.4]) by know-smtprelay-7-imp with bizsmtp id THQv1q00P06JmVd01HQvCL; Wed, 13 May 2015 06:24:55 +0100 X-Originating-IP: [81.103.224.4] X-Spam: 0 X-Authority: v=2.1 cv=VcZ5PTZ9 c=1 sm=1 tr=0 a=pLuj3OkTrmEUIJBpyvkqVg==:117 a=pLuj3OkTrmEUIJBpyvkqVg==:17 a=IkcTkHD0fZMA:10 a=NLZqzBF-AAAA:8 a=pGLkceISAAAA:8 a=43Br9GeMCmqtx5QdeUcA:9 a=QEXdDO2ut3YA:10 In-Reply-To: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.0.253.71 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104434 Archived-At: On Wed, 13 May 2015 10:05:37 +0530 Shakthi Kannan wrote: > I can switch to the Dvorak layout, use Emacs shortcuts and then switch > back to enter unicode characters, but this is tedious. > #1 Is there a way to program Emacs such that when I press "C-", then > any key that follows needs to be interpreted from the Dvorak layout? I don't know. > #2 How do other people who use non-English layouts use Emacs shortcuts > with their native language input method? To be pedantic, as my native language input method inputs the Latin script, I have no problems using it directly from X. However, I also use non-Latin layouts. In most applications, I use the ibus input method, but that used not to work for Emacs with English locales selected. As a result, I switched to using a quail keyboard, and that avoids the problem you report. The quail keyboard is simply ignored when entering the shortcuts. Unfortunately, a few commands also ignore the quail keyboard for command input - one of these days I'll investigate, fix and report. I use the Emacs command set-input-method to select or change a quail keyboard, and toggle-input-method to toggle between using and not using a quail keyboard. There are standard shortcuts for these commands, but with the command line recall and completion facilities of Emacs it's easier to just type their starts once at the beginning of each Emacs session. Because of the problem with shortcuts, it's not worth using ibus now that it works in Emacs; I've stuck with quail. I don't use setxkbmap to switch between X keyboards. I just have four X keyboards permanently defined (I am on Ubuntu 12.04) and rely on ibus for the rest in non-Emacs applications. I switch X keyboard by means of the keyboard command=E2=80=8B ctrl/shift and ibus keyboard by alt/shift. These commands were chosen so I could run multi-lingual editing sessions in Emacs and LibreOffice on my Linux box from a Windows laptop with Xming as X-server. Each window (=3D Emacs frame) has its own X- and ibus keyboard selections. Richard.