Function: ucs-input-activate
ucs-input-activate is an autoloaded and byte-compiled function defined
in uni-input.el.gz.
Signature
(ucs-input-activate &optional ARG)
Documentation
Activate UCS input method.
With ARG, activate UCS input method if and only if ARG is positive.
While this input method is active, the variable
input-method-function is bound to the function ucs-input-method.
Source Code
;; Defined in /usr/src/emacs/lisp/leim/quail/uni-input.el.gz
;;;###autoload
(defun ucs-input-activate (&optional arg)
"Activate UCS input method.
With ARG, activate UCS input method if and only if ARG is positive.
While this input method is active, the variable
`input-method-function' is bound to the function `ucs-input-method'."
(if (and arg
(< (prefix-numeric-value arg) 0))
(unwind-protect
(progn
(quail-hide-guidance)
(quail-delete-overlays)
(setq describe-current-input-method-function nil))
(kill-local-variable 'input-method-function))
(setq deactivate-current-input-method-function #'ucs-input-deactivate)
(setq describe-current-input-method-function #'ucs-input-help)
(quail-delete-overlays)
(if (eq (selected-window) (minibuffer-window))
(add-hook 'minibuffer-exit-hook #'quail-exit-from-minibuffer))
(setq-local input-method-function #'ucs-input-method)))