You are not logged in.

#1 2016-06-14 02:00:16

matt_brigida
Member
Registered: 2016-06-02
Posts: 2

[Solved] Emacs: Can't turn off input method

This is a strange problem.  In Emacs on my x86_64 arch system, whenever I press the space bar (calling self-insert-command), the echo area shows, "<Hangul_Hanja> is undefined".   When I do C-h I to find the input method it says I am using korean-hangul390.  So I C-\ to toggle the input method off, but it won't turn off.  It must be something in my config.

So I start emacs with

emacs -q

and press the space bar in the scratch buffer, and again the echo area reads "<Hangul_Hanja> is undefined".  C-h I now says there is no input method defined.  C-\ again does nothing. 

I figure I'll just compile emacs without XIM.  So I use the ABS, and use the --without-xim configuration option.  Everything went well, installed, and still have the same issue. 

I am not sure what to try next.  Any ideas on what I can do to track the problem down? I also run Arch on a i686 system, and emacs works fine.

Last edited by matt_brigida (2016-06-14 03:38:45)

Offline

#2 2016-06-14 02:36:03

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [Solved] Emacs: Can't turn off input method

Are you running the ultimate editor from a console, or are you running inside Xorg?
Ignoring emacs for a second, what does xev say about that key?

What locale do you use?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2016-06-14 03:36:15

matt_brigida
Member
Registered: 2016-06-02
Posts: 2

Re: [Solved] Emacs: Can't turn off input method

ewaller wrote:

Are you running the ultimate editor from a console, or are you running inside Xorg?

In Xorg.  There is no problem running emacs from the console.

ewaller wrote:

Ignoring emacs for a second, what does xev say about that key?

Interesting.  Every time I hit space, xev returns both:

65  space
131 Hangul_Hanja

So this is the issue.  Oddly no other key returns two codes, only the space bar.  I didn't screw up the locale in the installation.     

ewaller wrote:

What locale do you use?

$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

So I plugged in a new keyboard, and xev shows only '65 space'!  Perfect.  So the issue is with the gaming keyboard I was using: Cooler Master Devastator. 

I really appreciate your help!

The gaming keyboard had nice high Control keys which I liked with emacs.  I'll have to look into working around the problem with the keyboard (maybe with xmodemap).  But problem solved.

Offline

Board footer

Powered by FluxBB