You want to use syntax/loc. The error message comes from the lambda,
not from the keyword argument. It could be possible to change where
lambda looks for the error srcloc, but if you don't want to do that,
you can just use syntax/loc in the right spot:

http://pasterack.org/pastes/77933

On Wed, Mar 8, 2017 at 1:28 PM, Dan Liebgold
<dan_liebg...@naughtydog.com> wrote:
> I have a syntax transformer that loses enough syntax context that it's error 
> message points to the transformer rather than the usage. Here's an example of 
> what it should do:
>
> http://pasterack.org/pastes/89138
>
> This one gives correct syntax in the error message (not in pasterack, but in 
> Dr Racket), but I have code that appears identical in all important ways that 
> only gives context inside transformer.
>
> What could cause this usage to lose context?
>
> Thanks,
> Dan
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
-=[     Jay McCarthy               http://jeapostrophe.github.io    ]=-
-=[ Associate Professor        PLT @ CS @ UMass Lowell     ]=-
-=[ Moses 1:33: And worlds without number have I created; ]=-

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to