Some users at my site reported a recent regression to spacemacs/alternate-buffer (SPC TAB) which seems to be due to the refactor in #17161. With spacemacs-layouts enabled and its layer variables all set to the defaults, you can reproduce with the following steps:
- emacs
SPC f f foo to create a new buffer for a file that doesn't exist yet, and save it
SPC l 2 to create a new layout, give it an arbitrary name
SPC f f foo, visiting the same buffer as before but from the new layout
SPC f f bar to visit another file, creating a new buffer in the new layout
SPC TAB goes to *spacemacs* instead of foo's buffer
If I understand the bug correctly, it is because spacemacs/alternate-buffer now relies on previous-buffer, which calls switch-to-prev-buffer, and the latter is advised by default to cause buffer-list to omit the foo buffer. This violates the expected behavior of spacemacs-layouts-restrict-spc-tab = nil.
Some users at my site reported a recent regression to
spacemacs/alternate-buffer(SPC TAB) which seems to be due to the refactor in #17161. With spacemacs-layouts enabled and its layer variables all set to the defaults, you can reproduce with the following steps:SPC f f footo create a new buffer for a file that doesn't exist yet, and save itSPC l 2to create a new layout, give it an arbitrary nameSPC f f foo, visiting the same buffer as before but from the new layoutSPC f f barto visit another file, creating a new buffer in the new layoutSPC TABgoes to*spacemacs*instead offoo's bufferIf I understand the bug correctly, it is because
spacemacs/alternate-buffernow relies onprevious-buffer, which callsswitch-to-prev-buffer, and the latter is advised by default to causebuffer-listto omit thefoobuffer. This violates the expected behavior ofspacemacs-layouts-restrict-spc-tab = nil.