I'm using gfortran and having a problem with a certain line in the
compile message buffer. I use "C-x `" to go to the next error. On
lines like this:
/path/libtb4.a(asi_expext.o):/path/asi_expext.f:207: first defined here
I get. in the mini-buffer:
Find this error in (default) expect.f: /path
If I hiit return in the mini-buffer I get a beep. If I instead do
"C-x `" again I go to the next error in source just fine.
What I would like to do is have lines like
/path/libtb4.a(asi_expext.o):/path/asi_expext.f:207: first defined here
not show in the error list since they are always accompanied by a good
error pointer. If that isn't possible, I would XEmacs to point to the
error.
Can anyone tell me how to do that? By looking at compile.el, it looks
like there are a series of regexes, associated with compiler or system
keywords (gnu, sgi, etc.), that find all error lines during a compile.
Using what I've seen at the g95 site s a guide, I have put this in my
init.el to try to capture the info in that error line:
(eval-after-load "compile"
'(setq compilation-error-regexp-alist
(cons '("^\\(.+\\):\\(.+\\):\\([0-9]+\\): first defined here" 2 3)
compilation-error-regexp-alist)))
According to what I see in the compile.el, that should capture the
second file name instance and the line number, but that hasn't worked
in this case.
In compile.el, for gnu, there are these two lines:
(gnu
("[a-zA-Z]?:?[^0-9 \n\t:]+:[ \t]*\\([^ \n\t:]+\\):\
\\([0-9]+\\):\\(\\([0-9]+\\)[: \t]\\)?" 1 2 4)
)
;; GNU messages with program name and optional column number
;; and a severity letter after that. nsgmls makes them.
(gnu
("[^0-9 \n\t:]+:[ \t]*\\([^ \n\t:]+\\):\
\\([0-9]+\\):\\(\\([0-9]+\\):\\)?[A-Za-z]:" 1 2 4)
I assume that those two normally determine the actions of "C-x `", so
how does the entry in my init.el come into action? Before or after or
in between what's going on? Or maybe not at all?
A gnu list with regex to ignore an error line would be my choice.
Thanks for any help or pointers..
-Tom
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta