From mboxrd@z Thu Jan 1 00:00:00 1970 From: grant@antiflux.org (Grant Hollingworth) Date: Tue, 27 Nov 2007 17:18:42 -0500 Subject: [sup-talk] [PATCH] mode.focus not called when buffer killed Message-ID: <1196201559-sup-3731@spooky.local> r708 changed buffer.rb to set @focus_buf in kill_buffer. The problem with that is that focus_on (called through raise_to_front) sees that @focus_buf is set and returns without doing anything... so mode.focus is never called. Since focus_on will set @focus_buf, I changed kill_buffer back and moved the focus_on call in raise_to_front out of the conditional. I think that should still work as expected. If I added some tests, would you use them? Some assertions would really help with cases like this. -------------- next part -------------- A non-text attachment was scrubbed... Name: sup-kill-buffer-focus.diff Type: application/octet-stream Size: 678 bytes Desc: not available Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071127/f9132051/attachment.obj