From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: ibus-mode under Emacs 24 Date: Sat, 08 Oct 2011 12:31:56 +0800 Message-ID: <8739f4w1c3.fsf@ericabrahamsen.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318048352 6929 80.91.229.12 (8 Oct 2011 04:32:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 8 Oct 2011 04:32:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 08 06:32:28 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RCOaJ-00078O-8K for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Oct 2011 06:32:27 +0200 Original-Received: from localhost ([::1]:58694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCOaI-00007w-D3 for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Oct 2011 00:32:26 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCOaD-00007q-9m for help-gnu-emacs@gnu.org; Sat, 08 Oct 2011 00:32:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCOaB-0006hD-Je for help-gnu-emacs@gnu.org; Sat, 08 Oct 2011 00:32:21 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:36207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCOaB-0006h4-E0 for help-gnu-emacs@gnu.org; Sat, 08 Oct 2011 00:32:19 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RCOa8-00077I-54 for help-gnu-emacs@gnu.org; Sat, 08 Oct 2011 06:32:16 +0200 Original-Received: from 123.115.177.87 ([123.115.177.87]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Oct 2011 06:32:16 +0200 Original-Received: from eric by 123.115.177.87 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Oct 2011 06:32:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 123.115.177.87 User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) Cancel-Lock: sha1:pBZx3ZF5FnTY5ZrQZNkf45QOD8E= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82498 Archived-At: I recently compiled git Emacs on Ubuntu and am loving it -- everything's very noticeably snappier. My setup transferred over flawlessly, except for one thing. Ibus-mode[1], which allows emacs to use the system-wide ibus input method under Ubuntu, now fails with an odd error. I'd like to help get this mode working under emacs 24, so I'm trying to understand as much about it as possible. The error is "Hex character out of range: \\x2000000", and it's triggered by this bit of code in ibus.el: --8<---------------cut here---------------start------------->8--- (if (and (null keybind) (integerp event) (memq 'shift (event-modifiers event))) ;; Reset the 25th bit corresponding to the shift key (setq event (logand event (lognot ?\x2000000)) keybind (key-binding (vector event)))) --8<---------------cut here---------------end--------------->8--- I have no idea what this does, and suspect I never will, but I'm wondering if anyone out there can tell me -- is this an easy error to fix? Does this hex value somehow "correspond to the shift key" in a different way under emacs 24? Anyway, any light that could be shed on this would be received gratefully. Thanks, Eric [1]: http://www.emacswiki.org/emacs/IBusMode -- GNU Emacs 24.0.90.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4) of 2011-10-06 on pellet