Variable: compilation-hidden-output

compilation-hidden-output is a customizable variable defined in compile.el.gz.

Value

nil

Documentation

Regexp to match output from the compilation that should be hidden.

This can also be a list of regexps.

The text matched by this variable will be made invisible, which means that it'll still be present in the buffer, so that navigation commands (for instance, next-error) can still make use of the hidden text to determine the current directory and the like.

For instance, to hide the verbose output from recursive makefiles, you can say something like:

  (setopt compilation-hidden-output
          '("^make[^\\n]+\\n"))

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

View in manual

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/compile.el.gz
(defcustom compilation-hidden-output nil
  "Regexp to match output from the compilation that should be hidden.
This can also be a list of regexps.

The text matched by this variable will be made invisible, which
means that it'll still be present in the buffer, so that
navigation commands (for instance, `next-error') can still make
use of the hidden text to determine the current directory and the
like.

For instance, to hide the verbose output from recursive
makefiles, you can say something like:

  (setopt compilation-hidden-output
          \\='(\"^make[^\\n]+\\n\"))"
  :type '(choice regexp
                 (repeat regexp))
  :version "29.1")