[Babel-users] emacs and "babeld style"

Dave Taht dave.taht at gmail.com
Thu Nov 29 18:00:26 GMT 2018


Particularly after attempting the two major merges I tried earlier
this month, I longed for *one true format to rule them all and on
github, commit them* There's spaces where tabs should be, three or
four different styles in different files, stuff that's on one line
where elsewhere it's on two, and sd on and on and on....

Attached is my .clang-format attempt from a few weeks back. It
generates a mere 8000 lines of diff. It does the right thing with
includes and with FOR_EACH macros, but still has flaws.  :( But: the
end result was fairly pleasing and in particular it didn't do huge
amounts of churn to message.c which was a real pain point for me at
the time.

There's some comments in the file for matters of "taste", flip one
oneway or the other, do a clang-format -i *.c *.h

I have preferences for single lines on if statements, for example.
There's also choosing between wrap at 79 or 78 characters that had a
kind of dramatic effect...

I think the babel project committing and publishing to one true
format, (and providing the .clang-format and relevant style file for
emacs....) and everyone having a flag day to do that,  would be a huge
boon to future branchers and forkers and committers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: my-babel-clang-format
Type: application/octet-stream
Size: 2504 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/babel-users/attachments/20181129/5a9d7918/attachment.obj>


More information about the Babel-users mailing list