From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25216: 26.0.50 [regression]; Curly quotes are not found in some sizes of =?UTF-8?Q?=E2=80=98Terminus=E2=80=99?= font Date: Mon, 19 Dec 2016 05:42:59 +0200 Message-ID: <83eg1460u4.fsf@gnu.org> References: <87bmwbv038.fsf@gmail.com> <83lgvf6kar.fsf@gnu.org> <871sx6vr1u.fsf@gmail.com> <83inqi7r8t.fsf@gnu.org> <87wpewtxne.fsf@gmail.com> Reply-To: Eli Zaretskii 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 1482119058 10817 195.159.176.226 (19 Dec 2016 03:44:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Dec 2016 03:44:18 +0000 (UTC) Cc: 25216@debbugs.gnu.org To: Dmitry Alexandrov <321942@gmail.com> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 19 04:44:15 2016 Return-path: Envelope-to: geb-bug-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 1cIorz-0001Sr-5a for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Dec 2016 04:44:11 +0100 Original-Received: from localhost ([::1]:43105 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIos2-0005Pt-6j for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Dec 2016 22:44:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIort-0005Po-Ss for bug-gnu-emacs@gnu.org; Sun, 18 Dec 2016 22:44:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cIorq-0006Tr-O9 for bug-gnu-emacs@gnu.org; Sun, 18 Dec 2016 22:44:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cIorq-0006Tn-LJ for bug-gnu-emacs@gnu.org; Sun, 18 Dec 2016 22:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cIorq-0002TY-Em for bug-gnu-emacs@gnu.org; Sun, 18 Dec 2016 22:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Dec 2016 03:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25216 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25216-submit@debbugs.gnu.org id=B25216.14821190239480 (code B ref 25216); Mon, 19 Dec 2016 03:44:02 +0000 Original-Received: (at 25216) by debbugs.gnu.org; 19 Dec 2016 03:43:43 +0000 Original-Received: from localhost ([127.0.0.1]:46661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cIorX-0002Sq-Fh for submit@debbugs.gnu.org; Sun, 18 Dec 2016 22:43:43 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cIorV-0002SU-Gl for 25216@debbugs.gnu.org; Sun, 18 Dec 2016 22:43:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cIorN-0006NK-5T for 25216@debbugs.gnu.org; Sun, 18 Dec 2016 22:43:36 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIorN-0006N8-2g; Sun, 18 Dec 2016 22:43:33 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1408 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cIorM-0000lU-CO; Sun, 18 Dec 2016 22:43:32 -0500 In-reply-to: <87wpewtxne.fsf@gmail.com> (message from Dmitry Alexandrov on Mon, 19 Dec 2016 06:17:57 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:127155 Archived-At: > From: Dmitry Alexandrov <321942@gmail.com> > Cc: 25216@debbugs.gnu.org > Date: Mon, 19 Dec 2016 06:17:57 +0300 > > > It doesn't surprise me. What I don't understand is why this happens. > > Emacs explicitly tests the default font for supporting any symbol or > > punctuation character it needs to display, before it looks for another > > font. See the function face_for_char in fontset.c. > > > >> Aha! Thanks. The exact problematic commit is ‘2276a19d’ [0]. > >> > >> By the way, how could I prove that without rebuilding the whole Emacs? I tried: > >> > >> $ git show 2276a19^:lisp/international/fontset.el > /tmp/lisp/fontset.el > >> $ emacs --directory /tmp/lisp --quick --font '-*-terminus-medium-r-*-*-20-*-*-*-*-*-*-*' > >> > >> Despite that: > >> > >> (locate-library "fontset") > >> ⇒ "/tmp/lisp/fontset.el" > >> > >> I did not see any effect. > > > > You must rebuild Emacs or manually load fontset.el after changing it. > > fontset.el is preloaded when Emacs is built. > > So I need to use ‘temacs’? Yes, that works, thank you. If you want to rebuild Emacs, then yes, you will need to run the command which dumps it after changing fontset.el. > >> However, It might be even better if I could erase that rule, as if > >> there were no lines about that range in ‘fontsel.el’. Is it > >> possible? > > > > That would adversely affect all the users. We arrived at that rule > > after many complaints that symbol and punctuation characters are not > > displayed at all, or displayed using variable-pitch fonts, so we made > > the default fontset "smarter" about that by using fonts people > > generally have installed and which are the default fonts in Emacs. > > Well, I’m the only user on most my machines, so that’s probably bearable. No, I meant all the users of Emacs, world wide. > However, we apparently misunderstood each other — I did not ask how to patch ‘fontsel.el’ machine-wide (I hope, I do understand how to do that). I meant, is it possible to remove elements from the default fontset *user-wide*? ‘Terminus’ is not the only font I use, so that would be cleaner than appending it there. You don't need (and cannot, AFAIK) to remove that. What you need is to prepend your rules, which will override what's there. Like this: (set-fontset-font "fontset-default" '(#x2000 . #x2067) "Terminus" 'prepend) Note the "prepend" part.