[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
- hash strangeness, Tom, 2014/11/02
- Re: hash strangeness, Tom, 2014/11/02
- Re: hash strangeness, Thien-Thi Nguyen, 2014/11/02
- Message not available
- Re: hash strangeness, Barry Margolin, 2014/11/02
- Re: hash strangeness, Tom, 2014/11/03
- Re: hash strangeness, Robert Thorpe, 2014/11/03
- Re: hash strangeness, Michael Heerdegen, 2014/11/03
- RE: hash strangeness,
Drew Adams <=
- Re: hash strangeness, Marcin Borkowski, 2014/11/04