GNU bug report logs - #8585
23.3; Feature Request/"patch": allow initial tabs for python tracebacks

Previous Next

Package: emacs;

Reported by: Dave Abrahams <dave <at> boostpro.com>

Date: Fri, 29 Apr 2011 15:17:02 UTC

Severity: wishlist

Found in version 23.3

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: Dave Abrahams <dave <at> boostpro.com>, 8585 <at> debbugs.gnu.org
Subject: bug#8585: 23.3; Feature Request/"patch": allow initial tabs for python tracebacks
Date: Sun, 08 May 2011 23:11:55 +0200
Chong Yidong <cyd <at> stupidchicken.com> writes:

> Dave Abrahams <dave <at> boostpro.com> writes:
>
>> I have some tools that produce python tracebacks, but they add an
>> initial tab.  BuildBot is one example.
>
>>      (caml
>> -     "^ *File \\(\"?\\)\\([^,\" \n\t<>]+\\)\\1, lines? \\([0-9]+\\)-?\\([0-9]+\\)?\\(?:$\\|,\
>> +     "^\s-*File \\(\"?\\)\\([^,\" \n\t<>]+\\)\\1, lines? \\([0-9]+\\)-?\\([0-9]+\\)?\\(?:$\\|,\
>>  \\(?: characters? \\([0-9]+\\)-?\\([0-9]+\\)?:\\)?\\([ \n]Warning:\\)?\\)"
>>       2 (3 . 4) (5 . 6) (7))
>
> Shouldn't it be `[\s-]*' rather than `\s-*'?

Rather "\\s-*".  Surely you don't want to match "-".

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




This bug report was last modified 14 years and 28 days ago.

Previous Next


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