[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incorrect indentation after :name
From: |
David Kastrup |
Subject: |
Re: Incorrect indentation after :name |
Date: |
Wed, 06 Jul 2005 20:30:37 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
"Richard M. Stallman" <address@hidden> writes:
> If I understood correctly, it would misindent quoted lists whose first
> element is a function. Lists of functions are not rare (hooks, for
> example).
>
> The incorrect indentation in those cases won't be horrible.
>
> However, if we can develop a good convention for distinguishing the
> two cases (quoted code, and quoted non-code), we could get the right
> results every time.
I'd somewhat visually prefer
'( function and function )
vs '(function of something)
I seems more readable than your proposal
'(function and function)
' (function of something)
and it also does not need to also take a look at ` and maybe even
(quote ...) (which is the rendition of printed Lisp expressions).
Of course, this proposal has the disadvantage that the probably more
common case of a function (or non-function!) list needs extra
formatting, so it is probably not useful in practice.
However, if we _combine_ both proposals with an added criterion, we
might arrive at the following rule set:
'( func and func ) is a list in any context
' (func of something) is a quoted function call in any context
'(func maybe) is a list, except in macro definitions where it is a
quoted function.
Maybe this is too complicated.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Re: Incorrect indentation after :name, (continued)
- RE: Incorrect indentation after :name, Drew Adams, 2005/07/05
- Re: Incorrect indentation after :name, Paul Pogonyshev, 2005/07/05
- Re: Incorrect indentation after :name, Richard M. Stallman, 2005/07/05
- Re: Incorrect indentation after :name, Luc Teirlinck, 2005/07/05
- Re: Incorrect indentation after :name, drkm, 2005/07/05
- Re: Incorrect indentation after :name, Luc Teirlinck, 2005/07/05
- Re: Incorrect indentation after :name, Richard M. Stallman, 2005/07/06
- Re: Incorrect indentation after :name,
David Kastrup <=
- Re: Incorrect indentation after :name, Stefan Monnier, 2005/07/06
- RE: Incorrect indentation after :name, Drew Adams, 2005/07/07
- Re: Incorrect indentation after :name, Lawrence Mitchell, 2005/07/07
- Re: Incorrect indentation after :name, Juanma Barranquero, 2005/07/07
- Re: Incorrect indentation after :name, Richard M. Stallman, 2005/07/08
- Re: Incorrect indentation after :name, Juanma Barranquero, 2005/07/11
- Re: Incorrect indentation after :name, David Kastrup, 2005/07/11
- Re: Incorrect indentation after :name, Juanma Barranquero, 2005/07/11
- RE: Incorrect indentation after :name, Drew Adams, 2005/07/07
- Re: Incorrect indentation after :name, Lawrence Mitchell, 2005/07/07