aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
authorRichard M. Stallman2005-07-03 19:20:21 +0000
committerRichard M. Stallman2005-07-03 19:20:21 +0000
commit65597a17bab28a1577dfaa4ceef75ba047f4d693 (patch)
treeada8db4832b2b4964826eb178db9cd21bf16046e /lisp/emulation
parent99297d62fd88092da5288816af5100610060a46a (diff)
downloademacs-65597a17bab28a1577dfaa4ceef75ba047f4d693.tar.gz
emacs-65597a17bab28a1577dfaa4ceef75ba047f4d693.zip
(tpu-original-global-map): Don't copy global-map, save the same map.
(global-map): Don't alter it at top level. (tpu-edt-on): Save global map in tpu-original-global-map, then copy. Then alter it here instead. (tpu-edt-off): Set global-map to the saved one.
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/tpu-edt.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/emulation/tpu-edt.el b/lisp/emulation/tpu-edt.el
index ec0eef05321..2f3315096aa 100644
--- a/lisp/emulation/tpu-edt.el
+++ b/lisp/emulation/tpu-edt.el
@@ -341,7 +341,7 @@ GOLD is the ASCII 7-bit escape sequence <ESC>OP.")
341 "Maps the function keys on the VT100 keyboard preceded by GOLD-SS3.") 341 "Maps the function keys on the VT100 keyboard preceded by GOLD-SS3.")
342 342
343(defvar tpu-global-map nil "TPU-edt global keymap.") 343(defvar tpu-global-map nil "TPU-edt global keymap.")
344(defvar tpu-original-global-map (copy-keymap global-map) 344(defvar tpu-original-global-map global-map
345 "Original global keymap.") 345 "Original global keymap.")
346 346
347(and tpu-lucid-emacs19-p 347(and tpu-lucid-emacs19-p
@@ -2017,8 +2017,6 @@ Accepts a prefix argument for the number of tpu-pan-columns to scroll."
2017;;; 2017;;;
2018;;; Define keymaps 2018;;; Define keymaps
2019;;; 2019;;;
2020(define-key global-map "\e[" CSI-map) ; CSI map
2021(define-key global-map "\eO" SS3-map) ; SS3 map
2022(define-key SS3-map "P" GOLD-map) ; GOLD map 2020(define-key SS3-map "P" GOLD-map) ; GOLD map
2023(define-key GOLD-map "\e[" GOLD-CSI-map) ; GOLD-CSI map 2021(define-key GOLD-map "\e[" GOLD-CSI-map) ; GOLD-CSI map
2024(define-key GOLD-map "\eO" GOLD-SS3-map) ; GOLD-SS3 map 2022(define-key GOLD-map "\eO" GOLD-SS3-map) ; GOLD-SS3 map
@@ -2503,6 +2501,10 @@ If FILE is nil, try to load a default file. The default file names are
2503 (setq-default page-delimiter "\f") 2501 (setq-default page-delimiter "\f")
2504 (setq-default truncate-lines t) 2502 (setq-default truncate-lines t)
2505 (setq scroll-step 1) 2503 (setq scroll-step 1)
2504 (setq tpu-original-global-map global-map)
2505 (setq global-map (copy-keymap global-map))
2506 (define-key global-map "\e[" CSI-map)
2507 (define-key global-map "\eO" SS3-map)
2506 (setq tpu-edt-mode t)))) 2508 (setq tpu-edt-mode t))))
2507 2509
2508(defun tpu-edt-off nil 2510(defun tpu-edt-off nil
@@ -2516,7 +2518,7 @@ If FILE is nil, try to load a default file. The default file names are
2516 (setq-default page-delimiter "^\f") 2518 (setq-default page-delimiter "^\f")
2517 (setq-default truncate-lines nil) 2519 (setq-default truncate-lines nil)
2518 (setq scroll-step 0) 2520 (setq scroll-step 0)
2519 (setq global-map (copy-keymap tpu-original-global-map)) 2521 (setq global-map tpu-original-global-map)
2520 (use-global-map global-map) 2522 (use-global-map global-map)
2521 (setq tpu-edt-mode nil)))) 2523 (setq tpu-edt-mode nil))))
2522 2524