Commit f9f1ed46 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(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.
parent 3c487103
......@@ -1065,11 +1065,12 @@ The returned value is a Quail map specific to KEY."
(if (stringp quail-current-str)
(char-to-string quail-current-str)))))
(if input-method-exit-on-first-char
(if (or input-method-exit-on-first-char
(= (length quail-conversion-str) 0))
(setq quail-converting nil)))))
;; KEYSEQ is not defined in the conversion keymap.
;; Let's return the event(s) to the caller.
(setq generated-events
(setq unread-command-events
(string-to-list (this-single-command-raw-keys)))
(setq quail-converting nil))))
(if (overlay-start quail-conv-overlay)
......@@ -1077,11 +1078,10 @@ The returned value is a Quail map specific to KEY."
(overlay-end quail-conv-overlay)))
(if (> (length quail-conversion-str) 0)
(setq generated-events
(append (string-to-list
(if enable-multibyte-characters
(string-make-unibyte quail-conversion-str)))
(if enable-multibyte-characters
(string-make-unibyte quail-conversion-str)))))
(if (and input-method-exit-on-first-char generated-events)
(list (car generated-events))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment