#77 emacs does NOT cooperate with scim

1.4.x
closed-out-of-date
James Su
5
2007-06-22
2006-07-27
HE Li
No

I have used scim as the Chinese input programme for
Emacs for a while. And they worked fine.
However, when I updated my FC4 to FC5, I find something
really strange. First I never change my configuration
of all programmes. Second, scim still works fine with
lots of other programmes, e.g. firefox, qterm(which is
based on qt) and etc., only except Emacs 21.4 which is
packaged with FC5. When C-<SPC> is pressed in Emacs,
the panel of scim won't appear as usual. Instead, Emacs
captures the key-hit and shows ``Set mark''. And even
if I disable the function associated with C-<SPC> in
Emacs, scim won't be able to be activated.
Then, a CVS version of Emacs 23.0.0.1 is compiled
natively. But scim won't be triggered either.
The environment variables, e.g. LANG and LC_CTYPE are
modified as zh_CN.gb2312 or zh_CN.gbk(or capitalized as
GB2312 and etc.) but without any success.
So now I am really confused with the problem. I don't
understand the reason that scim couldn't be activated.
Any suggestion will be welcome!

Discussion

  • HE Li

    HE Li - 2006-07-27
    • summary: emacs do not cooperate with scim --> emacs does NOT cooperate with scim
     
  • Jens-Ulrik Petersen

    Logged In: YES
    user_id=139853

    Could you please attach the output of "printenv|sort"
    from inside Emacs? eg by using M-! (shell-command)

     
  • HE Li

    HE Li - 2006-08-01

    Logged In: YES
    user_id=1562405

    here it is. LANG=en_US, because the default value of LANG is
    set to en_US. However Emacs is launched with a script.
    Output of printenv | sort with private variables ommitted:
    DESKTOP_SESSION=xfce4
    DISPLAY=:0.0
    DM_CONTROL=/var/run/xdmctl
    G_BROKEN_FILENAMES=1
    GTK_IM_MODULE=xim
    HISTSIZE=1000
    INPUTRC=/etc/inputrc
    JAVA_HOME=/usr/java/jdk1.5.0_04
    KDEDIR=/usr
    KDE_IS_PRELINKED=1
    LANG=zh_CN.gb2312
    LESSCHARSET=iso8859
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    LS_COLORS=
    QTDIR=/usr/lib/qt-3.3
    QT_IM_MODULE=xim
    QTINC=/usr/lib/qt-3.3/include
    QTLIB=/usr/lib/qt-3.3/lib
    SHELL=/bin/bash
    SHLVL=3
    SVN_EDITOR=/bin/vi
    TERM=dumb
    _=/usr/bin/printenv
    XDM_MANAGED=/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic
    XIM_PROGRAM=scim
    XIM=scim
    XMODIFIERS=@im=SCIM

    Scipt which launches Emacs:
    #!/bin/bash
    scim -d 1>/dev/null 2>/dev/null
    export XMODIFIERS="@im=SCIM"
    export XIM=scim
    export XIM_PROGRAM=scim
    export GTK_IM_MODULE=xim
    export QT_IM_MODULE=xim
    export LANG=zh_CN.gb2312
    while test $# -gt 0
    do
    exec $1 1>/dev/null 2>/dev/null &
    shift
    done

     
  • Jens-Ulrik Petersen

    Logged In: YES
    user_id=139853

    Does scim XIM work ok if you run:

    XMODIFIERS="@im=SCIM" LANG=zh_CN.UTF-8 /usr/bin/emacs -q

    for example?

    BTW XIM, XIM_PROGRAM, GTK_IM_MODULE, and QT_IM_MODULE
    have no effect on Emacs so there is no need to set them
    in your script. (Well GTK_IM_MODULE may possibly be useful
    one day for gtk widgets in Emacs 22.)

     
  • HE Li

    HE Li - 2006-08-04

    Logged In: YES
    user_id=1562405

    It won't work, either.
    The other environment variables are set in this script so as
    to launch all kinds of program. E.g. when I log in, I will
    enter a command as below:
    chinese emacs qterm kontact firefox gaim
    Then I can input Chinese in these programmes.

     
  • Jens-Ulrik Petersen

    Logged In: YES
    user_id=139853

    Hmm strange since it works fine for me for both
    zh_CN.UTF-8 and ja_JP.UTF-8 for example.

    I suspect there must be something different in your
    environment it sounds like you may have a lot of
    custom configuration.

     
  • HE Li

    HE Li - 2006-08-08

    Logged In: YES
    user_id=1562405

    It is only in emacs that scim can't be activated, which, I
    think, is the strangest of all. Is there any other
    possibility that is irrelevant to the way scim is launched?

     
  • Jens-Ulrik Petersen

    Logged In: YES
    user_id=139853

    Can you try making a new user account and
    starting a gnome session as that user and seeing
    if emacs works okay for you then?

     
  • HE Li

    HE Li - 2006-08-09

    Logged In: YES
    user_id=1562405

    Yes, I did as you suggested but the result is unfortunately
    the same as my account's... So I think it is irrelevant with
    my personal configurations.

     
  • James Su

    James Su - 2007-06-22
    • status: open --> closed-out-of-date
     
  • HE Li

    HE Li - 2007-06-27

    Logged In: YES
    user_id=1562405
    Originator: YES

    After I updated my fedora core from fc5 to fc6(now fedora 7), this problem just vanished. I am really surprised that how long I have tolerated giving up the chance to type Chinese in Emacs :-p
    Now everything goes fine as they used to. Thank you for your attention!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks