-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Spacemacs layouts - SPC b b not layout local if invoked before SPC B b if ido is excluded #5788
Comments
It seems to still be layout local here. But it's late, maybe I did something wrong. Will test further tomorrow. |
Hmm, it is also late here. I've tried again now. It starts working correctly when I press |
I've yet to be able to get it to work |
I tested again, I still cannot reproduce. This is what I did: Preparation
Reproducing
This shows me only the file I have selected in the current project, |
@StreakyCobra Thanks. I've seen this on two machines of mine. I'll try to wipe the complete elpa when I have time to see if it persists. |
By the way, for those using |
I've completely wiped elpa and reinstalled everything. Still the same 😟 |
Mmhhhh did you try to remove the Spacemacs-layouts layouts from the list of your used layers ? This is a shot in the dark I'm not in front of a computer. (Spacemacs-layouts is already added by the Spacemacs distribution). Did you try with a vanilla Spacemacs ? |
Are you using helm or ivy @cpaulik |
Thanks, guys. It was caused by having |
Should I close this or does this require a fix? |
Keep it open for now, I don't understand why excluding ido would trigger this bug. |
Not sure if I'm understanding this bug report wrong, but are buffers supposed to be layout-specific (as proposed in #4590)? If so, I'm getting the same issue, i.e.:
Restarting Emacs also stores all buffers across layouts. My excluded packages are empty. |
I'm not sure if the layout-specific feature is in |
@StreakyCobra ah, my bad, I am indeed on |
😃 It will arrive in |
Is there a milestone for spacemacs-ivy compatibility, (and someone interested in working on it) or does it need a volunteer? |
This fixes two issues regarding layouts. 1. Since Bad-ptr/persp-mode.el@e950bf15, persp-mode requires setting persp-hook-up-emacs-buffer-completion in order to install the hooks for ido & friends. This variable is nil by default, making SPB b b not restrict to layout-local buffers. 2. The function spacemacs-layouts/non-restricted-buffer-list removes a hook and re-adds it later. This makes the assumption that the hook was already present. If it was not (due to 1) then SPC B b changes global state by adding that hook. Instead, just let-bind the hook variable for the scope we need it changed. This explains and partially fixes syl20bnr#5788 and syl20bnr#6266. It does not fix the dependency on ido-mode. If ido-mode is excluded, persp-mode will not install the hook for ido, and SPB b b will still be unrestricted.
This fixes two issues regarding layouts. 1. Since Bad-ptr/persp-mode.el@e950bf15, persp-mode requires setting persp-hook-up-emacs-buffer-completion in order to install the hooks for ido & friends. This variable is nil by default, making SPB b b not restrict to layout-local buffers. 2. The function spacemacs-layouts/non-restricted-buffer-list removes a hook and re-adds it later. This makes the assumption that the hook was already present. If it was not (due to 1) then SPC B b changes global state by adding that hook. Instead, just let-bind the hook variable for the scope we need it changed. This explains and partially fixes #5788 and #6266. It does not fix the dependency on ido-mode. If ido-mode is excluded, persp-mode will not install the hook for ido, and SPB b b will still be unrestricted.
Fixed with release of Spacemacs v0.200. |
Not so fast: #7240 does this but it's not fixed yet. |
Description
SPC b b
is not layout local untilSPC B b
was invoked once whenido
is indotspacemacs-excluded-packages
Reproduction guide
SPC p l
SPC b b
. This shows all buffers for me.SPC B b
ESC
SPC b b
shows only the buffers of the project.Expected behaviour:
The first
SPC b b
should only show the layout buffer.System Info
Backtrace
The text was updated successfully, but these errors were encountered: