Add tags to 'compilation-transform-file-match-alist' custom type

* lisp/progmodes/compile.el (compilation-filter-start): Add some
more meaningful tags, and switch to using 'radio' instead of
'choice'.
This commit is contained in:
Robert Pluim 2024-12-04 17:00:16 +01:00
parent 7c50e4cc8c
commit df7f02a795

View file

@ -77,8 +77,10 @@ an entry matching \"\\\\=`\" and a replacement regexp of \"bar/\", i.e.:
Similarly, to remove a prefix \"bar/\", use:
(\"\\\\=`bar/\" \"\")"
:type '(repeat (list regexp (choice (const :tag "No replacement" nil)
string)))
: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")
(defvar compilation-filter-hook nil