emacs-devel
[Top][All Lists]
Advanced

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

Re: Turning on savehist-mode by default


From: Adam Porter
Subject: Re: Turning on savehist-mode by default
Date: Sun, 17 Dec 2023 05:09:39 -0600
User-agent: Mozilla Thunderbird

On 12/17/23 01:49, Stefan Kangas wrote:

0: https://github.com/alphapapa/ement.el/issues/216

Did you think about how issues like the above could be solved (in
general, not necessarily in savehist specifically)?

It doesn't seem like an easy problem. My guess as to the most "correct" solution would be to limit how much time can be spent serializing the data, both as a whole and individual elements, and to cancel or interrupt the serialization of the whole or a part if the limit is exceeded--the goal being to avoid UI pauses. Then the limit could be disabled when desired (e.g. when exiting Emacs, wanting to be sure the data is saved). But doing that would require some bookkeeping in the background, which seems like it might be excessive complexity for what should be a simple feature.



reply via email to

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