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:
parent
bda831abdc
commit
c2b8058c07
2 changed files with 19 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
2
etc/NEWS
2
etc/NEWS
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue