Thanks Gert. 

Rather than going to 0.85 beta, I stuck with 0.84. 
To get next-error to work, I modified the regex in emacs to allow for
whitespaces.  

Eg, in my .emacs file

(setq-default compilation-error-regexp-alist
;       (append 
 '(

 ;; [ \t]* handles whitespace at beginning of line (for nant output)
 ;; 
 ;C# Compiler
 ;t.cs(6,18): error SC1006: Name of constructor must match name of class
 ;
 ("[
\t]*\\(\\([_a-zA-Z:\]:\\)?[^:(\t\n]+\\)(\\([0-9]+\\)[,]\\([0-9]+\\)):
\\(error\\|warning\\) CS[0-9]+:" 1 3 4)

 )
;  compilation-error-regexp-alist)
)

 
This worked, and I found no ill effects.   No changes to nant. 
You'd have to make similar regex changes for the J#, JavaScript and C++
compilers. Eg

 ; Microsoft JVC:
 ;sample.java(6,1) : error J0020: Expected 'class' or 'interface'
 ("[ \t]*\\(\\([a-zA-Z]:\\)?[^:(\t\n]+\\)(\\([0-9]+\\)[,]\\([0-9]+\\)) :
\\(error\\|warning\\) J[0-9]+:" 1 3 4)

 ; Microsoft C/C++:
 ;  keyboard.c(537) : warning C4005: 'min' : macro redefinition
 ;  d:\tmp\test.c(23) : error C2143: syntax error : missing ';' before
'if'
 ;VC EEi
 ;e:\projects\myce40\tok.h(85) : error C2236: unexpected 'class' '$S1'
 ;myc.cpp(14) : error C3149: 'class System::String' : illegal use of
managed type 'String'; did you forget a '*'?
    ("[ \t]*\\(\\([a-zA-Z]:\\)?[^:(\t\n]+\\)(\\([0-9]+\\)) \
: \\(error\\|warning\\) C[0-9]+:" 1 3)

Etc. 

Maybe it will be helpful for others. . . 

-Dino 


-----Original Message-----
From: Gert Driesen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 05, 2004 4:12 AM
To: Dino Chiesa; [EMAIL PROTECTED]
Subject: Re: [Nant-users] nant + emacs

Hi Dino,

Currently, in emacs mode no prefix string is generated for all build
output.

In non-emacs mode, you'd get this :

      [msi] Building MSI Database 'NAnt-TestMSI.msi'.
      [msi] Adding Properties:
      [msi]  ProductName

while in emacs mode, you'd get the following output :

Building MSI Database 'NAnt-TestMSI.msi'.
Adding Properties:
ProductName

Hope this helps,

Gert

----- Original Message -----
From: "Dino Chiesa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 04, 2004 4:48 AM
Subject: [Nant-users] nant + emacs


When I run a nant build within emacs, the CSC errors are not available
in emacs' "next-error" function.
has someone done this already?

What is the -emacs mode ?

thanks



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to