From 47414a193e42df4f4e8c1302094b19cf45e13df5 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Thu, 9 May 2024 08:39:34 +0200 Subject: [PATCH] Recognize '-fdiagnostics-parseable-fixits' compilation messages --- lisp/progmodes/compile.el | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index b18eb81fee1..0dda610776e 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -359,6 +359,29 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) \\([0-9]+\\)\\(?::\\([0-9]+\\)\\)?\\(?:\\([:,]\\|$\\)\\)?" 1 2 3 (nil . 4)) + (fix-it + ,(rx bol + "fix-it:\"" + (group-n 1 (+ (not (any ?\" ?\n)))) + "\":{" + (group-n 2 (+ digit)) + ":" + (group-n 3 (+ digit)) + "-" + (+ digit) + ":" + (+ digit) + "}:\"" + (group-n 4 (* (not (any ?\" ?\n)))) + "\"" + eol) + 1 2 3 0 1 (4 '(face diff-refine-added + ;; TODO - click to fix: + ;; mouse-face ... + ;; keymap ... + ;; follow-link ... + ))) + (ruby-Test::Unit "^ [[ ]?\\([^ (].*\\):\\([1-9][0-9]*\\)\\(\\]\\)?:in " 1 2) -- 2.39.5