Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] [PATCH] mode.focus not called when buffer killed
@ 2007-11-27 22:18 Grant Hollingworth
  2007-11-28 17:21 ` William Morgan
  0 siblings, 1 reply; 4+ messages in thread
From: Grant Hollingworth @ 2007-11-27 22:18 UTC (permalink / raw)


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 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-29 18:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-27 22:18 [sup-talk] [PATCH] mode.focus not called when buffer killed Grant Hollingworth
2007-11-28 17:21 ` William Morgan
2007-11-29 15:50   ` Grant Hollingworth
2007-11-29 18:18     ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox