1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 12:20:39 -08:00

Document the new paren-space indentation rule

* doc/emacs/programs.texi (Lisp Indent): Mention the new
paren-space indentation rule.
This commit is contained in:
Lars Ingebrigtsen 2021-09-25 12:11:26 +02:00
parent bda831abdc
commit c2b8058c07
2 changed files with 19 additions and 0 deletions

View file

@ -471,6 +471,23 @@ the function name. This is normally done for macro definitions, using
the @code{declare} construct. @xref{Defining Macros,,, elisp, The
Emacs Lisp Reference Manual}.
In Emacs Lisp, lists are usually indented as if they are
function-like forms:
@lisp
(setq foo '(bar zot
gazonk))
@end lisp
However, if you add a space after the opening parenthesis, this tells
Emacs that it's a data list instead of a piece of code, and Emacs will
then indent it like this:
@lisp
(setq foo '( bar zot
gazonk))
@end lisp
@node C Indent
@subsection Commands for C Indentation

View file

@ -1703,8 +1703,10 @@ work as before.
** Emacs Lisp mode
---
*** The mode-line now indicates whether we're using lexical or dynamic scoping.
+++
*** A space between an open paren and a symbol changes the indentation rule.
The presence of a space between an open paren and a symbol now is
taken as a statement by the programmer that this should be indented