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: Mon, 02 Jan 2006 15:24:14 -0500 Message-ID: <87d5ja2xap.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> <87fyo7j03q.fsf@magma.ca> <9cdba747602dd27e1dce99b54eedf30b@Web.DE> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1136234136 31346 80.91.229.2 (2 Jan 2006 20:35:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Jan 2006 20:35:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 02 21:35:34 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 1EtWOv-0002gj-KH for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Jan 2006 21:35:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EtWQW-0004hP-8V for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Jan 2006 15:37:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EtWQM-0004hJ-Cn for help-gnu-emacs@gnu.org; Mon, 02 Jan 2006 15:36:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EtWQK-0004h5-Ou for help-gnu-emacs@gnu.org; Mon, 02 Jan 2006 15:36:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EtWQK-0004h2-Lb for help-gnu-emacs@gnu.org; Mon, 02 Jan 2006 15:36:56 -0500 Original-Received: from [206.191.0.248] (helo=spamav3.magma.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EtWRR-00066i-5Y for help-gnu-emacs@gnu.org; Mon, 02 Jan 2006 15:38:05 -0500 Original-Received: from mx1.magmacom.com (mx1.magmacom.com [206.191.0.217]) by spamav3.magma.ca (8.13.5/8.13.1) with ESMTP id k02KOKoT011431 for ; Mon, 2 Jan 2006 15:24:20 -0500 Original-Received: from mail2.magma.ca (mail2.magma.ca [206.191.0.214]) by mx1.magmacom.com (8.13.0/8.13.0) with ESMTP id k02KOJs3030331 for ; Mon, 2 Jan 2006 15:24:20 -0500 Original-Received: from localhost.localdomain (ottawa-hs-209-217-99-155.d-ip.magma.ca [209.217.99.155]) by mail2.magma.ca (8.13.0/8.13.0) with ESMTP id k02KOH9U006374 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 2 Jan 2006 15:24:19 -0500 Original-Received: from orchid by localhost.localdomain with local (Exim 4.50) id 1EtWE2-0008Lt-Ju for help-gnu-emacs@gnu.org; Mon, 02 Jan 2006 15:24:14 -0500 Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: <9cdba747602dd27e1dce99b54eedf30b@Web.DE> (Peter Dyballa's message of "Sun, 1 Jan 2006 19:57:45 +0100") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) X-magma-MailScanner: Clean 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:32356 Archived-At: Peter Dyballa writes: > The terminal emulation is of course an X11 client. But Emacs inside it > not. It's just a shell command. In terminals GNU Emacs uses ncurses or > similiar means to 'draw' its window(s). GNU Emacs too uses different > interfaces to receive the 'key events.' Only the windowing system's > clients see these events, shell commands receive some ANSI codes, as > sent by the terminal emulation. In X11 this one translates from X11 > key events to ANSI terminal codes. Hi Peter, I strayed somewhat from your method and put some code in my .emacs to re-map the function keys after everything is loaded.. ,---- | (defun fixmap() | (substitute-key-definition [S-f1] [f11] function-key-map) | (substitute-key-definition [S-f2] [f12] function-key-map) | (substitute-key-definition [S-f3] [f13] function-key-map) | (substitute-key-definition [S-f4] [f14] function-key-map) | (substitute-key-definition [S-f5] [f15] function-key-map) | (substitute-key-definition [S-f6] [f16] function-key-map)) | (add-hook 'term-setup-hook 'fixmap) `---- This now works for emacs22 -nw but the modifiers don't work yet, The Super_R and Hyper_L don't work of course because they re only set up for X apps. C-q Hyper-L isn't passed through so I am not sure what the escape code is and cant use global-set-key interactively. -- -----Angelina Carlton----- orchid on irc.freenode.net brat@magma.ca web:bzgirl.bakadigital.com --------------------------