Subject: bug#9378: 23.3; iswitchb-make-buflist returns a nonexistent buffer

From: Glenn Morris <[email-masked]>
Date: Sat, 03 Sep 2011 15:14:57 -0400

"Paul Du Bois" wrote:

> emacs -Q
> (require 'iswitchb)
> (setq read-buffer-function 'iswitchb-read-buffer)
> (add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)
> find several files
> C-x b C-k C-k
>
> After the first C-k, the buffer is deleted, but remains at the
> head of the iswitchb list.  The second C-k produces an error
> "No buffer named <the buffer that was just killed>"

I'm not sure this matters, because if you change the recipe to start:

emacs -Q -f iswitchb-mode \
  --eval "(setq read-buffer-function 'iswitchb-read-buffer)"

ie, use iswitchb-mode rather than just adding to minibuffer-setup-hook,
there is no such error. The difference seems to be that C-x b runs
iswitch-buffer in that case rather than switch-buffer.