unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: bojohan+news@dd.chalmers.se (Johan Bockgård)
To: emacs-devel@gnu.org
Subject: xterm.el
Date: Wed, 04 Apr 2007 18:28:53 +0200	[thread overview]
Message-ID: <yoijzm5onlx6.fsf@gamma02.me.chalmers.se> (raw)


This patch fixes some incorrect key definitions and adds a binding for
C-M-SPC.


Also, maybe it would be more useful if the `Alt-foo' bindings (A-up,
A-down, etc) in xterm.el were `Meta-foo'?


Index: lisp/term/xterm.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/term/xterm.el,v
retrieving revision 1.36
diff -u -r1.36 xterm.el
--- lisp/term/xterm.el	21 Jan 2007 03:22:34 -0000	1.36
+++ lisp/term/xterm.el	4 Apr 2007 15:44:00 -0000
@@ -246,7 +246,7 @@
       (define-key map "\e[27;5;49~"  [?\C-1])
       ;; Not all C-DIGIT keys have a distinct binding.
       (define-key map "\e[27;5;57~"  [?\C-9])
-      (define-key map "\e[27;5;59~"  [(C-\;)])
+      (define-key map "\e[27;5;59~"  [?\C-\;])
       (define-key map "\e[27;5;61~"  [?\C-=])
       (define-key map "\e[27;5;92~"  [?\C-\\])
 
@@ -255,7 +255,7 @@
       (define-key map "\e[27;6;35~"  [?\C-#])
       (define-key map "\e[27;6;36~"  [?\C-$])
       (define-key map "\e[27;6;37~"  [?\C-%])
-      (define-key map "\e[27;6;38~"  [(C-&)])
+      (define-key map "\e[27;6;38~"  [?\C-&])
       (define-key map "\e[27;6;40~"  [?\C-(])
       (define-key map "\e[27;6;41~"  [?\C-)])
       (define-key map "\e[27;6;42~"  [?\C-*])
@@ -263,13 +263,13 @@
       (define-key map "\e[27;6;58~"  [?\C-:])
       (define-key map "\e[27;6;60~"  [?\C-<])
       (define-key map "\e[27;6;62~"  [?\C->])
-      (define-key map "\e[27;6;63~"  [(C-\?)])
+      (define-key map "\e[27;6;63~"  [(control ??)])
 
       ;; These are the strings emitted for various C-M- combinations
       ;; for keyboards that the Meta and Alt modifiers are on the same
       ;; key (usually labeled "Alt").
-      (define-key map "\e[27;13;9~"  [(C-M-tab)])
-      (define-key map "\e[27;13;13~" [(C-M-return)])
+      (define-key map "\e[27;13;9~"  [C-M-tab])
+      (define-key map "\e[27;13;13~" [C-M-return])
 
       (define-key map "\e[27;13;39~" [?\C-\M-\'])
       (define-key map "\e[27;13;44~" [?\C-\M-,])
@@ -295,7 +295,7 @@
       (define-key map "\e[27;14;35~"  [?\C-\M-#])
       (define-key map "\e[27;14;36~"  [?\C-\M-$])
       (define-key map "\e[27;14;37~"  [?\C-\M-%])
-      (define-key map "\e[27;14;38~"  [(C-M-&)])
+      (define-key map "\e[27;14;38~"  [?\C-\M-&])
       (define-key map "\e[27;14;40~"  [?\C-\M-(])
       (define-key map "\e[27;14;41~"  [?\C-\M-)])
       (define-key map "\e[27;14;42~"  [?\C-\M-*])
@@ -303,11 +303,12 @@
       (define-key map "\e[27;14;58~"  [?\C-\M-:])
       (define-key map "\e[27;14;60~"  [?\C-\M-<])
       (define-key map "\e[27;14;62~"  [?\C-\M->])
-      (define-key map "\e[27;14;63~"  [(C-M-\?)])
+      (define-key map "\e[27;14;63~"  [(control meta ??)])
 
-      (define-key map "\e[27;7;9~"  [(C-M-tab)])
-      (define-key map "\e[27;7;13~" [(C-M-return)])
+      (define-key map "\e[27;7;9~"  [C-M-tab])
+      (define-key map "\e[27;7;13~" [C-M-return])
 
+      (define-key map "\e[27;7;32~" [?\C-\M-\s])
       (define-key map "\e[27;7;39~" [?\C-\M-\'])
       (define-key map "\e[27;7;44~" [?\C-\M-,])
       (define-key map "\e[27;7;45~" [?\C-\M--])
@@ -332,7 +333,7 @@
       (define-key map "\e[27;8;35~"  [?\C-\M-#])
       (define-key map "\e[27;8;36~"  [?\C-\M-$])
       (define-key map "\e[27;8;37~"  [?\C-\M-%])
-      (define-key map "\e[27;8;38~"  [(C-M-&)])
+      (define-key map "\e[27;8;38~"  [?\C-\M-&])
       (define-key map "\e[27;8;40~"  [?\C-\M-(])
       (define-key map "\e[27;8;41~"  [?\C-\M-)])
       (define-key map "\e[27;8;42~"  [?\C-\M-*])
@@ -340,13 +341,13 @@
       (define-key map "\e[27;8;58~"  [?\C-\M-:])
       (define-key map "\e[27;8;60~"  [?\C-\M-<])
       (define-key map "\e[27;8;62~"  [?\C-\M->])
-      (define-key map "\e[27;8;63~"  [(C-M-\?)])
+      (define-key map "\e[27;8;63~"  [(control meta ??)])
 
       (define-key map "\e[27;2;9~"   [S-tab])
       (define-key map "\e[27;2;13~"  [S-return])
 
-      (define-key map "\e[27;6;9~"   [(C-S-tab)])
-      (define-key map "\e[27;6;13~"  [(C-S-return)])
+      (define-key map "\e[27;6;9~"   [C-S-tab])
+      (define-key map "\e[27;6;13~"  [C-S-return])
 
       ;; Other versions of xterm might emit these.
       (define-key map "\e[A" [up])

             reply	other threads:[~2007-04-04 16:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-04 16:28 Johan Bockgård [this message]
2007-04-05 23:11 ` xterm.el Richard Stallman
2007-04-06 22:18   ` xterm.el Johan Bockgård
2007-04-07 17:30     ` xterm.el Richard Stallman
2007-04-08 14:33       ` xterm.el Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yoijzm5onlx6.fsf@gamma02.me.chalmers.se \
    --to=bojohan+news@dd.chalmers.se \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).