unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Marco Antoniotti <marco.antoniotti@unimib.it>
To: Filipp Gunbin <fgunbin@fastmail.fm>
Cc: Stefan Kangas <stefan@marxist.se>, 47775@debbugs.gnu.org
Subject: bug#47775: First line length and GNU coding standards....
Date: Mon, 19 Apr 2021 14:32:57 +0200	[thread overview]
Message-ID: <CAG0Nw2kA7grHR2cDd3FTZu9YS4Cyu-jpmaG24N6yWityiRE_wQ@mail.gmail.com> (raw)
In-Reply-To: <m2mttu79it.fsf@fastmail.fm>

[-- Attachment #1: Type: text/plain, Size: 2345 bytes --]

Hi

thanks for your responses.

Mine is "code in the wild"... and it uses conventions that predate the
"suggestions" made in more recent versions of the Emacs documentation.

Bottom line, the GNU coding standards requiring - rightly so - 80 columns,
conflict with the requirements on the first line.
Put simply, you cannot have the

;;; foo.el -- This file is a baz with a long description, even if this
example is not

With the requirement of having buffer local variables (forget about
lexical-binding!) in the first line.

One of the two has to yield.  Given "older" conventions and "code in the
wild", the first line (or lines!!!) should be reserved for buffer local
variables (and even the Mode: Emacs-Lisp declaration).  The "file content"
documentation can come afterward.

This is just a convention (*,**) in the Emacs documentation, and possibly
only one package (AFAIK, checkdoc) will be affected.

All the best

Marco

(*) Well, the buffer local variables and the Mode: declaration could appear
in the first lines, as I recall, if my memory does not fail me.
(**) Since we are at it, old Lisp geezers like me use ;;;;, ;;; at the top
level, and ;; and ; for "in code" comments; where the ;;; and ;;
conventions for Emacs-Lisp came from, who knows.





On Mon, Apr 19, 2021 at 2:18 PM Filipp Gunbin <fgunbin@fastmail.fm> wrote:

> On 18/04/2021 11:59 -0500, Stefan Kangas wrote:
>
> > Marco Antoniotti <marco.antoniotti@unimib.it> writes:
> >
> >> 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.
> >
> > Within N years, we will hopefully flip the switch and enable
> > lexical-binding by default, thereby (mostly) eliminating the problem.
> > So I would propose living with this wart.  Just my two cents.
>
> Will that be really possible?  What about code in the wild?
>


-- 
Marco Antoniotti, Associate Professor         tel. +39 - 02 64 48 79 01
DISCo, Università Milano Bicocca U14 2043 http://dcb.disco.unimib.it
Viale Sarca 336
http://cdac2021.lakecomoschool.org
I-20126 Milan (MI) ITALY

[-- Attachment #2: Type: text/html, Size: 7742 bytes --]

  reply	other threads:[~2021-04-19 12:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-14 14:46 bug#47775: First line length and GNU coding standards Marco Antoniotti
2021-04-18 16:59 ` Stefan Kangas
2021-04-19 12:18   ` Filipp Gunbin
2021-04-19 12:32     ` Marco Antoniotti [this message]
2021-04-19 13:18       ` Stefan Kangas
2021-04-19 13:18     ` Stefan Kangas
2021-04-19 14:11       ` Marco Antoniotti
2021-05-05 13:20         ` Lars Ingebrigtsen
2021-05-05 13:40           ` Marco Antoniotti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAG0Nw2kA7grHR2cDd3FTZu9YS4Cyu-jpmaG24N6yWityiRE_wQ@mail.gmail.com \
    --to=marco.antoniotti@unimib.it \
    --cc=47775@debbugs.gnu.org \
    --cc=fgunbin@fastmail.fm \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).