GNU bug report logs - #14351
24.3; Using XIM with UIM

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Reuben Thomas <rrt@HIDDEN>; dated Sun, 5 May 2013 17:31:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at>

Received: (at submit) by; 5 May 2013 17:30:46 +0000
From debbugs-submit-bounces <at> Sun May 05 13:30:46 2013
Received: from localhost ([]:59019
	by with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at>>)
	id 1UZ2lo-0007WG-HC
	for submit <at>; Sun, 05 May 2013 13:30:45 -0400
Received: from ([]:45416)
	by with esmtp (Exim 4.72)
	(envelope-from <rrt@HIDDEN>) id 1UZ2lk-0007Vx-F6
	for submit <at>; Sun, 05 May 2013 13:30:42 -0400
Received: from Debian-exim by with spam-scanned (Exim 4.71)
	(envelope-from <rrt@HIDDEN>) id 1UZ2kr-0000Sb-M5
	for submit <at>; Sun, 05 May 2013 13:29:47 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=-101.5 required=5.0 tests=BAYES_50, RCVD_IN_DNSWL_MED,
	USER_IN_WHITELIST autolearn=disabled version=3.3.2
Received: from ([]:56716)
	by with esmtp (Exim 4.71) (envelope-from <rrt@HIDDEN>)
	id 1UZ2kr-0000SX-JH
	for submit <at>; Sun, 05 May 2013 13:29:45 -0400
Received: from ([]:56765)
	by with esmtp (Exim 4.71)
	(envelope-from <rrt@HIDDEN>) id 1UZ2kp-0001CC-GQ
	for bug-gnu-emacs@HIDDEN; Sun, 05 May 2013 13:29:45 -0400
Received: from Debian-exim by with spam-scanned (Exim 4.71)
	(envelope-from <rrt@HIDDEN>) id 1UZ2km-0000Rx-Tb
	for bug-gnu-emacs@HIDDEN; Sun, 05 May 2013 13:29:43 -0400
Received: from ([]:41315)
	by with smtp (Exim 4.71) (envelope-from <rrt@HIDDEN>)
	id 1UZ2km-0000RQ-Gx
	for bug-gnu-emacs@HIDDEN; Sun, 05 May 2013 13:29:40 -0400
Received: from ([]) (using TLSv1) by ([]) with SMTP
	Sun, 05 May 2013 10:29:40 PDT
Received: by with SMTP id e49so4600542eek.9
	for <bug-gnu-emacs@HIDDEN>; Sun, 05 May 2013 10:29:37 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113;
X-Received: by with SMTP id ew10mr5390972wid.9.1367774977420;
	Sun, 05 May 2013 10:29:37 -0700 (PDT)
X-Received: by with SMTP id ew10mr5390965wid.9.1367774977250;
	Sun, 05 May 2013 10:29:37 -0700 (PDT)
Received: from skwd ([])
	by with ESMTPSA id q20sm10131311wiv.7.2013.
	for <bug-gnu-emacs@HIDDEN>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Sun, 05 May 2013 10:29:36 -0700 (PDT)
From: Reuben Thomas <rrt@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3; Using XIM with UIM
Date: Sun, 05 May 2013 18:29:34 +0100
Message-ID: <87k3ndbaip.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQmGtl4hD5gXEAy28Da/ul6s0uxbzRCTpcj4YRK8wGS5CwQ9/xcMV8P5sRlx7+KJLpjv2D8hP/vAshp1VKUeIa9IJ7yQEk6GZdPIUHlZI6gpWmhHyM4o+jR/Enu75ql//MqmKZN5wMFoDQ7XJhHkEoAMYtVATJ4ytqC2x84iR/xm9GRE1Kg=
X-detected-operating-system: by GNU/Linux 2.4.x
X-detected-operating-system: by GNU/Linux 2.6.x
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at>
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <>
List-Unsubscribe: <>,
	<mailto:debbugs-submit-request <at>>
List-Archive: <>
List-Post: <mailto:debbugs-submit <at>>
List-Help: <mailto:debbugs-submit-request <at>>
List-Subscribe: <>,
	<mailto:debbugs-submit-request <at>>
Sender: debbugs-submit-bounces <at>
Errors-To: debbugs-submit-bounces <at>
X-Spam-Score: -6.2 (------)

This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgment at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

I have been using Emacs happily for some time with XIM out of the box. I
am using a GTK build of Emacs (as standard in Ubuntu) and had
GTK_IM_MODULE=3Dxim set in my environment.

Recently, I switched to using UIM, as this allows me to get two bits of
functionality I rely on: first, ~/.XCompose combinations (via XIM) and
secondly, Ctrl+Shift+U to enter Unicode code points (this latter doesn=E2=
matter to Emacs, of course).

This works fine with every other program I can find, whether GTK, Qt or
plain X.

In Emacs I tried using uim.el (as shipped with Ubuntu), but this seems
only to offer one uim input method, ascii-direct-uim, which doesn't seem
to alter anything.

If I run Emacs normally, XIM has stopped working, and pressing Compose
just gives me "Multi_key undefined".

I can make XIM work OK again by running Emacs from a bash script which


# Work with emacs binary anywhere else on PATH
path_remove ()  {
    export PATH=3D`echo -n $PATH | awk -v RS=3D: -v ORS=3D: '$0 !=3D "'$1'"=
' | sed 's/:$//'`;
path_remove `dirname $0`

XMODIFIERS=3D@im=3Dlocal exec -a $0 emacs "$@"

I tried running

emacs --xrm "emacs.useXIM:true"

but this didn't help (and looking at the source, that's no surprise: my
Emacs is built with XIM support, so it's only turn-offable, not

Is there a simpler way to get this result?

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file

In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.6.4)
 of 2013-04-14 on marid, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11303000
System Description:	Ubuntu 13.04

Configured using:
 `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'
 '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' '--libexecdir=3D/usr/lib'
 '--localstatedir=3D/var/lib' '--infodir=3D/usr/share/info'
 '--mandir=3D/usr/share/man' '--with-pop=3Dyes'
 '--with-crt-dir=3D/usr/lib/x86_64-linux-gnu' '--with-x=3Dyes'
 '--with-x-toolkit=3Dgtk3' '--with-toolkit-scroll-bars'
 'build_alias=3Dx86_64-linux-gnu' 'CFLAGS=3D-g -O2 -fstack-protector
 --param=3Dssp-buffer-size=3D4 -Wformat -Werror=3Dformat-security -Wall'
 'LDFLAGS=3D-Wl,-Bsymbolic-functions -Wl,-z,relro'

Important settings:
  value of $LC_MONETARY: en_GB.UTF-8
  value of $LC_NUMERIC: en_GB.UTF-8
  value of $LC_TIME: en_GB.UTF-8
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: @im=3Dlocal
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: C/l

Minor modes in effect:
  flymake-mode: t
  shell-dirtrack-mode: t
  flyspell-mode: t
  recentf-mode: t
  show-paren-mode: t
  server-mode: t
  savehist-mode: t
  minibuffer-electric-default-mode: t
  iswitchb-mode: t
  icomplete-mode: t
  global-auto-revert-mode: t
  desktop-save-mode: t
  global-whitespace-mode: t
  TeX-PDF-mode: t
  TeX-source-correlate-mode: t
  dtrt-indent-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-p <down>=20
<down> <down> <down> <down> <down> <down> <down> <return>=20
<down> C-x o C-n C-n C-n C-n C-n C-n C-n <return> C-x=20
o C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p=20
C-p C-p C-p C-p C-p C-p C-p C-n C-n C-p C-p C-p C-p=20
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p=20
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p=20
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p=20
C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n=20
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p=20
C-p C-p C-p C-p C-p C-p C-n C-n C-p C-p C-p C-n C-n=20
C-n C-n C-n <return> C-x o C-p C-p C-p C-p C-p C-p=20
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n <return> C-x=20
o C-n <return> M-x r e p o r t - e m c a s - b u g=20
<backspace> <backspace> <backspace> <backspace> <backspace>=20
<backspace> <backspace> a c s =3D - <backspace> <backspace>=20
- b u g <return> U s i n g SPC X I M S-SPC u n d e=20
r SPC U I M C-x C-g C-g C-x 0 <return> C-x 1 <up> <up>=20
<up> <up> <up> <up> <up> <up> <up> <up> <down> <down>=20
<down> <down> <down> <down> <down> <down> <down> <down>=20
<down> <down> <down> <down> <down> <down> <down> <down>=20
<down> <down> <down> <down> <down> <down> <down> <down>=20
<down> <down> <down> <down> <down> <down> <down> M-x=20
<up> <return>

Recent messages:
Mark set [3 times]
Loading cc-langs...done
Mark set [2 times]
Grep finished (matches found)
Mark set [3 times]
byte-code: Beginning of buffer [13 times]
Mark set [3 times]
Quit [2 times]
Mark set
user-error: No further undo information

Load-path shadows:
/home/rrt/.emacs.d/el-get/magit/.dir-locals hides ~/.emacs.d/el-get/el-get/=
/home/rrt/.emacs.d/el-get/package/elpa/csv-mode-1.50/csv-mode hides /usr/sh=
/home/rrt/.emacs.d/el-get/quack/quack hides /usr/share/emacs24/site-lisp/em=
/home/rrt/.emacs.d/el-get/filladapt/filladapt hides /usr/share/emacs24/site=
/home/rrt/.emacs.d/el-get/markdown-mode/markdown-mode hides /usr/share/emac=
/home/rrt/.emacs.d/el-get/apache-mode/apache-mode hides /usr/share/emacs24/=
/home/rrt/.emacs.d/el-get/graphviz-dot-mode/graphviz-dot-mode hides /usr/sh=
/home/rrt/.emacs.d/el-get/browse-kill-ring/browse-kill-ring hides /usr/shar=
/home/rrt/local/share/emacs/site-lisp/lilypond-indent hides /usr/share/emac=
/home/rrt/local/share/emacs/site-lisp/lilypond-what-beat hides /usr/share/e=
/usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-=
/home/rrt/local/share/emacs/site-lisp/lilypond-init hides /usr/share/emacs/=
/usr/share/emacs/24.3/site-lisp/cmake-data/cmake-mode hides /usr/share/emac=
/home/rrt/local/share/emacs/site-lisp/lilypond-font-lock hides /usr/share/e=
/usr/share/emacs/24.3/site-lisp/cdargs hides /usr/share/emacs/site-lisp/cda=
/home/rrt/local/share/emacs/site-lisp/lilypond-mode hides /usr/share/emacs/=
/home/rrt/local/share/emacs/site-lisp/lilypond-song hides /usr/share/emacs/=
/home/rrt/local/share/emacs/site-lisp/whitespace hides /usr/share/emacs/24.=
/usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.3/lisp/textmodes/r=
/usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/em=
/usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/=
/home/rrt/.emacs.d/el-get/cperl-mode/cperl-mode hides /usr/share/emacs/24.3=
/home/rrt/local/share/emacs/site-lisp/flymake hides /usr/share/emacs/24.3/l=
/home/rrt/.emacs.d/el-get/magit/.dir-locals hides /usr/share/emacs/24.3/lis=
/usr/share/emacs24/site-lisp/auctex/tex-style hides /usr/share/emacs/site-l=
/usr/share/emacs24/site-lisp/auctex/tex-mik hides /usr/share/emacs/site-lis=
/usr/share/emacs24/site-lisp/auctex/multi-prompt hides /usr/share/emacs/sit=
/usr/share/emacs24/site-lisp/auctex/tex-jp hides /usr/share/emacs/site-lisp=
/usr/share/emacs24/site-lisp/auctex/tex-info hides /usr/share/emacs/site-li=
/usr/share/emacs24/site-lisp/auctex/plain-tex hides /usr/share/emacs/site-l=
/usr/share/emacs24/site-lisp/auctex/latex hides /usr/share/emacs/site-lisp/=
/usr/share/emacs24/site-lisp/auctex/preview hides /usr/share/emacs/site-lis=
/usr/share/emacs24/site-lisp/auctex/tex hides /usr/share/emacs/site-lisp/au=
/usr/share/emacs24/site-lisp/auctex/texmathp hides /usr/share/emacs/site-li=
/usr/share/emacs24/site-lisp/auctex/context-nl hides /usr/share/emacs/site-=
/usr/share/emacs24/site-lisp/auctex/tex-font hides /usr/share/emacs/site-li=
/usr/share/emacs24/site-lisp/auctex/toolbar-x hides /usr/share/emacs/site-l=
/usr/share/emacs24/site-lisp/auctex/tex-buf hides /usr/share/emacs/site-lis=
/usr/share/emacs24/site-lisp/auctex/bib-cite hides /usr/share/emacs/site-li=
/usr/share/emacs24/site-lisp/auctex/context-en hides /usr/share/emacs/site-=
/usr/share/emacs24/site-lisp/auctex/tex-fold hides /usr/share/emacs/site-li=
/usr/share/emacs24/site-lisp/auctex/tex-bar hides /usr/share/emacs/site-lis=
/usr/share/emacs24/site-lisp/auctex/context hides /usr/share/emacs/site-lis=
/usr/share/emacs24/site-lisp/auctex/prv-emacs hides /usr/share/emacs/site-l=
/usr/share/emacs24/site-lisp/auctex/font-latex hides /usr/share/emacs/site-=

(shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mail-utils cc-langs vc-bzr
find-dired sh-script smie executable two-column iso-transl plain-tex
grep misearch multi-isearch texmathp latexenc flymake-lua lua-mode
make-mode autoconf autoconf-mode jka-compr tex-info texinfo sgml-mode
apache-mode preview prv-emacs noutline outline tex-buf font-latex latex
tex-style cperl-mode vc-git flymake tramp tramp-compat tramp-loaddefs
shell pcomplete format-spec face-remap flyspell ispell smart-quotes
csv-mode-autoloads completing-help ff-paths recentf tree-widget wid-edit
uniquify paren server savehist minibuf-eldef iswitchb icomplete
autorevert cus-start cus-load ropemacs pymacs desktop whitespace tex
dbus xml remember .loaddefs yasnippet dropdown-list derived quack
thingatpt compile cmuscheme comint ansi-color scheme po-mode php-mode
etags ring cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align
cc-engine cc-vars cc-defs speedbar sb-image ezimage dframe init-paredit
paredit edmacro kmacro go-mode url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-domsuf url-util mailcap ffap
url-parse auth-source eieio gnus-util mm-util mail-prsvr password-cache
url-vars geiser-load geiser frame-restore flymake-point init-eldoc
eldoc-extension eldoc dtrt-indent byte-opt warnings darkroom-mode
frame-local-vars browse-kill-ring advice advice-preload el-get
el-get-autoloads el-get-list-packages el-get-notify help-mode easymenu
el-get-dependencies el-get-build el-get-status pp el-get-recipes
el-get-byte-compile el-get-methods el-get-fossil el-get-svn
el-get-pacman el-get-github-zip el-get-github-tar el-get-http-zip
el-get-http-tar el-get-hg el-get-git-svn el-get-fink el-get-emacswiki
el-get-http el-get-emacsmirror el-get-github el-get-git el-get-elpa
package cl-macs gv el-get-darcs el-get-cvs el-get-bzr el-get-brew
el-get-builtin el-get-apt-get el-get-custom el-get-core autoload
help-fns bytecomp byte-compile cconv cl cl-lib dired user-site-loaddefs
muse-autoloads emacs-goodies-el emacs-goodies-custom
emacs-goodies-loaddefs easy-mmode preview-latex tex-site auto-loads
time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face macroexp files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty emacs)


Acknowledgement sent to Reuben Thomas <rrt@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#14351; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.