Variable: compilation-filter-hook

compilation-filter-hook is a customizable variable defined in compile.el.gz.

Value

nil

Documentation

Hook run after compilation-filter has inserted a string into the buffer.

It is called with the variable compilation-filter-start bound to the position of the start of the inserted text, and point at its end.

If Emacs lacks asynchronous process support, this hook is run after call-process inserts the grep output into the buffer.

This variable was added, or its default value changed, in Emacs 31.1.

Probably introduced at or before Emacs version 24.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/compile.el.gz
(defcustom compilation-filter-hook nil
  "Hook run after `compilation-filter' has inserted a string into the buffer.
It is called with the variable `compilation-filter-start' bound
to the position of the start of the inserted text, and point at
its end.

If Emacs lacks asynchronous process support, this hook is run
after `call-process' inserts the grep output into the buffer."
  :type 'hook
  :options '(ansi-color-compilation-filter
             ansi-osc-compilation-filter)
  :version "31.1")