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 <greghendersh...@gmail.com>
wrote:

> 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, a print handler for a plain-text tool^1 could use the srcloc to
> create some sort of "link", as well as Racket GUI tools like DrRacket using
> it to create some fancier UI.
>
> ^1: This includes TUI tools like emacs, as well as GUI tools like vscode
> using a text serialization format like JSON.
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/6e1d2180-288d-4789-88fc-2980aaf03650o%40googlegroups.com
> <https://groups.google.com/d/msgid/racket-users/6e1d2180-288d-4789-88fc-2980aaf03650o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAL3TdOPY-GwNOE87Wa5C6hEx8Q9bPARWUdD29RVSmg8oXJMucQ%40mail.gmail.com.

Reply via email to