From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Tim Morley \(remove vegetable for email address\)" Newsgroups: gmane.emacs.help Subject: Re: Disable switching of keyboard setting Date: Fri, 31 Jan 2003 16:13:19 +0100 Organization: Guest of France Telecom Oleane's newsreading service Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <1043948503.374377@mednix01.kabsi.at> <84of5xqz2e.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1044026133 10324 80.91.224.249 (31 Jan 2003 15:15:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 31 Jan 2003 15:15:33 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ect5-0002fu-00 for ; Fri, 31 Jan 2003 16:15:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ect5-0003DA-02 for gnu-help-gnu-emacs@m.gmane.org; Fri, 31 Jan 2003 10:15:27 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!wanadoo.fr!oleane.net!oleane!nnrp.oleane.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 69 Original-NNTP-Posting-Host: 194.206.222.73 Original-X-Trace: s1.read.news.oleane.net 1044025923 29589 194.206.222.73 (31 Jan 2003 15:12:03 GMT) Original-X-Complaints-To: abuse@oleane.net Original-NNTP-Posting-Date: Fri, 31 Jan 2003 15:12:03 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Original-Xref: shelby.stanford.edu gnu.emacs.help:109643 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6159 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6159 > > "Paul" writes: > > > > while working with Emacs it happens to me very often that, by accidently > > hitting a key-combination, Emacs switches the keyboard setting from German > > to American. So I would like to know, how I can disable this switching? My > > Emacs version: GNU Emacs 20.7.1 (i386-*-*nt5.1.2600) > > "Kai Großjohann" writes: > There is a Windows function to do this, maybe you are invoking that? > This is a Windows function; you can choose shift-ctrl, shift-alt, or ctrl-alt (I believe your exact choices depend on your version of Windows!). Change the settings from Control Panel-->Keyboard-->Regional Settings. However, there is a difference in Emacs behaviour related to this, apparently between 20.3.1 which I used until recently and my current preference, 21.2.1. The act of changing keyboard layouts now seems to trigger the interactive compiled lisp function called `language-change'. However, the `C-h k' help on this just says: runs the command ignore which is an interactive compiled Lisp function in `subr'. (ignore &rest IGNORE) Do nothing and return nil. This function accepts any number of arguments, but ignores them. So it does nothing useful it would seem. What it does, which is kind of frustrating, is cancel (for example) any interactive search that's in progress when the keyboard switch is done -- very frustrating when I've typed half of the regular expression I want to search for and I suddenly realise it's got an `é' in the middle of it, because switching to French keyboard means I have to start again. :o( As a know-nothing-beginner as far as lisp hacking is concerned, would some kind soul be able to tell me how to remove this `feature'? Thanks in advance. Tim *"Why the hell do you want to do that anyway?" I hear you cry. Well, because I'm English, learnt to touch type and to use Emacs keyboard shortcuts on an English keyboard, but now work on a French project on a French machine and frequently need to type accented letters.