unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6979: In compilation buffer, 'gnu-include' rule is not working as intended
@ 2010-09-03 19:18 Paul Pogonyshev
  2010-09-04 13:57 ` bug#6979: More information Paul Pogonyshev
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Pogonyshev @ 2010-09-03 19:18 UTC (permalink / raw)
  To: 6979

[-- Attachment #1: Type: Text/Plain, Size: 489 bytes --]

Example file 'compilation.txt' claims it is supported to mark only the
last message as the error, skipping all 'included from...' lines,
which are often not interesting.  However, instead it marks all lines
except the first as errors.

To reproduce:

    M-x customize-variable
    compilation-error-regexp-alist

and follow the 'see also example file' link.

Screenshot of what I see is attached.

GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-09-02 on gonzo

Paul

[-- Attachment #2: emacs-gcc-include.png --]
[-- Type: image/png, Size: 12342 bytes --]

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

* bug#6979: More information
  2010-09-03 19:18 bug#6979: In compilation buffer, 'gnu-include' rule is not working as intended Paul Pogonyshev
@ 2010-09-04 13:57 ` Paul Pogonyshev
  2010-09-04 18:54   ` Chong Yidong
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Pogonyshev @ 2010-09-04 13:57 UTC (permalink / raw)
  To: 6979

I've found that 'gcc-include' rule is wrongly overriden by 'ruby': if
I disable the latter in 'compilation-error-regexp-alist', highlighting
is back to normal.  I'm not sure what a correct fix would be.  Maybe
ruby error highlighting should also highlight 'from' lines as info,
not errors.





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

* bug#6979: More information
  2010-09-04 13:57 ` bug#6979: More information Paul Pogonyshev
@ 2010-09-04 18:54   ` Chong Yidong
  2010-09-04 19:06     ` Paul Pogonyshev
  0 siblings, 1 reply; 7+ messages in thread
From: Chong Yidong @ 2010-09-04 18:54 UTC (permalink / raw)
  To: Paul Pogonyshev; +Cc: 6979

Paul Pogonyshev <pogonyshev@gmx.net> writes:

> I've found that 'gcc-include' rule is wrongly overriden by 'ruby': if
> I disable the latter in 'compilation-error-regexp-alist', highlighting
> is back to normal.  I'm not sure what a correct fix would be.  Maybe
> ruby error highlighting should also highlight 'from' lines as info,
> not errors.

Could you please provide some examples?





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

* bug#6979: More information
  2010-09-04 18:54   ` Chong Yidong
@ 2010-09-04 19:06     ` Paul Pogonyshev
  2010-09-16  3:57       ` Glenn Morris
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Pogonyshev @ 2010-09-04 19:06 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 6979

Chong Yidong wrote:
> Paul Pogonyshev <pogonyshev@gmx.net> writes:
> 
> > I've found that 'gcc-include' rule is wrongly overriden by 'ruby': if
> > I disable the latter in 'compilation-error-regexp-alist', highlighting
> > is back to normal.  I'm not sure what a correct fix would be.  Maybe
> > ruby error highlighting should also highlight 'from' lines as info,
> > not errors.
> 
> Could you please provide some examples?

As I wrote in my original mail:

> To reproduce:
>
>     M-x customize-variable
>     compilation-error-regexp-alist
>
> and follow the 'see also example file' link.

Look for the string 'gcc-include' in the example.  In description it
claims that the first two lines would be highlighted as information
and the last as error.  In reality, second line:

                 from /usr/include/c++/3.3/backward/iostream.h:31,

is also highlighted as an error because it is handled by 'ruby' rule.

I would also argue that _all three_ lines should be information
because real error follows those, but that is a different issue.

Paul





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

* bug#6979: More information
  2010-09-04 19:06     ` Paul Pogonyshev
@ 2010-09-16  3:57       ` Glenn Morris
  2010-09-16 18:35         ` Paul Pogonyshev
  0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2010-09-16  3:57 UTC (permalink / raw)
  To: Paul Pogonyshev; +Cc: 6979


I imagine this (likewise bug#6966?) has been fixed by the 2010-09-04
change to compile.el, could you confirm?





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

* bug#6979: More information
  2010-09-16  3:57       ` Glenn Morris
@ 2010-09-16 18:35         ` Paul Pogonyshev
  2010-09-16 18:43           ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Pogonyshev @ 2010-09-16 18:35 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 6979

Glenn Morris wrote:
> I imagine this (likewise bug#6966?) has been fixed by the 2010-09-04
> change to compile.el, could you confirm?

Yes, it is fixed, but I don't know how to close bugs in this system.

Paul





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

* bug#6979: More information
  2010-09-16 18:35         ` Paul Pogonyshev
@ 2010-09-16 18:43           ` Eli Zaretskii
  0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2010-09-16 18:43 UTC (permalink / raw)
  To: Paul Pogonyshev; +Cc: 6979

> From: Paul Pogonyshev <pogonyshev@gmx.net>
> Date: Thu, 16 Sep 2010 21:35:31 +0300
> Cc: 6979@debbugs.gnu.org
> 
> Glenn Morris wrote:
> > I imagine this (likewise bug#6966?) has been fixed by the 2010-09-04
> > change to compile.el, could you confirm?
> 
> Yes, it is fixed, but I don't know how to close bugs in this system.

Reply to 6979-done@debbugs.gnu.org to cause bug #6979 be closed.





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

end of thread, other threads:[~2010-09-16 18:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-03 19:18 bug#6979: In compilation buffer, 'gnu-include' rule is not working as intended Paul Pogonyshev
2010-09-04 13:57 ` bug#6979: More information Paul Pogonyshev
2010-09-04 18:54   ` Chong Yidong
2010-09-04 19:06     ` Paul Pogonyshev
2010-09-16  3:57       ` Glenn Morris
2010-09-16 18:35         ` Paul Pogonyshev
2010-09-16 18:43           ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).