Function: ansi-osc-compilation-filter

ansi-osc-compilation-filter is an autoloaded and byte-compiled function defined in ansi-osc.el.gz.

Signature

(ansi-osc-compilation-filter)

Documentation

Maybe collect OSC control sequences.

This function depends on the variable ansi-osc-for-compilation-buffer, and is meant to be used in compilation-filter-hook.

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/ansi-osc.el.gz
;;;###autoload
(defun ansi-osc-compilation-filter ()
  "Maybe collect OSC control sequences.
This function depends on the variable `ansi-osc-for-compilation-buffer',
and is meant to be used in `compilation-filter-hook'."
  (let ((inhibit-read-only t))
    (pcase ansi-osc-for-compilation-buffer
      ('nil nil)
      ('filter
       (ansi-osc-filter-region compilation-filter-start (point)))
      (_
       (ansi-osc-apply-on-region compilation-filter-start (point))))))