Function: erc-add-to-input-ring
erc-add-to-input-ring is a byte-compiled function defined in
erc-ring.el.gz.
Signature
(erc-add-to-input-ring STATE-OR-STRING)
Documentation
Add STATE-OR-STRING to input ring and reset history position.
STATE-OR-STRING should be a string or an erc-input object.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-ring.el.gz
(defun erc-add-to-input-ring (state-or-string)
"Add STATE-OR-STRING to input ring and reset history position.
STATE-OR-STRING should be a string or an erc-input object."
(unless erc-input-ring (erc-input-ring-setup))
(ring-insert erc-input-ring (if (erc-input-p state-or-string)
(erc-input-string state-or-string)
state-or-string)) ; string
(setq erc-input-ring-index nil))