gfb
2022-1-9 22:55:37

@robby what’s the purpose of exporting the framework text: range functions in: (define-signature text-basic-functions^ (range? range-start range-end range-caret-space? range-style range-color lookup-port-name))


gfb
2022-1-9 23:03:33

Oh, without some accessors (send a-text:basic get-highlighted-ranges) → (listof text:range?) is pointless, and those are exactly the fields used in text-delegate.rkt to reference all the ranges and send them to be unhighlighted in set-delegate. Could that just use unhighlight-ranges with (lambda _ #t) .


gfb
2022-1-9 23:08:23

Ultimately, I’m returning to my tightlight tool and want the least hacky and most illustrative way to implement it before documenting and publishing an implementation (of possibly reduced functionality).


gfb
2022-1-9 23:09:57

So asking more about the spirit of the implementation of text-basic.rkt.


robby
2022-1-10 00:32:23

Yes I think that’s it.


robby
2022-1-10 00:32:44

How can I help?