Closed GoogleCodeExporter closed 9 years ago
I'm not seeing this behavior. It only deletes whitespace when you save the
buffer.
Try running emacs with the -q option (to prevent loading your startup files).
Then
load js2-mode and see if you see the behavior. I suspect you've got some sort
of
hook causing the buffer to be marked dirty and/or auto-saved. Or something.
Original comment by steve.ye...@gmail.com
on 19 Apr 2008 at 8:59
Hrm, perhaps I did... I cannot reproduce the "immediately dirty buffer" I
thought I
saw earlier... may I morph this to an enhancement, then?
The Mozilla policy is not to go "cleaning up" files when you patch them; you
should
avoid trailing whitespace in new or patched code. Therefore, what I'd like the
code
to do is strip trailing whitespace from lines that I edit, but don't touch
lines that
I haven't edited.
Original comment by bsmedb...@gmail.com
on 21 Apr 2008 at 1:28
I've changed it in later releases NOT to do this by default, so this issue is
now fixed.
Original comment by steve.ye...@gmail.com
on 16 Jun 2008 at 4:21
Original issue reported on code.google.com by
bsmedb...@gmail.com
on 16 Apr 2008 at 4:20