diff options
| author | Kenichi Handa | 2000-05-31 03:49:49 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2000-05-31 03:49:49 +0000 |
| commit | f9f1ed46bffae56bcdb7f0032e7839b98ba468d9 (patch) | |
| tree | 4d97174ee937cbdd026afd23e80ea5f7b9ae2e0b | |
| parent | 3c487103b83cd2863826e367c2b975764a7ea135 (diff) | |
| download | emacs-f9f1ed46bffae56bcdb7f0032e7839b98ba468d9.tar.gz emacs-f9f1ed46bffae56bcdb7f0032e7839b98ba468d9.zip | |
(quail-start-conversion): Don't include
unhandled events in the returned events, but set them in
unread-command-events. Exit if all inputs are deleted.
| -rw-r--r-- | lisp/international/quail.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/international/quail.el b/lisp/international/quail.el index 3410f5c13ef..c7e2da541f7 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el | |||
| @@ -1065,11 +1065,12 @@ The returned value is a Quail map specific to KEY." | |||
| 1065 | (if (stringp quail-current-str) | 1065 | (if (stringp quail-current-str) |
| 1066 | quail-current-str | 1066 | quail-current-str |
| 1067 | (char-to-string quail-current-str))))) | 1067 | (char-to-string quail-current-str))))) |
| 1068 | (if input-method-exit-on-first-char | 1068 | (if (or input-method-exit-on-first-char |
| 1069 | (= (length quail-conversion-str) 0)) | ||
| 1069 | (setq quail-converting nil))))) | 1070 | (setq quail-converting nil))))) |
| 1070 | ;; KEYSEQ is not defined in the conversion keymap. | 1071 | ;; KEYSEQ is not defined in the conversion keymap. |
| 1071 | ;; Let's return the event(s) to the caller. | 1072 | ;; Let's return the event(s) to the caller. |
| 1072 | (setq generated-events | 1073 | (setq unread-command-events |
| 1073 | (string-to-list (this-single-command-raw-keys))) | 1074 | (string-to-list (this-single-command-raw-keys))) |
| 1074 | (setq quail-converting nil)))) | 1075 | (setq quail-converting nil)))) |
| 1075 | (if (overlay-start quail-conv-overlay) | 1076 | (if (overlay-start quail-conv-overlay) |
| @@ -1077,11 +1078,10 @@ The returned value is a Quail map specific to KEY." | |||
| 1077 | (overlay-end quail-conv-overlay))) | 1078 | (overlay-end quail-conv-overlay))) |
| 1078 | (if (> (length quail-conversion-str) 0) | 1079 | (if (> (length quail-conversion-str) 0) |
| 1079 | (setq generated-events | 1080 | (setq generated-events |
| 1080 | (append (string-to-list | 1081 | (string-to-list |
| 1081 | (if enable-multibyte-characters | 1082 | (if enable-multibyte-characters |
| 1082 | quail-conversion-str | 1083 | quail-conversion-str |
| 1083 | (string-make-unibyte quail-conversion-str))) | 1084 | (string-make-unibyte quail-conversion-str))))) |
| 1084 | generated-events))) | ||
| 1085 | (if (and input-method-exit-on-first-char generated-events) | 1085 | (if (and input-method-exit-on-first-char generated-events) |
| 1086 | (list (car generated-events)) | 1086 | (list (car generated-events)) |
| 1087 | generated-events)) | 1087 | generated-events)) |