From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tapani Tarvainen Newsgroups: gmane.emacs.help Subject: Re: switching between locales (esp. iso-8859-1 and iso-8859-15) Date: 11 Mar 2005 06:25:25 +0200 Organization: Linux Private Site Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110515405 15530 80.91.229.2 (11 Mar 2005 04:30:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2005 04:30:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 11 05:30:05 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D9bmg-0000wP-Id for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Mar 2005 05:29:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D9c1g-00046n-Nr for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Mar 2005 23:45:28 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fi.sn.net!newsfeed2.fi.sn.net!newsfeed3.funet.fi!newsfeeds.funet.fi!mordred!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: tapani.hnet.jyu.fi Original-X-Trace: mordred.cc.jyu.fi 1110515125 2533 130.234.240.55 (11 Mar 2005 04:25:25 GMT) Original-X-Complaints-To: newsmaster@cc.jyu.fi Original-NNTP-Posting-Date: Fri, 11 Mar 2005 04:25:25 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:129213 Original-To: help-gnu-emacs@gnu.org 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:24762 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24762 Reiner Steib writes: > `C-x RET c NEWCODING-SYSTEM RET C-x C-v RET' Thank you (and Kevin Rogers as well). This indeed fixes the display as it should. It only works if the buffer has been saved though, but that's no big problem. Is there a similar simple way to change keyboard behaviour? Now, if emacs is started with locale (LC_CTYPE) set to some ISO-8859-15 locale the euro key on my keyboard works as it should, and keys corresponding to characters not in ISO-8859-15 do not, whereas with ISO-8859-1 locale the reverse is true. - Actually I just found a good (and with afterthought obvious) workaround: set LC_CTYPE to some UTF-8 locale, and both keys work (and combined with suitable settings for coding system preference order it won't even cause files to be saved by utf-8 by default either). So this is just idle curiosity at this point, but I'd still like to know is there a simple way to effectively change emacs behaviour as if locale had been changed without restarting it? -- Tapani Tarvainen