Function: erc-next-command
erc-next-command is an interactive and byte-compiled function defined
in erc-ring.el.gz.
Signature
(erc-next-command)
Documentation
Replace current command with the next one from the history.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-ring.el.gz
(defun erc-next-command ()
"Replace current command with the next one from the history."
(interactive)
(unless erc-input-ring (erc-input-ring-setup))
;; if the ring isn't empty
(when (> (ring-length erc-input-ring) 0)
(if (and erc-input-ring-index
(= 0 erc-input-ring-index))
(progn
(erc-replace-current-command "")
(setq erc-input-ring-index nil))
(setq erc-input-ring-index (ring-minus1 (or erc-input-ring-index 0)
(ring-length erc-input-ring)))
(erc-replace-current-command (ring-ref erc-input-ring
erc-input-ring-index)))))