diff options
| author | Richard M. Stallman | 1993-11-26 06:33:18 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-26 06:33:18 +0000 |
| commit | 6efe3c8e4fa5cd0c2d9855e038c7b5d455a0b91a (patch) | |
| tree | 0c9fba80cd4b1cea7e086cb13ab241adbd22c9bf | |
| parent | 49cf7ff498099210390660721ef87684f32f7b76 (diff) | |
| download | emacs-6efe3c8e4fa5cd0c2d9855e038c7b5d455a0b91a.tar.gz emacs-6efe3c8e4fa5cd0c2d9855e038c7b5d455a0b91a.zip | |
(tpu-quoted-insert): New function.
(tpu-reset-control-keys): Remove C-f mapping.
Insert (in file) fsets for free/bound cursor, scroll
margins, key mappings for same.
(tpu-revision): Variable deleted.
| -rw-r--r-- | lisp/emulation/tpu-edt.el | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/lisp/emulation/tpu-edt.el b/lisp/emulation/tpu-edt.el index 7b5c9009eb4..2ae6c52f0f2 100644 --- a/lisp/emulation/tpu-edt.el +++ b/lisp/emulation/tpu-edt.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Rob Riepel <riepel@networking.stanford.edu> | 5 | ;; Author: Rob Riepel <riepel@networking.stanford.edu> |
| 6 | ;; Maintainer: Rob Riepel <riepel@networking.stanford.edu> | 6 | ;; Maintainer: Rob Riepel <riepel@networking.stanford.edu> |
| 7 | ;; Version: 3.1 | 7 | ;; Version: 3.2 |
| 8 | ;; Keywords: emulations | 8 | ;; Keywords: emulations |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| @@ -29,8 +29,7 @@ | |||
| 29 | ;;; | 29 | ;;; |
| 30 | ;;; Revision and Version Information | 30 | ;;; Revision and Version Information |
| 31 | ;;; | 31 | ;;; |
| 32 | (defconst tpu-version "3.1" "TPU-edt version number.") | 32 | (defconst tpu-version "3.2" "TPU-edt version number.") |
| 33 | (defconst tpu-revision "$Revision: 1.4 $" "Revision number of TPU-edt.") | ||
| 34 | 33 | ||
| 35 | 34 | ||
| 36 | ;;; | 35 | ;;; |
| @@ -477,6 +476,14 @@ its ASCII decimal value." | |||
| 477 | (if overwrite-mode (delete-char 1)) | 476 | (if overwrite-mode (delete-char 1)) |
| 478 | (insert (if num num 0))) | 477 | (insert (if num num 0))) |
| 479 | 478 | ||
| 479 | (defun tpu-quoted-insert (num) | ||
| 480 | "Read next input character and insert it. | ||
| 481 | This is useful for inserting control characters." | ||
| 482 | (interactive "*p") | ||
| 483 | (let ((char (read-char)) ) | ||
| 484 | (if overwrite-mode (delete-char num)) | ||
| 485 | (insert-char char num))) | ||
| 486 | |||
| 480 | 487 | ||
| 481 | ;;; | 488 | ;;; |
| 482 | ;;; TPU line-mode commands | 489 | ;;; TPU line-mode commands |
| @@ -561,6 +568,16 @@ its ASCII decimal value." | |||
| 561 | (fset 'help 'tpu-help) | 568 | (fset 'help 'tpu-help) |
| 562 | (fset 'HELP 'tpu-help) | 569 | (fset 'HELP 'tpu-help) |
| 563 | 570 | ||
| 571 | (fset 'set\ cursor\ free 'tpu-set-cursor-free) | ||
| 572 | (fset 'SET\ CURSOR\ FREE 'tpu-set-cursor-free) | ||
| 573 | |||
| 574 | (fset 'set\ cursor\ bound 'tpu-set-cursor-bound) | ||
| 575 | (fset 'SET\ CURSOR\ BOUND 'tpu-set-cursor-bound) | ||
| 576 | |||
| 577 | (fset 'set\ scroll\ margins 'tpu-set-scroll-margins) | ||
| 578 | (fset 'SET\ SCROLL\ MARGINS 'tpu-set-scroll-margins) | ||
| 579 | |||
| 580 | |||
| 564 | ;; Around emacs version 18.57, function line-move was renamed to | 581 | ;; Around emacs version 18.57, function line-move was renamed to |
| 565 | ;; next-line-internal. If we're running under an older emacs, | 582 | ;; next-line-internal. If we're running under an older emacs, |
| 566 | ;; make next-line-internal equivalent to line-move. | 583 | ;; make next-line-internal equivalent to line-move. |
| @@ -1798,7 +1815,7 @@ Accepts a prefix argument for the number of tpu-pan-columns to scroll." | |||
| 1798 | (define-key GOLD-map "C" 'repeat-complex-command) ; C | 1815 | (define-key GOLD-map "C" 'repeat-complex-command) ; C |
| 1799 | (define-key GOLD-map "D" 'shell-command) ; D | 1816 | (define-key GOLD-map "D" 'shell-command) ; D |
| 1800 | (define-key GOLD-map "E" 'tpu-exit) ; E | 1817 | (define-key GOLD-map "E" 'tpu-exit) ; E |
| 1801 | (define-key GOLD-map "F" 'nil) ; F | 1818 | (define-key GOLD-map "F" 'tpu-set-cursor-free) ; F |
| 1802 | (define-key GOLD-map "G" 'tpu-get) ; G | 1819 | (define-key GOLD-map "G" 'tpu-get) ; G |
| 1803 | (define-key GOLD-map "H" 'nil) ; H | 1820 | (define-key GOLD-map "H" 'nil) ; H |
| 1804 | (define-key GOLD-map "I" 'tpu-include) ; I | 1821 | (define-key GOLD-map "I" 'tpu-include) ; I |
| @@ -1829,7 +1846,7 @@ Accepts a prefix argument for the number of tpu-pan-columns to scroll." | |||
| 1829 | (define-key GOLD-map "c" 'repeat-complex-command) ; c | 1846 | (define-key GOLD-map "c" 'repeat-complex-command) ; c |
| 1830 | (define-key GOLD-map "d" 'shell-command) ; d | 1847 | (define-key GOLD-map "d" 'shell-command) ; d |
| 1831 | (define-key GOLD-map "e" 'tpu-exit) ; e | 1848 | (define-key GOLD-map "e" 'tpu-exit) ; e |
| 1832 | (define-key GOLD-map "f" 'nil) ; f | 1849 | (define-key GOLD-map "f" 'tpu-set-cursor-free) ; f |
| 1833 | (define-key GOLD-map "g" 'tpu-get) ; g | 1850 | (define-key GOLD-map "g" 'tpu-get) ; g |
| 1834 | (define-key GOLD-map "h" 'nil) ; h | 1851 | (define-key GOLD-map "h" 'nil) ; h |
| 1835 | (define-key GOLD-map "i" 'tpu-include) ; i | 1852 | (define-key GOLD-map "i" 'tpu-include) ; i |
| @@ -1949,14 +1966,13 @@ Accepts a prefix argument for the number of tpu-pan-columns to scroll." | |||
| 1949 | (define-key global-map "\C-a" 'tpu-toggle-overwrite-mode) ; ^A | 1966 | (define-key global-map "\C-a" 'tpu-toggle-overwrite-mode) ; ^A |
| 1950 | (define-key global-map "\C-b" 'repeat-complex-command) ; ^B | 1967 | (define-key global-map "\C-b" 'repeat-complex-command) ; ^B |
| 1951 | (define-key global-map "\C-e" 'tpu-current-end-of-line) ; ^E | 1968 | (define-key global-map "\C-e" 'tpu-current-end-of-line) ; ^E |
| 1952 | (define-key global-map "\C-f" 'set-visited-file-name) ; ^F | ||
| 1953 | (define-key global-map "\C-h" 'tpu-next-beginning-of-line) ; ^H (BS) | 1969 | (define-key global-map "\C-h" 'tpu-next-beginning-of-line) ; ^H (BS) |
| 1954 | (define-key global-map "\C-j" 'tpu-delete-previous-word) ; ^J (LF) | 1970 | (define-key global-map "\C-j" 'tpu-delete-previous-word) ; ^J (LF) |
| 1955 | (define-key global-map "\C-k" 'tpu-define-macro-key) ; ^K | 1971 | (define-key global-map "\C-k" 'tpu-define-macro-key) ; ^K |
| 1956 | (define-key global-map "\C-l" 'tpu-insert-formfeed) ; ^L (FF) | 1972 | (define-key global-map "\C-l" 'tpu-insert-formfeed) ; ^L (FF) |
| 1957 | (define-key global-map "\C-r" 'recenter) ; ^R | 1973 | (define-key global-map "\C-r" 'recenter) ; ^R |
| 1958 | (define-key global-map "\C-u" 'tpu-delete-to-bol) ; ^U | 1974 | (define-key global-map "\C-u" 'tpu-delete-to-bol) ; ^U |
| 1959 | (define-key global-map "\C-v" 'quoted-insert) ; ^V | 1975 | (define-key global-map "\C-v" 'tpu-quoted-insert) ; ^V |
| 1960 | (define-key global-map "\C-w" 'redraw-display) ; ^W | 1976 | (define-key global-map "\C-w" 'redraw-display) ; ^W |
| 1961 | (define-key global-map "\C-z" 'tpu-exit) ; ^Z | 1977 | (define-key global-map "\C-z" 'tpu-exit) ; ^Z |
| 1962 | 1978 | ||
| @@ -1979,7 +1995,6 @@ Accepts a prefix argument for the number of tpu-pan-columns to scroll." | |||
| 1979 | (define-key global-map "\C-a" (lookup-key map "\C-a")) ; ^A | 1995 | (define-key global-map "\C-a" (lookup-key map "\C-a")) ; ^A |
| 1980 | (define-key global-map "\C-b" (lookup-key map "\C-b")) ; ^B | 1996 | (define-key global-map "\C-b" (lookup-key map "\C-b")) ; ^B |
| 1981 | (define-key global-map "\C-e" (lookup-key map "\C-e")) ; ^E | 1997 | (define-key global-map "\C-e" (lookup-key map "\C-e")) ; ^E |
| 1982 | (define-key global-map "\C-f" (lookup-key map "\C-f")) ; ^F | ||
| 1983 | (define-key global-map "\C-h" (lookup-key map "\C-h")) ; ^H (BS) | 1998 | (define-key global-map "\C-h" (lookup-key map "\C-h")) ; ^H (BS) |
| 1984 | (define-key global-map "\C-j" (lookup-key map "\C-j")) ; ^J (LF) | 1999 | (define-key global-map "\C-j" (lookup-key map "\C-j")) ; ^J (LF) |
| 1985 | (define-key global-map "\C-k" (lookup-key map "\C-k")) ; ^K | 2000 | (define-key global-map "\C-k" (lookup-key map "\C-k")) ; ^K |