nex3 / perspective-el

Perspectives for Emacs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Perspective hides buffers when running Emacs as server

nosewings opened this issue · comments

When connected to an Emacs server with persp-mode enabled, I can't see buffers that other clients have opened (or even Emacs startup buffers; e.g., *Messages*).

To clarify: this occurs when switching buffers with switch-to-buffer, previous-buffer, and next-buffer; I can still see the buffers in (buffer-list).

commented

switch-to-buffer should allow switching to any buffer. You're definitely not using persp-switch-to-buffer* (which I would expect to behave the way you describe)?

Yes, it happens even with M-x switch-to-buffer.

Why would this be the expected behavior with persp-switch-to-buffer?

commented

persp-switch-to-buffer* (the starred version) is supposed to be perspective-aware. I don’t use Emacs server often (I never managed to configure it right, and when I try using it, it ends up crashing and I have to restart it from the main instance), so I’m not entirely sure how it actually behaves with Perspective. I would expect the server to treat a new client instance as the equivalent of a new frame, which means a brand new set of perspectives. So when you start a new client, it won’t see any existing perspectives. But I wouldn’t expect the built-in switch-to-buffer to obey this, since it is not perspective-aware; it should just show all existing buffers. So probably something strange is going on.

I’ll try to find time to look into it sometime soon. Bad behavior from the server is a long-standing problem with Perspective (#41, for example).

Just double-checking: you’re on a recent version of Emacs (27 or 28)? I try to keep versions down to 24 compatible, but only have automatic tests to check for 24-26.