From 213169c563e9e7c6f05b3d18e3ea754be1be175b Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 28 Mar 2019 16:12:27 -0700 Subject: [PATCH] Add compilation regexp for CMake warnings --- oni-cmake.el | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/oni-cmake.el b/oni-cmake.el index 1785857..d37c460 100644 --- a/oni-cmake.el +++ b/oni-cmake.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 20190226010348 +;; Version: 20190328160117 ;; Package-Requires: (cmake-mode oni-company cmake-font-lock) ;; This program is free software; you can redistribute it and/or modify @@ -26,10 +26,22 @@ ;;; Code: +(require 'compile) + (add-hook 'cmake-mode-hook 'cmake-font-lock-activate) (add-hook 'cmake-mode-hook 'company-mode) (add-hook 'cmake-mode-hook 'electric-pair-local-mode) +(add-to-list 'compilation-error-regexp-alist + `(,(rx bol + "CMake Warning (dev) at " + (group (minimal-match (1+ any))) + ":" + (group (minimal-match (1+ digit))) + " (" (1+ any) "):" + eol) + 1 2 nil 1 1)) + ;;;###autoload(with-eval-after-load 'cmake-mode (require 'oni-cmake)) (provide 'oni-cmake)