Skip to content

Commit

Permalink
Explain what ( . c) means to the Emacs Lisp reader
Browse files Browse the repository at this point in the history
* doc/lispref/objects.texi (Dotted Pair Notation): Explain what
( . c) means to the Lisp reader (bug#24875).
  • Loading branch information
larsmagne committed Jul 6, 2021
1 parent 10753bc commit abe5eb9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/lispref/objects.texi
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,13 @@ It looks like this:
@end example
@end ifnottex

As a somewhat peculiar side effect of @code{(a b . c)} and
@code{(a . (b . c))} being equivalent, for consistency this means
that if you replace @code{b} here with the empty sequence, then it
follows that @code{(a . c)} and @code{(a . ( . c))} are equivalent,
too. This also means that @code{( . c)} is equivalent to @code{c},
but this is seldom used.

@node Association List Type
@subsubsection Association List Type

Expand Down

0 comments on commit abe5eb9

Please sign in to comment.