|
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 2.0.0.21 (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. martin
[Prev in Thread] | Current Thread | [Next in Thread] |