Function: robin-activate
robin-activate is a byte-compiled function defined in robin.el.gz.
Signature
(robin-activate &optional ARG)
Documentation
Activate robin input method.
With ARG, activate robin 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 robin-input-method.
Source Code
;; Defined in /usr/src/emacs/lisp/international/robin.el.gz
(defun robin-activate (&optional arg)
"Activate robin input method.
With ARG, activate robin 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 `robin-input-method'."
(if (and arg
(< (prefix-numeric-value arg) 0))
;; deactivate robin input method.
(unwind-protect
(progn
(setq robin-mode nil)
(setq describe-current-input-method-function nil)
(run-hooks 'robin-deactivate-hook))
(kill-local-variable 'input-method-function))
;; activate robin input method.
(setq robin-mode t
describe-current-input-method-function 'robin-help
deactivate-current-input-method-function 'robin-deactivate)
(if (eq (selected-window) (minibuffer-window))
(add-hook 'minibuffer-exit-hook 'robin-exit-from-minibuffer))
(run-hooks 'input-method-activate-hook
'robin-activate-hook)
(setq-local input-method-function 'robin-input-method)))