From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#1990: 23.0.60; Emacs trying too hard to find fonts that don't exist Date: Fri, 23 Jan 2009 00:04:09 -0500 Message-ID: <87sknaaa0m.fsf@cyd.mit.edu> Reply-To: Chong Yidong , 1990@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232688224 27548 80.91.229.12 (23 Jan 2009 05:23:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Jan 2009 05:23:44 +0000 (UTC) Cc: 1990@emacsbugs.donarmstrong.com, Kenichi Handa To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 23 06:24:57 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LQEXI-0001DM-Lm for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jan 2009 06:24:56 +0100 Original-Received: from localhost ([127.0.0.1]:60916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQEW1-0003Yx-5K for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jan 2009 00:23:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQEVw-0003V4-KD for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2009 00:23:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQEVv-0003Rb-5u for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2009 00:23:32 -0500 Original-Received: from [199.232.76.173] (port=41813 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQEVv-0003RT-0X for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2009 00:23:31 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50393) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LQEVu-0001aI-L5 for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2009 00:23:30 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0N5NSVR000599; Thu, 22 Jan 2009 21:23:28 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0N5A3kx029577; Thu, 22 Jan 2009 21:10:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 23 Jan 2009 05:10:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1990 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1990-submit@emacsbugs.donarmstrong.com id=B1990.123268702627596 (code B ref 1990); Fri, 23 Jan 2009 05:10:03 +0000 Original-Received: (at 1990) by emacsbugs.donarmstrong.com; 23 Jan 2009 05:03:46 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0N53hut027590 for <1990@emacsbugs.donarmstrong.com>; Thu, 22 Jan 2009 21:03:44 -0800 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 4F14E57E226; Fri, 23 Jan 2009 00:04:09 -0500 (EST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 23 Jan 2009 00:23:32 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24403 Archived-At: > If fonts are not installed for some characters, then Emacs keeps > trying to find fonts for them every time those characters are > redisplayed. The following excerpt from font-log is with the xft font > backend on GNU/Linux where the search is quick, thus not noticeable, > but on Windows the search for fonts is expensive, so redisplay takes a > couple of seconds. I have cut the end off, as the full font-log is > long, but you can see from the first two font-for entries that Emacs > is trying twice for the same character (and it tries again many times > further down the log). At the end of fontset_font (fontset.c:699), there is the following code: /* Remeber that we have no font for C. */ FONTSET_SET (fontset, make_number (c), Qt); return Qnil; However, there are several other places in that function that return with a Qnil, without doing this FONTSET_SET. Do matters improve if we do the same FONTSET_SET call before returning?