Variable: compilation-transform-file-match-alist
compilation-transform-file-match-alist is a customizable variable
defined in compile.el.gz.
Value
(("/bin/[a-z]*sh\\'" nil))
Documentation
Alist of regexp/replacements to alter file names in compiler messages.
If the replacement is nil, the matching message will not be considered an error or warning. If not nil, it should be a replacement string for the matched regexp.
If a non-nil replacement is specified, the value of the matched file name used to locate the warning or error is modified using the replacement, but the compilation buffer still displays the original value.
For example, to prepend a subdirectory "bar/" to all file names in compiler messages, add an entry matching "\\\\=`" and a replacement string of "bar/", i.e.:
("\\\\=`" "bar/")
Similarly, to remove a prefix "bar/", use:
("\\\\=`bar/" "")
This variable was added, or its default value changed, in Emacs 27.1.
Probably introduced at or before Emacs version 27.1.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/compile.el.gz
(defcustom compilation-transform-file-match-alist
'(("/bin/[a-z]*sh\\'" nil))
"Alist of regexp/replacements to alter file names in compiler messages.
If the replacement is nil, the matching message will not be considered
an error or warning. If not nil, it should be a replacement string
for the matched regexp.
If a non-nil replacement is specified, the value of the matched file name
used to locate the warning or error is modified using the replacement, but
the compilation buffer still displays the original value.
For example, to prepend a subdirectory \"bar/\" to all file names in
compiler messages, add an entry matching \"\\\\=`\" and a replacement
string of \"bar/\", i.e.:
(\"\\\\=`\" \"bar/\")
Similarly, to remove a prefix \"bar/\", use:
(\"\\\\=`bar/\" \"\")"
:type '(repeat (list (regexp :tag "Filename that matches")
(radio :tag "Action"
(const :tag "Do not consider as error" nil)
(string :tag "Replace matched filename with"))))
:version "27.1")