[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it possible to use new Emacsen with non-ASCII?
From: |
David Kastrup |
Subject: |
Re: Is it possible to use new Emacsen with non-ASCII? |
Date: |
Fri, 23 May 2008 00:09:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Ilya Zakharevich <nospam-abuse@ilyaz.org> writes:
> [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?
'cyrillic-koi8 and 'Cyrillic-KOI8 are different symbols.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- 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
- 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, 2008/05/22
- Re: Is it possible to use new Emacsen with non-ASCII?,
David Kastrup <=
- 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
- Message not available
- Re: Is it possible to use new Emacsen with non-ASCII?, Ilya Zakharevich, 2008/05/23