emacs-devel
[Top][All Lists]
Advanced

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

Re: Lost or corrupted `undo-tree' history


From: Eli Zaretskii
Subject: Re: Lost or corrupted `undo-tree' history
Date: Fri, 10 Jan 2020 10:07:59 +0200

> From: Alexander Shukaev <address@hidden>
> Date: Wed, 8 Jan 2020 23:45:35 +0100
> 
> I believe the garbage collector can be temporarily disabled 
> by simply wrapping the body of `undo-list-transfer-to-tree' into the 
> following `let' form:
> 
> (let ((gc-cons-threshold most-positive-fixnum))
>    ...)

IMO, it would be a very bad mantra for a Lisp package operating on
this low level to disable GC, because that could cause the user's
system to run out of memory, and Emacs be killed by the likes of OOM
killer agents.  Disabling GC is barely a good idea on the
user-customization level, certainly not in packages such as undo-tree.



reply via email to

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