From: "Shaowei Wang (wsw)" <wsw1wsw2@gmail.com>
To: "Štěpán Němec" <stepnem@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: How to get SCIM working in GUI Emacs (was Re: emacs XIM input method and locale issues)
Date: Sat, 4 Sep 2010 22:46:13 +0800 [thread overview]
Message-ID: <AANLkTi=QRbUF_=eJX5eKZurVUT0hqD71VMw5FqbRJ=Pv@mail.gmail.com> (raw)
In-Reply-To: <877hj1fy68.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1631 bytes --]
I check the source and I found:
in src/xfns.c: create_frame_xic()
xic = XCreateIC (xim,
XNInputStyle, xic_style,
XNClientWindow, FRAME_X_WINDOW (f),
XNFocusWindow, FRAME_X_WINDOW (f),
XNStatusAttributes, status_attr,
XNPreeditAttributes, preedit_attr,
NULL);
When the locale (LC_ALL)is en_US.utf8, the return value of XCreatIC is NULL.
When set the locale to zh_CN.utf8 , the return value of XCreateIC is OK, and
SCIM or IBUS works fine.
I don't know why.
On Sat, Sep 4, 2010 at 9:14 PM, Štěpán Němec <stepnem@gmail.com> wrote:
> "Shaowei Wang (wsw)" <wsw1wsw2@gmail.com> writes:
>
> > Hi all
> > I want to use xim program(scim) with emacs and I have some issues here.
> >
> > My scim works find with gtk programs and other X programs(rxvt-unicode)
> but
> > emacs. I found the locale is the
> > key point.
>
> [...]
>
> > I did lots of google searchs. Some guy said it is the Xorg problem and
> > others said it's the font (may be font path) problem.
> > But how do we explane that other X program works fine with scim?
>
> I'll let others do the explaining, but rest assured that getting GUI
> Emacs to work with SCIM or IBus is non-trivial. AFAIK you need
> third-party packages for that, specifically for SCIM I used to use this
> (now I'm using the IBus interface by the same author):
>
> http://www.emacswiki.org/emacs/ScimBridge
>
> [Also note that this is emacs-devel; questions of this sort are better
> served on help-gnu-emacs@gnu.org or other help fora.]
>
> Štěpán
>
[-- Attachment #2: Type: text/html, Size: 2289 bytes --]
prev parent reply other threads:[~2010-09-04 14:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-03 8:38 emacs XIM input method and locale issues Shaowei Wang (wsw)
2010-09-04 13:14 ` How to get SCIM working in GUI Emacs (was Re: emacs XIM input method and locale issues) Štěpán Němec
2010-09-04 14:42 ` How to get SCIM working in GUI Emacs Miles Bader
2010-09-04 20:05 ` Štěpán Němec
2010-09-05 0:56 ` Miles Bader
2010-09-04 14:46 ` Shaowei Wang (wsw) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTi=QRbUF_=eJX5eKZurVUT0hqD71VMw5FqbRJ=Pv@mail.gmail.com' \
--to=wsw1wsw2@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=stepnem@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).