From ddc22f2feddd99ff488f5f1c03b4f059e353056a Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Sun, 25 Aug 2019 00:00:00 +0000 Subject: [PATCH] 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. --- exwm-xim.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exwm-xim.el b/exwm-xim.el index dc22f82..5530c87 100644 --- a/exwm-xim.el +++ b/exwm-xim.el @@ -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)