marsmxm
2021-11-12 14:06:40

@marsmxm has joined the channel


greg
2021-11-12 14:50:29

If I do (send (new racket:text%) find-up-sexp 0), where the heck is the definition of that find-up-sexp method? I seem to be lost in a sea of repos, packages, interfaces, classes, and mixins. :sadpanda: For example https://github.com/search?q=org%3Aracket+find-up-sexp&type=code shows some uses but AFAICT not the definition.


mflatt
2021-11-12 14:52:44

It’s in “gui-lib/framework/private/racket.rkt”. It looks like search found that file, but didn’t show the definition.


ben.knoble
2021-11-12 14:59:11

git grep is a good friend if you have the repos locally


greg
2021-11-12 15:07:41

Thank you! I do most of the repos local and did a ripgrep but I must have fubared that.


greg
2021-11-12 15:09:05

@mflatt Why I ask is I discovered the scribble/at-exp indenter wants two more methods on the color-text-like object (like the one in expeditor): get-character and find-up-exp. The former is trivial. The latter I’m not sure from the doc alone I wanted to see a reference implementation.


greg
2021-11-12 15:18:39

Hmm it looks like find-up-sexp makes use of quite a few other methods defined there, as well as inherited.


vanessaco
2021-11-12 17:25:18

@vanessaco has joined the channel


srinivasans77
2021-11-12 19:31:51

@srinivasans77 has joined the channel