annotate lisp/term/xterm.el @ 42315:33d9eae5bb32

Remove empty lines at the end of file.
author Pavel Janík <Pavel@Janik.cz>
date Tue, 25 Dec 2001 11:02:43 +0000
parents 41fcf9864c4d
children 76e795715361
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12159
e83a888f32d9 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1 ;;; xterm.el --- define function key sequences for xterm
e83a888f32d9 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
2
14170
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
3 ;; Copyright (C) 1995 Free Software Foundation, Inc.
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
4
12159
e83a888f32d9 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
5 ;; Author: FSF
e83a888f32d9 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
6 ;; Keywords: terminals
e83a888f32d9 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
7
14170
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
8 ;; This file is part of GNU Emacs.
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
9
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
13 ;; any later version.
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
14
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
18 ;; GNU General Public License for more details.
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
19
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
20 ;; You should have received a copy of the GNU General Public License
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
23 ;; Boston, MA 02111-1307, USA.
12159
e83a888f32d9 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
24
38431
853c3674f20a Fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 14170
diff changeset
25 ;;; Commentary:
853c3674f20a Fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 14170
diff changeset
26
853c3674f20a Fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 14170
diff changeset
27 ;;; Code:
12159
e83a888f32d9 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
28
40694
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
29 (let ((map (make-sparse-keymap)))
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
30 (define-key map "\e[A" [up])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
31 (define-key map "\e[B" [down])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
32 (define-key map "\e[C" [right])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
33 (define-key map "\e[D" [left])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
34 (define-key map "\e[1~" [home])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
35 (define-key map "\e[2~" [insert])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
36 (define-key map "\e[3~" [delete])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
37 (define-key map "\e[4~" [select])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
38 (define-key map "\e[5~" [prior])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
39 (define-key map "\e[6~" [next])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
40 (define-key map "\e[11~" [f1])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
41 (define-key map "\e[12~" [f2])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
42 (define-key map "\e[13~" [f3])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
43 (define-key map "\e[14~" [f4])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
44 (define-key map "\e[15~" [f5])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
45 (define-key map "\e[17~" [f6])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
46 (define-key map "\e[18~" [f7])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
47 (define-key map "\e[19~" [f8])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
48 (define-key map "\e[20~" [f9])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
49 (define-key map "\e[21~" [f10])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
50 (define-key map "\e[23~" [f11])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
51 (define-key map "\e[24~" [f12])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
52 (define-key map "\e[29~" [print])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
53
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
54 (define-key map "\eO5A" [C-up])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
55 (define-key map "\eO5B" [C-down])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
56 (define-key map "\eO5C" [C-right])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
57 (define-key map "\eO5D" [C-left])
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
58
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
59 ;; Use inheritance to let the main keymap override those defaults.
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
60 ;; This way we don't override terminfo-derived settings or settings
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
61 ;; made in the .emacs file.
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
62 (set-keymap-parent map (keymap-parent function-key-map))
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
63 (set-keymap-parent function-key-map map))
38431
853c3674f20a Fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 14170
diff changeset
64
853c3674f20a Fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 14170
diff changeset
65 ;;; xterm.el ends here