Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?

2015-04-13 Thread 'John Clements' via users-redirect
On Apr 13, 2015, at 10:26 AM, Robby Findler ro...@eecs.northwestern.edu wrote: You could just make delete-trailing-whitespace a keyboard shortcut instead. Another approach would be to add a mode that colors trailing whitespace in that ugly greeny/yellowy color that DrRacket uses for the

Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?

2015-04-13 Thread Benjamin Greenman
On Mon, Apr 13, 2015 at 1:51 PM, 'John Clements' via users-redirect us...@plt-scheme.org wrote: On Apr 13, 2015, at 10:26 AM, Robby Findler ro...@eecs.northwestern.edu wrote: You could just make delete-trailing-whitespace a keyboard shortcut instead. Another approach would be to add a

Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?

2015-04-13 Thread Jon Zeppieri
So, just to be clear, because there have been a number of +1s for a whitespace-highlighting feature: that's not what I'm doing. A bunch of people want that, so someone should write it, but I'm not going in that direction. (In fact, one of my emacs configurations does this in ruby-mode, and I keep

Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?

2015-04-13 Thread Neil Van Dyke
After editing a Racket source file in DrRacket, I usually end up going into Emacs to clean up formatting of the code and comments. This is a combination of `quack-tidy-buffer` (see docs below), semi-automated re-filling of any messy comment/docs, adjusting of line breaks in ways that are

Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?

2015-04-13 Thread Greg Hendershott
Another approach would be to add a mode that colors trailing whitespace in that ugly greeny/yellowy color that DrRacket uses for the your code is more than 102 columns warning. +1 to this. I think I’d definitely like this independent of a mechanism to trim on save. +1 Also +1. This is

Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?

2015-04-13 Thread Robby Findler
You could just make delete-trailing-whitespace a keyboard shortcut instead. Another approach would be to add a mode that colors trailing whitespace in that ugly greeny/yellowy color that DrRacket uses for the your code is more than 102 columns warning. Robby On Mon, Apr 13, 2015 at 12:06 PM,

Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?

2015-04-13 Thread Jon Zeppieri
On Mon, Apr 13, 2015 at 1:06 PM, John Clements cleme...@brinckerhoff.org wrote: On Apr 13, 2015, at 2:29 AM, Jon Zeppieri zeppi...@gmail.com wrote: It's supposed to have the same effect as emacs's `delete-trailing-whitespace`. I still need to add a preference setting to turn it on or off.

Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?

2015-04-13 Thread Robby Findler
Preferences are here for the prefs library: http://docs.racket-lang.org/framework/Preferences__Textual.html and here for adding check boxes to the prefs dialog:

Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?

2015-04-13 Thread Jon Zeppieri
On Mon, Apr 13, 2015 at 1:27 PM, Robby Findler ro...@eecs.northwestern.edu wrote: Preferences are here for the prefs library: http://docs.racket-lang.org/framework/Preferences__Textual.html and here for adding check boxes to the prefs dialog:

Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?

2015-04-13 Thread Jon Zeppieri
Robby, This is my first crack at a DrRacket tool (not to mention an uncommon foray into Racket's class system), so what I'm doing may not be... sane. But if you're willing to take a look: [https://github.com/97jaz/drwhitespace]. At any rate, it isn't a lot of code. I based the general structure

Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?

2015-04-13 Thread 'John Clements' via users-redirect
On Apr 13, 2015, at 2:29 AM, Jon Zeppieri zeppi...@gmail.com wrote: Robby, This is my first crack at a DrRacket tool (not to mention an uncommon foray into Racket's class system), so what I'm doing may not be... sane. But if you're willing to take a look:

Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?

2015-04-12 Thread Jon Zeppieri
If you mean: don't remove entire lines that consist of only whitespace, then I agree. If you mean: don't remove any trailing whitespace from lines that consist only of whitespace, then I do not. -Jon On Sun, Apr 12, 2015 at 7:01 PM, Alexis King lexi.lam...@gmail.com wrote: If you decide to do

[racket-users] DrRacket plugin to remove trailing whitespace on save?

2015-04-12 Thread Jon Zeppieri
Does such a think already exist? -Jon -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit

Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?

2015-04-12 Thread Robby Findler
No but Max changed the way return works so there should be less whitespace added going forward. Writing a script to trim whitespace from line-endings would work well if it were to use text% IMO. Use load-file to get a file and then the paragraph methods to find line endings and then delete stuff