GNU bug report logs -
#10348
24.0.92; Save and load window states
Previous Next
Reported by: Michael Bach <phaebz <at> gmail.com>
Date: Thu, 22 Dec 2011 01:40:08 UTC
Severity: normal
Found in version 24.0.92
Done: martin rudalics <rudalics <at> gmx.at>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>>> (3) Save only parameters whose value have a read syntax. This can be
>>> done either in `window-state-get' or in `my-save-frame'.
>>
>> This can make the save&restore work and fail in somewhat
>> unpredictable ways. Too magical.
>
> IIUC this is what desktop does. The problem is rather that we would
> have to distinguish between values needed for intra-session purposes and
> those that make sense for inter-session purposes too.
Actually there exists already a parameter that distinguishes between values
needed for intra-session purposes and needed for inter-session purposes.
It is the argument `markers' of the function `window-state-get'. When non-nil,
it returns internal values meaningful only in the current session. When nil,
it returns integer values safe to save and read in another session.
This argument could be renamed to a more general name and used for
other values besides markers. Then a caller of `window-state-get'
could decide whether its return value is intended for the same session
or for intra-session purposes.
This bug report was last modified 13 years and 222 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.