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

Previous Next

Package: emacs;

Reported by: Reuben Thomas <rrt <at> sc3d.org>

Date: Sun, 5 May 2013 17:31:02 UTC

Severity: normal

Found in version 24.3

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14351 in the body.
You can then email your comments to 14351 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#14351; Package emacs. (Sun, 05 May 2013 17:31:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Reuben Thomas <rrt <at> sc3d.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 05 May 2013 17:31:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Reuben Thomas <rrt <at> sc3d.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; Using XIM with UIM
Date: Sun, 05 May 2013 18:29:34 +0100
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  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=xim 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’t
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
goes:

#!/bin/bash

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

XMODIFIERS=@im=local 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
turn-onable).

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
/usr/share/emacs/24.3/etc/DEBUG.


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=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var/lib' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp'
 '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes'
 '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars'
 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector
 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall'
 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'
 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

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=local
  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> 
<down> <down> <down> <down> <down> <down> <down> <return> 
<down> C-x o C-n C-n C-n C-n C-n C-n C-n <return> C-x 
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 
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 
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 
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 
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 
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 
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 
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 
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 
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 
C-n C-n C-n <return> C-x o 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 C-p C-p C-n <return> C-x 
o C-n <return> M-x r e p o r t - e m c a s - b u g 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> a c s = - <backspace> <backspace> 
- b u g <return> U s i n g SPC X I M S-SPC u n d e 
r SPC U I M C-x C-g C-g C-x 0 <return> C-x 1 <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> M-x 
<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/.dir-locals
/home/rrt/.emacs.d/el-get/package/elpa/csv-mode-1.50/csv-mode hides /usr/share/emacs24/site-lisp/emacs-goodies-el/csv-mode
/home/rrt/.emacs.d/el-get/quack/quack hides /usr/share/emacs24/site-lisp/emacs-goodies-el/quack
/home/rrt/.emacs.d/el-get/filladapt/filladapt hides /usr/share/emacs24/site-lisp/emacs-goodies-el/filladapt
/home/rrt/.emacs.d/el-get/markdown-mode/markdown-mode hides /usr/share/emacs24/site-lisp/emacs-goodies-el/markdown-mode
/home/rrt/.emacs.d/el-get/apache-mode/apache-mode hides /usr/share/emacs24/site-lisp/emacs-goodies-el/apache-mode
/home/rrt/.emacs.d/el-get/graphviz-dot-mode/graphviz-dot-mode hides /usr/share/emacs24/site-lisp/emacs-goodies-el/graphviz-dot-mode
/home/rrt/.emacs.d/el-get/browse-kill-ring/browse-kill-ring hides /usr/share/emacs24/site-lisp/emacs-goodies-el/browse-kill-ring
/home/rrt/local/share/emacs/site-lisp/lilypond-indent hides /usr/share/emacs/site-lisp/lilypond-indent
/home/rrt/local/share/emacs/site-lisp/lilypond-what-beat hides /usr/share/emacs/site-lisp/lilypond-what-beat
/usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/home/rrt/local/share/emacs/site-lisp/lilypond-init hides /usr/share/emacs/site-lisp/lilypond-init
/usr/share/emacs/24.3/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode
/home/rrt/local/share/emacs/site-lisp/lilypond-font-lock hides /usr/share/emacs/site-lisp/lilypond-font-lock
/usr/share/emacs/24.3/site-lisp/cdargs hides /usr/share/emacs/site-lisp/cdargs
/home/rrt/local/share/emacs/site-lisp/lilypond-mode hides /usr/share/emacs/site-lisp/lilypond-mode
/home/rrt/local/share/emacs/site-lisp/lilypond-song hides /usr/share/emacs/site-lisp/lilypond-song
/home/rrt/local/share/emacs/site-lisp/whitespace hides /usr/share/emacs/24.3/lisp/whitespace
/usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.3/lisp/textmodes/rst
/usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.3/lisp/textmodes/ispell
/usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.3/lisp/textmodes/flyspell
/home/rrt/.emacs.d/el-get/cperl-mode/cperl-mode hides /usr/share/emacs/24.3/lisp/progmodes/cperl-mode
/home/rrt/local/share/emacs/site-lisp/flymake hides /usr/share/emacs/24.3/lisp/progmodes/flymake
/home/rrt/.emacs.d/el-get/magit/.dir-locals hides /usr/share/emacs/24.3/lisp/gnus/.dir-locals
/usr/share/emacs24/site-lisp/auctex/tex-style hides /usr/share/emacs/site-lisp/auctex/tex-style
/usr/share/emacs24/site-lisp/auctex/tex-mik hides /usr/share/emacs/site-lisp/auctex/tex-mik
/usr/share/emacs24/site-lisp/auctex/multi-prompt hides /usr/share/emacs/site-lisp/auctex/multi-prompt
/usr/share/emacs24/site-lisp/auctex/tex-jp hides /usr/share/emacs/site-lisp/auctex/tex-jp
/usr/share/emacs24/site-lisp/auctex/tex-info hides /usr/share/emacs/site-lisp/auctex/tex-info
/usr/share/emacs24/site-lisp/auctex/plain-tex hides /usr/share/emacs/site-lisp/auctex/plain-tex
/usr/share/emacs24/site-lisp/auctex/latex hides /usr/share/emacs/site-lisp/auctex/latex
/usr/share/emacs24/site-lisp/auctex/preview hides /usr/share/emacs/site-lisp/auctex/preview
/usr/share/emacs24/site-lisp/auctex/tex hides /usr/share/emacs/site-lisp/auctex/tex
/usr/share/emacs24/site-lisp/auctex/texmathp hides /usr/share/emacs/site-lisp/auctex/texmathp
/usr/share/emacs24/site-lisp/auctex/context-nl hides /usr/share/emacs/site-lisp/auctex/context-nl
/usr/share/emacs24/site-lisp/auctex/tex-font hides /usr/share/emacs/site-lisp/auctex/tex-font
/usr/share/emacs24/site-lisp/auctex/toolbar-x hides /usr/share/emacs/site-lisp/auctex/toolbar-x
/usr/share/emacs24/site-lisp/auctex/tex-buf hides /usr/share/emacs/site-lisp/auctex/tex-buf
/usr/share/emacs24/site-lisp/auctex/bib-cite hides /usr/share/emacs/site-lisp/auctex/bib-cite
/usr/share/emacs24/site-lisp/auctex/context-en hides /usr/share/emacs/site-lisp/auctex/context-en
/usr/share/emacs24/site-lisp/auctex/tex-fold hides /usr/share/emacs/site-lisp/auctex/tex-fold
/usr/share/emacs24/site-lisp/auctex/tex-bar hides /usr/share/emacs/site-lisp/auctex/tex-bar
/usr/share/emacs24/site-lisp/auctex/context hides /usr/share/emacs/site-lisp/auctex/context
/usr/share/emacs24/site-lisp/auctex/prv-emacs hides /usr/share/emacs/site-lisp/auctex/prv-emacs
/usr/share/emacs24/site-lisp/auctex/font-latex hides /usr/share/emacs/site-lisp/auctex/font-latex

Features:
(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)

-- 
http://rrt.sc3d.org/




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14351; Package emacs. (Fri, 25 Nov 2022 01:48:02 GMT) Full text and rfc822 format available.

Message #8 received at 14351 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Reuben Thomas <rrt <at> sc3d.org>
Cc: 14351 <at> debbugs.gnu.org
Subject: Re: bug#14351: 24.3; Using XIM with UIM
Date: Thu, 24 Nov 2022 17:47:10 -0800
Reuben Thomas <rrt <at> sc3d.org> writes:

> 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=xim 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’t
> 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
> goes:
>
> #!/bin/bash
>
> # Work with emacs binary anywhere else on PATH
> path_remove ()  {
>     export PATH=`echo -n $PATH | awk -v RS=: -v ORS=: '$0 != "'$1'"' | sed 's/:$//'`;
> }
> path_remove `dirname $0`
>
> XMODIFIERS=@im=local 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
> turn-onable).
>
> Is there a simpler way to get this result?

This bug was reported nearly 10 years ago, but unfortunately never got a
reply at the time.

Is this still an issue with a modern version of Emacs?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14351; Package emacs. (Fri, 25 Nov 2022 11:41:02 GMT) Full text and rfc822 format available.

Message #11 received at 14351 <at> debbugs.gnu.org (full text, mbox):

From: Reuben Thomas <rrt <at> sc3d.org>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 14351 <at> debbugs.gnu.org
Subject: Re: bug#14351: 24.3; Using XIM with UIM
Date: Fri, 25 Nov 2022 12:40:25 +0100
[Message part 1 (text/plain, inline)]
On Fri, 25 Nov 2022 at 02:47, Stefan Kangas <stefankangas <at> gmail.com> wrote:

>
> This bug was reported nearly 10 years ago, but unfortunately never got a
> reply at the time.
>
> Is this still an issue with a modern version of Emacs?
>

Thanks for checking!

I don't know whether this particular issue still exists; but it's not a
problem for me; these days I use IBus, and both Compose and Unicode input
work fine without any Emacs configuration.

-- 
https://rrt.sc3d.org
[Message part 2 (text/html, inline)]

Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Fri, 25 Nov 2022 13:02:02 GMT) Full text and rfc822 format available.

Notification sent to Reuben Thomas <rrt <at> sc3d.org>:
bug acknowledged by developer. (Fri, 25 Nov 2022 13:02:03 GMT) Full text and rfc822 format available.

Message #16 received at 14351-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Reuben Thomas <rrt <at> sc3d.org>
Cc: 14351-done <at> debbugs.gnu.org
Subject: Re: bug#14351: 24.3; Using XIM with UIM
Date: Fri, 25 Nov 2022 05:00:56 -0800
Reuben Thomas <rrt <at> sc3d.org> writes:

> On Fri, 25 Nov 2022 at 02:47, Stefan Kangas <stefankangas <at> gmail.com> wrote:
>
>  This bug was reported nearly 10 years ago, but unfortunately never got a
>  reply at the time.
>
>  Is this still an issue with a modern version of Emacs?
>
> Thanks for checking!
>
> I don't know whether this particular issue still exists; but it's not a problem for me; these
> days I use IBus, and both Compose and Unicode input work fine without any Emacs
> configuration.

OK, thanks for reporting back.  As no one else has said anything in the
last decade, I guess it's unlikely we'll make progress here.  So let's
hope that this has been fixed or otherwise unimportant; I'm closing the
bug report with this message.

If anyone else is seeing any issues, they will have to report a new bug
or reopen this one.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 24 Dec 2022 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 194 days ago.

Previous Next


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