all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pascal Bourguignon <spam@mouse-potato.com>
Subject: Re: displaying the Eurosign at all
Date: 07 Mar 2005 16:28:18 +0100	[thread overview]
Message-ID: <877jkjiigd.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: mailman.2882.1110206200.32256.help-gnu-emacs@gnu.org

Josef Dalcolmo <dalcolmo@vh-s.de> 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/

  parent reply	other threads:[~2005-03-07 15:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1034025217.28906.help-gnu-emacs@gnu.org>
2002-10-07 22:45 ` displaying the Eurosign at all Stefan Monnier <foo@acm.com>
     [not found] ` <m3u1jx2v40.fsf@kuntu.zangpo.org>
2002-10-08  9:36   ` Klaus Berndl
2005-03-07 13:49     ` Josef Dalcolmo
     [not found]     ` <mailman.2882.1110206200.32256.help-gnu-emacs@gnu.org>
2005-03-07 14:58       ` Stefan Monnier
2005-03-07 15:44         ` Josef Dalcolmo
     [not found]         ` <mailman.2905.1110213034.32256.help-gnu-emacs@gnu.org>
2005-03-07 16:34           ` Pascal Bourguignon
2005-03-09  4:59           ` Stefan Monnier
2005-03-09  8:34             ` Peter Dyballa
     [not found]             ` <mailman.3091.1110358306.32256.help-gnu-emacs@gnu.org>
2005-03-09 10:27               ` Oliver Scholz
2005-03-09 15:11               ` Josef Dalcolmo
2005-03-09 15:23                 ` Oliver Scholz
2005-03-09 15:27                 ` Stefan Monnier
2005-03-07 15:28       ` Pascal Bourguignon [this message]
2002-10-07 23:10 Raimund.Kohl
2002-10-07 21:52 ` ken
2002-10-07 23:48 ` Raimund.Kohl
     [not found] <mailman.1034027410.506.help-gnu-emacs@gnu.org>
2002-10-08  4:35 ` Miles Bader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877jkjiigd.fsf@thalassa.informatimago.com \
    --to=spam@mouse-potato.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.