From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelina Carlton Newsgroups: gmane.emacs.help Subject: Re: emacs-snapshot keybinding problem Date: Sun, 01 Jan 2006 13:04:41 -0500 Message-ID: <87fyo7j03q.fsf@magma.ca> References: <87zmmjyz2z.fsf-monnier+gnu.emacs.help@gnu.org> <8764p6u0mp.fsf@magma.ca> <89094436dbe19fc651e2bc3fd10bfcce@Web.DE> <87y822sagk.fsf@magma.ca> <3c110c9e9c722c8b8843bee0bea47a2f@Web.DE> <87hd8p5l5p.fsf@magma.ca> <9bc9d7eb4441de7f9ae098a8cf925706@Web.DE> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1136138710 27626 80.91.229.2 (1 Jan 2006 18:05:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Jan 2006 18:05:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 01 19:05:08 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 1Et7Zq-0003RG-Dk for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Jan 2006 19:05:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Et7bN-0004Cb-Ew for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Jan 2006 13:06:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Et7bD-0004CT-Bz for help-gnu-emacs@gnu.org; Sun, 01 Jan 2006 13:06:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Et7bA-0004CF-Ph for help-gnu-emacs@gnu.org; Sun, 01 Jan 2006 13:06:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Et7bA-0004CC-M1 for help-gnu-emacs@gnu.org; Sun, 01 Jan 2006 13:06:28 -0500 Original-Received: from [206.191.0.239] (helo=mx3.magma.ca) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Et7c5-0007tz-27 for help-gnu-emacs@gnu.org; Sun, 01 Jan 2006 13:07:25 -0500 Original-Received: from mx2.magma.ca (mx2.magma.ca [206.191.0.243]) by mx3.magma.ca (8.13.0/8.13.0) with ESMTP id k01I4nMc024415 for ; Sun, 1 Jan 2006 13:04:50 -0500 Original-Received: from mail4.magma.ca (mail4.magma.ca [206.191.0.222]) by mx2.magma.ca (8.13.0/8.13.0) with ESMTP id k01I4lMA011892 for ; Sun, 1 Jan 2006 13:04:48 -0500 Original-Received: from localhost.localdomain (ottawa-hs-209-217-123-42.d-ip.magma.ca [209.217.123.42]) by mail4.magma.ca (8.13.0/8.13.0) with ESMTP id k01I4iWO032644 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Sun, 1 Jan 2006 13:04:48 -0500 Original-Received: from orchid by localhost.localdomain with local (Exim 4.50) id 1Et7ZR-0004ZL-GK for help-gnu-emacs@gnu.org; Sun, 01 Jan 2006 13:04:41 -0500 Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: <9bc9d7eb4441de7f9ae098a8cf925706@Web.DE> (Peter Dyballa's message of "Sat, 31 Dec 2005 18:21:01 +0100") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) 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:32343 Archived-At: Peter Dyballa writes: > Sorry! It has to be with _L or _R, and here in Mac OS X it's Super > (with _L or _R), uppercase! > (global-set-key [s-f1] 'replace-string) > (global-set-key [H-f] 'end-of-defun) > S- is the Shift key > C- is the Control key > M- is the Meta key > A- is the Alt key > H- is the Hyper key > s- is the super key Thanks! This works fine and gives me lots of possible custom key bindings that will not override any of Emacs's defaults. > You have to make a difference between GNU Emacs running inside a > terminal (emulation), or as an X client in its own window. The keys > you set with xmodmap do not exist in nowindows mode. XTerm and other > terminal emulations have kind of 'text bindings' to keys, particularly > to function keys. This seems odd to me, but I will take your advice. "xterm" for example is a terminal emulator for X windows, as is my terminal, "urxvt" so I would have thought xmodmap would be sufficient here. or do you mean that Emacs makes a distinction if called with -nw? I always thought the program (urxvt in my case) is a client of the X server and would inherit xmodmaps settings for that session. Regardless of the above, emacs22 -nw is indeed still not working, urxvt does not use "translations" and the same effect can not be achieved with keysyms ( Urxvt.keysym.F1: ESC [ 11 ~ ) so I am not sure what I can do except use another terminal I tried to use the translations that you provided with xterm but it too displayed the same behaviour as urxvt. > > \033 is the same as 0x1b wrapped in a string() call solely. Some X > clients understand the modifiers "Alt," "Ctrl," "Meta," or "Shift." If > xterms does too, and maybe understands Hyper or Super too, you have > the option to define your own extra set of key sequences these key > produce when pressed with any of these modifiers, that should work > without windows. In extending the xterm.el code you might get these > extra layers. I will try to make this work in xterm even though its not my proffered terminal but I am not sure to be honest that I understand the above enough to go through each function key and the Hyper and Super keys and reassign them. Thank you for all you help by the way, its just a lot for me to learn :) -- -----Angelina Carlton----- orchid on irc.freenode.net brat@magma.ca web:bzgirl.bakadigital.com --------------------------