From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: A Soare Newsgroups: gmane.emacs.devel Subject: Changing the meaning of all the keys on the keyboard. Date: Thu, 17 Jul 2008 15:37:06 +0200 (CEST) Message-ID: <31255058.325281216301826978.JavaMail.www@wwinf4610> Reply-To: alinsoar@voila.fr NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1216301958 22296 80.91.229.12 (17 Jul 2008 13:39:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jul 2008 13:39:18 +0000 (UTC) To: "Emacs Dev [emacs-devel]" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 17 15:40:03 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KJTi5-00029F-3I for ged-emacs-devel@m.gmane.org; Thu, 17 Jul 2008 15:39:53 +0200 Original-Received: from localhost ([127.0.0.1]:49942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJThC-00089p-Il for ged-emacs-devel@m.gmane.org; Thu, 17 Jul 2008 09:38:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJTfT-0007Up-VS for emacs-devel@gnu.org; Thu, 17 Jul 2008 09:37:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJTfS-0007UB-OJ for emacs-devel@gnu.org; Thu, 17 Jul 2008 09:37:11 -0400 Original-Received: from [199.232.76.173] (port=57869 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJTfS-0007U4-E9 for emacs-devel@gnu.org; Thu, 17 Jul 2008 09:37:10 -0400 Original-Received: from smtp2.voila.fr ([193.252.22.175]:7095 helo=smtp1.voila.fr) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJTfS-0006qB-1m for emacs-devel@gnu.org; Thu, 17 Jul 2008 09:37:10 -0400 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf4104.voila.fr (SMTP Server) with ESMTP id 1C0AA1C00624 for ; Thu, 17 Jul 2008 15:37:07 +0200 (CEST) Original-Received: from wwinf4610 (wwinf4610 [10.232.13.53]) by mwinf4104.voila.fr (SMTP Server) with ESMTP id F15131C00622 for ; Thu, 17 Jul 2008 15:37:06 +0200 (CEST) X-ME-UUID: 20080717133706988.F15131C00622@mwinf4104.voila.fr X-Originating-IP: [85.9.55.98] X-Wum-Nature: EMAIL-NATURE X-WUM-FROM: |~| X-WUM-TO: |~| X-WUM-REPLYTO: |~| X-me-spamlevel: not-spam X-me-spamrating: 40.000000 X-me-spamcause: OK, (-100)(0000)secvtfgvtghiphhivghnthhsucdlqddutddtmd X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:100887 Archived-At: I bought a Mac keyboard for my PC. It's really beautiful. http://www.apple.com/keyboard/ However, I do not like the apple button. So I decided to transform it in META. I edited the file lisp.h so : /* Flag bits in a character. These also get used in termhooks.h. Richard Stallman thinks that MULE (MUlti-Lingual Emacs) might need 22 bits for the character value itself, so we probably shouldn't use any bits lower than 0x0400000. */ #define CHAR_ALT (0x0400000)=20 #define CHAR_SUPER (0x0800000) <=3D=3D HERE I CHANGED THE VALUE TO 0x80000= 00 (CHAR_META) #define CHAR_HYPER (0x1000000) #define CHAR_SHIFT (0x2000000) #define CHAR_CTL (0x4000000) #define CHAR_META (0x8000000) I recompiled emacs, and my SUPER is META. I would like to be able to be able to change the meaning of the keys withou= t recompiling emacs. This would be useful for me. One can add such a thing in future? Alin Soare. ____________________________________________________ La route des vacances en quelques clics gr=C3=A2ce =C3=A0 Voila ! http://it= ineraire.voila.fr/itineraire.html