Function: comint-bol
comint-bol is an interactive and byte-compiled function defined in
comint.el.gz.
Signature
(comint-bol &optional ARG)
Documentation
Go to the beginning of line, then skip past the prompt, if any.
If prefix argument is given (C-u (universal-argument)) the prompt is not skipped.
If comint-use-prompt-regexp is non-nil, then the prompt skip is done
by skipping text matching the regular expression comint-prompt-regexp,
a buffer local variable.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-bol (&optional arg)
"Go to the beginning of line, then skip past the prompt, if any.
If prefix argument is given (\\[universal-argument]) the prompt is not skipped.
If `comint-use-prompt-regexp' is non-nil, then the prompt skip is done
by skipping text matching the regular expression `comint-prompt-regexp',
a buffer local variable."
(interactive "P")
(if arg
;; Unlike `beginning-of-line', forward-line ignores field boundaries
(forward-line 0)
(goto-char (comint-line-beginning-position))))