From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Changing line widths in the Emacs source code Date: Sun, 13 Sep 2020 16:52:58 -0400 Message-ID: References: <87tuw1x016.fsf@gnus.org> <20200913142210.GA4285@ACM> <87d02pmsi7.fsf@t510.orion.oneofus.la> <87o8m9sadk.fsf@gkayaalp.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25433"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Alan Mackenzie , emacs-devel@gnu.org To: =?utf-8?B?R8O2a3R1xJ8=?= Kayaalp Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 13 22:53:42 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHZ0H-0006XW-QP for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Sep 2020 22:53:41 +0200 Original-Received: from localhost ([::1]:45560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHZ0G-0005N0-Rv for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Sep 2020 16:53:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHYzh-0004wJ-7U for emacs-devel@gnu.org; Sun, 13 Sep 2020 16:53:05 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:9121) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHYzf-0000cX-1K for emacs-devel@gnu.org; Sun, 13 Sep 2020 16:53:04 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 58AFD10023C; Sun, 13 Sep 2020 16:53:01 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B7CEC100059; Sun, 13 Sep 2020 16:52:59 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1600030379; bh=LS4Z7taWl96bagDF8kE1dQcQL1NYJJajFs5dVNUchc0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=dDk/WExygh9nvh+AWghQ2ePVl1rDHFY7VWIv9OOiYXkcv6AXfGm5/MYdeJIkqtz+8 i2wJxaZSCPwMwxQgXrGDJ1MKdtYwRJcCMX+FXyRsWug6gOx9BtmHtwSKYOOEidlEZx y2iZrDdb/b2o8I5u+Bvy3bZ+Dvl2FmbGwuJ5MQCtVB9cj7k98Y3YLXhSplweE1fAfH TE2ENj670yQXGRLM6JdxMzI56zzG3qrU7ZO8WgKDUQpCN06OQ2iYhOH911E5/4NwFo 8JO5BSmKtGMXncAA9JoDYrs1GSgj+J4oAl+jd22SXKHE2aRMxLQmLga/DZ4RkPKl0m j/fZVQnpyWBdw== Original-Received: from alfajor (unknown [45.72.232.131]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 89F7C120655; Sun, 13 Sep 2020 16:52:59 -0400 (EDT) In-Reply-To: <87o8m9sadk.fsf@gkayaalp.com> (=?utf-8?B?IkfDtmt0dcSf?= Kayaalp"'s message of "Sun, 13 Sep 2020 23:13:43 +0300") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/13 15:03:09 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:255574 Archived-At: >> Alan Mackenzie 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