Исправил следующим образом (в .emacs):
;; To parse "IAR Embedded workbench 5.3 for MSP430" messages
(defun my-compile-setup ()
"Installs new regexps to compilation-error-regexp-alist"
;;Store new item "iar-msp430" into compilation-error-regexp-alist variable
(setq compilation-error-regexp-alist
(cons 'iar-msp430 (cons 'iar-msp430-include compilation-error-regexp-alist)))
;; Store iar-msp430 regexp into compilation-error-regexp-alist-alist variable
(setq compilation-error-regexp-alist-alist
(cons
'(iar-msp430
"^[^\n]+\n[ \t]+[\\^]\n\"\\(.*\\)\",\\([0-9]+\\)\\s-+\\(?:Fatal error\\|Error\\|Warnin\\(g\\)\\)\\[[a-zA-Z]+[0-9]+\\]:"
1 2 nil (3))
(cons
'(iar-msp430-include
"^[ ]+\"\\(.+\\)\", line \\([0-9]+\\)"
1 2)
compilation-error-regexp-alist-alist)))
)
(defvar my-compile-eval-after-form
'(progn (my-compile-setup))
"*Form executed when file is loaded.")
;; Install it
(eval-after-load "compile" my-compile-eval-after-form)
Комментариев нет:
Отправить комментарий