-
On 29.1 we have multisession. Would that work too? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
No, I spent several hours trying to make it work before I filed this bug: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68482 |
Beta Was this translation helpful? Give feedback.
-
Thanks, I see. That's unfortunate. Hopefully this could be fixed in multisession. Or is persist better than multisession in every aspect? Would it make sense to propose replacing multisession with persist inside the Emacs core? |
Beta Was this translation helpful? Give feedback.
-
I don't know. multisession has some functionality to sync values between simultaneous sessions (without conflict resolution), which persist doesn't do. And the APIs are a bit different. I already asked this question on emacs-devel a year or so ago, supposedly while Lars was still around, but my question was never answered. It didn't seem like anyone was interested enough to investigate or decide. At this moment, it seems that persist is more usable, since certain values just don't work with multisession, without warning or error or explanation (i.e. a map gets saved the first time, but then doesn't get updated on disk when the value is changed). So AFAICT I couldn't recommend that anyone use multisession until that bug is fixed. If it gets fixed, I suppose it could be up to the user to use whichever API he prefers. |
Beta Was this translation helpful? Give feedback.
-
I read your bug report. I don't think multisession writes to storage if you update elements of a map. You have to update the root value. It seems something like "multisession-write", analogous to Incidentally, it looks like you are writing activities to disk once per activity with the default configuration (and once again via |
Beta Was this translation helpful? Give feedback.
-
Yes, IIRC I tried to do something hacky like that, e.g.: (setf (map-elt (multisession-value activity-activities) name) activity
(multisession-value activity-activities) (multisession-value activity-activities)) But that didn't work to force
I think you're right. I'll fix that. Thanks. |
Beta Was this translation helpful? Give feedback.
No, I spent several hours trying to make it work before I filed this bug: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68482