From abe5eb9adda956ccc72af02d714025701e528b55 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 6 Jul 2021 19:13:45 +0200 Subject: [PATCH] Explain what ( . c) means to the Emacs Lisp reader * doc/lispref/objects.texi (Dotted Pair Notation): Explain what ( . c) means to the Lisp reader (bug#24875). --- doc/lispref/objects.texi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi index d8091f1b4b1..365d5ac8d61 100644 --- a/doc/lispref/objects.texi +++ b/doc/lispref/objects.texi @@ -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 -- 2.39.2