From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: displaying the Eurosign at all Date: 07 Mar 2005 16:28:18 +0100 Organization: [posted via Easynet Spain] Message-ID: <877jkjiigd.fsf@thalassa.informatimago.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1110209530 27714 80.91.229.2 (7 Mar 2005 15:32:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2005 15:32:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 07 16:32:10 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D8K6L-0002NS-Qc for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2005 16:24:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D8KQ8-0001mp-25 for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2005 10:45:24 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news-FFM2.ecrc.net!news.netplace.de!feed.news.tiscali.de!easynet-quince!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 54 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=`NmUBCUN<>GFM3Vj`\9Q9FiZdW>mQFP3FbBd4DjF1d]A Original-Xref: shelby.stanford.edu gnu.emacs.help:129054 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:24601 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24601 Josef Dalcolmo writes: > I still have problems with the EURO sign: > > At 08 Oct 2002 11:36:48 +0200, > Klaus Berndl wrote: > ... > > (global-set-key (kbd "\200") 'insert-euro) > > This works, e.g. I see a Euro sign in the current buffer. However > there is no Euro sign character (latin-9) in the file, even though my > default language environment is set to Latin-9. > > When I insert a EURO character with another editor (for example > SciTE) into a file, then Emacs still shows it as \200. > > So, something is still wrong, but what? Here is what I have in my ~/.emacs: (when (fboundp 'unify-8859-on-encoding-mode) (unify-8859-on-encoding-mode 1)) (when (fboundp 'unify-8859-on-decoding-mode) (unify-8859-on-decoding-mode 1)) (setq default-enable-multibyte-characters t unibyte-display-via-language-environment nil) ;; If we got Latin-9 take it: (setq my-latin (if (assoc-ignore-case "Latin-9" language-info-alist) 9 1)) ;; For coding-system we don't specify *-unix to allow it to load DOS files. (cond ((= my-latin 1) (setq my-lenv "Latin-1" my-encoding 'iso-8859-1)) ((= my-latin 9) (setq my-lenv "Latin-9" my-encoding 'iso-8859-15)) (t (error "Invalid value for my-latin variable."))) (set-language-environment my-lenv) (prefer-coding-system my-encoding) Then I type in ¤ with C-x 8 $ and it shows like an euro, and when I load files containing \200, they are interpreted as Latin-9 (iso-8859-15) files and these characters show as euros. Of course, it helps to have X fonts with iso-8859-15 characters too. -- __Pascal_Bourguignon__ _ Software patents are endangering () ASCII ribbon against html email (o_ the computer industry all around /\ 1962:DO20I=1.100 //\ the world http://lpf.ai.mit.edu/ 2001:my($f)=`fortune`; V_/ http://petition.eurolinux.org/