summaryrefslogtreecommitdiff
path: root/lisp/progmodes/compile.el
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2026-06-02 12:43:08 +0200
committerMichael Albinus <michael.albinus@gmx.de>2026-06-02 12:43:08 +0200
commit2db5a145acbbe84042128806d8b2e333495cf70e (patch)
tree94f9931086f7455e97680914076f8b62d5033aaf /lisp/progmodes/compile.el
parentbfa4d6dd400f18832aa19df3cdd41bfd763c85f7 (diff)
Support Ansible messages in compilation-mode
* etc/NEWS: Mention Ansible integration in compilation mode. * etc/compilation.txt: Add examples of Ansible error, warning and note messages. Fix typos. * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Add Ansible regexps for error, warning and note messages. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data): Add new test cases. (compile-test-error-regexps): Increase expected infos.
Diffstat (limited to 'lisp/progmodes/compile.el')
-rw-r--r--lisp/progmodes/compile.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index fbcdc6b5124..593f9867533 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -229,6 +229,19 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1))
(aix
" in line \\([0-9]+\\) of file \\([^ \n]+[^. \n]\\)\\.? " 2 1)
+ (ansible-fatal
+ "^fatal: .*: FAILED!" nil nil nil 2 0 (0 compilation-error-face))
+ (ansible-error
+ "^\\[ERROR\\]:"
+ nil nil nil 2 0 (0 compilation-error-face))
+ (ansible-warning
+ "^\\[\\(?:DEPRECATION \\)?WARNING\\]:"
+ nil nil nil 1 0 (0 compilation-warning-face))
+ (ansible-included "^included: \\([^[:space:]]+\\)" 1 nil nil 0 1)
+ (ansible-origin
+ "^Origin: \\([^[:space:]]+\\):\\([[:digit:]]+\\):\\([[:digit:]]+\\)"
+ 1 2 3 0 1)
+
;; Checkstyle task may report its own severity level: "[checkstyle] [ERROR] ..."
;; (see AuditEventDefaultFormatter.java in checkstyle sources).
(ant