[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to persist registers across sessions?
From: |
Stefan Monnier |
Subject: |
Re: How to persist registers across sessions? |
Date: |
Fri, 01 Jul 2022 10:29:48 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
>> Another possibility is to use frameset-save. (Not surprisingly,
>> desktop.el already uses it.)
>
> I have been testing, I see the output of below command, and it looks
> like it does what it says, saving frameset.
>
> (frameset-save (frame-list))
>
> It should be possible to "read" back from there:
>
> (read-from-string (prin1-to-string (frameset-save (frame-list))))
>
> However, I get this error:
>
> eval: Invalid read syntax: "#" probably because somewhere inside I find this:
>
> (hywconfig-names (\"new1\" . #<window-configuration>)
>
> Thus I think that (frameset-save (frame-list)) cannot reliably
> produce Lisp object that I can read back if there is
> #<window-configuration> somewhere inside, as such is not readable.
I think that's why you'd be better off trying to use the `desktop.el`
code, which has already worked through those problems.
Then again, maybe `desktop.el` suffers from the same problem, of course.
Stefan
- Re: How to persist registers across sessions?, (continued)
- Re: How to persist registers across sessions?, Jean Louis, 2022/07/01
- Re: How to persist registers across sessions?, Eli Zaretskii, 2022/07/02
- Re: How to persist registers across sessions?, Jean Louis, 2022/07/02
- Re: How to persist registers across sessions?, Eli Zaretskii, 2022/07/02
- Re: How to persist registers across sessions?, Jean Louis, 2022/07/02
- Re: How to persist registers across sessions?, Eli Zaretskii, 2022/07/02
- Re: How to persist registers across sessions?, Jean Louis, 2022/07/02
- Re: How to persist registers across sessions?, Eli Zaretskii, 2022/07/02
- Re: How to persist registers across sessions?, Jean Louis, 2022/07/02
- Re: How to persist registers across sessions?, Eli Zaretskii, 2022/07/03
Re: How to persist registers across sessions?,
Stefan Monnier <=
RE: [External] : Re: How to persist registers across sessions?, Drew Adams, 2022/07/01
Re: How to persist registers across sessions?, Pankaj Jangid, 2022/07/02