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: Setting Keyboard bindings for C-Right Date: Sun, 5 Aug 2007 22:11:05 +0200 Message-ID: References: <1186252220.919077.220730@x40g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1186344708 5589 80.91.229.12 (5 Aug 2007 20:11:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Aug 2007 20:11:48 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: the matt Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 05 22:11:46 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IHmRx-0003hi-01 for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Aug 2007 22:11:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHmRu-0003ev-NL for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Aug 2007 16:11:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IHmRe-0003d0-Fz for help-gnu-emacs@gnu.org; Sun, 05 Aug 2007 16:11:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IHmRZ-0003Ps-Mn for help-gnu-emacs@gnu.org; Sun, 05 Aug 2007 16:11:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHmRZ-0003PI-BC for help-gnu-emacs@gnu.org; Sun, 05 Aug 2007 16:11:17 -0400 Original-Received: from fmmailgate02.web.de ([217.72.192.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IHmRX-0005bB-Kx for help-gnu-emacs@gnu.org; Sun, 05 Aug 2007 16:11:16 -0400 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate02.web.de (Postfix) with ESMTP id 723F591F75FB; Sun, 5 Aug 2007 22:11:07 +0200 (CEST) Original-Received: from [62.134.215.20] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #197) id 1IHmRP-0006VH-00; Sun, 05 Aug 2007 22:11:07 +0200 In-Reply-To: <1186252220.919077.220730@x40g2000prg.googlegroups.com> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX19KwrpqzvogGGF1CjdoG+S0kGEphYCmuAYU9LCf PaLvMTz2a29SLelNpgN0MAgkzy6WFLozLFaPxkNVC9LZHpAfEU EbEQ0v0EVUVS/H4dzrew== X-Detected-Kernel: Linux 2.4-2.6 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:46340 Archived-At: Am 04.08.2007 um 20:30 schrieb the matt: > Any help in translating "ESC [ 1 ; 5 C" into an emacs keybinding would > be much appreciated. You could look into xterm.el =96 it has lines like: (define-key map "\e[1;5C" [C-right]) The whole block, starting with (let ((map (make-sparse-keymap))) has a comment ;; xterm from X.org 6.8.2 uses these key definitions. and ends with ;; Use inheritance to let the main keymap override those =20 defaults. ;; This way we don't override terminfo-derived settings or =20 settings ;; made in the .emacs file. (set-keymap-parent map (keymap-parent function-key-map)) (set-keymap-parent function-key-map map)) Could be it's worth to patch .el with the 300 lines =20 from xterm.el. -- Greetings Pete There is no national science just as there is no national =20 multiplication table; what is national is no longer science. -- Anton Checov