purcell / emacs.d

An Emacs configuration bundle with batteries included
BSD 2-Clause "Simplified" License
6.84k stars 2.05k forks source link

With built-in desktop.el, why still need session? #781

Closed Eason0210 closed 2 years ago

Eason0210 commented 3 years ago

Hi @purcell ,

It seems that the desktop.el and session do the same thing. Why you still use this session package which is no longer maintained. Are there any special application scenarios for using session?

By the way, desktop.elcan also save kill-ring and search-ring by desktop-globals-to-save.

purcell commented 3 years ago

Stop nerd-sniping me, OMG.

But seriously, I looked at this quite recently, and it would be possible to combine them, but session works much more automatically, detecting new variables that should be saved. I don't want to have to update the desktop config when I use different packages, or notice that particular history vars weren't restored. So I tinkered with some code to do that automatically, then I got bored.

Eason0210 commented 3 years ago

Please forgive my curiosity.

Thank you for sharing your experience, now I know the value of using sessions. I will continue to use it.

purcell commented 3 years ago

Please forgive my curiosity.

LOL, don't worry about that. I've appreciated the little pointers you've submitted.