emacs-devel
[Top][All Lists]
Advanced

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

Re: TUTORIAL.bg and windows-1251


From: Ognyan Kulev
Subject: Re: TUTORIAL.bg and windows-1251
Date: Sat, 17 Jan 2004 21:31:34 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031221 Thunderbird/0.4

Kenichi Handa wrote:
In article <address@hidden>, Ognyan Kulev <address@hidden> writes:
That's still strange.  You wrote that microsoft-cp1251 font
is used when you modify the default fontset by this code:

(defun use-microsoft-cp1251-font ()
   (let ((fontspec '(nil . "microsoft-cp1251")))
     (map-char-table
      #'(lambda (k v)
         (if (and v (> k 128))
             (set-fontset-font "fontset-default" k fontspec)))
      (get 'encode-windows-1251 'translation-table))))

That means that you are using the default fontset, thus
making override-fontspec have the higher priority than the
defualt fontset should be enough (as the current Emacs
code).

And, if a user is using a fontset (other than the default
fontset) that specifies some font for Cyrillic characters, I
think override-fontspec should not have the higher priority
than that fontset.

I agree with that.

The patch I've send you raises priority in two functions. Actually, only raising it in fontset_font_pattern gives effect. So when run with "emacs -q" and cyrillic character is being displayed, is it expected that "FONTSET (fontset, c)" fails in function fontset_font_pattern, or "fontset_id_valid_p (id)" is false? One of these must fail somewhat in order lookup_overriding_fontspec to be used.

Regards,
ogi




reply via email to

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