Re: [Gimp-developer] Line Lengths



I would be grateful to see this happen in Gimp.

On 24 December 2015 at 17:59, john smith <kingstonflat gmail com> wrote:

[image: Boxbe] <https://www.boxbe.com/overview> john smith (
kingstonflat gmail com) is not on your Guest List
<https://www.boxbe.com/approved-list?tc_serial=23770986085&tc_rand=561504614&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&token=A5Z9ktqqV3VMccZHETxRRb7TWoulg9VcsmFy89BfflWE1F5NGHdsjuDvbk6HgOee&key=xqaVutTDwSaOyHt%2BdlyCNoBmBvb6CDL2dkjBRfW83jo%3D>
| Approve sender
<https://www.boxbe.com/anno?tc_serial=23770986085&tc_rand=561504614&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&token=A5Z9ktqqV3VMccZHETxRRb7TWoulg9VcsmFy89BfflWE1F5NGHdsjuDvbk6HgOee&key=xqaVutTDwSaOyHt%2BdlyCNoBmBvb6CDL2dkjBRfW83jo%3D>
| Approve domain
<https://www.boxbe.com/anno?tc_serial=23770986085&tc_rand=561504614&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&dom&token=A5Z9ktqqV3VMccZHETxRRb7TWoulg9VcsmFy89BfflWE1F5NGHdsjuDvbk6HgOee&key=xqaVutTDwSaOyHt%2BdlyCNoBmBvb6CDL2dkjBRfW83jo%3D>

On 24 December 2015 at 06:28,  <jcupitt gmail com> wrote:
On 24 December 2015 at 10:55, john smith <kingstonflat gmail com> wrote:

I had a read of https://github.com/GNOME/gimp/blob/master/HACKING but
there is no mention of line length in the style guide.


GIMP uses a lightly modified GNU style, so 80 characters line length.

However, I can't help feeling that the code might be more readable
with a slightly longer line length.


Perhaps! But it's all 80 and is very unlikely to be changed. If you
submit a
patch which breaks the 80 rule you'll probably be asked to reformat.
Consistency trumps almost all other considerations in a large project.

Is the code auto-formatted or done by hand?


There's no auto format on commit.

There are lots of tools which can format GNU style, for example the
standard
"indent" filter defaults to GNU. It will sometimes mess up comment
formatting though. Google have a very fancy code reformatter which might
do
a better job.

(I'm not actually a gimp dev, but that's my understanding of the
situation,
corrections pls.)

John


Fair enough.

Or
http://www.commandlinefu.com/commands/view/6558/indent-all-the-files-in-a-project-using-emacs
....... :D
_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list gnome org
List membership:
https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list




-- 
D/Insp. BUPE Joseph
*Data Protection Officer, INTERPOL NCB Lusaka*


*Zambia Police Service Headquarters,*
*Criminal Investigation Department,**P.O. Box 50104, Lusaka*
*Zambia*

*Officer Phone/Fax*: + 260 211 255218


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]