Add tags to 'compilation-transform-file-match-alist' custom type
authorRobert Pluim <rpluim@gmail.com>
Wed, 4 Dec 2024 16:00:16 +0000 (17:00 +0100)
committerRobert Pluim <rpluim@gmail.com>
Wed, 4 Dec 2024 16:00:16 +0000 (17:00 +0100)
* lisp/progmodes/compile.el (compilation-filter-start): Add some
more meaningful tags, and switch to using 'radio' instead of
'choice'.

lisp/progmodes/compile.el

index ee7fc6aaecb81eb94568c865f44af32766c1a2ab..241b29c65b0aa12b5dd6a2bbb9682c78146e68ac 100644 (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