Function: eshell-move-argument
eshell-move-argument is a byte-compiled function defined in
esh-mode.el.gz.
Signature
(eshell-move-argument LIMIT FUNC PROPERTY ARG)
Documentation
Move forward ARG arguments.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-mode.el.gz
(defun eshell-move-argument (limit func property arg)
"Move forward ARG arguments."
(catch 'eshell-incomplete
(eshell-parse-arguments (save-excursion (beginning-of-line) (point))
(line-end-position)))
(let ((pos (save-excursion
(funcall func 1)
(while (and (> arg 0) (/= (point) limit))
(if (get-text-property (point) property)
(setq arg (1- arg)))
(if (> arg 0)
(funcall func 1)))
(point))))
(goto-char pos)
(if (and (eq func 'forward-char)
(= (1+ pos) limit))
(forward-char 1))))