Function: deactivate-input-method

deactivate-input-method is a byte-compiled function defined in mule-cmds.el.gz.

Signature

(deactivate-input-method)

Documentation

Turn off the current input method.

Probably introduced at or before Emacs version 24.3.

Aliases

viper-deactivate-input-method (obsolete since 27.1)

Source Code

;; Defined in /usr/src/emacs/lisp/international/mule-cmds.el.gz
(defun deactivate-input-method ()
  "Turn off the current input method."
  (when current-input-method
    (unless current-transient-input-method
      (add-to-history 'input-method-history current-input-method))
    (unwind-protect
	(progn
	  (setq input-method-function nil
		current-input-method-title nil)
	  (funcall deactivate-current-input-method-function))
      (unwind-protect
	  (run-hooks 'input-method-deactivate-hook)
	(setq current-input-method nil)
	(force-mode-line-update)))))