From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: swap CapsLock and Ctrl only in Emacs Date: Mon, 12 Jun 2006 20:37:41 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <877j3mslqi.fsf@tiger.rapttech.com.au> References: <719148673.11150100023147.JavaMail.nntpgw@xnews001> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1150108858 31606 80.91.229.2 (12 Jun 2006 10:40:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Jun 2006 10:40:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 12 12:40:53 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fpjqk-00077w-Ja for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Jun 2006 12:40:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fpjqk-00075N-1j for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Jun 2006 06:40:50 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!news.glorb.com!sn-xt-sjc-04!sn-xt-sjc-09!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:KQRExHQJ03IlXfHZZldacAtk5FI= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 28 Original-Xref: shelby.stanford.edu gnu.emacs.help:139781 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35405 Archived-At: tury.peter@gmail.com writes: > Hi, > > according to http://www.emacswiki.org/cgi-bin/wiki/MovingTheCtrlKey and to http://www.gnu.org/software/emacs/windows/faq3.html#capscontrol this is not possible in Emacs. Is this still impossible in Emacs 22? And what about EmacsW32? > > Thanks, > P I don't believe you are likely to ever be able to do this from within emacs (via elisp) as you need to somehow intercept every keystroke prior to it being interpreted by emacs and modify the definitions for the keys you want to re-map. It would also involve an additional level of mapping and I'm not sure how you would do this reliably and efficiently on a multi-user system. Under X the solution is easy - you re-map the keys at the X level using utilities like modmap. For Windows, its a lot trickier as you either have to install a new driver or hack the registry. Either option has considerable risk. I would go for the keyboard driver solution as it is likely to be more consistent and reliable than a registry hack. Of course, you have to be confident the keyboard driver has been well written and behaves nicely with other keyboard drivers which have/may also be loaded and that can be a little tricky under windows. Tim -- tcross (at) rapttech dot com dot au