emacsmirror/ibus — pull request #1 by abaw (2011-12-28 09:50:46+00:00)
Title: ibus-el-agent: disable surrouding text if there was no "use_surrounding_text" method on input context object

I have downloaded ibus.el today and found it can't work on my environment. After I had dug the code, I found that my ibus.InputContext does not have a "needs_surrounding_text" method. My environment is Ubuntu 10.04 with ibus 1.2 installed.

So I just added some checking for the use_surrounding_text, and it seems to work fine. Maybe you could pull this change.