Function: comint-snapshot-last-prompt

comint-snapshot-last-prompt is a byte-compiled function defined in comint.el.gz.

Signature

(comint-snapshot-last-prompt)

Documentation

Snapshot the current comint-last-prompt.

Freezes the font-lock-face text property in place.

Source Code

;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-snapshot-last-prompt ()
  "Snapshot the current `comint-last-prompt'.
Freezes the `font-lock-face' text property in place."
  (when comint-last-prompt
    (with-silent-modifications
      (font-lock-prepend-text-property
       (car comint-last-prompt)
       (cdr comint-last-prompt)
       'font-lock-face 'comint-highlight-prompt))
    ;; Reset comint-last-prompt so later on comint-output-filter does
    ;; not remove the font-lock-face text property of the previous
    ;; (this) prompt.
    (setq comint-last-prompt nil)))