* bug#1734: a bug in elisp?
@ 2008-12-30 5:44 Peter Mao
0 siblings, 0 replies; 2+ messages in thread
From: Peter Mao @ 2008-12-30 5:44 UTC (permalink / raw)
To: bug-gnu-emacs
please see: http://paste.lisp.org/display/72772
run each function at least twice to see the problem.
both "persistent" and "notpersistent" should output (0 1), but the
variable "mylist" is persistent in "persistent"
I don't understand this at all. tried irc #emacs but couldn't get any takers.
Peter
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#1734: a bug in elisp?
@ 2008-12-30 6:39 Geoff Gole
0 siblings, 0 replies; 2+ messages in thread
From: Geoff Gole @ 2008-12-30 6:39 UTC (permalink / raw)
To: Peter Mao, 1734
This is normal. The list structure constructed by '(0) is conceptually
constant in the function, but remains mutable and is not protected in
any way. When you destructively modify it with nconc, the 'constant'
will change.
The solution: don't do that.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-30 6:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-30 5:44 bug#1734: a bug in elisp? Peter Mao
-- strict thread matches above, loose matches on Subject: below --
2008-12-30 6:39 Geoff Gole
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.