From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Is it possible to use new Emacsen with non-ASCII? Date: Fri, 23 May 2008 00:09:47 +0200 Organization: Organization?!? Message-ID: <8563t6htxw.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211496087 2221 80.91.229.12 (22 May 2008 22:41:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 May 2008 22:41:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 23 00:42:04 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JzJU2-00019k-1m for geh-help-gnu-emacs@m.gmane.org; Fri, 23 May 2008 00:42:02 +0200 Original-Received: from localhost ([127.0.0.1]:53235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzJTH-0001kZ-LM for geh-help-gnu-emacs@m.gmane.org; Thu, 22 May 2008 18:41:15 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news.astraweb.com!border1.a.newsrouter.astraweb.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!npeer.de.kpn-eurorings.net!npeer-ng1.kpn.DE!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:TCwyIFBL2CKbTsKN31oe2FE93tE= Original-Lines: 41 Original-NNTP-Posting-Date: 23 May 2008 00:09:47 CEST Original-NNTP-Posting-Host: d2f39c32.newsspool2.arcor-online.net Original-X-Trace: DXC=QeGRjMIeOco>jlK2>IgHGdA9EHlD; 3Ycb4Fo<]lROoRa8kF5MOK`; S:bhJlG_QH1aI@k8nNTQCU>78Jgc Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: news.stanford.edu gnu.emacs.help:158886 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54252 Archived-At: Ilya Zakharevich writes: > [A complimentary Cc of this posting was sent to > Eli Zaretskii > ], who wrote in article : >> 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