Function: term-after-pmark-p

term-after-pmark-p is a byte-compiled function defined in term.el.gz.

Signature

(term-after-pmark-p)

Documentation

Is point after the process output marker?

Source Code

;; Defined in /usr/src/emacs/lisp/term.el.gz
(defun term-after-pmark-p ()
  "Is point after the process output marker?"
  ;; Since output could come into the buffer after we looked at the point
  ;; but before we looked at the process marker's value, we explicitly
  ;; serialize.  This is just because I don't know whether or not Emacs
  ;; services input during execution of lisp commands.
  (let ((proc-pos (marker-position
		   (process-mark (get-buffer-process (current-buffer))))))
    (<= proc-pos (point))))