workgroups2 icon indicating copy to clipboard operation
workgroups2 copied to clipboard

Make window-to-win and restore keep track or window-parameters

Open rhuelga opened this issue 11 years ago • 3 comments

The window-parameters are not saved, with this modification the parameters contained in the window-persistent-parameters are saved and restored, the way that current-window-configuration does.

rhuelga avatar Sep 15 '14 21:09 rhuelga

Modifying these main structures will make everyones' session files broken (when you read an old session file with a new "win" struct) Can you use parameters? http://workgroups2.readthedocs.org/en/latest/guide/data-structures.html#parameters

pashinin avatar Sep 16 '14 11:09 pashinin

Now it use win parameters. and the win struct is not modify.

rhuelga avatar Sep 17 '14 13:09 rhuelga

Found another problem...

  1. These parameters (that are saved) may contain complex objects (like #<buffer>). They cannot be saved "as is" like #<buffer> or you will get an error in reading a session file. You can see just a few lines below that I hacked it using (wg-pickel ...) before saving window-next-buffers.
  2. I've met a new object for me for example. #overlay in no buffer. Didn't test anything, maybe it works with wg-pickel. For such sudden errors I used (ignore-errors...)

Have you met these problems?

PS: I know this extension is complex

pashinin avatar Sep 17 '14 13:09 pashinin