From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Marco Antoniotti Newsgroups: gmane.emacs.bugs Subject: bug#47775: First line length and GNU coding standards.... Date: Wed, 14 Apr 2021 16:46:09 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005c3bc805bfefcf3b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30381"; mail-complaints-to="usenet@ciao.gmane.io" To: 47775@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 14 17:02:19 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lWh22-0007gr-Fp for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Apr 2021 17:02:18 +0200 Original-Received: from localhost ([::1]:45240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWh21-0000xv-BS for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Apr 2021 11:02:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWh14-0000xb-HQ for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 11:01:20 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52187) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWh0o-0006EB-GR for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 11:01:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWh0o-0004ZX-7T for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 11:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Marco Antoniotti Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Apr 2021 15:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47775 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161841242317507 (code B ref -1); Wed, 14 Apr 2021 15:01:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Apr 2021 15:00:23 +0000 Original-Received: from localhost ([127.0.0.1]:35497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWh09-0004YI-Bx for submit@debbugs.gnu.org; Wed, 14 Apr 2021 11:00:23 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:58038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWgmo-0003QF-LS for submit@debbugs.gnu.org; Wed, 14 Apr 2021 10:46:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWgml-0001KS-VC for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 10:46:33 -0400 Original-Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:42955) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWgme-0006FA-Rm for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 10:46:28 -0400 Original-Received: by mail-pf1-x433.google.com with SMTP id w8so10424280pfn.9 for ; Wed, 14 Apr 2021 07:46:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unimib.it; s=google; h=mime-version:from:date:message-id:subject:to; bh=12GvNb7Rni5x5f1xclVI59HoinUfzE2SjB+rtdn6EZE=; b=DQvGPC1cZyjvA0nkqfOqc66ksvhzY1HaKPpuHdl8aF67t+JxVph/dMwKhO3lfVCD3g VIlcTDtgsDvDtWFwi0kdnSZFGwIqRh1EAXP+2naHBblIMDtgnJcpazAPfllSVvqLzEcz pDcYW0twlEf1z9PIBP2aPzfM8dQBC4rzyoIKu3+zDHOzsDP1LZyXCvlf8bSr1SxE3Rbz lLMu1u6SLC/D0+vsOzTX/KfRO4qO+Ubus0WejgH2QuFts/nYLGbRoDfFdzlDNk/vCWsD QzU0Qvfcv7YZ/knHe1JMVhs1C91nOPqyaynDcbME77TQEI/HJpzsnI0JQepv2nQDqvZn +yBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=12GvNb7Rni5x5f1xclVI59HoinUfzE2SjB+rtdn6EZE=; b=P0dzGDDIreokz4Hur1UHsOzv/Krni5Jx7ZHUyuFM1ReTud5Mw3gcTBt+PsSjN1xwUc 4ODJ227WYwdzMKt9cMl6QkadCIMMEj2BXpLMeoUm7NY+QUiQxD7F65uwiVYn7L2qDj0F z1aMckdZi4Kwh2nmIScHy5eOUeyw6uEKddX6tVHWE89Qrb/xlh7yo1FZpL7oXWHnVVon 1ZNlU1FIUhBhxJUQKn7g6yFkj0Tbq3GpA3supSAZ8VHrDLLm5oaWAWIoaNuB1W73k/0e iR7g7j6vECCrshHjpIuVUrlttgtcNfvYdiWckJXAP4nuTfEEd0TmeKPu94RFeHc6+l5R jjWw== X-Gm-Message-State: AOAM53316/2+sIPCAMqex7MpULdBm5lvYy2ujD1FOgHUBHn3xmLjIqaE c3/fzr3FP8/9Dl2cCpZhYc2sMAVu++OQc+3JECPqNljpbFUrm57G X-Google-Smtp-Source: ABdhPJzbpFukX5RC03czchLHturGNJvtKuGVTGDHpXL/HIdn+Wa9loBSv7R0iDWOSD6FPPPk6dMHdeSZ5tsYbW0N4sE= X-Received: by 2002:a63:4c55:: with SMTP id m21mr39227499pgl.251.1618411580566; Wed, 14 Apr 2021 07:46:20 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=marco.antoniotti@unimib.it; helo=mail-pf1-x433.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 14 Apr 2021 11:00:20 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204018 Archived-At: --0000000000005c3bc805bfefcf3b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Many years ago we had 80 columns and that was a GOOD THING! It is such a good thing that the GNU Coding Standards (and not only them), unless I remember incorrectly, ask for 80 columns of code. Also many years ago, and on this I may be wrong, it was also said that the -*- Mode: ... -*- line could appear within the first 10 (am I remembering right?) lines of a file. Now, in https://www.gnu.org/software/emacs/manual/html_node/elisp/Library-Headers.h= tml it is said that the FIRST line of a elisp file must start like this: ;;; foo.el --- Support for the Foo programming language -*- lexical-binding: t; -*- especially if you want lexical binding, which is NOT turned on if the setting is NOT in the first line. Now, this is not exactly a bug, but for many years (I am an old guy), I wrote code with a separate header line containing only Emacs local buffer customizations. And the Lisp-Headers "suggestion" quickly runs afoul of the 80 column coding standard. Moreover, things like checkdoc (and therefore flycheck) become a bit annoying if you do not follow suit. Bottom line, this is just a bit of a rant, but I really like my (and, I believe, many other old geezers') style of having something like ;;; -*- Mode: Emacs-Lisp; lexical-binding: t; some-var-with-a-long-name: t -*- ;;; foo.el --- The foo pkg, which also happens to have description 79 col long. I know it's 2021, but I still like the 80 columns. Anything that can be done about it? All the best Marco --=20 Marco Antoniotti, Associate Professor tel. +39 - 02 64 48 79 01 DISCo, Universit=C3=A0 Milano Bicocca U14 2043 http://dcb.disco.unimib.it Viale Sarca 336 I-20126 Milan (MI) ITALY --0000000000005c3bc805bfefcf3b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

Many years ago we had 80 = columns and that was a GOOD THING!

It is such a go= od thing that the GNU Coding Standards (and not only them), unless I rememb= er incorrectly, ask for 80 columns of code.

Also m= any years ago, and on this I may be wrong, it was also said that the
<= div>
-*- Mode: ... -*-

line could appear within the first 10 (am I remembering right?) line= s of a file.

=
it is said that the FIRST line of a elisp file must start like this:

;;; foo.el --- Support for the Foo programming langu=
age  -*- lexical-binding: t; -*-
especially if you want lexical binding, which is NOT turned on i= f the setting is NOT in the first line.

Now, this is not = exactly a bug, but for many years (I am an old guy), I wrote code with a se= parate header line containing only Emacs local buffer customizations.=C2=A0= And the Lisp-Headers "suggestion" quickly runs afoul of the 80 c= olumn coding standard.=C2=A0 Moreover, things like checkdoc (and therefore = flycheck) become a bit annoying if you do not follow suit.

Bottom line, this is just a bit of a rant, but I really like my (and, I b= elieve, many other old geezers') style of having something like

=
;;; -*- Mode: Emacs-Lisp; lexic= al-binding: t; some-var-with-a-long-name: t -*-
;;; foo.el --- The foo p= kg, which also happens to have description 79 col long.

I know it's 2021, but I still like the 80 columns.

=
Anything that can be done about it?

All the best
=
Marco


--
= Marco Antoniotti, Associate Professor=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 tel.=C2= =A0+39 - 02 64 48 79 01
DISCo, Universit=C3= =A0 Milano Bicocca U14 2043
http://dcb.disco.unimib.itViale Sarca 336I-20126 Milan (MI) ITALY
--0000000000005c3bc805bfefcf3b--