Function: erc-check-text-conversion
erc-check-text-conversion is a byte-compiled function defined in
erc.el.gz.
Signature
(erc-check-text-conversion)
Documentation
Check if point is within the ERC prompt and toggle text conversion.
If text-conversion-style is not action if point is within the
prompt or nil otherwise, set it to such a value, so as to
guarantee that the input method functions properly for the
purpose of typing within the ERC prompt.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-check-text-conversion ()
"Check if point is within the ERC prompt and toggle text conversion.
If `text-conversion-style' is not `action' if point is within the
prompt or nil otherwise, set it to such a value, so as to
guarantee that the input method functions properly for the
purpose of typing within the ERC prompt."
(when (and (eq major-mode 'erc-mode)
(fboundp 'set-text-conversion-style))
(defvar text-conversion-style) ; avoid free variable warning on <=29
(if (>= (point) (erc-beg-of-input-line))
(unless (eq text-conversion-style 'action)
(set-text-conversion-style 'action))
(unless (not text-conversion-style)
(set-text-conversion-style nil)))))