🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #1850

compilation-error-regexp in compile.el

#1850
From: David Taylor
Date: Fri, 12 Jan 1990 20:01
33 lines
1553 bytes
In GNU Emacs 18.49.18 of Wed Oct 28 1987 on odin.think.com (berkeley-unix),
I discovered that compilation-error-regexp in compile.el contains, in
part,

	\\([0-9]+.*of *[^ \n]+\\)

The `of' matches both the word `of' anywhere and also as the last two
characters of a word.  It seems like it should only be matching the word
`of' immediately after a number...

As in something like:

	line 27 of fubar.c

Unfortunately, it also matches `of' in things like:

../lib/file_descriptor.c(167): illegal lhs of assignment operator
../lib/file_descriptor.c(167): warning: illegal combination of pointer and integer, op =

from lint.  Is there anything wrong with changing it to instead be
something like:

	\\([0-9]+[ \t]+of *[^ \n]+\\)

That is, to require that there be white space and only white space
between the number and the `of' in order for it to match?

Anyway, the original caused compilation-parse-errors to die with a
syntax error when trying to parse lint output and the new version seems
to work fine.  What program generates error/warning messages that the
original pattern above is supposed to match?

David
Technical Details
Message-ID: <9001122001.AA21472@odin.think.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!THINK.COM!taylor

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!THINK.COM!taylor
From: taylor@THINK.COM (David Taylor)
Newsgroups: gnu.emacs.bug
Subject: compilation-error-regexp in compile.el
Message-ID: <9001122001.AA21472@odin.think.com>
Date: 12 Jan 90 20:01:20 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 33