From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kirill Ignatiev Newsgroups: gmane.emacs.bugs Subject: bug#19266: 24.4; Font-related window redrawing delays on OS X Date: Thu, 4 Dec 2014 02:41:34 -0500 Message-ID: References: <83y4qn50ua.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1417678942 15045 80.91.229.3 (4 Dec 2014 07:42:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Dec 2014 07:42:22 +0000 (UTC) Cc: 19266@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 04 08:42:16 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 1XwR3H-0000qB-UV for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Dec 2014 08:42:16 +0100 Original-Received: from localhost ([::1]:44808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwR3H-0002mS-DP for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Dec 2014 02:42:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwR3A-0002mH-D0 for bug-gnu-emacs@gnu.org; Thu, 04 Dec 2014 02:42:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwR34-0005I4-OZ for bug-gnu-emacs@gnu.org; Thu, 04 Dec 2014 02:42:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwR34-0005Hw-L0 for bug-gnu-emacs@gnu.org; Thu, 04 Dec 2014 02:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XwR34-0006MW-4Z for bug-gnu-emacs@gnu.org; Thu, 04 Dec 2014 02:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kirill Ignatiev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Dec 2014 07:42:02 +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.141767890424420 (code B ref 19266); Thu, 04 Dec 2014 07:42:02 +0000 Original-Received: (at 19266) by debbugs.gnu.org; 4 Dec 2014 07:41:44 +0000 Original-Received: from localhost ([127.0.0.1]:53210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XwR2l-0006Ln-5O for submit@debbugs.gnu.org; Thu, 04 Dec 2014 02:41:43 -0500 Original-Received: from mail-wi0-f170.google.com ([209.85.212.170]:54467) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XwR2d-0006LY-Io for 19266@debbugs.gnu.org; Thu, 04 Dec 2014 02:41:41 -0500 Original-Received: by mail-wi0-f170.google.com with SMTP id bs8so35441598wib.5 for <19266@debbugs.gnu.org>; Wed, 03 Dec 2014 23:41:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+XDnsk6jf0QS4QLCw7GvWSBcFX5gYhFA7BFVBzAUqbA=; b=Gb5avEMxIWGc4OVf9LBlbR53F9oDtgbhi1sRczEiwZCYey7iweK5dloDqmm+TcxBJW U3x216ITLtwEX1Vqr0W+zSsJmGHqQ5Q7hjXc+MWSkfb2Mh1sMDZ9P8607e8ElTI9qQFu id32GJuxClIoRZbPbWVVmK98XrHyu64NCKlrkbqx2i6Yq9Kl7R3RSSfreueM2zs/MVTZ 2n5A0UYUdAV47rdn1uBor+KSyZs0qe8v6m73Kr6ImWun+4dddi5PRG9Lamo1FthgV3jS gFXodvgtwFNawc2CGKcrq8bIfG0hevQ62RX0bRuYwNH9yb7NHtIBN2y/NRjVTOdnAk8j uaYA== X-Received: by 10.180.88.33 with SMTP id bd1mr105381979wib.10.1417678894623; Wed, 03 Dec 2014 23:41:34 -0800 (PST) Original-Received: by 10.27.87.87 with HTTP; Wed, 3 Dec 2014 23:41:34 -0800 (PST) In-Reply-To: <83y4qn50ua.fsf@gnu.org> 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:96845 Archived-At: On 4 December 2014 at 02:30, Eli Zaretskii wrote: >> Date: Thu, 4 Dec 2014 02:13:30 -0500 >> From: Kirill Ignatiev >> >> [This is a copy of this question on Emacs.SE: >> http://emacs.stackexchange.com/questions/4061] >> At least one other person has the same problem. > > Please ask those persons to report here directly, and to read the > responses and discussions. > >> Often when I'm editing a file with many uncommon unicode symbols (e.g., >> in languages like haskell, julia or c++), and (I think) especially with >> an ornate color theme, I experience delays of maybe about five seconds >> when switching between buffers. Running emacs under lldb show a stack >> trace below; I get a similar stack trace from running `emacs -Q` and >> typing `C-h h` (`view-hello-file`), which takes quite a while to display >> the hello file. > > AFAICT, these delays are due to Emacs searching the system for > appropriate fonts needed to display those unusual symbols. I understand that this needs to happen once. Is it reasonable that the delay happens many times during normal editing? The description of what triggers the delays is unclear because for me it's only reproducible incidentally, during normal work. I have fold-mode that hides large portions of text, and a number of frames. If I hide some previously-displayed text, go work in another frame, then come back and unhide the text, then there is the font-searching delay. Something similar happens if I switch to a different buffer, then some time later switch back. >> What can I do about these window redrawing delays? I am not sure what I >> have misconfigured. > > Optimize your font configuration, so that the font search becomes > faster. > >> Does emacs reload all fonts every time I switch to a different frame or >> buffer? It also seems to have a delay sometimes when a previously >> invisible overlay is shown. > > Emacs only looks for a font when it needs to display something. when > previously invisible portion is about to be displayed, Emacs needs the > fonts to display it. The reason I suspect this may be an actual bug is not that the delay happens at all, but rather that it happens quite often, and the text that causes the search for fonts used to be displayed only a short time ago. That said, I'm not familiar with how emacs manages fonts. Is it reasonable to expect to keep all recently used fonts in memory and not search for them again? Thanks for the very quick reply.