GNU bug report logs - #3928
23.1.50; compilation-mode not matching perl and more [regression]

Previous Next

Package: emacs;

Reported by: Kevin Ryde <user42 <at> zip.com.au>

Date: Sat, 25 Jul 2009 12:50:04 UTC

Severity: normal

Merged with 4689

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 3928 in the body.
You can then email your comments to 3928 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3928; Package emacs. (Sat, 25 Jul 2009 12:50:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kevin Ryde <user42 <at> zip.com.au>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 25 Jul 2009 12:50:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Kevin Ryde <user42 <at> zip.com.au>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.1.50; compilation-mode not matching perl and more [regression]
Date: Sat, 25 Jul 2009 22:42:44 +1000
[Message part 1 (text/plain, inline)]
Running "emacs -Q etc/compilation.txt" and scrolling down to the perl
section shows none of the sample perl errors matched at all, where I
hoped they would be.

I think the "^" anchor added by compilation-mode-font-lock-keywords
means perl and some other more obscure patterns need a ".*", like they
had back in Emacs 21, to work in the middle of a line.

I noticed this on the perl one.  I thought it was working fine not so
long ago, so I don't know what/when/how it went bad.  (The looseness of
Emacs 22 not anchoring reverted, but the patterns not put back at the
same time too??)


2009-07-25  Kevin Ryde  <user42 <at> zip.com.au>

	* progmodes/compile.el (compilation-error-regexp-alist-alist):
	In aix, ftnchek, mips-1, mips-2, perl, sun, 4bsd entries add ".*" so
	as to match in the middle of a line, now that there's a "^" anchor is
	again enforced by compilation-mode-font-lock-keywords.  These patterns
	were otherwise failing to match anything at all.
	In the 4bsd entry remove the "^" from inside the \\(\\) grouping since
	it's now unnecessary and since inside a group it isn't recognised by
	the omake indentation hack in compilation-mode-font-lock-keywords
	(meaning it wouldn't work with indentation).

[compile.el.cope-with-anchoring.diff (text/x-diff, attachment)]
[Message part 3 (text/plain, inline)]


In GNU Emacs 23.1.50.4 (i586-pc-linux-gnu, GTK+ Version 2.16.4)
 of 2009-07-24 on blah.blah
configured using `configure  'CFLAGS=-O -g' '--prefix=/down/emacs/b/inst' '--with-x-toolkit=gtk''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_AU
  value of $XMODIFIERS: nil
  locale-coding-system: iso-latin-1-unix
  default-enable-multibyte-characters: t

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3928; Package emacs. (Mon, 27 Jul 2009 01:20:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kevin Ryde <user42 <at> zip.com.au>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 27 Jul 2009 01:20:05 GMT) Full text and rfc822 format available.

Message #10 received at 3928 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Kevin Ryde <user42 <at> zip.com.au>
To: 3928 <at> debbugs.gnu.org
Subject: Re: bug#3928: compilation-mode not matching perl and more [regression]
Date: Mon, 27 Jul 2009 11:13:07 +1000
[Message part 1 (text/plain, inline)]
The ada entry is afflicted too (it's supposed to match the second part
of its compilation.txt, its first part is matched by the gnu pattern).
So,

2009-07-27  Kevin Ryde  <user42 <at> zip.com.au>

	* progmodes/compile.el (compilation-error-regexp-alist-alist):
	In ada, aix, ftnchek, mips-1, mips-2, perl, sun, 4bsd entries add ".*"
	so as to match in the middle of a line, now that there's a "^" anchor
	is again enforced by compilation-mode-font-lock-keywords.  These
	patterns were otherwise failing to match anything at all.
	In the 4bsd entry remove the "^" from inside the \\(\\) grouping since
	it's now unnecessary and since inside a group it isn't recognised by
	the omake indentation hack in compilation-mode-font-lock-keywords
	(meaning it wouldn't work with indentation).

[compile.el.cope-with-anchoring-2.diff (text/x-diff, attachment)]

Merged 3928 4689. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Mon, 12 Oct 2009 16:30:06 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3928; Package emacs. (Mon, 12 Oct 2009 19:40:06 GMT) Full text and rfc822 format available.

Message #15 received at 3928 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Sam Steingold <sds <at> gnu.org>
Cc: 3928 <at> debbugs.gnu.org
Subject: changes to compilation-mode
Date: Mon, 12 Oct 2009 15:34:51 -0400
Hi. This change:

2009-07-10  Sam Steingold  <sds at gnu.org>

   * progmodes/compile.el (compilation-mode-font-lock-keywords): Omake
   sometimes indents the errors it prints, so allow all regexps to
   start with spaces.

seems to cause issues with several of the existing compilation error
regexps.

See

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3928

Please could you comment on / fix this?

I think it would be better not to have to change a bunch of the
existing regexps.



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3928; Package emacs. (Mon, 12 Oct 2009 21:15:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sam Steingold <sds <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 12 Oct 2009 21:15:04 GMT) Full text and rfc822 format available.

Message #20 received at 3928 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Sam Steingold <sds <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 3928 <at> debbugs.gnu.org
Subject: Re: changes to compilation-mode
Date: Mon, 12 Oct 2009 17:06:06 -0400
Hi, I fixed this in the CVS.
Sorry about the problem.

-- 
Sam Steingold <http://sds.podval.org>



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3928; Package emacs. (Tue, 13 Oct 2009 01:10:06 GMT) Full text and rfc822 format available.

Message #23 received at 3928 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Sam Steingold <sds <at> gnu.org>
Cc: 3928 <at> debbugs.gnu.org
Subject: Re: changes to compilation-mode
Date: Mon, 12 Oct 2009 21:02:41 -0400
Sam Steingold wrote:

> Hi, I fixed this in the CVS.

Thanks. In:

(= ?* (aref pat 1))

I guess it is supposed to be `(aref pat 2)'?



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3928; Package emacs. (Tue, 13 Oct 2009 03:05:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sam Steingold <sds <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 13 Oct 2009 03:05:06 GMT) Full text and rfc822 format available.

Message #28 received at 3928 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Sam Steingold <sds <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 3928 <at> debbugs.gnu.org
Subject: Re: changes to compilation-mode
Date: Mon, 12 Oct 2009 22:59:46 -0400
On Mon, Oct 12, 2009 at 9:02 PM, Glenn Morris <rgm <at> gnu.org> wrote:
>
> (= ?* (aref pat 1))
>
> I guess it is supposed to be `(aref pat 2)'?

oops. fixed. sorry.


-- 
Sam Steingold <http://sds.podval.org>



Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Tue, 13 Oct 2009 03:45:06 GMT) Full text and rfc822 format available.

Notification sent to Kevin Ryde <user42 <at> zip.com.au>:
bug acknowledged by developer. (Tue, 13 Oct 2009 03:45:07 GMT) Full text and rfc822 format available.

Message #33 received at 3928-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 3928-done <at> debbugs.gnu.org
Subject: Re: Bug#3928
Date: Mon, 12 Oct 2009 23:39:58 -0400
Fixed by this change:

2009-10-12  Sam Steingold  <sds at gnu.org>

* progmodes/compile.el (compilation-mode-font-lock-keywords): Do not
  prepend "^ *" to non-anchored patterns, like the perl one (bug#3928).



Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Tue, 13 Oct 2009 03:45:08 GMT) Full text and rfc822 format available.

Notification sent to LanX <lanx.perl <at> googlemail.com>:
bug acknowledged by developer. (Tue, 13 Oct 2009 03:45:09 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Tue, 10 Nov 2009 15:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 228 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.