wasamasa / eyebrowse

A simple-minded way of managing window configs in emacs
GNU General Public License v3.0
437 stars 24 forks source link

side windows become regular windows after swtiching workspace #52

Closed bmag closed 8 years ago

bmag commented 8 years ago

Reproduction guide:

(setq mywin (display-buffer (get-buffer-create "buff1") '(display-buffer-in-side-window (side . left) (slot . 0))))

buff1 is displayed on the left in a side window.

To be fair, the same result happens if I replace step 4 with this step:

Changing the value of window-persistent-parameters before step 4 solves my issue:

(add-to-list 'window-persistent-parameters '(window-side . writable))
(add-to-list 'window-persistent-parameters '(window-slot . writable))

I'm not sure why window-side and window-slot are not persistent by default, there could be a reason I'm not aware of.

I'm mentioning all this because I thought it could be helpful if eyebrowse modified window-persistent-parameters accordingly or suggested it as user configuration in the readme.

wasamasa commented 8 years ago

Sounds like an Emacs bug to me. If special care is taken to ensure that the clone-of parameter is restored, why then isn't the same done for other parameters that should be preserved as well?

Please report this upstream and submit the debbugs ticket here. After finding out what the official stance of the Emacs developers is on this, I'll add a point on it to the README.

bmag commented 8 years ago

Opened bug report 23858: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23858, lets see how it goes.

wasamasa commented 8 years ago

Thank you!

wasamasa commented 8 years ago

I've checked again and it appears as if they aren't thrilled of the idea of changing defaults, but Martin Rudalics isn't opposed to enhancing window-state-get/window-state-put to support all window parameters.

I see a few options for proceeding:

As you could probably guess, option 2 sounds best to me.

bmag commented 8 years ago

As you could probably guess, option 2 sounds best to me.

Agreed, that's probably the best.

wasamasa commented 8 years ago

Great, I've added a notes section. For now it only contains this caveat, your provided customization sample and a link to this issue.