Function: shell-forward-command
shell-forward-command is an interactive and byte-compiled function
defined in shell.el.gz.
Signature
(shell-forward-command &optional ARG)
Documentation
Move forward across ARG shell command(s). Does not cross lines.
See shell-command-regexp.
Probably introduced at or before Emacs version 19.23.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/shell.el.gz
(defun shell-forward-command (&optional arg)
"Move forward across ARG shell command(s). Does not cross lines.
See `shell-command-regexp'."
(interactive "p")
(let ((limit (line-end-position))
(pt (point)))
(re-search-forward (concat shell-command-regexp "\\([;&|][\t ]*\\)+")
limit 'move arg)
(and (/= pt (point))
(skip-syntax-backward " " pt))))