GNU bug report logs - #3613
[PATCH] Allow trailing spaces and " -" in filenames for the compile output parser

Previous Next

Package: emacs;

Reported by: Laurence Darby <ldarby <at> tuffmail.com>

Date: Fri, 19 Jun 2009 01:15:04 UTC

Severity: normal

Tags: wontfix

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.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 3613 in the body.
You can then email your comments to 3613 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#3613; Package emacs. (Fri, 19 Jun 2009 01:15:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Laurence Darby <ldarby <at> tuffmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 19 Jun 2009 01:15:05 GMT) Full text and rfc822 format available.

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

From: Laurence Darby <ldarby <at> tuffmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Allow trailing spaces and " -" in filenames for the compile
 output parser
Date: Fri, 19 Jun 2009 02:07:35 +0100

Hi,

I actually have a lot of files that have " -" in the names, this patch
fixes it for me.  If anyone understands this regex (I don't really,
just kept changing it till it worked), can you see if the change breaks
anything else?

Thanks,
Laurence

(Please CC me on replies, I'm not subscribed, thanks)

---
 lisp/progmodes/compile.el |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 11428d2..328f31f 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -245,11 +245,9 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1))
      ;; line number starts with "SS".  --Stef
 
      ;; The core of the regexp is the one with *?.  It says that a file name
-     ;; can be composed of any non-newline char, but it also rules out some
-     ;; valid but unlikely cases, such as a trailing space or a space
-     ;; followed by a -.
+     ;; can be composed of any non-newline char.
      "^\\(?:[[:alpha:]][-[:alnum:].]+: ?\\)?\
-\\([0-9]*[^0-9\n]\\(?:[^\n ]\\| [^-/\n]\\)*?\\): ?\
+\\([0-9]*[^0-9\n]\\(?:[^\n]\\| [^/\n]\\)*?\\): ?\
 \\([0-9]+\\)\\(?:\\([.:]\\)\\([0-9]+\\)\\)?\
 \\(?:-\\([0-9]+\\)?\\(?:\\.\\([0-9]+\\)\\)?\\)?:\
 \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\
-- 
1.6.2.2





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3613; Package emacs. (Sat, 27 Jun 2009 01:15:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 27 Jun 2009 01:15:04 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Laurence Darby <ldarby <at> tuffmail.com>
Cc: 3613 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#3613: [PATCH] Allow trailing spaces and " -" in filenames for the compile output parser
Date: Sat, 27 Jun 2009 03:13:29 +0200
> I actually have a lot of files that have " -" in the names, this patch
> fixes it for me.  If anyone understands this regex (I don't really,
> just kept changing it till it worked), can you see if the change breaks
> anything else?

Your change turns the (core of) regexp back to just ".*?" as it was in
the past.  We disallowed trailing spaces as well as " -" because they
lead to false positives in some cases.
There's no way to win in all cases, sadly.


        Stefan




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3613; Package emacs. (Sat, 27 Jun 2009 01:15:10 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 27 Jun 2009 01:15:10 GMT) Full text and rfc822 format available.

Added tag(s) wontfix. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Wed, 04 Nov 2009 22:10:08 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 3613 <at> debbugs.gnu.org and Laurence Darby <ldarby <at> tuffmail.com> Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 17 Sep 2011 06:20:10 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 15 Oct 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 311 days ago.

Previous Next


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