I am facing the question about the buffer selected after killing the current buffer.
When I kill the current buffer, the recent file buffer is selected ignoring asterisk buffers. Unless there are no file buffers, an asterisk buffer is not selected. But when I tested on default emacs (invoked by emacs -q
), an asterisk buffer can be selected similarly to a file buffer after killing. I want to select asterisk buffers in the same way as file buffers after killing.
I think some packages I installed affect this, so do you have some ideas on what packages stop it from selecting asterisk buffers.
switch-to-prev-buffer
is in charge of choosing which buffer to display in the window. It uses the frame paramterbuffer-predicate
to filter the candidates. The default value is nil, indicating all buffers can be switched to. You can check for the value by evaluting(frame-parameter (selected-frame) 'buffer-predicate)
to see if something you have installed changed it. If that's the case, you could use the bug hunter package to bisect your init file and locate the offending line in your configuration.(frame-parameter (selected-frame) 'buffer-predicate)
, and I foundspacemacs/useful-buffer-p
filtered some asterisk buffers. Putting""
into filtering regexpspacemacs-useless-buffers-regexp
solved the problem.