Function: pcomplete-erc-parse-arguments
pcomplete-erc-parse-arguments is a byte-compiled function defined in
erc-pcomplete.el.gz.
Signature
(pcomplete-erc-parse-arguments)
Documentation
Return a list of parsed whitespace-separated arguments.
These are the words from the beginning of the line after the prompt up to where point is right now.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-pcomplete.el.gz
(defun pcomplete-erc-parse-arguments ()
"Return a list of parsed whitespace-separated arguments.
These are the words from the beginning of the line after the prompt
up to where point is right now."
(let* ((start erc-input-marker)
(end (point))
args beginnings)
(save-excursion
(if (< (skip-chars-backward " \t\n" start) 0)
(setq args '("")
beginnings (list end)))
(setq end (point))
(while (< (skip-chars-backward "^ \t\n" start) 0)
(setq beginnings (cons (point) beginnings)
args (cons (buffer-substring-no-properties
(point) end)
args))
(skip-chars-backward " \t\n" start)
(setq end (point))))
(cons args beginnings)))