all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Bozhidar Batsov" <bozhidar@batsov.dev>
To: "Emacs Devel" <emacs-devel@gnu.org>
Subject: Re: Codifying some aspects of Elisp code style and improving pretty printer
Date: Thu, 30 Sep 2021 14:26:11 +0300	[thread overview]
Message-ID: <c5f9c1a7-6575-466c-a6be-f55f47dcecae@www.fastmail.com> (raw)
In-Reply-To: <87wnmyy29v.fsf@gmail.com>

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

Style discussions tend to quickly digress into endless bikeshedding, so be careful what you wish for. :-)

I've started the GitHub style guide project for 2 reasons:

- it's easier to discuss code snippets there (mostly because they are properly formatted)
- I wanted to avoid the extra work to update the Emacs manual

I hoped that eventually some of this work would go back to the Elisp manual, but lately I haven't had much time for the style guide and it has been somewhat dormant. 

I completely agree that in the end of the day one also needs to enforce style automatically (e.g. via formatters/linters). That's what I did with Ruby and RuboCop, but it's so much work that I didn't want to do it for other languages. :-) 

On Thu, Sep 30, 2021, at 10:02 AM, André A. Gomes wrote:
> akater <nuclearspace@gmail.com> writes:
> 
> > There is an informal consensus that it's worth it to use whitespace
> > wisely to keep Lisp forms concise vertically as well as horizontally.  I
> > think if the idea is recognised as useful it better be explicitly stated
> > as such rather than remain folklore. [...]
> >
> > True, this is largerly a matter of personal style.  However, there is
> > also some accumulated experience which I think is worth aggregating.
> > And no style is actually 100% personal when we collaborate.
> 
> Akater, I think the topic you're raising is important.
> 
> My only thought is that it makes little sense to aggregate these
> folklore syntax practices without a (heartless) linting tool that
> actually enforces/checks if they're being respected.
> 
> 
> -- 
> André A. Gomes
> "Free Thought, Free World"
> 
> 

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

  reply	other threads:[~2021-09-30 11:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-29 18:01 Codifying some aspects of Elisp code style and improving pretty printer akater
2021-09-30  7:02 ` André A. Gomes
2021-09-30 11:26   ` Bozhidar Batsov [this message]
2021-09-30 15:15     ` akater
2021-10-01  7:05       ` Lars Ingebrigtsen
2021-10-01 14:20         ` Stefan Monnier
2021-10-01 14:43           ` Lars Ingebrigtsen
2021-10-01 14:26         ` Robert Pluim
2021-10-01 15:26           ` Stefan Monnier
2021-10-01 16:15             ` Robert Pluim
2021-10-01 17:08               ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=c5f9c1a7-6575-466c-a6be-f55f47dcecae@www.fastmail.com \
    --to=bozhidar@batsov.dev \
    --cc=emacs-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.