[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: Helmut Eller
Subject: bug#6454: 24.0.50; kill-buffer switches current-buffer
Date: Sun, 20 Jun 2010 09:48:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

* martin rudalics [2010-06-19 15:38+0200] writes:

> Helmut, please try whether the attached patch fixes your bug.

Yes, the patch fixes my immediate problem. Thanks.  

I'm wondering a bit though: kill-buffer protects the current buffer
while calling kill-buffer-hook.  Wouldn't it be prudent to do that for
the entire function?

Actually, I think there is a small bug there: if kill-buffer-hook is a
list of functions, the first function could potentially switch buffer
and the second function would be called in the wrong buffer.

[The change in window_loop looks like good thing either way.]


reply via email to

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