From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: emacs-snapshot keybinding problem Date: Fri, 30 Dec 2005 16:45:04 +0100 Message-ID: <89094436dbe19fc651e2bc3fd10bfcce@Web.DE> References: <87zmmjyz2z.fsf-monnier+gnu.emacs.help@gnu.org> <8764p6u0mp.fsf@magma.ca> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1135960365 29851 80.91.229.2 (30 Dec 2005 16:32:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Dec 2005 16:32:45 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 30 17:32:43 2005 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 1EsNBA-00061L-FX for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Dec 2005 17:32:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EsNCR-0007EF-Co for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Dec 2005 11:33:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EsMSp-0007qG-Kf for help-gnu-emacs@gnu.org; Fri, 30 Dec 2005 10:46:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EsMSn-0007pA-8g for help-gnu-emacs@gnu.org; Fri, 30 Dec 2005 10:46:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EsMSm-0007oX-Gh for help-gnu-emacs@gnu.org; Fri, 30 Dec 2005 10:46:40 -0500 Original-Received: from [217.72.192.224] (helo=smtp06.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EsMTJ-0006eQ-Ta for help-gnu-emacs@gnu.org; Fri, 30 Dec 2005 10:47:14 -0500 Original-Received: from [87.193.29.39] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #340) id 1EsMRG-0006hB-00; Fri, 30 Dec 2005 16:45:06 +0100 In-Reply-To: <8764p6u0mp.fsf@magma.ca> X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: Angelina Carlton X-Mailer: Apple Mail (2.623) X-Sender: Peter_Dyballa@web.de 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:32309 Archived-At: Am 30.12.2005 um 15:21 schrieb Angelina Carlton: > I can edit this file or is this not a good idea? The better idea is to put into a file you have full control on. Once you update GNU Emacs you changes could be overwritten, putting them into ~/.emacs or a site-init.el will keep them longer. > > One more thing, the Apple keyboard has real F11-F16 keys which I have > not been able to get working under X, > Option "XkbModel" "macintosh" > seemed like the right choice but perhaps I need to address this first? > That's probably correct. The Apple *external* keyboards are a few models -- and they all have evolved as those in the PowerBooks or iBooks too. With xev (it's sometimes 'hidden' in a subdirectory of /usr/X11R6/bin) you can record the missing key codes, and with xmodmap you can make them (re-)assigned when X11 is launched. In ~/.xinitrc the lines can be: userresources=$HOME/.Xdefaults usermodmap=$HOME/.Xmodmap sysresources=/usr/X11R6/lib/X11/xinit/.Xresources sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap if [ -f $sysmodmap ]; then xmodmap $sysmodmap fi if [ -f $usermodmap ]; then xmodmap $usermodmap fi In .xmodmaprc the lines could be like: keycode 10 = 1 exclam exclamdown onesuperior To cite from the man page: Up to eight keysyms may be attached to a key, however the last four are not used in any major X server implementation. The first keysym is used when no modifier key is pressed in conjunction with this key, the second with Shift, the third when the Mode_Switch key is used with this key and the fourth when both the Mode_Switch and Shift keys are used. One problem is to find the keysyms (names) your system understands. These are predefined in a C header file, /usr/X11R6/include/X11/keysymdef.h. Check whether F1[1-9] are #define'd there! -- Greetings Pete In a world without walls and fences, who needs gates and windows?