[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Modifying literal lists in Emacs lisp?
From: |
Barry Margolin |
Subject: |
Re: Modifying literal lists in Emacs lisp? |
Date: |
Fri, 13 Jun 2014 11:57:28 -0400 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article <mailman.3583.1402673918.1147.help-gnu-emacs@gnu.org>,
Nicolas Petton <petton.nicolas@gmail.com> wrote:
> Hi,
>
> In Common Lisp one should not modify literal lists because of possible
> shared conses.
>
> I was wondering if it is the same in Emacs Lisp, but I couldn't find
> anything in the documentattion.
Yes, you should not do it for the exact same reason. There have been
many threads in the Emacs newsgroups about the failures that result.
I don't know if it's documented (I've been searching and can't find it
either), but it works essentially the same way as in CL.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***