libera/#clim - IRC Chatlog
Search
6:51:44
lukego
I'd like to write a function "(PRESENT-FOR-EMACS object) => svg-string, metadata" that could be called on e.g. every REPL result to get a graphical CLIM representation e.g. to show as a tooltip on the ordinary textual value. Is this a sensible thing to do from the CLIM perspective? I'm thinking it's a bit funny not specifying a presentation type but PRESENTATION-TYPE-OF for DWIM should be reasonable in this context.
6:54:22
lukego
Maybe all I'm describing is PRESENT wrapped in a suitable stream like (CLIMI::WITH-OUTPUT-TO-DRAWING-STREAM (*standard-output* :svg nil) (PRESENT object)) which would basically give me what I want...?
6:56:38
lukego
I looked at the "simpleminded REPL from scratch" example but that doesn't seem to be doing automatic coercion of REPL results into CLIM presentations. So far I didn't identify any objects that actually do yield graphical representations in this way, which makes me wonder if PRESENTATION-TYPE-OF is really a thing in practice...??