Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perspective hides buffers when running Emacs as server #186

Open
nosewings opened this issue Jul 4, 2022 · 4 comments
Open

Perspective hides buffers when running Emacs as server #186

nosewings opened this issue Jul 4, 2022 · 4 comments

Comments

@nosewings
Copy link

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*).

@nosewings
Copy link
Author

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).

@gcv
Copy link
Collaborator

gcv commented Jul 4, 2022

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)?

@nosewings
Copy link
Author

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

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

@gcv
Copy link
Collaborator

gcv commented Jul 4, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants