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
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"
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
participants (2)
-
Bjarte M. Oestvold -
Sigbjorn Finne