aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-08-03 05:12:54 +0000
committerRichard M. Stallman1995-08-03 05:12:54 +0000
commita0f5a25f2c33c02b31965787fc59d92cb40abc8e (patch)
tree3672a8ca6d096d1a5521a27d3a26de976a7de397
parent569871d219474c845722eb170dec381c8b3874db (diff)
downloademacs-a0f5a25f2c33c02b31965787fc59d92cb40abc8e.tar.gz
emacs-a0f5a25f2c33c02b31965787fc59d92cb40abc8e.zip
(tpu-control-keys): New initial value, nil.
(tpu-help): Back up one page at a time. (tpu-set-control-keys): New function. (tpu-edt-on): Call tpu-set-control-keys.
-rw-r--r--lisp/emulation/tpu-edt.el41
1 files changed, 20 insertions, 21 deletions
diff --git a/lisp/emulation/tpu-edt.el b/lisp/emulation/tpu-edt.el
index 1a227a9e7c9..6c590f6de3f 100644
--- a/lisp/emulation/tpu-edt.el
+++ b/lisp/emulation/tpu-edt.el
@@ -364,7 +364,7 @@ GOLD is the ASCII 7-bit escape sequence <ESC>OP.")
364 "True when TPU-edt is operating in the forward direction.") 364 "True when TPU-edt is operating in the forward direction.")
365(defvar tpu-reverse nil 365(defvar tpu-reverse nil
366 "True when TPU-edt is operating in the backward direction.") 366 "True when TPU-edt is operating in the backward direction.")
367(defvar tpu-control-keys t 367(defvar tpu-control-keys nil
368 "If non-nil, control keys are set to perform TPU functions.") 368 "If non-nil, control keys are set to perform TPU functions.")
369(defvar tpu-xkeys-file nil 369(defvar tpu-xkeys-file nil
370 "File containing TPU-edt X key map.") 370 "File containing TPU-edt X key map.")
@@ -983,7 +983,7 @@ This is useful for inserting control characters."
983 (scroll-other-window -8) 983 (scroll-other-window -8)
984 (error nil))) 984 (error nil)))
985 (t 985 (t
986 (backward-page 2) 986 (backward-page)
987 (forward-line 1) 987 (forward-line 1)
988 (tpu-line-to-top-of-window)))) 988 (tpu-line-to-top-of-window))))
989 ((not (equal tpu-help-return fkey)) 989 ((not (equal tpu-help-return fkey))
@@ -2261,26 +2261,25 @@ Accepts a prefix argument for the number of tpu-pan-columns to scroll."
2261 2261
2262 2262
2263;;; 2263;;;
2264;;; Map control keys 2264;;; Functions to set, reset, and toggle the control key bindings
2265;;; 2265;;;
2266(define-key global-map "\C-\\" 'quoted-insert) ; ^\ 2266(defun tpu-set-control-keys nil
2267(define-key global-map "\C-a" 'tpu-toggle-overwrite-mode) ; ^A 2267 "Set control keys to TPU style functions."
2268(define-key global-map "\C-b" 'repeat-complex-command) ; ^B 2268 (define-key global-map "\C-\\" 'quoted-insert) ; ^\
2269(define-key global-map "\C-e" 'tpu-current-end-of-line) ; ^E 2269 (define-key global-map "\C-a" 'tpu-toggle-overwrite-mode) ; ^A
2270(define-key global-map "\C-h" 'tpu-next-beginning-of-line) ; ^H (BS) 2270 (define-key global-map "\C-b" 'repeat-complex-command) ; ^B
2271(define-key global-map "\C-j" 'tpu-delete-previous-word) ; ^J (LF) 2271 (define-key global-map "\C-e" 'tpu-current-end-of-line) ; ^E
2272(define-key global-map "\C-k" 'tpu-define-macro-key) ; ^K 2272 (define-key global-map "\C-h" 'tpu-next-beginning-of-line) ; ^H (BS)
2273(define-key global-map "\C-l" 'tpu-insert-formfeed) ; ^L (FF) 2273 (define-key global-map "\C-j" 'tpu-delete-previous-word) ; ^J (LF)
2274(define-key global-map "\C-r" 'recenter) ; ^R 2274 (define-key global-map "\C-k" 'tpu-define-macro-key) ; ^K
2275(define-key global-map "\C-u" 'tpu-delete-to-bol) ; ^U 2275 (define-key global-map "\C-l" 'tpu-insert-formfeed) ; ^L (FF)
2276(define-key global-map "\C-v" 'tpu-quoted-insert) ; ^V 2276 (define-key global-map "\C-r" 'recenter) ; ^R
2277(define-key global-map "\C-w" 'redraw-display) ; ^W 2277 (define-key global-map "\C-u" 'tpu-delete-to-bol) ; ^U
2278(define-key global-map "\C-z" 'tpu-exit) ; ^Z 2278 (define-key global-map "\C-v" 'tpu-quoted-insert) ; ^V
2279 (define-key global-map "\C-w" 'redraw-display) ; ^W
2280 (define-key global-map "\C-z" 'tpu-exit) ; ^Z
2281 (setq tpu-control-keys t))
2279 2282
2280
2281;;;
2282;;; Functions to reset and toggle the control key bindings
2283;;;
2284(defun tpu-reset-control-keys (tpu-style) 2283(defun tpu-reset-control-keys (tpu-style)
2285 "Set control keys to TPU or emacs style functions." 2284 "Set control keys to TPU or emacs style functions."
2286 (let* ((tpu (and tpu-style (not tpu-control-keys))) 2285 (let* ((tpu (and tpu-style (not tpu-control-keys)))
@@ -2444,7 +2443,7 @@ If FILE is nil, try to load a default file. The default file names are
2444 ((not tpu-edt-mode) 2443 ((not tpu-edt-mode)
2445 ;; we use picture-mode functions 2444 ;; we use picture-mode functions
2446 (require 'picture) 2445 (require 'picture)
2447 (tpu-reset-control-keys t) 2446 (tpu-set-control-keys)
2448 (cond (tpu-emacs19-p 2447 (cond (tpu-emacs19-p
2449 (and window-system (tpu-load-xkeys nil)) 2448 (and window-system (tpu-load-xkeys nil))
2450 (tpu-arrow-history)) 2449 (tpu-arrow-history))