From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: An unwonted warning I constantly get about fontsets when I start Emacs Date: Sun, 28 May 2017 07:15:25 +0300 Message-ID: <83mv9xhb1e.fsf@gnu.org> References: <83efvaiqku.fsf@gnu.org> <83y3tih13o.fsf@gnu.org> <83r2zagzmy.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1495944965 4551 195.159.176.226 (28 May 2017 04:16:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 May 2017 04:16:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 28 06:16:00 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEpcU-0000yY-VF for geh-help-gnu-emacs@m.gmane.org; Sun, 28 May 2017 06:15:59 +0200 Original-Received: from localhost ([::1]:42699 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEpcX-0006a1-5m for geh-help-gnu-emacs@m.gmane.org; Sun, 28 May 2017 00:16:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEpc0-0006Zs-BJ for help-gnu-emacs@gnu.org; Sun, 28 May 2017 00:15:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEpbx-0006mk-72 for help-gnu-emacs@gnu.org; Sun, 28 May 2017 00:15:28 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEpbx-0006mf-3X for help-gnu-emacs@gnu.org; Sun, 28 May 2017 00:15:25 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3995 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dEpbw-00059C-FV for help-gnu-emacs@gnu.org; Sun, 28 May 2017 00:15:24 -0400 In-reply-to: (message from =?utf-8?B?R8O2a3R1xJ8=?= Kayaalp on Sun, 28 May 2017 01:27:30 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113197 Archived-At: > From: Göktuğ Kayaalp > Cc: help-gnu-emacs@gnu.org > Date: Sun, 28 May 2017 01:27:30 +0300 > > > 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 # 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 > [...] What does the following produce in your Emacs: M-: (aref char-script-table #x10301) RET > 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. The command list-load-path-shadows will produce a list of shadowed files, if there are any. (report-emacs-bug invokes that command internally and includes its results in the bug report, which is one more reason to use report-emacs-bug for such matters.) > > 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 meant something like "git clean -x -f -f". Or maybe clone the repository anew. These things are hard to detect by looking, and a single stale file can drive you mad with its implications. > I'll report this as a bug if you tell me to do so. I think it's long overdue. > I'm attaching charscript.el as it seems to be a generated file not > tracked by git. And here's what seems to be the root cause of your problem: (#x10300 #x1032F old-ıtalic) That ı in ıtalic is the dotless i character, whereas it should be the Latin i character. I see a few more of those elsewhere in the file, all of them will cause similar problems. I'm guessing that some bug causes this in your locale, so as the first thing please delete this file and let the Emacs build process re-generate it, in the hope that the bug was meanwhile fixed. If the regenerated file has the same problem, please do report a bug about that.