From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ognyan Kulev Newsgroups: gmane.emacs.devel Subject: Re: TUTORIAL.bg and windows-1251 Date: Sat, 17 Jan 2004 21:31:34 +0200 Organization: Faculty of Mathematics and Informatics, University of Sofia Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <40098D96.90205@fmi.uni-sofia.bg> References: <3FB52552.6090302@fmi.uni-sofia.bg> <200311170721.QAA11735@etlken.m17n.org> <3FBA3F81.4010602@fmi.uni-sofia.bg> <200311242355.IAA24563@etlken.m17n.org> <3FC45367.6070504@fmi.uni-sofia.bg> <200311260747.QAA27236@etlken.m17n.org> <3FC464C2.7010504@fmi.uni-sofia.bg> <200311261317.WAA27673@etlken.m17n.org> <200312030834.RAA03004@etlken.m17n.org> <3FCF60C9.8060009@fmi.uni-sofia.bg> <200312042328.IAA06933@etlken.m17n.org> <3FF2E5DF.4090906@fmi.uni-sofia.bg> <200401050414.NAA00014@etlken.m17n.org> <3FFC3249.3010501@fmi.uni-sofia.bg> <200401072358.IAA05239@etlken.m17n.org> <3FFED268.3020908@fmi.uni-sofia.bg> <200401130407.NAA13705@etlken.m17n.org> <40052B24.2030803@fmi.uni-sofia.bg> <200401141210.VAA16210@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1074367876 11027 80.91.224.253 (17 Jan 2004 19:31:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Jan 2004 19:31:16 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Jan 17 20:31:12 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AhwA4-0001fG-00 for ; Sat, 17 Jan 2004 20:31:12 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AhwA3-0001WE-00 for ; Sat, 17 Jan 2004 20:31:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ahw8g-0002gb-OH for emacs-devel@quimby.gnus.org; Sat, 17 Jan 2004 14:29:46 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Ahw88-0002f5-VV for emacs-devel@gnu.org; Sat, 17 Jan 2004 14:29:12 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ahw7b-0002QU-MY for emacs-devel@gnu.org; Sat, 17 Jan 2004 14:29:10 -0500 Original-Received: from [62.44.101.9] (helo=smtp.fmi.uni-sofia.bg) by monty-python.gnu.org with esmtp (SSLv3:DES-CBC3-SHA:168) (Exim 4.24) id 1Ahw7a-0002NS-IY for emacs-devel@gnu.org; Sat, 17 Jan 2004 14:28:38 -0500 Original-Received: from fmi.uni-sofia.bg ([62.44.101.57]) by smtp.fmi.uni-sofia.bg (FMI MAIL EXCHANGING SYSTEM) with ESMTP id 5JI1J; Sat, 17 Jan 2004 21:28:31 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031221 Thunderbird/0.4 X-Accept-Language: en-us, en Original-To: Kenichi Handa In-Reply-To: <200401141210.VAA16210@etlken.m17n.org> X-Enigmail-Version: 0.82.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19226 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19226 Kenichi Handa wrote: > In article <40052B24.2030803@fmi.uni-sofia.bg>, Ognyan Kulev 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