Commit 251b4b31 authored by Kenichi Handa's avatar Kenichi Handa

(encoded-kbd-mode): Check

saved-input-mode on turing off Encoded Kbd mode.
parent 5432dcf9
......@@ -376,10 +376,11 @@ as a multilingual text encoded in a coding system set by
coding)))
;; We are turning off Encoded-kbd mode.
(setq key-translation-map saved-key-translation-map
saved-key-translation-map nil)
(apply 'set-input-mode saved-input-mode)
(setq saved-input-mode nil)))
(when saved-input-mode
(setq key-translation-map saved-key-translation-map
saved-key-translation-map nil)
(apply 'set-input-mode saved-input-mode)
(setq saved-input-mode nil))))
(provide 'encoded-kb)
......
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