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#27350: #27350 25.2; Make `inhibit-compacting-font-caches' customizable Date: Thu, 15 Jun 2017 17:38:45 +0300 Message-ID: <83fuf12u4q.fsf@gnu.org> References: <548efd73-7fb5-45ef-979d-59623d31df3b@default> 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 1497537616 12227 195.159.176.226 (15 Jun 2017 14:40:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Jun 2017 14:40:16 +0000 (UTC) Cc: 27350@debbugs.gnu.org To: "Felix E. Klee" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 15 16:40:07 2017 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 1dLVwL-0002eg-IX for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Jun 2017 16:40:05 +0200 Original-Received: from localhost ([::1]:54442 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLVwQ-0008JM-Ic for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Jun 2017 10:40:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLVwL-0008JC-9u for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2017 10:40:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLVwI-0005BW-3p for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2017 10:40:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47033) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLVwI-0005BN-0s for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2017 10:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dLVwH-0007eP-R3 for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2017 10:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Jun 2017 14:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27350 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 27350-submit@debbugs.gnu.org id=B27350.149753755529352 (code B ref 27350); Thu, 15 Jun 2017 14:40:01 +0000 Original-Received: (at 27350) by debbugs.gnu.org; 15 Jun 2017 14:39:15 +0000 Original-Received: from localhost ([127.0.0.1]:49710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLVvX-0007dM-9b for submit@debbugs.gnu.org; Thu, 15 Jun 2017 10:39:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49245) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLVvW-0007d9-10 for 27350@debbugs.gnu.org; Thu, 15 Jun 2017 10:39:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLVvN-0004vf-Jv for 27350@debbugs.gnu.org; Thu, 15 Jun 2017 10:39:08 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52540) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLVvN-0004vb-GS; Thu, 15 Jun 2017 10:39:05 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2971 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dLVvM-0000cl-6f; Thu, 15 Jun 2017 10:39:05 -0400 In-reply-to: (felix.klee@inka.de) 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:133616 Archived-At: > From: "Felix E. Klee" > Date: Thu, 15 Jun 2017 13:53:32 +0200 > > Hi there! I am the guy who asked on StackExchange. Let me know if there > is anything that I can do to help you reproduce the bug. Thanks for showing up. > Perhaps the fonts that are on my system are an issue. Browsing through > the characters in [unicode.txt][1] and with ‘xub-mode’ enabled, I find > four fonts: > > -- -outline-Consolas-normal-normal-normal-mono-16-*-*-*-c-*-iso8859-1 > > -- -outline-BatangChe-normal-normal-normal-mono-16-*-*-*-c-*-gb2312.1980-0 > > -- -outline-MS Gothic-normal-normal-normal-mono-16-*-*-*-c-*-jisx0208*-* > > -- -outline-Symbola-normal-normal-normal-serif-16-*-*-*-p-*-iso10646-1 > > If there is a way to list all the fonts used in a file, I’m curious to > hear about it. It should be easy to write a function that goes over all the face changes in a buffer and adds the faces' fonts to some list. However, what we really want is not the list of all the fonts, but only those fonts which slow down redisplay. So what I suggest is to move point slowly through the buffer, notice the positions where it takes Emacs significantly more time to update the cursor position, and then look at the fonts only in those places. (My guess would be that Ming-Liu, Batang-Che, and perhaps also Gothic are the offending fonts.) FWIW, on my system most of the funny characters are displayed using Arial Unicode MS, and I see no perceptible slowdown. Maybe you could try setting up Emacs to do the same, and see if the problem goes away. Let me know if you need guidance for how to set that up. Thanks.