Clear echo area for input methods

* exwm-xim.el (exwm-xim--handle-forward-event-request): exwm-xim
enforces `input-method-use-echo-area' but this breaks some input
methods.  This change clear garbage printed by such input methods.
This commit is contained in:
Chris Feng 2019-08-25 00:00:00 +00:00
parent 5505cff826
commit ddc22f2fed

View file

@ -588,6 +588,8 @@ The actual XIM request is in client message data or a property."
;; Always show key strokes.
(let ((input-method-use-echo-area t))
(setq result (funcall im-func event))
;; Clear echo area for the input method.
(message nil)
;; This also works for portable character encoding.
(setq result
(encode-coding-string (concat result)