[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it possible to use new Emacsen with non-ASCII?
From: |
Ilya Zakharevich |
Subject: |
Re: Is it possible to use new Emacsen with non-ASCII? |
Date: |
Thu, 22 May 2008 20:26:59 +0000 (UTC) |
User-agent: |
trn [how to get a version via %-escapes???] with a custom header |
[A complimentary Cc of this posting was sent to
Eli Zaretskii
<eliz@gnu.org>], who wrote in article
<mailman.11687.1210939428.18990.help-gnu-emacs@gnu.org>:
> Sorry, I spoke too soon (I guess I underestimated how long ago I
> switched from Emacs 21.x to 22.x). Here's the equivalent recipe for
> Emacs 21:
>
> emacs -q --no-site-file
> M-x set-language-environment RET Cyrillic-KOI8 RET
> C-x RET t Cyrillic-KOI8 RET
> C-x RET k Cyrillic-KOI8 RET
I spoke too soon. Typed literally, it works. But the "equivalent"
programmatic code does not:
(let ((v (getenv "EMACS_LANGENV")))
(and v (progn
(set-language-environment v)
(set-terminal-coding-system (intern v))
(set-keyboard-coding-system (intern v))
(set-input-mode (car (current-input-mode))
(nth 1 (current-input-mode))
'8bit)
(run-with-idle-timer
5 nil 'message ; Once, after 5 sec of inactivity
"Switch Cyr/Lat by Ctrl-\\, Cyr-Yawerty/Cyr-GOST by f9 \\"))))
I get
Debugger entered--Lisp error: (coding-system-error Cyrillic-KOI8)
set-terminal-coding-system-internal(Cyrillic-KOI8)
set-terminal-coding-system(Cyrillic-KOI8)
What did I do wrong?
Thanks,
Ilya
- Re: Is it possible to use new Emacsen with non-ASCII?, (continued)
- Re: Is it possible to use new Emacsen with non-ASCII?, Eli Zaretskii, 2008/05/16
- Re: Is it possible to use new Emacsen with non-ASCII?, Eli Zaretskii, 2008/05/16
- Message not available
- Re: Is it possible to use new Emacsen with non-ASCII?, Ilya Zakharevich, 2008/05/16
- Re: Is it possible to use new Emacsen with non-ASCII?, Eli Zaretskii, 2008/05/16
- Re: Is it possible to use new Emacsen with non-ASCII?, Eli Zaretskii, 2008/05/16
- Message not available
- Re: Is it possible to use new Emacsen with non-ASCII?, Ilya Zakharevich, 2008/05/16
- Re: Is it possible to use new Emacsen with non-ASCII?, Eli Zaretskii, 2008/05/17
- Re: Is it possible to use new Emacsen with non-ASCII?, Chris McMahan, 2008/05/19
- Re: Is it possible to use new Emacsen with non-ASCII?, Eli Zaretskii, 2008/05/19
- Message not available
- Re: Is it possible to use new Emacsen with non-ASCII?, Ilya Zakharevich, 2008/05/19
- Message not available
- Re: Is it possible to use new Emacsen with non-ASCII?,
Ilya Zakharevich <=
- Re: Is it possible to use new Emacsen with non-ASCII?, David Kastrup, 2008/05/22
- Re: Is it possible to use new Emacsen with non-ASCII?, Jason Rumney, 2008/05/22
- Re: Is it possible to use new Emacsen with non-ASCII?, Ilya Zakharevich, 2008/05/23
- Re: Is it possible to use new Emacsen with non-ASCII?, Jason Rumney, 2008/05/23
- Re: Is it possible to use new Emacsen with non-ASCII?, Ilya Zakharevich, 2008/05/24
- Re: Is it possible to use new Emacsen with non-ASCII?, Eli Zaretskii, 2008/05/24
- Message not available
- Re: Is it possible to use new Emacsen with non-ASCII?, Ilya Zakharevich, 2008/05/16
- Re: Is it possible to use new Emacsen with non-ASCII?, Eli Zaretskii, 2008/05/17
- Message not available
- Re: Is it possible to use new Emacsen with non-ASCII?, Ilya Zakharevich, 2008/05/22
- Re: Is it possible to use new Emacsen with non-ASCII?, Eli Zaretskii, 2008/05/23