emacs-devel
[Top][All Lists]
Advanced

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

Garbage collect and buffer-undo-list


From: Yuan Fu
Subject: Garbage collect and buffer-undo-list
Date: Sat, 13 Mar 2021 13:17:28 -0500

I know the garbage collector trims buffer-undo-list. Does it collect the cons 
cell if there are other references to that object (other than buffer-undo-list)?

I tried this:

(setq last1 (last buffer-undo-list))
(garbage-collect)

After the garbage collection, the entry referred by last1 is not in 
buffer-undo-list anymore, but still accessible by last1. That seems to support 
my theory.

Yuan




reply via email to

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