diff options
| -rw-r--r-- | lisp/international/encoded-kb.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/international/encoded-kb.el b/lisp/international/encoded-kb.el index 7ec84465007..2cbb76cb08d 100644 --- a/lisp/international/encoded-kb.el +++ b/lisp/international/encoded-kb.el | |||
| @@ -376,10 +376,11 @@ as a multilingual text encoded in a coding system set by | |||
| 376 | coding))) | 376 | coding))) |
| 377 | 377 | ||
| 378 | ;; We are turning off Encoded-kbd mode. | 378 | ;; We are turning off Encoded-kbd mode. |
| 379 | (setq key-translation-map saved-key-translation-map | 379 | (when saved-input-mode |
| 380 | saved-key-translation-map nil) | 380 | (setq key-translation-map saved-key-translation-map |
| 381 | (apply 'set-input-mode saved-input-mode) | 381 | saved-key-translation-map nil) |
| 382 | (setq saved-input-mode nil))) | 382 | (apply 'set-input-mode saved-input-mode) |
| 383 | (setq saved-input-mode nil)))) | ||
| 383 | 384 | ||
| 384 | (provide 'encoded-kb) | 385 | (provide 'encoded-kb) |
| 385 | 386 | ||