[Top][All Lists]

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

Re: How to save custom variable programmatically?

From: Jean Louis
Subject: Re: How to save custom variable programmatically?
Date: Tue, 10 Nov 2020 22:19:20 +0300
User-agent: Mutt/2.0 (3d08634) (2020-11-07)

* Michael Heerdegen <> [2020-11-10 17:36]:
> Jean Louis <> writes:
> > If there is anyway of storing data from Emacs that is standard I do
> > not know about it. Welcoming tips.
> The eieio-persistent class is made for that purpose.
> You make your data/database/whatever an object of a class you define as
> you like, and make that class inherit from eieio-persistent.  Then your
> data is savable out of the box.
>   (info "(eieio) eieio-persistent")
> Do you need an example?

Thank you. If you have ready simplest example it may be useful for

My strategy is to minimize number of packages used as dependencies so
I try to use what is built in or to re-use what is inside of Emacs.

For simplest database with hundreds of entries file locking and Lisp
data can be enough.

For larger database I would prefer GDBM bindings built-in, but life is
not a dream.

Personally I am using PostgreSQL. Then I just define the table
definition and that may be similar to eieio.

reply via email to

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