Non-Latin input in emacsclient
Asked Answered
J

1

7

When run in foreground mode, Emacs inserts non-Latin input correctly.

It's when I run it as emacs --damon + emacsclient, begins the madness. Each keystroke, which should insert a character, results in an action, like selecting words, jumping around expressions, selecting functions and so on. Almost like (a horrifying thought) Vim!

Is there a configuration option I am missing?

Update:

Actually solved it: M-x set-locale-environment RETRET.

It's still not clear why it doesn't use the system-wide locale settings (UTF-8).

Update 2:

Yay, fixed in trunk! Thanks to the one who did it!

Jagir answered 1/5, 2012 at 14:10 Comment(0)
C
3

My guess is that your emacsclient sessions are running in a tty and that for some reason Emacs thinks you're running in an ASCII-only terminal where the 8th bit of bytes marks the use of the Meta key. What does locale return when you run it inside your tty?

Cabral answered 1/5, 2012 at 15:51 Comment(6)
Stefan, it returns en_US.UTF-8.Jagir
@katspaugh: Try it via M-x report-emacs-bug RET; I find stackoverflow unusable for debugging that requires back-and-forth discussion.Cabral
@katspaugh: by the way, please try with an empty ~/.emacs first.Cabral
Stefan, I've sent the bug report. Thanks!Jagir
Do you perhaps have a link to the bug report? I still seem to be experiencing this bug, or at least a similar one.Deneb
Looks like it's debbugs.gnu.org/11926 and apparently we dropped the ball on this one, since noone even replied to it.Cabral

© 2022 - 2024 — McMap. All rights reserved.