aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1991-08-14 01:03:20 +0000
committerJim Blandy1991-08-14 01:03:20 +0000
commitd95b111b4a91f7a66d07f3961204e39da480d503 (patch)
tree3ce127c3532ccae755d705b32fba238881c876eb
parentc2be0af47ad304f060c7e783b364a0bf40685695 (diff)
downloademacs-d95b111b4a91f7a66d07f3961204e39da480d503.tar.gz
emacs-d95b111b4a91f7a66d07f3961204e39da480d503.zip
*** empty log message ***
-rw-r--r--lisp/subr.el20
1 files changed, 15 insertions, 5 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 098a746023a..245ac651e26 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -180,21 +180,31 @@ Accept any number of arguments, but ignore them."
180(fset 'search-forward-regexp (symbol-function 're-search-forward)) 180(fset 'search-forward-regexp (symbol-function 're-search-forward))
181(fset 'search-backward-regexp (symbol-function 're-search-backward)) 181(fset 'search-backward-regexp (symbol-function 're-search-backward))
182 182
183;;; global-map, esc-map, and ctl-x-map have their values set up
184;;; in keymap.c.
183(defvar global-map nil 185(defvar global-map nil
184 "Default global keymap mapping Emacs keyboard input into commands. 186 "Default global keymap mapping Emacs keyboard input into commands.
185The value is a keymap which is usually (but not necessarily) Emacs's 187The value is a keymap which is usually (but not necessarily) Emacs's
186global map.") 188global map.")
187 189
190(defvar esc-map nil
191 "Default keymap for ESC (meta) commands.
192The normal global definition of the character ESC indirects to this keymap.")
193
188(defvar ctl-x-map nil 194(defvar ctl-x-map nil
189 "Default keymap for C-x commands. 195 "Default keymap for C-x commands.
190The normal global definition of the character C-x indirects to this keymap.") 196The normal global definition of the character C-x indirects to this keymap.")
191 197
192(defvar esc-map nil 198(defvar ctl-x-4-map (make-sparse-keymap)
193 "Default keymap for ESC (meta) commands. 199 "Keymap for subcommands of C-x 4")
194The normal global definition of the character ESC indirects to this keymap.") 200(fset 'ctl-x-4-prefix ctl-x-4-map)
201(define-key ctl-x-map "4" 'ctl-x-4-prefix)
202
203(defvar ctl-x-3-map (make-sparse-keymap)
204 "Keymap for screen commands.")
205(fset 'ctl-x-3-prefix ctl-x-3-map)
206(define-key ctl-x-map "3" 'ctl-x-3-prefix)
195 207
196(defvar mouse-map nil
197 "Keymap for mouse commands from the X window system.")
198 208
199(defun run-hooks (&rest hooklist) 209(defun run-hooks (&rest hooklist)
200 "Takes hook names and runs each one in turn. Major mode functions use this. 210 "Takes hook names and runs each one in turn. Major mode functions use this.