emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: latin1-display vs. unify-8859-on-encoding-mode


From: Kenichi Handa
Subject: Re: latin1-display vs. unify-8859-on-encoding-mode
Date: Thu, 1 Apr 2004 21:33:12 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

In article <address@hidden>, Jesper Harder <address@hidden> writes:

> This is in an xterm in a latin-1 locale:
>    (latin1-display 'latin-9)

> does not have the desired effect of displaying the otherwise
> undisplayable latin-9 characters, such as euro, with the mnemonics
> defined in latin1-disp.el when unify-8859-on-encoding-mode is on.  It
> works if it's turned off.

> The problem seems to be that `latin1-display-check-font' tests for a
> condition like:

>   (char-displayable-p (make-char 'latin-iso8859-15 ?\ ))
>    => 2208

> i.e. the latin-9 SPC is unified to latin-1.

You are right.

> It works if you use a generic character instead of SPC,
> but I don't know if it's the proper fix.

No, char-displayable-p doesn't work well with a generaic char.

The attached change will fix the problem, but it makes the
execution of latin1-display slower because of repeated call
of char-displayable-p.  Could you please try it?  In my
2.8GHz PC, the slowness is ignoreable, but perhaps not in a
slower matchine.

Dave, what do you think about this change?

If the slowness is not ignoreable, I'll try to find a better
fix.

By the way, is calling (latin1-display-identities set) the
right thing?

---
Ken'ichi HANDA
address@hidden

Attachment: latin1-disp.diff.gz
Description: Binary data


reply via email to

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