spacemacs/layers/+spacemacs/spacemacs-layouts
Abdo Roig-Maranges a52422e653 layouts: fix B b b not restricting to layout-local buffers
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.
2016-08-22 15:00:59 +02:00
..
config.el spacemacs layouts and workspaces tweaks 2016-03-30 14:29:55 -04:00
funcs.el layouts: fix B b b not restricting to layout-local buffers 2016-08-22 15:00:59 +02:00
packages.el layouts: fix B b b not restricting to layout-local buffers 2016-08-22 15:00:59 +02:00