Function: diff-process-filter

diff-process-filter is a byte-compiled function defined in diff.el.gz.

Signature

(diff-process-filter PROC STRING)

Source Code

;; Defined in /usr/src/emacs/lisp/vc/diff.el.gz
(defun diff-process-filter (proc string)
  (with-current-buffer (process-buffer proc)
    (let ((moving (= (point) (process-mark proc))))
      (save-excursion
	;; Insert the text, advancing the process marker.
	(goto-char (process-mark proc))
	(let ((inhibit-read-only t))
	  (insert string))
	(set-marker (process-mark proc) (point)))
      (if moving (goto-char (process-mark proc))))))