[racket-users] Re: auto-indentation... off by one^H^H^Hsome?

2020-03-20 Thread Robby Findler
Looks like you need a display or the text gets confused about how big (in pixels) characters really are: #lang racket/gui (require framework) (define f (new frame% [label ""])) (define t (new racket:text%)) (define ec (new editor-canvas% [parent f] [editor t])) (send t insert "(+3\n4)")

Re: [racket-users] Re: auto-indentation... off by one^H^H^Hsome?

2020-03-20 Thread Benjamin Lerner
In my auto-indenter and style checker (not yet a package that’s widely available): evidently, there are some preferences that control which constructs get tabified differently than expected. So I tweak those preferences before invoking |tabify-all|. (In my case, I’m trying to support two

[racket-users] Re: auto-indentation... off by one^H^H^Hsome?

2020-03-20 Thread 'John Clements' via Racket Users
That actually solves a bunch of problems for me… but strangely, not the initial one. If, for instance, I tabify (+ 3 4) using the tabify-all method, the line with the four gets an indentation of 2, not 8. This is definitely different from DrRacket’s behavior. Any idea how to fix this?