diff options
| author | Kenichi Handa | 1998-07-23 05:42:28 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-07-23 05:42:28 +0000 |
| commit | da55ad08c20355b5102a05530d0d5e28a6d54fe6 (patch) | |
| tree | 7d4aad7096b18a3958a6f624ff053fd2d7b78c5e | |
| parent | 37aa9115b75a31fdf64b5ed784d0b358014b8d54 (diff) | |
| download | emacs-da55ad08c20355b5102a05530d0d5e28a6d54fe6.tar.gz emacs-da55ad08c20355b5102a05530d0d5e28a6d54fe6.zip | |
(quail-start-translation): Use
this-single-command-keys to get raw events instead of
listify-key-sequence
(quail-start-conversion): Likewise.
| -rw-r--r-- | lisp/international/quail.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/international/quail.el b/lisp/international/quail.el index 6fbd8324185..9f9cf9c4405 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el | |||
| @@ -903,11 +903,11 @@ The returned value is a Quail map specific to KEY." | |||
| 903 | (while quail-translating | 903 | (while quail-translating |
| 904 | (let* ((echo-keystrokes 0) | 904 | (let* ((echo-keystrokes 0) |
| 905 | (keyseq (read-key-sequence nil)) | 905 | (keyseq (read-key-sequence nil)) |
| 906 | (events (listify-key-sequence keyseq)) | 906 | (events (this-single-command-keys)) |
| 907 | (cmd (lookup-key translation-keymap keyseq))) | 907 | (cmd (lookup-key translation-keymap keyseq))) |
| 908 | (if (commandp cmd) | 908 | (if (commandp cmd) |
| 909 | (progn | 909 | (progn |
| 910 | (setq last-command-event (car (last events)) | 910 | (setq last-command-event (aref events (1- (length events))) |
| 911 | last-command this-command | 911 | last-command this-command |
| 912 | this-command cmd) | 912 | this-command cmd) |
| 913 | (condition-case err | 913 | (condition-case err |
| @@ -915,7 +915,7 @@ The returned value is a Quail map specific to KEY." | |||
| 915 | (quail-error (message "%s" (cdr err)) (beep)))) | 915 | (quail-error (message "%s" (cdr err)) (beep)))) |
| 916 | ;; KEYSEQ is not defined in the translation keymap. | 916 | ;; KEYSEQ is not defined in the translation keymap. |
| 917 | ;; Let's return the event(s) to the caller. | 917 | ;; Let's return the event(s) to the caller. |
| 918 | (setq generated-events events | 918 | (setq generated-events (string-to-list events) |
| 919 | quail-translating nil)))) | 919 | quail-translating nil)))) |
| 920 | (if (overlay-start quail-overlay) | 920 | (if (overlay-start quail-overlay) |
| 921 | (setq generated-events | 921 | (setq generated-events |
| @@ -951,11 +951,11 @@ The returned value is a Quail map specific to KEY." | |||
| 951 | (quail-setup-overlays nil))) | 951 | (quail-setup-overlays nil))) |
| 952 | (let* ((echo-keystrokes 0) | 952 | (let* ((echo-keystrokes 0) |
| 953 | (keyseq (read-key-sequence nil)) | 953 | (keyseq (read-key-sequence nil)) |
| 954 | (events (listify-key-sequence keyseq)) | 954 | (events (this-single-command-keys)) |
| 955 | (cmd (lookup-key conversion-keymap keyseq))) | 955 | (cmd (lookup-key conversion-keymap keyseq))) |
| 956 | (if (commandp cmd) | 956 | (if (commandp cmd) |
| 957 | (progn | 957 | (progn |
| 958 | (setq last-command-event (car (last events)) | 958 | (setq last-command-event (aref events (1- (length events))) |
| 959 | last-command this-command | 959 | last-command this-command |
| 960 | this-command cmd) | 960 | this-command cmd) |
| 961 | (condition-case err | 961 | (condition-case err |
| @@ -963,7 +963,7 @@ The returned value is a Quail map specific to KEY." | |||
| 963 | (quail-error (message "%s" (cdr err)) (beep)))) | 963 | (quail-error (message "%s" (cdr err)) (beep)))) |
| 964 | ;; KEYSEQ is not defined in the conversion keymap. | 964 | ;; KEYSEQ is not defined in the conversion keymap. |
| 965 | ;; Let's return the event(s) to the caller. | 965 | ;; Let's return the event(s) to the caller. |
| 966 | (setq generated-events events | 966 | (setq generated-events (string-to-list events) |
| 967 | quail-converting nil)))) | 967 | quail-converting nil)))) |
| 968 | (if (overlay-start quail-conv-overlay) | 968 | (if (overlay-start quail-conv-overlay) |
| 969 | (setq generated-events | 969 | (setq generated-events |