From: Eshel Yaron Date: Thu, 9 May 2024 06:39:34 +0000 (+0200) Subject: Recognize '-fdiagnostics-parseable-fixits' compilation messages X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=47414a193e42df4f4e8c1302094b19cf45e13df5;p=emacs.git Recognize '-fdiagnostics-parseable-fixits' compilation messages --- 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)