[Top][All Lists]

[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 
<address@hidden>], who wrote in article <address@hidden>:
> 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))
            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)

What did I do wrong?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]