From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?G=C3=B6ktu=C4=9F_Kayaalp?= Newsgroups: gmane.emacs.help Subject: Re: An unwonted warning I constantly get about fontsets when I start Emacs Date: Sun, 28 May 2017 16:16:35 +0300 Message-ID: References: <83efvaiqku.fsf@gnu.org> <83y3tih13o.fsf@gnu.org> <83r2zagzmy.fsf@gnu.org> <83mv9xhb1e.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1495977444 3526 195.159.176.226 (28 May 2017 13:17:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 May 2017 13:17:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 28 15:17:20 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 1dEy4N-0000jl-Qk for geh-help-gnu-emacs@m.gmane.org; Sun, 28 May 2017 15:17:20 +0200 Original-Received: from localhost ([::1]:43961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEy4Q-00010i-8i for geh-help-gnu-emacs@m.gmane.org; Sun, 28 May 2017 09:17:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEy3q-00010R-Kp for help-gnu-emacs@gnu.org; Sun, 28 May 2017 09:16:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEy3p-000773-H4 for help-gnu-emacs@gnu.org; Sun, 28 May 2017 09:16:46 -0400 Original-Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:54244) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dEy3j-00075w-Vg; Sun, 28 May 2017 09:16:40 -0400 Original-Received: from mfilter15-d.gandi.net (mfilter15-d.gandi.net [217.70.178.143]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id E305EA80C6; Sun, 28 May 2017 15:16:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter15-d.gandi.net Original-Received: from relay3-d.mail.gandi.net ([IPv6:::ffff:217.70.183.195]) by mfilter15-d.gandi.net (mfilter15-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 7phVYr0WI07h; Sun, 28 May 2017 15:16:36 +0200 (CEST) X-Originating-IP: 95.65.131.160 Original-Received: from xi.xi (unknown [95.65.131.160]) (Authenticated sender: self@gkayaalp.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id EF17CA80C2; Sun, 28 May 2017 15:16:35 +0200 (CEST) In-Reply-To: <83mv9xhb1e.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 28 May 2017 07:15:25 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4b98:c:538::195 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:113208 Archived-At: On 2017-05-28 07:15 +03, Eli Zaretskii wrote: >> From: G=C3=B6ktu=C4=9F Kayaalp >> Cc: help-gnu-emacs@gnu.org >> Date: Sun, 28 May 2017 01:27:30 +0300 >>=20 >> > 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. >>=20 >> 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 >> =E2=80=98byte-compile-file=E2=80=99, and diffed again, no differences). >>=20 >> In fontset.el, =E2=80=98old-italic=E2=80=99 appears in function =E2=80= =98setup-default-fontset=E2=80=99, >> called by =E2=80=98create-default-fontset=E2=80=99. There, after the ca= ll to >> =E2=80=98new-fontset=E2=80=99, there's a dolist expression commented =C2= =ABFor simple >> scripts=C2=BB, which runs this expression on a list of symbols including >> =E2=80=98old-italic=E2=80=99: >>=20 >> (set-fontset-font "fontset-default" >> script (font-spec :registry "iso10646-1" :script scr= ipt) >> nil 'append) >>=20 >> I tried this: >>=20 >> (let ((script 'old-italic)) >> (set-fontset-font "fontset-default" >> script (font-spec :registry "iso10646-1" :script scr= ipt) >> nil 'append)) >>=20 >> Which gave me this backtrace: >>=20 >> Debugger entered--Lisp error: (error "Invalid script or charset name: ol= d-italic") >> set-fontset-font("fontset-default" old-italic # nil ap= pend) >> (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 ((scri= pt (quote old-italic))) (set-fontset-font "fontset-default" script (font-sp= ec :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 old-=C4=B1talic >> 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.) /home/g/co/emacs.d/packages/org/ox-groff hides /home/g/co/emacs.d/site/ox-g= roff /home/g/co/emacs.d/site/let-alist hides /home/g/local/share/emacs/26.0.50/l= isp/emacs-lisp/let-alist 2 Emacs Lisp load-path shadowings were found >> > 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. >>=20 >> 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-=C4=B1talic) > > That =C4=B1 in =C4=B1talic 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. As I said in my other post, I'll try these and if it persists I'll report a bug. gk.