From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19266: 24.4; Font-related window redrawing delays on OS X Date: Thu, 11 Dec 2014 19:45:35 +0200 Message-ID: <8361dit70g.fsf@gnu.org> References: <83y4qn50ua.fsf@gnu.org> <957C7241-1F90-42A3-83DE-4696B483C1F0@lunaryorn.com> <83ppbz4t3f.fsf@gnu.org> <83fvcrzbku.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1418319985 20329 80.91.229.3 (11 Dec 2014 17:46:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Dec 2014 17:46:25 +0000 (UTC) Cc: swiesner@lunaryorn.com, 19266@debbugs.gnu.org To: Kirill Ignatiev , Dmitry Antipov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 11 18:46:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xz7od-0007bd-M2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Dec 2014 18:46:15 +0100 Original-Received: from localhost ([::1]:52831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz7od-0002yX-7r for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Dec 2014 12:46:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz7oV-0002y7-Dw for bug-gnu-emacs@gnu.org; Thu, 11 Dec 2014 12:46:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xz7oQ-0005qU-2G for bug-gnu-emacs@gnu.org; Thu, 11 Dec 2014 12:46:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz7oP-0005qK-Vt for bug-gnu-emacs@gnu.org; Thu, 11 Dec 2014 12:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xz7oP-0001P0-Ox for bug-gnu-emacs@gnu.org; Thu, 11 Dec 2014 12:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Dec 2014 17:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19266 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19266-submit@debbugs.gnu.org id=B19266.14183199505369 (code B ref 19266); Thu, 11 Dec 2014 17:46:01 +0000 Original-Received: (at 19266) by debbugs.gnu.org; 11 Dec 2014 17:45:50 +0000 Original-Received: from localhost ([127.0.0.1]:43026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xz7o9-0001OR-Vh for submit@debbugs.gnu.org; Thu, 11 Dec 2014 12:45:49 -0500 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:43581) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xz7o6-0001O9-Ce for 19266@debbugs.gnu.org; Thu, 11 Dec 2014 12:45:43 -0500 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NGF00J00HYFU000@mtaout24.012.net.il> for 19266@debbugs.gnu.org; Thu, 11 Dec 2014 19:37:48 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NGF00I79IB0X720@mtaout24.012.net.il>; Thu, 11 Dec 2014 19:37:48 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:97216 Archived-At: > Date: Wed, 10 Dec 2014 18:50:01 -0500 > From: Kirill Ignatiev > Cc: Sebastian Wiesner , 19266@debbugs.gnu.org > > Can someone familiar with emacs' font internals check if this makes > sense as the cause of the problem, please? I really don't understand > how/where fonts are stored/cached/used; I did read > font/fontset/macfont/alloc.c, but I'm still unclear. Unfortunately, we don't have too many experts on this, to put it mildly. Dmitry, could you please take a look? > To summarize: My interpretation of what's happening is that when emacs > looks at some fonts to see if they contain a certain characters and > neither of them does, emacs *does not* cache the fonts. So the next > time redisplay happens after those fonts are garbage-collected, emacs > has to load the fonts all over again, causing a noticeable redisplay > delay. This does sound like the truth, although I'm not sure. > For testing, how do I turn off font garbage collection, so that no > font is ever closed? Comment out the call to cleanup_vector? > How do I trigger font garbage collection manually? Did you try "M-x garbage-collect RET"? > Is this the right mailing list for this? Yes, it is.