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

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

RE: hash strangeness


From: Drew Adams
Subject: RE: hash strangeness
Date: Mon, 3 Nov 2014 19:04:49 -0800 (PST)

> > I expect '(a b c) to create a new list with these symbols
> > every time it runs.
> 
> Why do you expect that?
> '(a b c) is short for (quote (a b c)). quote returns its argument, it
> doesn't make a copy of it.
> 
> I'm sure somewhere in the Elisp programming manual it mentions that you
> shouldn't use destructive functions on literal lists, like the Common
> Lisp spec does.

Here is one place: the Elisp manual, node `Rearrangement`.  Search for
"a common pitfall".

https://www.gnu.org/software/emacs/manual/html_node/elisp/Rearrangement.html



reply via email to

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