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

[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 <address@hidden>,
 Nicolas Petton <address@hidden> 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, address@hidden
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

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