Re: [racket-users] DrRacket stubbornly indents code as if it were Racket

2015-06-30 Thread Robby Findler
Hi Yuhao: The Scribble indentation mode is currently implemented by adding a keymap that overrides the tab key. You can find the implementation here of the callback itself here: https://github.com/racket/gui/blob/master/gui-lib/scribble/private/indentation.rkt and the code that communicates with

Re: [racket-users] DrRacket stubbornly indents code as if it were Racket

2015-06-16 Thread Matthias Felleisen
t > mode. > > > > From: gust...@oma.org.ar > > Date: Tue, 16 Jun 2015 10:22:43 -0300 > > Subject: Re: [racket-users] DrRacket stubbornly indents code as if it were > > Racket > > To: yd2d...@uwaterloo.ca > > CC: racket-users@googlegroups.com > >

RE: [racket-users] DrRacket stubbornly indents code as if it were Racket

2015-06-16 Thread Yuhao Dong
I'm clearly referring to the mechanism in which a #lang can tell DrRacket to use a different indenting mode in "Racket mode", not anything to do with text mode. > From: gust...@oma.org.ar > Date: Tue, 16 Jun 2015 10:22:43 -0300 > Subject: Re: [racket-users] DrRacket st

Re: [racket-users] DrRacket stubbornly indents code as if it were Racket

2015-06-16 Thread Gustavo Massaccesi
You can select the "text mode" in the menu Edit>Modes(near the bottom)>Text mode It disables indentation, but it may disable too many features. For example it disables also parens matching :( . And it also disables background syntax expansion, but you can still use the "check syntax" button m

[racket-users] DrRacket stubbornly indents code as if it were Racket

2015-06-15 Thread Yuhao Dong
Greetings Racketeers, I'm trying to make my own #lang that has a non-sexp syntax, like Scribble. However, the problem is the DrRacket always tries to indent my code as if it were Racket, which is extremely unusable and annoying. Since changing DrRacket's indenting behaviors seems undocumented, I