Bad-ptr / persp-mode.el

named perspectives(set of buffers/window configs) for emacs
400 stars 44 forks source link

Switching perspective kills notmuch buffers #95

Closed TheKashe closed 6 years ago

TheKashe commented 6 years ago

Please check here for details.

Notmuch relies on the order of buffers for it's workflow, but persp (sometimes) changes the order after switch.

TheKashe commented 6 years ago

Afer enabling persp-add-buffer-on-after-change-major-mode the buffers are stored, but the order gets mixed up (under some circumstances?).

When I switch back to my notmuch persp, the persp-hash still has the correct order of buffers: "notmuch" #s(perspective "notmuch" (#<buffer *notmuch-saved-search-inbox*> #<buffer *notmuch-hello*>)

But the window is showing them in different order, which breaks notmuch push-pop workflow. Could be related to this?

I think saving the buffers in file works correctly, so one possible workaround would be to always save/load on persp switch.

TheKashe commented 6 years ago

After analysing persp-mode and eyebrowse I've determined they are both half-baked solutions which don't have the required functionality to solve this. Notmuch is not the only affected app, in essence, buffer stack across persp and eyebrowse is nonexistent.

I believe the only possible solution would be to implement workspaces on top of frames, but emacs would need to provide an infrastructure for an invisible frame (like it does in terminal for inactive frames).