unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* compilation errors
       [not found]             ` <200809190845.20285@centrum.cz>
@ 2008-09-19  6:46               ` Jiri Senkyr
       [not found]               ` <mailman.19549.1221830643.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 2+ messages in thread
From: Jiri Senkyr @ 2008-09-19  6:46 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,
I wanted my emacs to parse messages from IAR Embedded workbench compiler so I added following lines into my .emacs file:

;; To parse "IAR Embedded workbench 4.21A for Atmel AVR" messages
;; Load compile.el library
(require 'compile)
;;Store new item "iar-avr" into compilation-error-regexp-alist variable
(setq compilation-error-regexp-alist
      (cons 'iar-avr compilation-error-regexp-alist))
;; Store iar-avr regexp into compilation-error-regexp-alist-alist variable
(setq compilation-error-regexp-alist-alist
      (cons '(iar-avr
	      "^\\(?:.*\\\\\\)\\(.*\\)(\\([0-9]+\\)) : \\(?:Error\\|Warnin\\(g\\)\\)\\[Pe[0-9]+\\]:"
	      1 2 nil (3)) compilation-error-regexp-alist-alist))

It works all right, but when I start customize and try to customize compilation-error-regexp-alist, it shows "mismatch". At first before i modified .emacs as shown above, I put there just "compilation-error-regexp-alist-alist" but this didn't work, emacs reported "compilation-error-regexp-alist-alist is void" after start-up. To solve this I added "(require 'compile)" line. Error message disappeared but parsing of compiler messages didn't work, so I added setting of "compilation-error-regexp-alist" to contain name of my compiler (iar-avr). This solved the problem, but issue with "customize" appeared.

Parsing works, that's fine but "mismatch" message from customize bothers me. I don't want to modify compile.el (where compilation-error-regexp-alist is defined) directly, which probably would solve the problem.

Could anyone help, please?

Regards,
Jiri





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: compilation errors
       [not found]               ` <mailman.19549.1221830643.18990.help-gnu-emacs@gnu.org>
@ 2008-09-20 14:32                 ` rustom
  0 siblings, 0 replies; 2+ messages in thread
From: rustom @ 2008-09-20 14:32 UTC (permalink / raw)
  To: help-gnu-emacs

On Sep 19, 11:46 am, "Jiri Senkyr" <jusb...@centrum.cz> wrote:
> Hello,
> I wanted my emacs to parse messages from IAR Embedded workbench compiler so I added following lines into my .emacs file:
>
> ;; To parse "IAR Embedded workbench 4.21A for Atmel AVR" messages
> ;; Load compile.el library
> (require 'compile)
> ;;Store new item "iar-avr" into compilation-error-regexp-alist variable
> (setq compilation-error-regexp-alist
>       (cons 'iar-avr compilation-error-regexp-alist))
> ;; Store iar-avr regexp into compilation-error-regexp-alist-alist variable
> (setq compilation-error-regexp-alist-alist
>       (cons '(iar-avr
>               "^\\(?:.*\\\\\\)\\(.*\\)(\\([0-9]+\\)) : \\(?:Error\\|Warnin\\(g\\)\\)\\[Pe[0-9]+\\]:"
>               1 2 nil (3)) compilation-error-regexp-alist-alist))
>
> It works all right, but when I start customize and try to customize compilation-error-regexp-alist, it shows "mismatch". At first before i modified .emacs as shown above, I put there just "compilation-error-regexp-alist-alist" but this didn't work, emacs reported "compilation-error-regexp-alist-alist is void" after start-up. To solve this I added "(require 'compile)" line. Error message disappeared but parsing of compiler messages didn't work, so I added setting of "compilation-error-regexp-alist" to contain name of my compiler (iar-avr). This solved the problem, but issue with "customize" appeared.
>
> Parsing works, that's fine but "mismatch" message from customize bothers me. I don't want to modify compile.el (where compilation-error-regexp-alist is defined) directly, which probably would solve the problem.
>
> Could anyone help, please?
>
> Regards,
> Jiri

Instead of setq you may want to use custom-set-variable


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-20 14:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200809190838.14649@centrum.cz>
     [not found] ` <200809190839.22779@centrum.cz>
     [not found]   ` <200809190840.26189@centrum.cz>
     [not found]     ` <200809190841.26510@centrum.cz>
     [not found]       ` <200809190842.16034@centrum.cz>
     [not found]         ` <200809190843.18776@centrum.cz>
     [not found]           ` <200809190844.22984@centrum.cz>
     [not found]             ` <200809190845.20285@centrum.cz>
2008-09-19  6:46               ` compilation errors Jiri Senkyr
     [not found]               ` <mailman.19549.1221830643.18990.help-gnu-emacs@gnu.org>
2008-09-20 14:32                 ` rustom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).