From: ludo@gnu.org (Ludovic Courtès)
To: guile-devel@gnu.org
Subject: Re: psyntax error reporting bug
Date: Sun, 18 Oct 2009 23:41:35 +0200 [thread overview]
Message-ID: <87pr8k752o.fsf@gnu.org> (raw)
In-Reply-To: 2bc5f8210910181358s79754b98uad8268fc9d267d8c@mail.gmail.com
Hello!
Julian Graham <joolean@gmail.com> writes:
> I'm no psyntax expert, but it looks like there's a minor typo in our
> psyntax implementation. In psyntax.scm, at line 1325 (in
> `chi-macro'), the expression:
>
> (syntax-violation #f "encountered raw symbol in macro output"
> (source-wrap e w s mod) x)
>
> ...should read:
>
> (syntax-violation #f "encountered raw symbol in macro output"
> (source-wrap e w (wrap-subst w) mod) x)
>
> ...since `s' is not actually in scope
I actually noticed that when testing ‘-Wunbound-variable’:
ice-9/psyntax-pp.scm:1089:38: warning: possibly unbound variable `s'
But I didn’t take the time to investigate, so I’m glad you did. :-)
> -- which, with the former code, generates an error that obscures the
> actual syntax violation. I can prepare a patch if people want.
Andy is the expert, but I think such a patch can’t hurt, so please do!
Thanks,
Ludo’.
next prev parent reply other threads:[~2009-10-18 21:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-18 20:58 psyntax error reporting bug Julian Graham
2009-10-18 21:41 ` Ludovic Courtès [this message]
2009-10-18 22:05 ` Julian Graham
2009-10-19 19:25 ` Andy Wingo
2009-10-19 20:46 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pr8k752o.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).