diff options
| author | Richard M. Stallman | 1995-11-10 17:39:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-11-10 17:39:54 +0000 |
| commit | 0b574c357f10377efd48872ca1b0822ae5f92171 (patch) | |
| tree | 224dfa639b13788d9ffee6fbfaa70d66bfe642dd | |
| parent | 2b03c5067cfe1b45fe62b56af10c97596bbe3322 (diff) | |
| download | emacs-0b574c357f10377efd48872ca1b0822ae5f92171.tar.gz emacs-0b574c357f10377efd48872ca1b0822ae5f92171.zip | |
Rewrite for new case tables.
| -rw-r--r-- | lisp/term/internal.el | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/lisp/term/internal.el b/lisp/term/internal.el index ff566ae33d0..c5a28423481 100644 --- a/lisp/term/internal.el +++ b/lisp/term/internal.el | |||
| @@ -58,8 +58,7 @@ | |||
| 58 | (modify-syntax-entry ch sy tex-mode-syntax-table)) | 58 | (modify-syntax-entry ch sy tex-mode-syntax-table)) |
| 59 | (modify-syntax-entry ch sy (standard-syntax-table)) | 59 | (modify-syntax-entry ch sy (standard-syntax-table)) |
| 60 | ))) | 60 | ))) |
| 61 | (downs (car (standard-case-table))) | 61 | (table (standard-case-table)) |
| 62 | (ups (car (cdr (standard-case-table)))) | ||
| 63 | ;; The following are strings of letters, first lower then upper case. | 62 | ;; The following are strings of letters, first lower then upper case. |
| 64 | ;; This will look funny on terminals which display other code pages. | 63 | ;; This will look funny on terminals which display other code pages. |
| 65 | (chars | 64 | (chars |
| @@ -79,14 +78,10 @@ | |||
| 79 | (while (< i (length chars)) | 78 | (while (< i (length chars)) |
| 80 | (let ((ch1 (aref chars i)) | 79 | (let ((ch1 (aref chars i)) |
| 81 | (ch2 (aref chars (1+ i)))) | 80 | (ch2 (aref chars (1+ i)))) |
| 82 | (funcall modify ch1 "w") | ||
| 83 | (funcall modify ch2 "w") | ||
| 84 | (aset ups ch1 ch2) | ||
| 85 | (if (> ch2 127) | 81 | (if (> ch2 127) |
| 86 | (aset downs ch2 ch1)) | 82 | (set-case-syntax-pair ch2 ch1 table)) |
| 87 | (setq i (+ i 2)))) | 83 | (setq i (+ i 2)))) |
| 88 | (let ((table (list downs ups nil nil))) | 84 | (save-excursion |
| 89 | (save-excursion | 85 | (mapcar (lambda (b) (set-buffer b) (set-case-table table)) |
| 90 | (mapcar (lambda (b) (progn (set-buffer b) (set-case-table table))) | 86 | (buffer-list))) |
| 91 | (buffer-list))) | 87 | (set-standard-case-table table)) |
| 92 | (set-standard-case-table table))) | ||