laurent.orseau
2020-3-6 17:40:47

@robby Is there a way to remove the behaviour “When typing a closing parenthesis, if the next character is a bracket, just move the cursor over it.”? I still want bracket matching when closing a bracket though.

For example, the current behaviour of automatic parenthesis in comments is incorrect. Try the following: (define (f x) #f ; On the next line, type an open paren, then a close paren. ; ) When typing the closing parenthesis, it jumps to the last parenthesis of the code, thinking that’s already closed.


laurent.orseau
2020-3-6 17:44:13

Currently my workaround is to first type a period, go back one character, then type the closing parenthesis (usually after trying first without the period)—not really ideal.


laurent.orseau
2020-3-6 17:54:12

My current fix is emacs in the terminal + racket mode :smile:


robby
2020-3-6 19:56:14

I don’t think that there are any relevant, existing knobs for that.


robby
2020-3-6 19:56:40

I have not really taken ownership of that mode (in the sense that I work with it regularly and try to keep it polished up).


robby
2020-3-6 19:56:54

So it might possibly be reasonable to consider that behavior a bug?


robby
2020-3-6 19:57:20

I do think that the “smarts” in drracket about match parens is basically disabled inside comments


robby
2020-3-6 19:57:28

so it may make sense to turn off the automatic matching behavior there.


robby
2020-3-6 19:58:02

(I’m not sure how hard it is trying to do a good job inside comments so this may even just be a straight-up bug where the code isn’t doing what its original author intended.)


robby
2020-3-6 19:58:08

Sorry I’m not so definitive here.


spdegabrielle
2020-3-6 20:03:50

Where would I find it? In DrRacket code? Or framework?


spdegabrielle
2020-3-6 20:05:22

@laurent.orseau @robby not promising anything just might take a peek


robby
2020-3-6 20:05:42

framework I think


robby
2020-3-6 20:05:49

racket mode keybindings I think


robby
2020-3-6 20:05:52

thanks!


spdegabrielle
2020-3-6 20:07:16

Thank you!


laurent.orseau
2020-3-6 20:40:04

Thank you both. I may take a look too if I find the time.