From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: No malayalam glyphs in language/mlm-util.el Date: Sat, 15 Feb 2003 10:40:55 -0500 (EST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200302132347.IAA10169@etlken.m17n.org> <200302141100.UAA11513@etlken.m17n.org> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1045323733 15554 80.91.224.249 (15 Feb 2003 15:42:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 15 Feb 2003 15:42:13 +0000 (UTC) Cc: gnu@vsnl.net Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18k4SB-00042k-00 for ; Sat, 15 Feb 2003 16:42:11 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18k4ff-0007jf-00 for ; Sat, 15 Feb 2003 16:56:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18k4TO-00039N-04 for emacs-devel@quimby.gnus.org; Sat, 15 Feb 2003 10:43:26 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18k4T3-0002vy-00 for emacs-devel@gnu.org; Sat, 15 Feb 2003 10:43:05 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18k4Sj-0002Ht-00 for emacs-devel@gnu.org; Sat, 15 Feb 2003 10:42:52 -0500 Original-Received: from megalith.rattlesnake.com ([140.186.114.245] helo=localhost) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18k4SM-0001NM-00 for emacs-devel@gnu.org; Sat, 15 Feb 2003 10:42:22 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.114) Sat, 15 Feb 2003 10:40:55 -0500 (EST) Original-To: harinath@cs.umn.edu, emacs-devel@gnu.org, In-reply-to: (bob@rattlesnake.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11666 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11666 Today's CVS snapshot, Sat, 2003 Feb 15 14:17 UTC GNU Emacs 21.3.50.149 (i686-pc-linux-gnu, X toolkit) Yesterday, I wrote: Thank you! I can now see all the fonts in emacs/lisp/language/mlm-util.el I spoke too soon! I can see the fonts when I manually evaluate, (set-fontset-font (query-fontset (frame-parameter nil 'font)) (cons (decode-char 'ucs #x0D00) (decode-char 'ucs #x0D7f)) (cons "misc-malayalam" "iso10646-1")) but when I put that expression in my ~/.emacs file, start a new instance of Emacs, and then visit /usr/local/src/emacs/lisp/language/mlm-util.el I do not see the fonts; I see empty boxes. But if I manually evaluate the Emacs Lisp expression above while looking at the `mlm-util.el' in another buffer, the empty boxes change to proper glyphs. I am not certain what is going on, but it looks to me that the `set-fontset-font' function is modifying the first fontset, but that modification is not done during the loading of the ~/.emacs file. First, I tried putting the Emacs Lisp expression at the end of my ~/.emacs file, so it would be evaluated last, but that did not solve the problem. Then I wrote this hook and put it into my ~/.emacs file: (add-hook 'find-file-hook (function (lambda () (set-fontset-font (query-fontset (frame-parameter nil 'font)) (cons (decode-char 'ucs #x0D00) (decode-char 'ucs #x0D7f)) (cons "misc-malayalam" "iso10646-1"))))) This succeeds. That is to say, with this hook, when I visit the `mlm-util.el' file, I see the proper glyphs. But the use of such a hook is an ugly way to solve the problem. What should I do? -- Robert J. Chassell Rattlesnake Enterprises http://www.rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.teak.cc bob@rattlesnake.com