diff options
| author | Noah Friedman | 1995-10-01 21:31:09 +0000 |
|---|---|---|
| committer | Noah Friedman | 1995-10-01 21:31:09 +0000 |
| commit | cce2176a0ad48e106e434072c12adac0736646aa (patch) | |
| tree | 0b42431fa3294906bf7560ab0a286597cf842566 | |
| parent | 34597fa95179c81c9b8863052c9efff9602a51e1 (diff) | |
| download | emacs-cce2176a0ad48e106e434072c12adac0736646aa.tar.gz emacs-cce2176a0ad48e106e434072c12adac0736646aa.zip | |
(te-escape): Remove spurious partial duplicate definition.
| -rw-r--r-- | lisp/terminal.el | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/lisp/terminal.el b/lisp/terminal.el index 07baabddaa4..6ca1efd98ba 100644 --- a/lisp/terminal.el +++ b/lisp/terminal.el | |||
| @@ -142,7 +142,7 @@ performance.") | |||
| 142 | (define-key map "\r" 'te-more-break-advance-one-line) | 142 | (define-key map "\r" 'te-more-break-advance-one-line) |
| 143 | 143 | ||
| 144 | (setq terminal-more-break-map map))) | 144 | (setq terminal-more-break-map map))) |
| 145 | 145 | ||
| 146 | 146 | ||
| 147 | ;;; Pacify the byte compiler | 147 | ;;; Pacify the byte compiler |
| 148 | (defvar te-process nil) | 148 | (defvar te-process nil) |
| @@ -167,10 +167,7 @@ performance.") | |||
| 167 | 167 | ||
| 168 | (defun te-escape () | 168 | (defun te-escape () |
| 169 | (interactive) | 169 | (interactive) |
| 170 | (let (s | 170 | (let (s |
| 171 | (local ((defun te-escape () | ||
| 172 | (interactive) | ||
| 173 | (let (s | ||
| 174 | (local (current-local-map)) | 171 | (local (current-local-map)) |
| 175 | (global (current-global-map))) | 172 | (global (current-global-map))) |
| 176 | (unwind-protect | 173 | (unwind-protect |
| @@ -187,7 +184,7 @@ performance.") | |||
| 187 | 184 | ||
| 188 | (message "") | 185 | (message "") |
| 189 | 186 | ||
| 190 | (cond | 187 | (cond |
| 191 | ;; Certain keys give vector notation, like [escape] when | 188 | ;; Certain keys give vector notation, like [escape] when |
| 192 | ;; you hit esc key... | 189 | ;; you hit esc key... |
| 193 | ((and (stringp s) | 190 | ((and (stringp s) |
| @@ -240,7 +237,7 @@ Other chars following \"%s\" are interpreted as follows:\n" | |||
| 240 | (setq l (cdr l)))) | 237 | (setq l (cdr l)))) |
| 241 | nil))))) | 238 | nil))))) |
| 242 | 239 | ||
| 243 | 240 | ||
| 244 | 241 | ||
| 245 | (defun te-escape-extended-command () | 242 | (defun te-escape-extended-command () |
| 246 | (interactive) | 243 | (interactive) |
| @@ -309,7 +306,7 @@ Very poor man's file transfer protocol." | |||
| 309 | "Discontinue output log." | 306 | "Discontinue output log." |
| 310 | (interactive) | 307 | (interactive) |
| 311 | (te-set-output-log nil)) | 308 | (te-set-output-log nil)) |
| 312 | 309 | ||
| 313 | 310 | ||
| 314 | (defun te-toggle (sym arg) | 311 | (defun te-toggle (sym arg) |
| 315 | (set sym (cond ((not (numberp arg)) arg) | 312 | (set sym (cond ((not (numberp arg)) arg) |
| @@ -442,7 +439,7 @@ lets you type a terminal emulator command." | |||
| 442 | (cond ((eq last-input-char terminal-escape-char) | 439 | (cond ((eq last-input-char terminal-escape-char) |
| 443 | (call-interactively 'te-escape)) | 440 | (call-interactively 'te-escape)) |
| 444 | (t | 441 | (t |
| 445 | ;; Convert `return' to C-m, etc. | 442 | ;; Convert `return' to C-m, etc. |
| 446 | (if (and (symbolp last-input-char) | 443 | (if (and (symbolp last-input-char) |
| 447 | (get last-input-char 'ascii-character)) | 444 | (get last-input-char 'ascii-character)) |
| 448 | (setq last-input-char (get last-input-char 'ascii-character))) | 445 | (setq last-input-char (get last-input-char 'ascii-character))) |
| @@ -695,7 +692,7 @@ move to start of new line, clear to end of line." | |||
| 695 | (forward-char 1) (end-of-line) | 692 | (forward-char 1) (end-of-line) |
| 696 | (delete-region (- (point) te-width) (point)) | 693 | (delete-region (- (point) te-width) (point)) |
| 697 | (insert-char ?\ te-width)))) | 694 | (insert-char ?\ te-width)))) |
| 698 | 695 | ||
| 699 | 696 | ||
| 700 | ;; ^p ^l | 697 | ;; ^p ^l |
| 701 | (defun te-clear-screen () | 698 | (defun te-clear-screen () |
| @@ -953,9 +950,9 @@ move to start of new line, clear to end of line." | |||
| 953 | ;; (Perhaps some operating system or | 950 | ;; (Perhaps some operating system or |
| 954 | ;; other is completely incompetent...) | 951 | ;; other is completely incompetent...) |
| 955 | (?\C-m . te-beginning-of-line) | 952 | (?\C-m . te-beginning-of-line) |
| 956 | (?\C-g . te-beep) | 953 | (?\C-g . te-beep) |
| 957 | (?\C-h . te-backward-char) | 954 | (?\C-h . te-backward-char) |
| 958 | (?\C-i . te-output-tab)))) | 955 | (?\C-i . te-output-tab)))) |
| 959 | 'te-losing-unix))) | 956 | 'te-losing-unix))) |
| 960 | (te-redisplay-if-necessary 1)) | 957 | (te-redisplay-if-necessary 1)) |
| 961 | (and preemptable | 958 | (and preemptable |
| @@ -1000,7 +997,7 @@ move to start of new line, clear to end of line." | |||
| 1000 | 997 | ||
| 1001 | (defun te-update-pending-output-display () | 998 | (defun te-update-pending-output-display () |
| 1002 | (if (null (cdr te-pending-output)) | 999 | (if (null (cdr te-pending-output)) |
| 1003 | (setq te-pending-output-info "") | 1000 | (setq te-pending-output-info "") |
| 1004 | (let ((length (te-pending-output-length))) | 1001 | (let ((length (te-pending-output-length))) |
| 1005 | (if (< length 1500) | 1002 | (if (< length 1500) |
| 1006 | (setq te-pending-output-info "") | 1003 | (setq te-pending-output-info "") |
| @@ -1090,7 +1087,7 @@ subprocess started." | |||
| 1090 | (if (null height) (setq height (- (window-height (selected-window)) 1))) | 1087 | (if (null height) (setq height (- (window-height (selected-window)) 1))) |
| 1091 | (terminal-mode) | 1088 | (terminal-mode) |
| 1092 | (setq te-width width te-height height) | 1089 | (setq te-width width te-height height) |
| 1093 | (setq te-terminal-name (concat te-terminal-name-prefix "-" te-width | 1090 | (setq te-terminal-name (concat te-terminal-name-prefix "-" te-width |
| 1094 | te-height)) | 1091 | te-height)) |
| 1095 | (setq mode-line-buffer-identification | 1092 | (setq mode-line-buffer-identification |
| 1096 | (list (format "Emacs terminal %dx%d: %%b " te-width te-height) | 1093 | (list (format "Emacs terminal %dx%d: %%b " te-width te-height) |
| @@ -1118,7 +1115,7 @@ subprocess started." | |||
| 1118 | (format "%s; exec %s" | 1115 | (format "%s; exec %s" |
| 1119 | te-stty-string | 1116 | te-stty-string |
| 1120 | (mapconcat 'te-quote-arg-for-sh | 1117 | (mapconcat 'te-quote-arg-for-sh |
| 1121 | (cons program args) " ")))) | 1118 | (cons program args) " ")))) |
| 1122 | (set-process-filter te-process 'te-filter) | 1119 | (set-process-filter te-process 'te-filter) |
| 1123 | (set-process-sentinel te-process 'te-sentinel)) | 1120 | (set-process-sentinel te-process 'te-sentinel)) |
| 1124 | (error (fundamental-mode) | 1121 | (error (fundamental-mode) |
| @@ -1231,14 +1228,14 @@ of the terminal-emulator" | |||
| 1231 | (concat "\"" harder "\""))))) | 1228 | (concat "\"" harder "\""))))) |
| 1232 | 1229 | ||
| 1233 | (defun te-create-terminfo () | 1230 | (defun te-create-terminfo () |
| 1234 | "Create and compile a terminfo entry for the virtual terminal. This is kept | 1231 | "Create and compile a terminfo entry for the virtual terminal. This is kept |
| 1235 | in the /tmp directory" | 1232 | in the /tmp directory" |
| 1236 | (if (and system-uses-terminfo | 1233 | (if (and system-uses-terminfo |
| 1237 | (not (file-exists-p (concat "/tmp/" | 1234 | (not (file-exists-p (concat "/tmp/" |
| 1238 | (substring te-terminal-name-prefix 0 1) | 1235 | (substring te-terminal-name-prefix 0 1) |
| 1239 | "/" te-terminal-name)))) | 1236 | "/" te-terminal-name)))) |
| 1240 | (let ( (terminfo | 1237 | (let ( (terminfo |
| 1241 | (concat | 1238 | (concat |
| 1242 | (format "%s,mir, xon,cols#%d, lines#%d," | 1239 | (format "%s,mir, xon,cols#%d, lines#%d," |
| 1243 | te-terminal-name te-width te-height) | 1240 | te-terminal-name te-width te-height) |
| 1244 | "bel=^P^G, clear=^P\\f, cr=^P^A, cub1=^P^B, cud1=^P\\n," | 1241 | "bel=^P^G, clear=^P\\f, cr=^P^A, cub1=^P^B, cud1=^P\\n," |
| @@ -1254,7 +1251,7 @@ in the /tmp directory" | |||
| 1254 | (write-file file-name) | 1251 | (write-file file-name) |
| 1255 | (kill-buffer nil) | 1252 | (kill-buffer nil) |
| 1256 | ) | 1253 | ) |
| 1257 | (let ( (process-environment | 1254 | (let ( (process-environment |
| 1258 | (cons (concat "TERMINFO=" "/tmp") | 1255 | (cons (concat "TERMINFO=" "/tmp") |
| 1259 | process-environment)) ) | 1256 | process-environment)) ) |
| 1260 | (set-process-sentinel (start-process "tic" nil "tic" file-name) | 1257 | (set-process-sentinel (start-process "tic" nil "tic" file-name) |