all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Göktuğ Kayaalp" <self@gkayaalp.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: An unwonted warning I constantly get about fontsets when I start Emacs
Date: Sun, 28 May 2017 01:27:30 +0300	[thread overview]
Message-ID: <ygm60gmaqb1.fsf@xi> (raw)
In-Reply-To: <83r2zagzmy.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 27 May 2017 17:09:25 +0300")

[-- Attachment #1: Type: text/plain, Size: 3776 bytes --]

On 2017-05-27 17:09 +03, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Göktuğ Kayaalp <self@gkayaalp.com>
>> Cc: help-gnu-emacs@gnu.org
>> Date: Sat, 27 May 2017 16:44:18 +0300
>> 
>> >> >> Error (initialization): Creation of the default fontsets failed:
>> >> >> (error Invalid script or charset name: old-italic)
>> >> >>
>> >> >> [...]
>> >> > Please show your fontset-related customizations.
>> >> 
>> >> I don't have any such customisations in Emacs.  Just setting the font
>> >> for some faces here and there:
>> >
>> > Strange, I don't see old-italic mentioned anywhere.
>> >
>> > Are you sure you don't have some stale Lisp files lying around and
>> > shadowing the ones which come with the distribution?
>> 
>> None of my lisp files contain the word `fontset'.  I've looked quite a
>> bit, but haven't found anything related.  I just learnt what it is,
>> actually.
>> 
>> > Also, do you see this problem with "emacs -Q"?
>> 
>> Yes.  The message comes up in the *Warnings* buffer with or without -Q.
>> No problems with any functionality so far tho, just the warning.
>
> This becomes more and more stuff for a bug report, not for discussion
> here.
>
> The old-italic script is defined in charscript.el, so check that file
> for problems (damaged, truncated, outdated).  It is then used in
> fontset.el, and the error you see comes from there, see the function
> create-default-fontset.  Maybe by looking into these two files, or by
> searching your system for outdated versions which shadow these, you
> will find the culprit.

charscript.el seems alright, it's installed only as an elc file, and
seems okay (I've diffed the .elc in the git repo with the installed
copy, no differences, then I recompiled the repo version via
‘byte-compile-file’, and diffed again, no differences).

In fontset.el, ‘old-italic’ appears in function ‘setup-default-fontset’,
called by ‘create-default-fontset’.  There, after the call to
‘new-fontset’, there's a dolist expression commented «For simple
scripts», which runs this expression on a list of symbols including
‘old-italic’:

(set-fontset-font "fontset-default"
                    script (font-spec :registry "iso10646-1" :script script)
                    nil 'append)

I tried this:

(let ((script 'old-italic))
  (set-fontset-font "fontset-default"
                    script (font-spec :registry "iso10646-1" :script script)
                    nil 'append))

Which gave me this backtrace:

Debugger entered--Lisp error: (error "Invalid script or charset name: old-italic")
  set-fontset-font("fontset-default" old-italic #<font-spec nil nil nil nil iso10646-1 nil nil nil nil nil nil nil ((:script . old-italic))> nil append)
  (let ((script (quote old-italic))) (set-fontset-font "fontset-default" script (font-spec :registry "iso10646-1" :script script) nil (quote append)))
  eval-region(146 322 t #[257 "\300\242b\210\301\207" [(322) (let ((script (quote old-italic))) (set-fontset-font "fontset-default" script (font-spec :registry "iso10646-1" :script script) nil (quote append)))] 2 "\n\n(fn IGNORE)"])  ; Reading at buffer position 146
[...]

The only emacs installation on my system is that one from the git repo
which I use daily, and this is the first build I made from this clone of
the repo.  It't virtually impossible that any shadowing happens.  Git
does not report any modified files.

> My next suggestion is to make sure the tree where you build Emacs is
> clean, and doesn't contain any stale files from the previous versions
> you've built.

As above.  I'll report this as a bug if you tell me to do so.  I'm
attaching charscript.el as it seems to be a generated file not tracked
by git.


[-- Attachment #2: charscript.el --]
[-- Type: application/emacs-lisp, Size: 10101 bytes --]

  reply	other threads:[~2017-05-27 22:27 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-27  9:22 An unwonted warning I constantly get about fontsets when I start Emacs Göktuğ Kayaalp
2017-05-27  9:42 ` Eli Zaretskii
2017-05-27 11:52   ` Göktuğ Kayaalp
2017-05-27 13:37     ` Eli Zaretskii
2017-05-27 13:44       ` Göktuğ Kayaalp
2017-05-27 14:09         ` Eli Zaretskii
2017-05-27 22:27           ` Göktuğ Kayaalp [this message]
2017-05-28  4:15             ` Eli Zaretskii
2017-05-28  4:33               ` Eli Zaretskii
2017-05-28  7:56                 ` tomas
2017-05-28 15:01                   ` Eli Zaretskii
2017-05-28 13:14                 ` Göktuğ Kayaalp
2017-05-28 14:32                   ` Göktuğ Kayaalp
2017-05-28 15:41                     ` Eli Zaretskii
2017-05-28 18:14                       ` Göktuğ Kayaalp
2017-05-28 13:16               ` Göktuğ Kayaalp
  -- strict thread matches above, loose matches on Subject: below --
2017-05-27  9:25 Göktuğ Kayaalp

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

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

  git send-email \
    --in-reply-to=ygm60gmaqb1.fsf@xi \
    --to=self@gkayaalp.com \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.