Subject: bug#17928: 24.3.92; <dead-acute> is undefined

From: Jan Djärv <[email-masked]>
Date: Fri, 04 Jul 2014 12:50:10 +0200

Hello.

2014-07-04 02:03, Stefan Monnier skrev:
> forcemerge 14044 17928
> severity 17928 important
> thanks
>
>> After upgrading to Ubuntu 14.04 (which I clearly should stop doing,
>> because it messed up my keybindings again, and stole C-<SPC> anf who
>> knows what else), I get "<dead-acute> is undefined" when I, well, press
>> <dead-acute>. While it might very well be Ubuntu messing things up,
>> emacs recognizes the key correctly and should do the right thing. (Gnome
>> terminal works as expected and so does xterm.)
>
> Jan and other people who know more about X11, Gtk and input processing,
> what can we do about it.  We really should get this fixed somehow for
> 24.4.

For this bug, just backport from trunk:

revno: 116859 [merge]
committer: Daniel Colascione <[email-masked]>
branch nick: trunk
timestamp: Sun 2014-03-23 04:45:17 -0700
message:
   Further improve XIM init

revno: 116858 [merge]
committer: Daniel Colascione <[email-masked]>
branch nick: trunk
timestamp: Sun 2014-03-23 03:57:25 -0700
message:
   Make Emacs work with ibus

=== modified file 'src/ChangeLog'
--- src/ChangeLog       2014-03-23 08:29:43 +0000
+++ src/ChangeLog       2014-03-23 11:44:21 +0000
@@ -1,5 +1,16 @@
  2014-03-23  Daniel Colascione  <[email-masked]>

+       * xfns.c (create_frame_xic): Pass XNStatusAttributes to XCreateIC
+       only if xic_style calls for it.  This change allows Emacs to work
+       with ibus.  Also, don't leak resources if create_frame_xic fails,
+       and stop caching xic_style across different displays.
+       (supported_xim_styles): Make const.
+       (best_xim_style): Remove first parameter: it's always just
+       supported_xim_styles.  Change to look at supported_xim_styles
+       directly.
+
+2014-03-23  Daniel Colascione  <[email-masked]>
+
         * term.c (init_tty): Rearrange condition for clarity; print
         appropriate diagnostic.

=== modified file 'src/xfns.c'
--- src/xfns.c  2014-03-11 06:50:01 +0000
+++ src/xfns.c  2014-03-23 11:44:21 +0000

...

I don't know if other input methods also work, but ibus does, and I think that 
is the default in Ubuntu now.

	Jan D.