diff options
| author | Kenichi Handa | 1999-07-23 07:20:12 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1999-07-23 07:20:12 +0000 |
| commit | 946fdacfd8a24a9ef0368186fd5e69c98715d26f (patch) | |
| tree | a0a7d346cff24827e9fbdb059614c4e94945ae87 | |
| parent | e12fcc411eea97ae6e02963932be547e6bf39c89 (diff) | |
| download | emacs-946fdacfd8a24a9ef0368186fd5e69c98715d26f.tar.gz emacs-946fdacfd8a24a9ef0368186fd5e69c98715d26f.zip | |
(encoded-kbd-self-insert-iso2022-7bit): Don't insert the character
but push it to unread-command-events.
(encoded-kbd-self-insert-iso2022-8bit): Likewise.
(encoded-kbd-self-insert-sjis): Likewise.
(encoded-kbd-self-insert-big5): Likewise.
| -rw-r--r-- | lisp/international/encoded-kb.el | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/lisp/international/encoded-kb.el b/lisp/international/encoded-kb.el index 92e21db1723..b77e4b36cf9 100644 --- a/lisp/international/encoded-kb.el +++ b/lisp/international/encoded-kb.el | |||
| @@ -195,42 +195,36 @@ The following key sequence may cause multilingual text insertion." | |||
| 195 | (let* ((charset (aref encoded-kbd-iso2022-designations | 195 | (let* ((charset (aref encoded-kbd-iso2022-designations |
| 196 | (or (aref encoded-kbd-iso2022-invocations 2) | 196 | (or (aref encoded-kbd-iso2022-invocations 2) |
| 197 | (aref encoded-kbd-iso2022-invocations 0)))) | 197 | (aref encoded-kbd-iso2022-invocations 0)))) |
| 198 | (last-command-char | 198 | (char (if (= (charset-dimension charset) 1) |
| 199 | (if (= (charset-dimension charset) 1) | 199 | (make-char charset last-command-char) |
| 200 | (make-char charset last-command-char) | 200 | (make-char charset last-command-char (read-char-exclusive))))) |
| 201 | (make-char charset last-command-char (read-char-exclusive))))) | ||
| 202 | (self-insert-command 1) | ||
| 203 | (aset encoded-kbd-iso2022-invocations 2 nil) | 201 | (aset encoded-kbd-iso2022-invocations 2 nil) |
| 204 | )) | 202 | (setq unread-command-events (cons char unread-command-events)))) |
| 205 | 203 | ||
| 206 | (defun encoded-kbd-self-insert-iso2022-8bit () | 204 | (defun encoded-kbd-self-insert-iso2022-8bit () |
| 207 | (interactive) | 205 | (interactive) |
| 208 | (let* ((charset (aref encoded-kbd-iso2022-designations | 206 | (let* ((charset (aref encoded-kbd-iso2022-designations |
| 209 | (or (aref encoded-kbd-iso2022-invocations 2) | 207 | (or (aref encoded-kbd-iso2022-invocations 2) |
| 210 | (aref encoded-kbd-iso2022-invocations 1)))) | 208 | (aref encoded-kbd-iso2022-invocations 1)))) |
| 211 | (last-command-char | 209 | (char (if (= (charset-dimension charset) 1) |
| 212 | (if (= (charset-dimension charset) 1) | 210 | (make-char charset last-command-char) |
| 213 | (make-char charset last-command-char) | 211 | (make-char charset last-command-char (read-char-exclusive))))) |
| 214 | (make-char charset last-command-char (read-char-exclusive))))) | ||
| 215 | (self-insert-command 1) | ||
| 216 | (aset encoded-kbd-iso2022-invocations 2 nil) | 212 | (aset encoded-kbd-iso2022-invocations 2 nil) |
| 217 | )) | 213 | (setq unread-command-events (cons char unread-command-events)))) |
| 218 | 214 | ||
| 219 | (defun encoded-kbd-self-insert-sjis () | 215 | (defun encoded-kbd-self-insert-sjis () |
| 220 | (interactive) | 216 | (interactive) |
| 221 | (let ((last-command-char | 217 | (let ((char (if (or (< last-command-char ?\xA0) (>= last-command-char ?\xE0)) |
| 222 | (if (or (< last-command-char ?\xA0) (>= last-command-char ?\xE0)) | 218 | (decode-sjis-char (+ (ash last-command-char 8) |
| 223 | (decode-sjis-char (+ (ash last-command-char 8) | 219 | (read-char-exclusive))) |
| 224 | (read-char-exclusive))) | 220 | (make-char 'katakana-jisx0201 last-command-char)))) |
| 225 | (make-char 'katakana-jisx0201 last-command-char)))) | 221 | (setq unread-command-events (cons char unread-command-events)))) |
| 226 | (self-insert-command 1))) | ||
| 227 | 222 | ||
| 228 | (defun encoded-kbd-self-insert-big5 () | 223 | (defun encoded-kbd-self-insert-big5 () |
| 229 | (interactive) | 224 | (interactive) |
| 230 | (let ((last-command-char | 225 | (let ((char (decode-big5-char (+ (ash last-command-char 8) |
| 231 | (decode-big5-char (+ (ash last-command-char 8) | 226 | (read-char-exclusive))))) |
| 232 | (read-char-exclusive))))) | 227 | (setq unread-command-events (cons char unread-command-events)))) |
| 233 | (self-insert-command 1))) | ||
| 234 | 228 | ||
| 235 | ;; Input mode at the time Encoded-kbd mode is turned on is saved here. | 229 | ;; Input mode at the time Encoded-kbd mode is turned on is saved here. |
| 236 | (defvar saved-input-mode nil) | 230 | (defvar saved-input-mode nil) |