Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?
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 meaning to find the setting to turn it off. Whenever the highlight appears, I compulsively save the buffer just to strip the whitespace and get rid of the highlight.) -Jon On Mon, Apr 13, 2015 at 9:13 PM, Neil Van Dyke wrote: > 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 easier to do > with Emacs's richer editing controls, and any checking and moving stuff > around and such that's easier to see/manipulate in an Emacs window than a > DrRacket window. > > It *might* be nice if DrRacket did some no-brainer whitespace cleanup on > manual file saves (e.g., remove trailing whitespace at end of lines and end > of file, force newline at end of file). But, in my case, I'm going to have > to clean up the file in Emacs anyway, so I'm indifferent. > > An DrRacket editor indicator of irrelevant whitespace at end of lines would > probably be a distraction that I would disable. > >> quack-tidy-buffer is an interactive compiled Lisp function in `quack.el'. >> >> (quack-tidy-buffer) >> >> Tidy the formatting of the current Scheme buffer. >> >> This reindents, converts tabs to spaces, removes trailing whitespace on >> lines, >> removes formfeed characters, removes extraneous blank lines, and makes >> sure >> the buffer ends with a newline. >> >> This can conceivably corrupt multi-line string literals, but not in any >> way >> they wouldn't be corrupted by Usenet, various mailers, typesetting for >> print, >> etc. >> >> This may also result in large diffs when the tidied file is commited back >> to a >> version control or configuration management system. Consider making a VC >> or CM >> delta that consists only of changes made by `quack-tidy-buffer'. > > > Neil V. > > > -- > 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 https://groups.google.com/d/optout. -- 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 https://groups.google.com/d/optout.
Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?
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 easier to do with Emacs's richer editing controls, and any checking and moving stuff around and such that's easier to see/manipulate in an Emacs window than a DrRacket window. It *might* be nice if DrRacket did some no-brainer whitespace cleanup on manual file saves (e.g., remove trailing whitespace at end of lines and end of file, force newline at end of file). But, in my case, I'm going to have to clean up the file in Emacs anyway, so I'm indifferent. An DrRacket editor indicator of irrelevant whitespace at end of lines would probably be a distraction that I would disable. quack-tidy-buffer is an interactive compiled Lisp function in `quack.el'. (quack-tidy-buffer) Tidy the formatting of the current Scheme buffer. This reindents, converts tabs to spaces, removes trailing whitespace on lines, removes formfeed characters, removes extraneous blank lines, and makes sure the buffer ends with a newline. This can conceivably corrupt multi-line string literals, but not in any way they wouldn't be corrupted by Usenet, various mailers, typesetting for print, etc. This may also result in large diffs when the tidied file is commited back to a version control or configuration management system. Consider making a VC or CM delta that consists only of changes made by `quack-tidy-buffer'. Neil V. -- 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 https://groups.google.com/d/optout.
Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?
>> > 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 like Emacs' `show-trailing-whitespace', which I enable for most prog modes. Things like trailing whitespace, or files not ending with a newline, cause Git noise. It's nice to clean them up. However I've found it problematic to change them automagically (and especially on save), as opposed to me doing it deliberately and with review. For example from using `show-trailing-whitespace' I can report there's a lot of it in Racket sources. But it might be nicer to have commits dedicated to removing it (maybe even for whole repos at once), as opposed to the cleanups being sprinkled among many commits intended to accomplish other things? Just a thought. -- 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 https://groups.google.com/d/optout.
Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?
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 > 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 "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 > Robby > > > > On Mon, Apr 13, 2015 at 12:06 PM, 'John Clements' via users-redirect > > wrote: > >> > >> On Apr 13, 2015, at 2:29 AM, Jon Zeppieri 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: > >>> [https://github.com/97jaz/drwhitespace]. At any rate, it isn't a lot > >>> of code. I based the general structure on Asumu Takikawa's > >>> drracket-vim-tool. > >>> > >>> 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. (Maybe > >>> that should be based on the editor's mode?) > >> > >> I’d really like to use this tool. > >> > >> Here’s one problem that I see: there’s a hidden invariant in DrRacket > (and all editors) that when a buffer is unchanged, saving it won’t change > the file on disk. Actually, I think you can state this in a bunch of > different ways. I forsee hard-to-understand errors arising from a silent > change-on-save (unless I’m misreading your code?). Personally, I think I’d > be more likely to use a tool that requests permission to scrub trailing > whitespace when saving a file. I also think that this should probably be > limited to racket and scribble files, and I’m guessing that the easiest way > to distinguish these would be to use the filename extension. > >> > >> Please don’t let me stop you from doing this, though, this is something > I’ve wanted for quite a while! > >> > >> Many thanks, > >> > >> John > >> > >>> > >>> -Jon > >>> > >>> > >>> On Sun, Apr 12, 2015 at 6:14 PM, Robby Findler > >>> wrote: > 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 and ace the file > again. > > Robby > > On Sunday, April 12, 2015, Jon Zeppieri wrote: > > > > 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 https://groups.google.com/d/optout. > >>> > >>> -- > >>> 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 https://groups.google.com/d/optout. > >> > >> -- > >> 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 https://groups.google.com/d/optout. > > -- > 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 https://groups.google.com/d/optout. > -- 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 https://groups.google.com/d/optout.
Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?
On Apr 13, 2015, at 10:26 AM, Robby Findler 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 "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. John > > Robby > > On Mon, Apr 13, 2015 at 12:06 PM, 'John Clements' via users-redirect > wrote: >> >> On Apr 13, 2015, at 2:29 AM, Jon Zeppieri 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: >>> [https://github.com/97jaz/drwhitespace]. At any rate, it isn't a lot >>> of code. I based the general structure on Asumu Takikawa's >>> drracket-vim-tool. >>> >>> 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. (Maybe >>> that should be based on the editor's mode?) >> >> I’d really like to use this tool. >> >> Here’s one problem that I see: there’s a hidden invariant in DrRacket (and >> all editors) that when a buffer is unchanged, saving it won’t change the >> file on disk. Actually, I think you can state this in a bunch of different >> ways. I forsee hard-to-understand errors arising from a silent >> change-on-save (unless I’m misreading your code?). Personally, I think I’d >> be more likely to use a tool that requests permission to scrub trailing >> whitespace when saving a file. I also think that this should probably be >> limited to racket and scribble files, and I’m guessing that the easiest way >> to distinguish these would be to use the filename extension. >> >> Please don’t let me stop you from doing this, though, this is something I’ve >> wanted for quite a while! >> >> Many thanks, >> >> John >> >>> >>> -Jon >>> >>> >>> On Sun, Apr 12, 2015 at 6:14 PM, Robby Findler >>> wrote: 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 and ace the file again. Robby On Sunday, April 12, 2015, Jon Zeppieri wrote: > > 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 https://groups.google.com/d/optout. >>> >>> -- >>> 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 https://groups.google.com/d/optout. >> >> -- >> 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 https://groups.google.com/d/optout. -- 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 https://groups.google.com/d/optout.
Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?
On Mon, Apr 13, 2015 at 1:27 PM, Robby Findler 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: > > > http://docs.racket-lang.org/framework/Preferences.html?q=editor-add#%28def._%28%28lib._framework%2Fmain..rkt%29._preferences~3aadd-to-editor-checkbox-panel%29%29 > > hth, > Robby > Thanks! -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 https://groups.google.com/d/optout.
Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?
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: http://docs.racket-lang.org/framework/Preferences.html?q=editor-add#%28def._%28%28lib._framework%2Fmain..rkt%29._preferences~3aadd-to-editor-checkbox-panel%29%29 hth, Robby On Mon, Apr 13, 2015 at 12:26 PM, Jon Zeppieri wrote: > On Mon, Apr 13, 2015 at 1:06 PM, John Clements > wrote: >> >> On Apr 13, 2015, at 2:29 AM, Jon Zeppieri 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. (Maybe >>> that should be based on the editor's mode?) >> >> I’d really like to use this tool. >> >> Here’s one problem that I see: there’s a hidden invariant in DrRacket (and >> all editors) that when a buffer is unchanged, saving it won’t change the >> file on disk. Actually, I think you can state this in a bunch of different >> ways. I forsee hard-to-understand errors arising from a silent >> change-on-save (unless I’m misreading your code?). Personally, I think I’d >> be more likely to use a tool that requests permission to scrub trailing >> whitespace when saving a file. I also think that this should probably be >> limited to racket and scribble files, and I’m guessing that the easiest way >> to distinguish these would be to use the filename extension. >> >> Please don’t let me stop you from doing this, though, this is something I’ve >> wanted for quite a while! >> >> Many thanks, >> >> John > > Good point. `delete-trailing-whitespace` is just a normal function in > emacs, and if you want this to happen when saving a file, you use a > before-save-hook. (This is a pretty common thing to do, though.) > > Exposing this as a method on text% is simple, I think. Then you could > bind a keyboard shortcut to it or bring up a model on save (though > personally I would find the latter pretty irritating). But, yes, > different modes of use are important, I think. So I need to add a way > of setting preferences for it. > > -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 https://groups.google.com/d/optout.
Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?
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, 'John Clements' via users-redirect wrote: > > On Apr 13, 2015, at 2:29 AM, Jon Zeppieri 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: >> [https://github.com/97jaz/drwhitespace]. At any rate, it isn't a lot >> of code. I based the general structure on Asumu Takikawa's >> drracket-vim-tool. >> >> 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. (Maybe >> that should be based on the editor's mode?) > > I’d really like to use this tool. > > Here’s one problem that I see: there’s a hidden invariant in DrRacket (and > all editors) that when a buffer is unchanged, saving it won’t change the file > on disk. Actually, I think you can state this in a bunch of different ways. I > forsee hard-to-understand errors arising from a silent change-on-save (unless > I’m misreading your code?). Personally, I think I’d be more likely to use a > tool that requests permission to scrub trailing whitespace when saving a > file. I also think that this should probably be limited to racket and > scribble files, and I’m guessing that the easiest way to distinguish these > would be to use the filename extension. > > Please don’t let me stop you from doing this, though, this is something I’ve > wanted for quite a while! > > Many thanks, > > John > >> >> -Jon >> >> >> On Sun, Apr 12, 2015 at 6:14 PM, Robby Findler >> wrote: >>> 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 and ace the file again. >>> >>> Robby >>> >>> On Sunday, April 12, 2015, Jon Zeppieri wrote: 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 https://groups.google.com/d/optout. >> >> -- >> 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 https://groups.google.com/d/optout. > > -- > 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 https://groups.google.com/d/optout. -- 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 https://groups.google.com/d/optout.
Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?
On Mon, Apr 13, 2015 at 1:06 PM, John Clements wrote: > > On Apr 13, 2015, at 2:29 AM, Jon Zeppieri 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. (Maybe >> that should be based on the editor's mode?) > > I’d really like to use this tool. > > Here’s one problem that I see: there’s a hidden invariant in DrRacket (and > all editors) that when a buffer is unchanged, saving it won’t change the file > on disk. Actually, I think you can state this in a bunch of different ways. I > forsee hard-to-understand errors arising from a silent change-on-save (unless > I’m misreading your code?). Personally, I think I’d be more likely to use a > tool that requests permission to scrub trailing whitespace when saving a > file. I also think that this should probably be limited to racket and > scribble files, and I’m guessing that the easiest way to distinguish these > would be to use the filename extension. > > Please don’t let me stop you from doing this, though, this is something I’ve > wanted for quite a while! > > Many thanks, > > John Good point. `delete-trailing-whitespace` is just a normal function in emacs, and if you want this to happen when saving a file, you use a before-save-hook. (This is a pretty common thing to do, though.) Exposing this as a method on text% is simple, I think. Then you could bind a keyboard shortcut to it or bring up a model on save (though personally I would find the latter pretty irritating). But, yes, different modes of use are important, I think. So I need to add a way of setting preferences for it. -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 https://groups.google.com/d/optout.
Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?
On Apr 13, 2015, at 2:29 AM, Jon Zeppieri 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: > [https://github.com/97jaz/drwhitespace]. At any rate, it isn't a lot > of code. I based the general structure on Asumu Takikawa's > drracket-vim-tool. > > 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. (Maybe > that should be based on the editor's mode?) I’d really like to use this tool. Here’s one problem that I see: there’s a hidden invariant in DrRacket (and all editors) that when a buffer is unchanged, saving it won’t change the file on disk. Actually, I think you can state this in a bunch of different ways. I forsee hard-to-understand errors arising from a silent change-on-save (unless I’m misreading your code?). Personally, I think I’d be more likely to use a tool that requests permission to scrub trailing whitespace when saving a file. I also think that this should probably be limited to racket and scribble files, and I’m guessing that the easiest way to distinguish these would be to use the filename extension. Please don’t let me stop you from doing this, though, this is something I’ve wanted for quite a while! Many thanks, John > > -Jon > > > On Sun, Apr 12, 2015 at 6:14 PM, Robby Findler > wrote: >> 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 and ace the file again. >> >> Robby >> >> On Sunday, April 12, 2015, Jon Zeppieri wrote: >>> >>> 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 https://groups.google.com/d/optout. > > -- > 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 https://groups.google.com/d/optout. -- 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 https://groups.google.com/d/optout.
Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?
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 on Asumu Takikawa's drracket-vim-tool. 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. (Maybe that should be based on the editor's mode?) -Jon On Sun, Apr 12, 2015 at 6:14 PM, Robby Findler wrote: > 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 and ace the file again. > > Robby > > On Sunday, April 12, 2015, Jon Zeppieri wrote: >> >> 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 https://groups.google.com/d/optout. -- 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 https://groups.google.com/d/optout.
Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?
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 wrote: > If you decide to do this, please make it so it doesn’t trim whitespace from > whitespace-only lines. For some reason a lot of IDEs do this, and it’s a pet > peeve of mine. > > On Apr 12, 2015, at 15:14, Robby Findler > wrote: > > 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 and ace the file again. > > Robby > > On Sunday, April 12, 2015, Jon Zeppieri wrote: >> >> 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 https://groups.google.com/d/optout. > > > -- > 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 https://groups.google.com/d/optout. > > -- 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 https://groups.google.com/d/optout.
Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?
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 and ace the file again. Robby On Sunday, April 12, 2015, Jon Zeppieri wrote: > 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 https://groups.google.com/d/optout. > -- 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 https://groups.google.com/d/optout.
[racket-users] DrRacket plugin to remove trailing whitespace on save?
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 https://groups.google.com/d/optout.