emacs-devel
[Top][All Lists]
Advanced

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

Re: Mutating existing persistent data


From: Ihor Radchenko
Subject: Re: Mutating existing persistent data
Date: Tue, 07 Dec 2021 11:33:02 +0800

Lars Ingebrigtsen <larsi@gnus.org> writes:

>   (setf (sticky-value foo) 'bar) 

Before you go too far into specific implementation, could you also
consider buffer-local persistent values or even generalised key:value
storage?

Org mode uses its own take on persistent storage to cache parsed
representation of individual buffers [1]. Our persistent values have to
be associated with specific files/buffer hashes. It's not just storage
of one global variable-symbol:value pair, but rather a generalised
key:value pair with key constructed from the variable symbol and also
file name + buffer hash.

[1] 
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/org-persist.el

Best,
Ihor



reply via email to

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