bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9482: Documentation bug: Emacs Lisp Manual should say quoting does n


From: Le Wang
Subject: bug#9482: Documentation bug: Emacs Lisp Manual should say quoting does not cons explicitly in quoting section. related to bug#9469
Date: Mon, 12 Sep 2011 23:01:23 +0800

Relevant page here:
http://www.gnu.org/s/emacs/manual/html_node/elisp/Quoting.html

I was confused and always assumed that

'(a . b)

is simply short hand for

(cons 'a 'b)

Reading stackexchange, it seems at least some other people are under
this impression as well.  This works a majority of the time, but when
it fails it's really surprising.

In fact, the manual already has an example of this pit-fall in the
nconc section: 
http://www.gnu.org/software/emacs/elisp/html_node/Rearrangement.html

I think the quoting section should give an explicit warning with a
reference to the nconc example.



-- 
Le





reply via email to

[Prev in Thread] Current Thread [Next in Thread]