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.
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to