[darcs-users] On whitespace cleanup
Trent W. Buck
trentbuck at gmail.com
Wed Dec 24 05:26:09 UTC 2008
On Tue, Dec 23, 2008 at 10:15:43PM -0500, Gwern Branwen wrote:
> On Tue, Dec 23, 2008 at 7:38 PM, Trent W. Buck wrote:
>> Since Eric mentioned trailing whitespace a couple of times lately
>> for incoming patches, I thought I'd generate statistics (i.e. lies)
>> about the current state of the repository -- that is, current
>> offenses against whitespace decency.
>>
>> I used the following commands, the output of which is attached.
>>
>> darcs get http://darcs.net/ darcs
>> cd darcs
>> find -name _darcs -prune -o -type f -exec emacs -Q -batch {} \
>> -eval '(setq indent-tabs-mode nil)' \
>> -f universal-argument -f whitespace-cleanup -f save-buffer \;
>> darcs diff | diffstat | sort -t '|' -nk2
>>
>> [...]
>> and of course indent-tabs-mode is nil (False) due to the first -eval.
>>
>> GNUmakefile | 412 +++++++++----------
>
> Interesting stuff, but I immediately am struck by concern - is that
> command safe to use on GNUmakefile? I remember makefiles being finicky
> about whitespace.
Normally it is, but I broke it by disabling indent-tabs-mode AFTER
opening the file. The Emacs make-mode activates indent-tabs-mode when
it is loaded.
PS: please trim quoted text.
More information about the darcs-users
mailing list