From 310ccb2f26161eb38304dae14dfc2d6f85866244 Mon Sep 17 00:00:00 2001 From: Robert Pluim Date: Wed, 4 Dec 2024 17:00:16 +0100 Subject: [PATCH] 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'. (cherry picked from commit df7f02a7954c652896dcaae590caf9dc0c4dc6a1) --- lisp/progmodes/compile.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 7a11cfd453b..0b7cb7561a0 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -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 -- 2.39.5