Subject: bug#4689 closed by Glenn Morris <[email-masked]> (Re: Bug#3928)

From: [email-masked] (Emacs bug Tracking System)
Date: Tue, 13 Oct 2009 03:45:09 +0000

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#3928: 23.1.50; Matching of error lines in *compilation* buffer is broken  for perl-files

It has been closed by Glenn Morris <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Glenn Morris <[email-masked]> by
replying to this email.

-- 
3928: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3928
Emacs Bug Tracking System
Contact [email-masked] with problems

Subject: Re: Bug#3928
From: Glenn Morris <[email-masked]>
To: [email-masked]
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).

Subject: 23.1.50; Matching of error lines in *compilation* buffer is broken for perl-files
From: LanX <[email-masked]>
To: [email-masked]
Cc: [email-masked], Roland McGrath <[email-masked]>, Daniel Pfeiffer <[email-masked]>
Date: Fri, 9 Oct 2009 15:40:36 +0200

> Please describe exactly what actions triggered the bug
> and the precise symptoms of the bug:

- Installing emacs 23
- Loading perl-code with errors
- M-x mode-compile

- Effect: The errorlines, filenames and linenumbers are not recognized or
activated in *compilation*

No problem whatsoever with emacs 22 and the same configs!

The problem didn't occure while compiling sh or python files!!!

The problem was reproducible on different machines with Ubuntu 8.04 and 8.10
but not with Windows XP, all with default installation with German
localization.

It was reported NOT to happen with Ubuntu 9.04 on an american machine.

For detailed discussion including a WORKING REGEX-PATCH for mode-compile.el
please look at:

-->
http://groups.google.de/group/gnu.emacs.help/browse_thread/thread/c1a62e304177fefe/9a28488347dd77e7#9a28488347dd77e7

-->
http://groups.google.com/group/emacs-perl-intersection/browse_thread/thread/328823127d1f8b7/8adaceafa79cc216#8adaceafa79cc216

DIAGNOSIS: It seems like the handling of regexes in compile.el changed
considerably from
22 to 23, breaking compatibility with mode-compile.el!!!

A sample perl code to produce 4 error-lines is:
-------------------
use strict;
$a=A;
print $a;
$a=A;
$a=A;
$a=A;
--------------------

> If Emacs crashed ....

No crash!

In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4)
 of 2009-10-08 on nc10-ubuntu
Windowing system distributor `The X.Org Foundation', version 11.0.10502000
configured using `configure  '--prefix=/home/lanx/lib/emacs-cvs''

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: de_DE.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Perl

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x m o d e - c o m p i l <tab> <return> <return> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu>
<send-emacs-bug-report>

Recent messages:
loading debug.el
leaving debug.el
For information about GNU Emacs and the GNU system, type C-h C-a.
Use M-x make-directory RET RET to create the directory and its parents [2
times]
lade mode-compile.el
Loading cl-macs...done
Loading `mode-compile': old-style backquotes detected!
mode-compile: Compiling in Perl mode ... M-x mode-compile-kill to kill.
(No files need saving)
Compilation exited abnormally with code 255

Load-path shadows:
/home/lanx/lib/emacs-cvs/share/emacs/23.1.50/lisp/progmodes/cperl-mode hides
/home/lanx/.emacs.d/debug/cperl-mode