[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Change indentation of keyword lists/arrays
From: |
Lars Ingebrigtsen |
Subject: |
Change indentation of keyword lists/arrays |
Date: |
Tue, 19 Oct 2021 20:18:16 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Jonas Bernoulli <jonas@bernoul.li> writes:
> Please consider also doing this for vectors,
> which after all are seldom function calls. ;)
>
> [:foo 1
> :zot 2]
Sure, makes sense.
So -- the suggestion is to change the indentation of
(:foo 2
:bar 2)
to
(:foo 2
:bar 2)
and that goes for
'(:foo 2
:bar 2)
too. Function names can start with a : though, so in the () case,
perhaps this is a heuristic we want to avoid? I can't seeing anybody
write
(defun :foo (a)
a)
though. But heuristics suck, so perhaps we don't want to do this?
The vector case is simpler... but shouldn't all vectors be indented
like that, no matter whether there's a keyword in the mix or not. I.e.,
I don't think anybody really wants to see
[a b
c d]
I'm sure nobody has any opinion on this matter.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: master 192f935 1/3: Add 'define-keymap' and 'defvar-keymap', Lars Ingebrigtsen, 2021/10/04
- Re: master 192f935 1/3: Add 'define-keymap' and 'defvar-keymap', Adam Porter, 2021/10/04
- Re: master 192f935 1/3: Add 'define-keymap' and 'defvar-keymap', Lars Ingebrigtsen, 2021/10/04
- Re: master 192f935 1/3: Add 'define-keymap' and 'defvar-keymap', Madhu, 2021/10/10
- Re: master 192f935 1/3: Add 'define-keymap' and 'defvar-keymap', Jonas Bernoulli, 2021/10/19
- Change indentation of keyword lists/arrays,
Lars Ingebrigtsen <=
- Re: Change indentation of keyword lists/arrays, Juri Linkov, 2021/10/20
- Re: Change indentation of keyword lists/arrays, Tassilo Horn, 2021/10/20
- Re: Change indentation of keyword lists/arrays, Lars Ingebrigtsen, 2021/10/20
- RE: [External] : Re: Change indentation of keyword lists/arrays, Drew Adams, 2021/10/20