annotate lisp/keydefs.el @ 4875:49de55c09f18

add "review" lines in intl-encap-win32.c for all unseen functions in processed headers -------------------- ChangeLog entries follow: -------------------- lib-src/ChangeLog addition: 2010-01-15 Ben Wing <ben@xemacs.org> * make-mswin-unicode.pl: Process the command `review'. Cause an error to happen if we try to use the command, indicating that the command needs review to determine how to handle it. src/ChangeLog addition: 2010-01-15 Ben Wing <ben@xemacs.org> * intl-encap-win32.c: Add `review' lines for all functions seen in the headers that we process but not yet associated with an encapsulation command. These will cause an error to be signaled if these functions are used. * intl-auto-encap-win32.c: * intl-auto-encap-win32.h: Regenerate.
author Ben Wing <ben@xemacs.org>
date Fri, 15 Jan 2010 05:42:21 -0600
parents 9e28067e3083
children 308d34e9f07d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1 ;;; keydefs.el --- Define standard keybindings.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
2
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
3 ;; Copyright (C) 1992-4, 1997 Free Software Foundation, Inc.
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 771
diff changeset
4 ;; Copyright (C) 2000, 2001, 2002 Ben Wing.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
5
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
6 ;; Maintainer: XEmacs Development Team
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
7 ;; Keywords: internal, dumped
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
8
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
9 ;; This file is part of XEmacs.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
10
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
11 ;; XEmacs is free software; you can redistribute it and/or modify it
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
12 ;; under the terms of the GNU General Public License as published by
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
13 ;; the Free Software Foundation; either version 2, or (at your option)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
14 ;; any later version.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
15
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
16 ;; XEmacs is distributed in the hope that it will be useful, but
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
19 ;; General Public License for more details.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
20
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
21 ;; You should have received a copy of the GNU General Public License
686
c82f9db998d7 [xemacs-hg @ 2001-12-03 18:02:47 by didierv]
didierv
parents: 622
diff changeset
22 ;; along with XEmacs; see the file COPYING. If not, write to the
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
23 ;; Free Software Foundation, 59 Temple Place - Suite 330,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
24 ;; Boston, MA 02111-1307, USA.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
25
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
26 ;; All the global bindings should be here so that one can reload things
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
27 ;; like files.el without trashing one's personal bindings.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
28
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
29 ;;; Synched up with: Not synched with FSF.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
30
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
31 ;;; Commentary:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
32
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
33 ;; This file is dumped with XEmacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
34
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
35 ;;; Code:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
36
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
37 (defgroup keyboard nil
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
38 "Input from the keyboard."
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
39 :group 'environment)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
40
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
41
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
42 ;; created by C code
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
43 (defvar global-map (current-global-map) "\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
44 Default global keymap mapping XEmacs keyboard input into commands.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
45 The value is a keymap which is usually (but not necessarily) XEmacs's
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
46 global map.")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
47
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
48 ;; created by C code
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
49 (defvar esc-map (symbol-function 'ESC-prefix) "\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
50 Default keymap for ESC (meta) commands.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
51 The normal global definition of the character ESC indirects to this keymap.")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
52
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
53 (set-keymap-name global-map 'global-map)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
54 (set-keymap-name esc-map 'ESC-prefix)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
55
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
56 (define-prefix-command 'Control-X-prefix t)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
57 (defvar ctl-x-map (symbol-function 'Control-X-prefix) "\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
58 Default keymap for C-x commands.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
59 The normal global definition of the character C-x indirects to this keymap.")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
60 (define-key global-map "\C-x" 'Control-X-prefix)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
61
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
62 (define-prefix-command 'ctl-x-4-prefix t)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
63 (defvar ctl-x-4-map (symbol-function 'ctl-x-4-prefix) "\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
64 Keymap for subcommands of C-x 4")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
65 (define-key global-map "\C-x4" 'ctl-x-4-prefix)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
66
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
67 (define-prefix-command 'ctl-x-5-prefix t)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
68 (defvar ctl-x-5-map (symbol-function 'ctl-x-5-prefix) "\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
69 Keymap for subcommands of C-x 5")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
70 (define-key global-map "\C-x5" 'ctl-x-5-prefix)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
71
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
72 (define-prefix-command 'mode-specific-command-prefix t)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
73 (defvar mode-specific-map (symbol-function 'mode-specific-command-prefix) "\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
74 Keymap for characters following C-c.")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
75 (define-key global-map "\C-c" 'mode-specific-command-prefix)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
76
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
77 ;; FSFmacs buffer.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
78
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
79 (define-key global-map "\C-xb" 'switch-to-buffer)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
80 (define-key global-map "\C-xk" 'kill-buffer)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
81 (define-key global-map "\C-x\C-b" 'list-buffers)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
82 (put 'erase-buffer 'disabled t) ;from buffer.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
83
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
84 ;; FSFmacs casefiddle.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
85
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
86 (define-key global-map "\C-x\C-u" 'upcase-region)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
87 ;; This is silly with zmacs regions
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
88 ;(put 'upcase-region 'disabled t)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
89 (define-key global-map "\C-x\C-l" 'downcase-region)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
90 ;; This is silly with zmacs regions
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
91 ;(put 'downcase-region 'disabled t)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
92 (define-key global-map "\M-u" 'upcase-region-or-word)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
93 (define-key global-map "\M-l" 'downcase-region-or-word)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
94 (define-key global-map "\M-c" 'capitalize-region-or-word)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
95
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
96 ;; FSFmacs cmds.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
97
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
98 (let ((n 33))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
99 (while (<= n 255)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
100 (if (not (= n 127))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
101 (define-key global-map n 'self-insert-command))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
102 (setq n (1+ n))))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
103 (define-key global-map " " 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
104
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
105 (define-key global-map "\C-a" 'beginning-of-line)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
106 (define-key global-map "\C-b" 'backward-char-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
107 (define-key global-map "\C-e" 'end-of-line)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
108 (define-key global-map "\C-f" 'forward-char-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
109 (define-key global-map "\C-d" 'delete-char)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
110
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
111 ;; FSFmacs files.el
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
112
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
113 (define-key global-map "\C-x\C-f" 'find-file)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
114 (define-key global-map "\C-x\C-q" 'toggle-read-only)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
115 (define-key global-map "\C-x\C-r" 'find-file-read-only)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
116 (define-key global-map "\C-x\C-v" 'find-alternate-file)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
117 (define-key global-map "\C-x\C-s" 'save-buffer)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
118 (define-key global-map "\C-xs" 'save-some-buffers)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
119 (define-key global-map "\C-x\C-w" 'write-file)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
120 (define-key global-map "\C-xi" 'insert-file)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
121 (define-key global-map "\M-~" 'not-modified)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
122 (define-key global-map "\C-x\C-d" 'list-directory)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
123 (define-key global-map "\C-x\C-c" 'save-buffers-kill-emacs)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
124
1333
1b0339b048ce [xemacs-hg @ 2003-03-02 09:38:37 by ben]
ben
parents: 1034
diff changeset
125 (define-key global-map "\C-x4c" 'clone-indirect-buffer-other-window)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
126 (define-key global-map "\C-x4f" 'find-file-other-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
127 (define-key global-map "\C-x4r" 'find-file-read-only-other-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
128 (define-key global-map "\C-x4\C-f" 'find-file-other-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
129 (define-key global-map "\C-x4b" 'switch-to-buffer-other-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
130 (define-key global-map "\C-x4\C-o" 'display-buffer)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
131
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
132 (define-key global-map "\C-x5b" 'switch-to-buffer-other-frame)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
133 (define-key global-map "\C-x5f" 'find-file-other-frame)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
134 (define-key global-map "\C-x5\C-f" 'find-file-other-frame)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
135 (define-key global-map "\C-x5r" 'find-file-read-only-other-frame)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
136
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
137 ;; FSFmacs frame.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
138 ;FSFmacs has these. It's probably a good idea to provide ways of hooking
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
139 ;these events, but it's unlikely that it's a good idea to do it this way.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
140 ;Just provide a hook, like the existing `select-frame-hook',
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
141 ;`deselect-frame-hook', `map-frame-hook', and `unmap-frame-hook'.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
142 ;#### ergo need hooks for delete-frame and iconify-frame
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
143 ;(define-key global-map 'switch-frame 'handle-switch-frame)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
144 ;(define-key global-map 'delete-frame 'handle-delete-frame)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
145 ;(define-key global-map 'iconify-frame 'ignore-event)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
146 ;(define-key global-map 'make-frame-visible 'ignore-event)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
147
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
148 ;; FSFmacs frame.el
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
149
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
150 ;; New FSF19 bindings: C-x 5 as prefix for window commands
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
151 (define-key global-map "\C-x52" 'make-frame)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
152 (define-key global-map "\C-x50" 'delete-frame)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
153 (define-key global-map "\C-x5o" 'other-frame)
716
d1ecd411af4c [xemacs-hg @ 2001-12-26 23:57:55 by youngs]
youngs
parents: 686
diff changeset
154 ;; New FSF21 binding:
d1ecd411af4c [xemacs-hg @ 2001-12-26 23:57:55 by youngs]
youngs
parents: 686
diff changeset
155 (define-key global-map "\C-x51" 'delete-other-frames)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
156
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
157 ;; FSFmacs help.el
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
158
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
159 (define-key global-map (vector help-char) 'help-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
160 (define-key global-map 'help 'help-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
161 (define-key global-map 'f1 'help-command)
622
11502791fc1c [xemacs-hg @ 2001-06-22 01:49:57 by ben]
ben
parents: 487
diff changeset
162 ;; This is a failsafe mechanism, esp. on TTY's, in case the terminal is
11502791fc1c [xemacs-hg @ 2001-06-22 01:49:57 by ben]
ben
parents: 487
diff changeset
163 ;; somewhat broken and f1 keys can't work, and backspace is redefined to
11502791fc1c [xemacs-hg @ 2001-06-22 01:49:57 by ben]
ben
parents: 487
diff changeset
164 ;; do backspace.
11502791fc1c [xemacs-hg @ 2001-06-22 01:49:57 by ben]
ben
parents: 487
diff changeset
165 (define-key global-map '(meta ??) 'help-command)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
166
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
167 ;; FSFmacs indent.el
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
168
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
169 ;;(define-key global-map "\t" 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
170 (define-key global-map "\t" 'indent-for-tab-command)
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 771
diff changeset
171 (define-key global-map "\M-\C-\\" 'indent-region-or-balanced-expression)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
172 (define-key global-map "\C-x\t" 'indent-rigidly)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
173 (define-key global-map "\M-i" 'tab-to-tab-stop)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
174 ;; XEmacs addition:
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 771
diff changeset
175 (define-key global-map [(shift tab)] 'self-insert-command)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
176
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
177 ;; FSFmacs isearch.el
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
178
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
179 (define-key global-map "\C-s" 'isearch-forward)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
180 (define-key global-map "\C-r" 'isearch-backward)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
181 (define-key global-map "\M-\C-s" 'isearch-forward-regexp)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
182 (define-key global-map "\M-\C-r" 'isearch-backward-regexp)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
183
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
184 ;; FSFmacs keyboard.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
185
3547
dd935ef485d2 [xemacs-hg @ 2006-08-06 22:14:08 by aidan]
aidan
parents: 1435
diff changeset
186 (define-key global-tty-map "\C-z" 'suspend-or-iconify-emacs)
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
187 (define-key global-window-system-map "\C-z" 'zap-up-to-char)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
188 (define-key global-window-system-map '(control Z) 'iconify-frame)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
189 (define-key global-map "\C-x\C-z" 'suspend-or-iconify-emacs)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
190
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
191 ;; FSFmacs loaddefs.el
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
192
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
193 ;; New FSF19 bindings: C-x n as a prefix for narrowing commands.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
194 (define-key global-map "\C-xn" (let ((map (make-sparse-keymap)))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
195 (set-keymap-name map 'narrowing-prefix)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
196 map))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
197 (put 'narrow-to-region 'disabled t)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
198 (define-key global-map "\C-xnn" 'narrow-to-region)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
199 (define-key global-map "\C-xnw" 'widen)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
200 (define-key global-map "\C-xnd" 'narrow-to-defun)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
201 ;; Old v18 bindings
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
202 ;(define-key global-map "\C-xn" 'narrow-to-region)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
203 ;(define-key global-map "\C-xw" 'widen)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
204
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
205 (define-key global-map "\C-j" 'newline-and-indent)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
206 (define-key global-map "\C-m" 'newline)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
207 (define-key global-map "\C-o" 'open-line)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
208 (define-key global-map "\M-\C-o" 'split-line)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
209 (define-key global-map "\C-q" 'quoted-insert)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
210 (define-key global-map "\M-^" 'delete-indentation)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
211 (define-key global-map "\M-\\" 'delete-horizontal-space)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
212 (define-key global-map "\M-m" 'back-to-indentation)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
213 (define-key global-map "\C-x\C-o" 'delete-blank-lines)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
214 (define-key global-map "\M- " 'just-one-space)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
215 (define-key global-map "\M-z" 'zap-to-char)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
216 (define-key global-map "\M-=" 'count-lines-region)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
217 (define-key global-map "\C-x=" 'what-cursor-position)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
218 (define-key global-map "\M-:" 'eval-expression)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
219 ;; Define ESC ESC : like ESC : for people who type ESC ESC out of habit.
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
220 ;(define-key global-map "\M-\e:" 'eval-expression)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
221 ;(define-key global-map "\M-\e" 'eval-expression)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
222 ;; Do we really need to disable this now that it is harder to type
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
223 ;; by accident?
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
224 ;; (put 'eval-expression 'disabled t)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
225 ;; Changed from C-x ESC so that function keys work following C-x.
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
226 ;; FMH! I tried putting back C-x ESC using global-window-system-map and
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
227 ;; removing the other bindings, but it doesn't work! I don't understand why
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
228 ;; M-ESC ESC (i.e. ESC ESC ESC) does work.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
229 (define-key global-map "\C-x\e\e" 'repeat-complex-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
230 ;; From Emacs 20.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
231 (define-key global-map "\C-x\M-:" 'repeat-complex-command)
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
232 (define-key global-map "\C-xu" 'undo)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
233 ;; Many people are used to typing C-/ on X terminals and getting C-_.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
234 (define-key global-map '(control /) 'undo)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
235 (define-key global-map "\C-_" 'undo)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
236 (define-key global-map "\M-!" 'shell-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
237 (define-key global-map "\M-|" 'shell-command-on-region)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
238
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
239 (define-key global-map "\C-u" 'universal-argument)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
240 ;; Make Control-0 - Control-9 set the prefix argument, like Meta-0.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
241 (let ((i ?0))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
242 (while (<= i ?9)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
243 (define-key global-map (list 'meta i) 'digit-argument)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
244 (define-key global-map (list 'control i) 'digit-argument)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
245 (define-key global-map (list 'control 'meta i) 'digit-argument)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
246 (setq i (1+ i))))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
247 (define-key global-map '(meta -) 'negative-argument)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
248 (define-key global-map '(control -) 'negative-argument)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
249 (define-key global-map '(control meta -) 'negative-argument)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
250
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
251 (define-key global-map "\C-k" 'kill-line)
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 442
diff changeset
252 ;will change like this in 21.5.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 442
diff changeset
253 ;(define-key global-map "\M-k" 'kill-entire-line)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
254 (define-key global-map "\C-w" 'kill-region)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
255 (define-key global-map "\M-w" 'kill-ring-save)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
256 (define-key global-map "\M-\C-w" 'append-next-kill)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
257 (define-key global-map "\C-y" 'yank)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
258 (define-key global-map "\M-y" 'yank-pop)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
259
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
260 ;; Old v18 binding
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
261 ;(define-key global-map "\C-xa" 'append-to-buffer)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
262
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
263 (define-key global-map "\C-@" 'set-mark-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
264 ;; Many people are used to typing C-SPC and getting C-@.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
265 (define-key global-map '(control ? ) 'set-mark-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
266 (define-key global-map "\C-x\C-x" 'exchange-point-and-mark)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
267 (define-key global-map "\C-x\C-@" 'pop-global-mark)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
268 (define-key global-map [(control x) (control ? )] 'pop-global-mark)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
269
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
270 (define-key global-map "\C-n" 'next-line)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
271 (define-key global-map "\C-p" 'previous-line)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
272 ;(define-key global-map "\C-x\C-n" 'set-goal-column)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
273 ;; XEmacs:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
274 ;;; Many people have said they rarely use this feature, and often type
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
275 ;;; it by accident. Maybe it shouldn't even be on a key.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
276 ;;; Done. -hniksic
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
277 ;(put 'set-goal-column 'disabled t)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
278
487
54fa1a5c2d12 [xemacs-hg @ 2001-04-28 07:48:36 by ben]
ben
parents: 462
diff changeset
279 (define-key global-map 'menu 'popup-mode-menu)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
280 (define-key global-map [find] 'search-forward)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
281
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
282 (define-key global-map "\C-t" 'transpose-chars)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
283 (define-key global-map "\M-t" 'transpose-words)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
284 (define-key global-map "\M-\C-t" 'transpose-sexps)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
285 (define-key global-map "\C-x\C-t" 'transpose-lines)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
286
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
287 ;; XEmacs: much more reasonable and useful key definitions.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
288 (define-key global-map '(control T) 'transpose-line-down)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
289 (define-key global-map '(meta T) 'transpose-line-up)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
290
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
291 (define-key global-map "\M-;" 'indent-for-comment)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
292 (define-key global-map "\M-j" 'indent-new-comment-line)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
293 (define-key global-map "\M-\C-j" 'indent-new-comment-line)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
294 (define-key global-map "\C-x;" 'set-comment-column)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
295 (define-key global-map "\C-xf" 'set-fill-column)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
296 (define-key global-map "\C-x$" 'set-selective-display)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
297
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
298 (define-key global-map "\M-@" 'mark-word)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
299 (define-key global-map "\M-f" 'forward-word)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
300 (define-key global-map "\M-b" 'backward-word)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
301 (define-key global-map "\M-d" 'kill-word)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
302
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
303 (define-key global-map "\M-<" 'beginning-of-buffer)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
304 (define-key global-map "\M->" 'end-of-buffer)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
305 (define-key global-map "\C-xh" 'mark-whole-buffer)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
306 (define-key global-map "\M-\\" 'delete-horizontal-space)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
307
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
308 (define-key global-map "\M-\C-f" 'forward-sexp)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
309 (define-key global-map "\M-\C-b" 'backward-sexp)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
310 (define-key global-map "\M-\C-u" 'backward-up-list)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
311 (define-key global-map "\M-\C-@" 'mark-sexp)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
312 (define-key global-map "\M-\C-d" 'down-list)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
313 (define-key global-map "\M-\C-k" 'kill-sexp)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
314 (define-key global-map "\M-\C-n" 'forward-list)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
315 (define-key global-map "\M-\C-p" 'backward-list)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
316 (define-key global-map "\M-\C-a" 'beginning-of-defun)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
317 (define-key global-map "\M-\C-e" 'end-of-defun)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
318 (define-key global-map "\M-\C-h" 'mark-defun)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
319 (define-key global-map "\M-\(" 'insert-parentheses)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
320 (define-key global-map "\M-\)" 'move-past-close-and-reindent)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
321 (define-key global-map "\M-\t" 'lisp-complete-symbol)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
322
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
323
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
324 (define-key global-map "\C-x/" 'point-to-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
325 (define-key global-map "\C-xj" 'jump-to-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
326 (define-key global-map "\C-xx" 'copy-to-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
327 (define-key global-map "\C-xg" 'insert-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
328 ;; Old v18 binding
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
329 ;(define-key global-map "\C-xr" 'copy-rectangle-to-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
330
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
331 ;; New FSF19 bindings: C-x r as a prefix for register commands
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
332 (define-key global-map "\C-xr" (let ((map (make-sparse-keymap)))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
333 (set-keymap-name map 'rectangle-prefix)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
334 map))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
335 (define-key global-map "\C-xr\C-@" 'point-to-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
336 (define-key global-map "\C-xr " 'point-to-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
337 (define-key global-map "\C-xrj" 'jump-to-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
338 (define-key global-map "\C-xrs" 'copy-to-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
339 (define-key global-map "\C-xrx" 'copy-to-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
340 (define-key global-map "\C-xri" 'insert-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
341 (define-key global-map "\C-xrg" 'insert-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
342 (define-key global-map "\C-xrr" 'copy-rectangle-to-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
343 (define-key global-map "\C-xrn" 'number-to-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
344 (define-key global-map "\C-xr+" 'increment-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
345 (define-key global-map "\C-xrc" 'clear-rectangle)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
346 (define-key global-map "\C-xrk" 'kill-rectangle)
1034
75469d7df0a9 [xemacs-hg @ 2002-10-07 10:27:15 by stephent]
stephent
parents: 832
diff changeset
347 (define-key global-map "\C-xrd" 'delete-rectangle)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
348 (define-key global-map "\C-xry" 'yank-rectangle)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
349 (define-key global-map "\C-xro" 'open-rectangle)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
350 (define-key global-map "\C-xrt" 'string-rectangle)
686
c82f9db998d7 [xemacs-hg @ 2001-12-03 18:02:47 by didierv]
didierv
parents: 622
diff changeset
351 (define-key global-map "\C-xrp" 'replace-rectangle)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
352 (define-key global-map "\C-xrw" 'window-configuration-to-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
353 ;(define-key global-map "\C-xrf" 'frame-configuration-to-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
354
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
355 (define-key global-map "\M-q" 'fill-paragraph-or-region)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
356 ;(define-key global-map "\M-q" 'fill-paragraph)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
357 ;(define-key global-map "\M-g" 'fill-region) ;now bound to goto-line
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
358 (define-key global-map "\C-x." 'set-fill-prefix)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
359
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
360 ; Using {} instead of [] is 1) FSF compatible and 2) allows function
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
361 ; keys to work on ttys. M-[ is the beginning of most the function key
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
362 ; sequences.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
363 (define-key global-map "\M-{" 'backward-paragraph)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
364 (define-key global-map "\M-}" 'forward-paragraph)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
365 (define-key global-map "\M-h" 'mark-paragraph)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
366 (define-key global-map "\M-a" 'backward-sentence)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
367 (define-key global-map "\M-e" 'forward-sentence)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
368 (define-key global-map "\M-k" 'kill-sentence)
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 442
diff changeset
369 ;will change like this in 21.5.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 442
diff changeset
370 ;(define-key global-map "\M-K" 'kill-sentence)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
371 ;;(define-key global-map "\C-x\177" 'backward-kill-sentence)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
372
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
373 (define-key global-map "\C-x[" 'backward-page)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
374 (define-key global-map "\C-x]" 'forward-page)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
375 (define-key global-map "\C-x\C-p" 'mark-page)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
376 (define-key global-map "\C-xl" 'count-lines-page)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
377 (define-key global-map "\C-xnp" 'narrow-to-page)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
378 ;; Old v18 bindings
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
379 ;(define-key global-map "\C-xp" 'narrow-to-page)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
380 (put 'narrow-to-page 'disabled t)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
381
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
382 ;; Old v18 bindings
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
383 ;(define-key global-map "\C-x\C-a" 'add-mode-abbrev)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
384 ;(define-key global-map "\C-x+" 'add-global-abbrev)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
385 ;(define-key global-map "\C-x\C-h" 'inverse-add-mode-abbrev)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
386 ;(define-key global-map "\C-x-" 'inverse-add-global-abbrev)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
387
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
388 (define-key global-map "\M-'" 'abbrev-prefix-mark)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
389 (define-key global-map "\C-x'" 'expand-abbrev)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
390
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
391 ;; New FSF19 bindings: C-x a as a prefix for abbrev commands
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
392 (define-key global-map "\C-xal" 'add-mode-abbrev)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
393 (define-key global-map "\C-xa\C-a" 'add-mode-abbrev)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
394 (define-key global-map "\C-xag" 'add-global-abbrev)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
395 (define-key global-map "\C-xa+" 'add-mode-abbrev)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
396 (define-key global-map "\C-xaig" 'inverse-add-global-abbrev)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
397 (define-key global-map "\C-xail" 'inverse-add-mode-abbrev)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
398 (define-key global-map "\C-xa-" 'inverse-add-global-abbrev)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
399 (define-key global-map "\C-xae" 'expand-abbrev)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
400 (define-key global-map "\C-xa'" 'expand-abbrev)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
401
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
402 (define-key global-map "\M-\C-l" 'switch-to-other-buffer)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
403
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
404 ;; Default binding of "Backspace" is no longer the same as delete.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
405 ;; Default binding of "Control-h" is help.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
406 (define-key global-map 'backspace 'delete-backward-char)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
407 (define-key global-map '(meta backspace) 'backward-kill-word)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
408 (define-key global-map [(control x) backspace] 'backward-kill-sentence)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
409
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
410 (define-key global-map "\M-\C-z" 'activate-region)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
411
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
412 ;; FSFmacs macros.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
413
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
414 (define-key global-map "\C-xe" 'call-last-kbd-macro)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
415 (define-key global-map "\C-x\(" 'start-kbd-macro)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
416 (define-key global-map "\C-x\)" 'end-kbd-macro)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
417
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
418 ;; FSFmacs macros.el
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
419
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
420 (define-key global-map "\C-xq" 'kbd-macro-query)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
421
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
422
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
423 ;; FSFmacs minibuffer.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
424 ; see also minibuf.el
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
425
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
426 (define-key global-map "\M-\C-c" 'exit-recursive-edit)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
427 (define-key global-map "\C-]" 'abort-recursive-edit)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
428 (define-key global-map "\M-x" 'execute-extended-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
429
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
430 ;; FSFmacs window.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
431
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
432 (define-key global-map "\C-x0" 'delete-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
433 (define-key global-map "\C-x1" 'delete-other-windows)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
434 (define-key global-map "\C-x2" 'split-window-vertically)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
435 (define-key global-map "\C-x3" 'split-window-horizontally)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
436 ;; Old XEmacs binding
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
437 ;;(define-key global-map "\C-x5" 'split-window-horizontally)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
438 (define-key global-map "\C-xo" 'other-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
439 (define-key global-map "\C-x^" 'enlarge-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
440 (define-key global-map "\C-x<" 'scroll-left)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
441 (define-key global-map "\C-x>" 'scroll-right)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
442
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
443 (define-key global-map "\C-v" 'scroll-up-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
444 (define-key global-map "\M-v" 'scroll-down-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
445 (define-key global-map "\M-\C-v" 'scroll-other-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
446 ; meta-shift-V, that is.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
447 (define-key global-map '(meta V) 'scroll-other-window-down)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
448
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
449 (define-key global-map "\C-l" 'recenter)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
450 (define-key global-map "\M-r" 'move-to-window-line)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
451
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
452 ;; FSFmacs window.el
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
453
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
454 (define-key global-map "\C-x6" 'window-configuration-to-register)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
455 ;(define-key global-map "\C-x7" 'jump-to-register);ie register-to-window-config
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
456 (define-key global-map "\C-x}" 'enlarge-window-horizontally)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
457 (define-key global-map "\C-x{" 'shrink-window-horizontally)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
458 ;; New FSF19 bindings
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
459 (define-key global-map "\C-x-" 'shrink-window-if-larger-than-buffer)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
460 (define-key global-map "\C-x+" 'balance-windows)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
461 (define-key ctl-x-4-map "0" 'kill-buffer-and-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
462
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
463 ;;(define-key global-map "\C-g" 'keyboard-quit)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
464 (let ((ch (quit-char)))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
465 (if (or (characterp ch) (integerp ch))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
466 (setq ch (char-to-string ch)))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
467 (define-key global-map ch 'keyboard-quit))
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
468 (define-key global-tty-map "\e\e\e" 'keyboard-escape-quit)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
469 (define-key global-window-system-map "\e\e" 'keyboard-escape-quit)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
470
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
471 (define-key global-map "\M-%" 'query-replace)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
472
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
473 ;; FSF v20 binding
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
474 (define-key global-map [(control meta %)] 'query-replace-regexp)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
475
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
476
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
477 ; autoloaded
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
478 ;(define-key global-map "\C-x4a" 'add-change-log-entry-other-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
479
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
480 ; autoloaded
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
481 ;(define-key global-map "\C-x`" 'next-error)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
482
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
483 ; autoloaded
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
484 ;(define-key global-map "\M-/" 'dabbrev-expand)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
485
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
486 ; autoloaded
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
487 ;(define-key global-map "\C-xd" 'dired)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
488
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
489 ; autoloaded
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
490 ;(define-key global-map "\C-x4d" 'dired-other-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
491
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
492 (define-key global-map "\M-$" 'ispell-word)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
493
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
494 (define-key global-map "\C-xm" 'compose-mail)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
495 (define-key global-map "\C-x4m" 'compose-mail-other-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
496 (define-key global-map "\C-x5m" 'compose-mail-other-frame)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
497
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
498 (define-key global-map "\M-." 'find-tag)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
499
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
500 (define-key global-map "\C-x4." 'find-tag-other-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
501
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
502 (define-key global-map "\M-," 'tags-loop-continue)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
503
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
504
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
505 (define-key global-map '(control <) 'mark-beginning-of-buffer)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
506 (define-key global-map '(control >) 'mark-end-of-buffer)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
507
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
508 (define-key global-map "\C-x\C-e" 'eval-last-sexp) ;bogus!
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
509
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
510
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
511 (define-key global-map "\M-g" 'goto-line)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
512
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
513 ;; Keypad type things
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
514
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
515 ;; I removed all the fkey crap, because where-is is now smart enough
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
516 ;; to show all bindings. --ben
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
517
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
518 ;;; These aren't bound to kbd macros like "\C-b" so that they have the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
519 ;; expected behavior even in, for example, vi-mode.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
520
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
521 ;; We use here symbolic names, assuming that the corresponding keys will
686
c82f9db998d7 [xemacs-hg @ 2001-12-03 18:02:47 by didierv]
didierv
parents: 622
diff changeset
522 ;; generate these keysyms. This is not true on Suns, but x-win-sun.el
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
523 ;; fixes that. If it turns out that the semantics of these keys should
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
524 ;; differ from server to server, this should be moved into server-specific
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
525 ;; files, but these appear to be the standard Motif and PC bindings.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
526
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
527 ;; movement by units
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
528 (define-key global-map 'left 'backward-char-command)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
529 (define-key global-map 'right 'forward-char-command)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
530 (define-key global-map 'up 'previous-line)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
531 (define-key global-map 'down 'next-line)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
532 (define-key global-map 'kp-left 'backward-char-command)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
533 (define-key global-map 'kp-right 'forward-char-command)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
534 (define-key global-map 'kp-up 'previous-line)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
535 (define-key global-map 'kp-down 'next-line)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
536
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
537 ;; movement by pages
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
538 (define-key global-map 'prior 'scroll-down-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
539 (define-key global-map 'next 'scroll-up-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
540 (define-key global-map '(control prior) 'scroll-right)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
541 (define-key global-map '(control next) 'scroll-left)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
542 (define-key global-map 'kp-prior 'scroll-down-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
543 (define-key global-map 'kp-next 'scroll-up-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
544 (define-key global-map '(control kp-prior) 'scroll-right)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
545 (define-key global-map '(control kp-next) 'scroll-left)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
546
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
547 ;; movement to the limits
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
548 (define-key global-map 'home 'beginning-of-line)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
549 (define-key global-map 'end 'end-of-line)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
550 (define-key global-map '(control home) 'beginning-of-buffer)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
551 (define-key global-map '(control end) 'end-of-buffer)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
552 (define-key global-map 'kp-home 'beginning-of-line)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
553 (define-key global-map 'kp-end 'end-of-line)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
554 (define-key global-map '(control kp-home) 'beginning-of-buffer)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
555 (define-key global-map '(control kp-end) 'end-of-buffer)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
556
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
557 ;; on which systems do these exist?
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
558 (define-key global-map 'begin 'beginning-of-line)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
559 (define-key global-map '(control begin) 'beginning-of-buffer)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
560
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
561 ;; movement by larger blocks
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
562 (define-key global-map '(control left) 'backward-word)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
563 (define-key global-map '(control right) 'forward-word)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
564 (define-key global-map '(control up) 'backward-block-of-lines)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
565 (define-key global-map '(control down) 'forward-block-of-lines)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
566 (define-key global-map '(control kp-left) 'backward-word)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
567 (define-key global-map '(control kp-right) 'forward-word)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
568 (define-key global-map '(control kp-up) 'backward-block-of-lines)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
569 (define-key global-map '(control kp-down) 'forward-block-of-lines)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
570
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
571 ;; context-sensitive movement
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
572 (define-key global-map '(meta left) 'backward-sexp)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
573 (define-key global-map '(meta right) 'forward-sexp)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
574 (define-key global-map '(meta up) 'backward-paragraph)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
575 (define-key global-map '(meta down) 'forward-paragraph)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
576 (define-key global-map '(meta control left) 'backward-sentence)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
577 (define-key global-map '(meta control right) 'forward-sentence)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
578 (define-key global-map '(meta control up) 'scroll-down-one)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
579 (define-key global-map '(meta control down) 'scroll-up-one)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
580 (define-key global-map '(meta control home) 'beginning-of-defun)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
581 (define-key global-map '(meta control end) 'end-of-defun)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
582 (define-key global-map '(meta control prior) 'backward-page)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
583 (define-key global-map '(meta control next) 'forward-page)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
584 (define-key global-map '(meta kp-left) 'backward-sexp)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
585 (define-key global-map '(meta kp-right) 'forward-sexp)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
586 (define-key global-map '(meta kp-up) 'backward-paragraph)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
587 (define-key global-map '(meta kp-down) 'forward-paragraph)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
588 (define-key global-map '(meta control kp-left) 'backward-sentence)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
589 (define-key global-map '(meta control kp-right) 'forward-sentence)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
590 (define-key global-map '(meta control kp-up) 'scroll-down-one)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
591 (define-key global-map '(meta control kp-down) 'scroll-up-one)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
592 (define-key global-map '(meta control kp-home) 'beginning-of-defun)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
593 (define-key global-map '(meta control kp-end) 'end-of-defun)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
594 (define-key global-map '(meta control kp-prior) 'backward-page)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
595 (define-key global-map '(meta control kp-next) 'forward-page)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
596
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
597 ;; movement between windows
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
598 (define-key global-map '(control tab) 'other-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
599 (define-key global-map '(control shift tab) 'backward-other-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
600
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
601 ;; movement in other windows
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
602 (define-key global-map '(meta next) 'scroll-other-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
603 (define-key global-map '(meta prior) 'scroll-other-window-down)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
604 (define-key global-map '(meta kp-next) 'scroll-other-window)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
605 (define-key global-map '(meta kp-prior) 'scroll-other-window-down)
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
606
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
607 ;; movement between buffers
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
608 (global-set-key '(meta shift home) 'switch-to-previous-buffer-in-group)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
609 (global-set-key '(meta shift end) 'switch-to-next-buffer-in-group)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
610 (global-set-key '(meta home) 'switch-to-previous-buffer)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
611 (global-set-key '(meta end) 'switch-to-next-buffer)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
612 (global-set-key '(meta shift kp-home) 'switch-to-previous-buffer-in-group)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
613 (global-set-key '(meta shift kp-end) 'switch-to-next-buffer-in-group)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
614 (global-set-key '(meta kp-home) 'switch-to-previous-buffer)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 716
diff changeset
615 (global-set-key '(meta kp-end) 'switch-to-next-buffer)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
616
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
617 ;; the infamous delete key
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
618 (define-key global-map 'delete 'backward-or-forward-delete-char)
832
f3244b2b4053 [xemacs-hg @ 2002-05-09 08:33:45 by ben]
ben
parents: 814
diff changeset
619 (define-key global-map '(control delete) 'backward-or-forward-kill-word)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
620 (define-key global-map '(meta delete) 'backward-or-forward-kill-word)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
621 (define-key global-map [(control x) (delete)]
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
622 'backward-or-forward-kill-sentence)
4397
9e28067e3083 Bind '(shift delete) to #'kill-primary-selection by default.
Aidan Kehoe <kehoea@parhasard.net>
parents: 4315
diff changeset
623 (define-key global-map '(shift delete) 'kill-primary-selection)
9e28067e3083 Bind '(shift delete) to #'kill-primary-selection by default.
Aidan Kehoe <kehoea@parhasard.net>
parents: 4315
diff changeset
624
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
625 (define-key global-map 'kp-delete 'backward-or-forward-delete-char)
832
f3244b2b4053 [xemacs-hg @ 2002-05-09 08:33:45 by ben]
ben
parents: 814
diff changeset
626 (define-key global-map '(control kp-delete) 'backward-or-forward-kill-word)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
627 (define-key global-map '(meta kp-delete) 'backward-or-forward-kill-word)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
628 (define-key global-map [(control x) (kp-delete)]
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
629 'backward-or-forward-kill-sentence)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
630
4397
9e28067e3083 Bind '(shift delete) to #'kill-primary-selection by default.
Aidan Kehoe <kehoea@parhasard.net>
parents: 4315
diff changeset
631 (define-key global-map '(shift kp-delete) 'kill-primary-selection)
9e28067e3083 Bind '(shift delete) to #'kill-primary-selection by default.
Aidan Kehoe <kehoea@parhasard.net>
parents: 4315
diff changeset
632
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
633 ;; don't try this one at home, kids.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
634 (define-key global-map '(control meta delete) 'backward-or-forward-kill-sexp)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
635 (define-key global-map '(control meta kp-delete) 'backward-or-forward-kill-sexp)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
636 ;; or this one, either, on Linux.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
637 (define-key global-map '(control meta backspace) 'backward-kill-sexp)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
638
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
639
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
640 ;;; Miscellaneous key bindings
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
641 (define-key global-map 'insert 'overwrite-mode)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
642 (define-key global-map 'kp-insert 'overwrite-mode)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
643 (define-key global-map 'again 'repeat-complex-command)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
644 (define-key global-map 'redo 'repeat-complex-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
645
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
646 (define-key global-map 'kp-enter [return]) ; do whatever RET does now
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
647 (define-key global-map 'kp-tab [tab])
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
648
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
649 (define-key global-map 'undo 'undo)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
650 (define-key global-map 'help 'help-for-help)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
651
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
652 (define-key global-map 'kp-space 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
653 (define-key global-map 'kp-equal 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
654 (define-key global-map 'kp-multiply 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
655 (define-key global-map 'kp-add 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
656 (define-key global-map 'kp-separator 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
657 (define-key global-map 'kp-subtract 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
658 (define-key global-map 'kp-decimal 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
659 (define-key global-map 'kp-divide 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
660
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
661 (define-key global-map 'kp-0 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
662 (define-key global-map 'kp-1 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
663 (define-key global-map 'kp-2 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
664 (define-key global-map 'kp-3 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
665 (define-key global-map 'kp-4 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
666 (define-key global-map 'kp-5 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
667 (define-key global-map 'kp-6 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
668 (define-key global-map 'kp-7 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
669 (define-key global-map 'kp-8 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
670 (define-key global-map 'kp-9 'self-insert-command)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
671
1435
2b0c1a057037 [xemacs-hg @ 2003-04-28 16:18:23 by james]
james
parents: 1333
diff changeset
672 ;(define-key global-map 'select 'function-key-error)
2b0c1a057037 [xemacs-hg @ 2003-04-28 16:18:23 by james]
james
parents: 1333
diff changeset
673 ;(define-key global-map 'print 'function-key-error)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
674 (define-key global-map 'execute 'execute-extended-command)
1435
2b0c1a057037 [xemacs-hg @ 2003-04-28 16:18:23 by james]
james
parents: 1333
diff changeset
675 ;(define-key global-map 'clearline 'function-key-error)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
676 (define-key global-map 'insertline 'open-line)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
677 (define-key global-map 'deleteline 'kill-line)
1435
2b0c1a057037 [xemacs-hg @ 2003-04-28 16:18:23 by james]
james
parents: 1333
diff changeset
678 ;(define-key global-map 'insertchar 'function-key-error)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
679 (define-key global-map 'deletechar 'delete-char)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
680
4315
26ec8d0f3a9c Bind mouse wheel movements by default,
Aidan Kehoe <kehoea@parhasard.net>
parents: 3547
diff changeset
681 ;; Bind the mouse wheel by default.
26ec8d0f3a9c Bind mouse wheel movements by default,
Aidan Kehoe <kehoea@parhasard.net>
parents: 3547
diff changeset
682 (dolist (keyspec '([(mouse-4)] [(shift mouse-4)] [(control mouse-4)]
26ec8d0f3a9c Bind mouse wheel movements by default,
Aidan Kehoe <kehoea@parhasard.net>
parents: 3547
diff changeset
683 [(mouse-5)] [(shift mouse-5)] [(control mouse-5)]))
26ec8d0f3a9c Bind mouse wheel movements by default,
Aidan Kehoe <kehoea@parhasard.net>
parents: 3547
diff changeset
684 (define-key global-map keyspec
26ec8d0f3a9c Bind mouse wheel movements by default,
Aidan Kehoe <kehoea@parhasard.net>
parents: 3547
diff changeset
685 #'(lambda (event)
26ec8d0f3a9c Bind mouse wheel movements by default,
Aidan Kehoe <kehoea@parhasard.net>
parents: 3547
diff changeset
686 (interactive "e")
26ec8d0f3a9c Bind mouse wheel movements by default,
Aidan Kehoe <kehoea@parhasard.net>
parents: 3547
diff changeset
687 (mwheel-install)
26ec8d0f3a9c Bind mouse wheel movements by default,
Aidan Kehoe <kehoea@parhasard.net>
parents: 3547
diff changeset
688 (declare-fboundp (mwheel-scroll event)))))
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
689 ;;; keydefs.el ends here