From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Default Emacs keybindings Date: Tue, 4 May 2004 16:45:01 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200405042145.i44Lj1C21451@raven.dms.auburn.edu> References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1083708105 13924 80.91.224.253 (4 May 2004 22:01:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 May 2004 22:01:45 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed May 05 00:01:35 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BL7yp-0003Tz-00 for ; Wed, 05 May 2004 00:01:35 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BL7yp-0002z3-00 for ; Wed, 05 May 2004 00:01:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BL7mo-0000u1-Az for emacs-devel@quimby.gnus.org; Tue, 04 May 2004 17:49:10 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BL7mk-0000tP-EU for emacs-devel@gnu.org; Tue, 04 May 2004 17:49:06 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BL7mE-0000oE-BM for emacs-devel@gnu.org; Tue, 04 May 2004 17:49:05 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BL7mE-0000o6-3d for emacs-devel@gnu.org; Tue, 04 May 2004 17:48:34 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i44LmXTS010621; Tue, 4 May 2004 16:48:33 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id i44Lj1C21451; Tue, 4 May 2004 16:45:01 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: acm@muc.de In-reply-to: (message from Alan Mackenzie on Tue, 4 May 2004 15:37:26 +0000 (GMT)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22760 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22760 Alan Mackenzie wrote: Hmmm. OK, fair point. In that case, I'd suggest putting the said file in one's home directory. loadkeys doesn't (or, at least, didn't) require superuser privileges. I still say configuring the keyboard driver is the right way to go. Is it really a matter of choosing one or the other? If I want the remapping for the console, I need to use loadkeys. That worked perfectly for me on the console, with one big caveat to anybody else who wants to try it out, which you already mentioned: There is a bug in the keyboard driver of my (shamefully out of date) Linux kernel, in which after running this file, the keyboard is left in "permanent control" state. This can be worked around by specifying in /etc/keytab.CoLo "Caps_Lock" or "Control" individually for each modifier combination, as follows. keycode 29 = Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock keycode 58 = Control Control Control Control Control Control Control Control Control Control Control The number of "Caps_Lock"s necessary can be found from "dumpkeys -i". Yes indeed, and a permanent control state is no fun. However, unless I did something wrong, this does not seem to work under X. Is there a way to make this work under X? If not, we need _both_ loadkeys and xmodmap, as, I believe, Robert Chassell already remarked too. Sincerely, Luc.