Re: [racket-users] Re: find-expr: find a corresponding expression in the definition window

2020-08-31 Thread Robby Findler
That's a nice idea! The code that calls current-print can check to see if the function accepts a specific keyword parameter and, if it does, supply it with a srcloc. Robby On Mon, Aug 31, 2020 at 2:38 PM Greg Hendershott wrote: > I might be misunderstanding and the following isn't some

[racket-users] Re: find-expr: find a corresponding expression in the definition window

2020-08-31 Thread Greg Hendershott
I might be misunderstanding and the following isn't some fully-thought-out proposal, but: IIUC both #%module-begin and read-eval-print-loop use current-print. What if current-print accepted a new, optional srcloc parameter? And the default #%module-begin were changed to supply this? That way,