[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing line widths in the Emacs source code
From: |
Stefan Monnier |
Subject: |
Re: Changing line widths in the Emacs source code |
Date: |
Sun, 13 Sep 2020 16:52:58 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> Alan Mackenzie <acm@muc.de> writes:
>> The optimum line length for legibility has been found to be 55-60
>> characters over hundreds of years of book publishing experience. 90
>> characters per line is considered the absolute maximum, and you
>> rarely see it. "Today's wide screens" is as bad of a reason for
>> increasing line length in text files as "today's wide paper" would be
>> an excuse to increase line length in books.
> Not to refute any other points here, but this is an oft-mentioned
> factoid, yet code is not prose, so how relevant this is is questionable.
Indeed. The 55-60 is for columns of actual text.
That leaves up to 25 columns of indentation in an 80-columns window.
> => "On average 7.957429 spaces worth of indentation per line (21235 lines)"
> So assuming 80-char lines, on average 1/10 of a line is leading
> whitespace.
So, ~8 columns of indentation, which leaves ~72 columns of actual text.
Since most lines don't extend all the way to the 80th column, that means
most lines stick within the 55-60 optimum.
Stefan
- Re: Changing line widths in the Emacs source code, (continued)
- Re: Changing line widths in the Emacs source code, Lars Ingebrigtsen, 2020/09/13
- Re: Changing line widths in the Emacs source code, Yuan Fu, 2020/09/13
- Re: Changing line widths in the Emacs source code, Lars Ingebrigtsen, 2020/09/13
- Re: Changing line widths in the Emacs source code, Stephen Leake, 2020/09/13
- RE: Changing line widths in the Emacs source code, arthur miller, 2020/09/13
- Re: Changing line widths in the Emacs source code, Eric Abrahamsen, 2020/09/13
- Re: Changing line widths in the Emacs source code, Stephen Leake, 2020/09/13
Re: Changing line widths in the Emacs source code, Alan Mackenzie, 2020/09/13
Re: Changing line widths in the Emacs source code, Óscar Fuentes, 2020/09/13
Re: Changing line widths in the Emacs source code, Stefan Monnier, 2020/09/13
Re: Changing line widths in the Emacs source code, T.V Raman, 2020/09/13
Re: Changing line widths in the Emacs source code, tomas, 2020/09/14
Re: Changing line widths in the Emacs source code, Alan Third, 2020/09/14
Re: Changing line widths in the Emacs source code, Stefan Kangas, 2020/09/15
Re: Changing line widths in the Emacs source code, Daniel Martín, 2020/09/13