Function: comint-bol-or-process-mark

comint-bol-or-process-mark is an interactive and byte-compiled function defined in comint.el.gz.

Signature

(comint-bol-or-process-mark)

Documentation

Move point to beginning of line (after prompt) or to the process mark.

The first time you use this command, it moves to the beginning of the line
(but after the prompt, if any). If you repeat it again immediately,
it moves point to the process mark.

The process mark separates the process output, along with input already sent, from input that has not yet been sent. Ordinarily, the process mark is at the beginning of the current input line; but if you have used M-x comint-accumulate (comint-accumulate) to send multiple lines at once, the process mark is at the beginning of the accumulated input.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-bol-or-process-mark ()
  "Move point to beginning of line (after prompt) or to the process mark.
The first time you use this command, it moves to the beginning of the line
\(but after the prompt, if any).  If you repeat it again immediately,
it moves point to the process mark.

The process mark separates the process output, along with input already sent,
from input that has not yet been sent.  Ordinarily, the process mark
is at the beginning of the current input line; but if you have
used \\[comint-accumulate] to send multiple lines at once,
the process mark is at the beginning of the accumulated input."
  (interactive nil comint-mode)
  (if (not (eq last-command 'comint-bol-or-process-mark))
      (comint-bol nil)
    (comint-goto-process-mark)))