[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6454: 24.0.50; kill-buffer switches current-buffer

From: martin rudalics
Subject: bug#6454: 24.0.50; kill-buffer switches current-buffer
Date: Sat, 19 Jun 2010 00:30:22 +0200
User-agent: Thunderbird (Windows/20090302)

> (dolist (buffer buffer-list)
>   (with-current-buffer buffer
>       (when this-is-a-buffer-that-should-be-killed
>     (kill-buffer))))
> where this-is-a-buffer-that-should-be-killed is a buffer-local variable.
> In this case `kill-buffer' will rotate through all possible candidates
> in order to make another buffer current.

Looking at this again it seems there are no problems indeed.  The case
described (and the subsequent Fset_buffer in window_loop) is handled by
`with-current-buffer'.  And otherwise the current buffer can be quietly
replaced by another buffer.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]