Quoted filenames in error msgs

Sigbjorn Finne sof@galconn.com
Mon, 17 Sep 2001 14:50:12 -0700


Hi,

I'll happily commit a change which does this (i.e., by inserting
d-quotes around the printing of 'scriptFile' in errHead()), unless
there are any objections to quoting the filename.

--sigbjorn

----- Original Message ----- 
From: "Bjarte M. Oestvold" <Bjarte.M.Oestvold@nr.no>
To: <hugs-users@haskell.org>
Sent: Monday, September 17, 2001 09:44
Subject: Quoted filenames in error msgs


> Is there a way to force Hugs (Feb 2001 or CVS) to quote filenames in
> errors messages, e.g., I want
> 
>     ERROR "/nr/user/bjarte/tmp/foo/A.hs":1 - ...
> 
> instead of
> 
>     ERROR /nr/user/bjarte/tmp/foo/A.hs:1 - ...
> 
> The reason I want this is to make Emacs & Haskell mode (version 1.41)
> happy when parsing error messages -- it expects messages to have
> quoted filenames.
> 
> Of course, one could attempt to handle this on the ELisp side, but it
> gets messy allowing for spaces, quotes or colons in filenames, ...
> (and regexps drives me nuts after having used parsing combinators :)
> 
> In the archives of hugs-{bugs|users} there are discussions of a
> related problem in *invoking* editors from Hugs, but unless I've
> misunderstood something this does not help here.
> 
> Cheers,
> -- 
>   Bjarte
> 
> _______________________________________________
> Hugs-Users mailing list
> Hugs-Users@haskell.org
> http://www.haskell.org/mailman/listinfo/hugs-users