unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Robert J. Chassell" <bob@rattlesnake.com>
Cc: gnu@vsnl.net
Subject: Re: No malayalam glyphs in language/mlm-util.el
Date: Sat, 15 Feb 2003 10:40:55 -0500 (EST)	[thread overview]
Message-ID: <m18k4Qx-000IeBC@localhost> (raw)
In-Reply-To: <m18jqQL-000IeIC@localhost> (bob@rattlesnake.com)

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

  parent reply	other threads:[~2003-02-15 15:40 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-11 18:01 no font shown with tamil.el Robert J. Chassell
2003-02-12  0:34 ` Kenichi Handa
2003-02-12  1:09   ` Robert J. Chassell
2003-02-12  8:33     ` Jason Rumney
2003-02-12 18:17       ` Robert J. Chassell
2003-02-12 19:51         ` Jason Rumney
2003-02-12 20:31           ` Robert J. Chassell
2003-02-12 23:07         ` Raja R Harinath
2003-02-13  2:27           ` Robert J. Chassell
2003-02-13 22:50             ` Raja R Harinath
2003-02-13  0:36         ` Kenichi Handa
2003-02-13  1:44           ` Robert J. Chassell
2003-02-13  2:16             ` Kenichi Handa
2003-02-13  2:54               ` Robert J. Chassell
2003-02-12 20:33   ` Richard Stallman
2003-02-13  0:13     ` Kenichi Handa
2003-02-13 19:27       ` Richard Stallman
2003-02-13 23:11         ` Raja R Harinath
2003-02-13 23:47         ` Kenichi Handa
2003-02-14 11:00           ` Kenichi Handa
2003-02-14 14:35             ` No malayalam glyphs in language/mlm-util.el Robert J. Chassell
2003-02-14 19:58               ` Raja R Harinath
2003-02-14 21:50                 ` Robert J. Chassell
2003-02-14 22:20                   ` Raja R Harinath
2003-02-15  0:43                     ` Robert J. Chassell
2003-02-15  3:16                       ` Ramakrishnan M
2003-02-15  3:34                       ` Ramakrishnan M
2003-02-15 15:40                       ` Robert J. Chassell [this message]
2003-02-15 16:00                         ` Ramakrishnan M
2003-02-15 17:54                           ` Benjamin Riefenstahl
2003-02-15 18:29                             ` Raja R Harinath
2003-02-16  5:27                             ` Ramakrishnan M
2003-02-17  6:26                               ` Kenichi Handa
2003-02-17 14:41                                 ` Stefan Monnier
2003-02-18 11:51                                   ` Kenichi Handa
2003-02-19  6:16                                     ` Kenichi Handa
     [not found]                                     ` <87smugyh08.fsf@vsnl.net>
2003-02-24  1:46                                       ` Kenichi Handa
2003-02-20 11:09                             ` Kenichi Handa
2003-02-20 12:26                               ` Juanma Barranquero
2003-02-20 12:50                                 ` Kenichi Handa
2003-02-21 21:43                               ` Richard Stallman
     [not found]                           ` <1045400184.16187.694.camel@uma>
     [not found]                             ` <1045406040.597.28.camel@debian>
2003-02-17 20:36                               ` Richard Stallman
2003-02-17 23:43                                 ` Kenichi Handa
2003-02-14 11:15           ` no font shown with tamil.el Richard Stallman
2003-02-14 10:59         ` 川幡 太一
2003-02-15  7:44           ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2003-02-22 11:22 No malayalam glyphs in language/mlm-util.el Ramakrishnan M

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m18k4Qx-000IeBC@localhost \
    --to=bob@rattlesnake.com \
    --cc=gnu@vsnl.net \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).