GNU bug report logs - #1303
too many faces initialized for tooltip frames

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Dan Nicolaescu <dann@HIDDEN>; dated Tue, 4 Nov 2008 08:45:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to `minor' from `normal' Request was from Glenn Morris <rgm@HIDDEN> to control@HIDDEN. Full text available.

Message received at (unknown):


Received: (at unknown) by unknown; unknown
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Status: No, score=-9.3 required=4.0 tests=AWL,BAYES_00,
	MURPHY_DRUGS_REL8,MURPHY_WRONG_WORD2,RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK
	autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02
Received: (at submit) by emacsbugs.donarmstrong.com; 4 Nov 2008 08:37:06 +0000
Received: from lists.gnu.org (lists.gnu.org [199.232.76.165])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA48b2cN012393
	for <submit@HIDDEN>; Tue, 4 Nov 2008 00:37:04 -0800
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1KxHPK-0005XT-Kg
	for bug-gnu-emacs@HIDDEN; Tue, 04 Nov 2008 03:37:02 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1KxHPI-0005X1-UN
	for bug-gnu-emacs@HIDDEN; Tue, 04 Nov 2008 03:37:01 -0500
Received: from [199.232.76.173] (port=54270 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1KxHPI-0005Wx-Qc
	for bug-gnu-emacs@HIDDEN; Tue, 04 Nov 2008 03:37:00 -0500
Received: from mx20.gnu.org ([199.232.41.8]:53668)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60)
	(envelope-from <dann@HIDDEN>)
	id 1KxHPI-0006Iq-Jv
	for bug-gnu-emacs@HIDDEN; Tue, 04 Nov 2008 03:37:00 -0500
Received: from barrelv2.ics.uci.edu ([128.195.1.114])
	by mx20.gnu.org with esmtp (Exim 4.60)
	(envelope-from <dann@HIDDEN>)
	id 1KxHPH-0004sW-Ee
	for bug-gnu-emacs@HIDDEN; Tue, 04 Nov 2008 03:36:59 -0500
Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93])
	by barrelv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mA48aqQN003406
	for <bug-gnu-emacs@HIDDEN>; Tue, 4 Nov 2008 00:36:52 -0800 (PST)
Received: (from dann@localhost)
	by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mA48aqHV020724;
	Tue, 4 Nov 2008 00:36:52 -0800 (PST)
Date: Tue, 4 Nov 2008 00:36:52 -0800 (PST)
Message-Id: <200811040836.mA48aqHV020724@HIDDEN>
From: Dan Nicolaescu <dann@HIDDEN>
To: bug-gnu-emacs <bug-gnu-emacs@HIDDEN>
Subject: too many faces initialized for tooltip frames
X-Debbugs-No-Ack: yes
Lines: 46
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-ICS-MailScanner-Information: Please contact the ISP for more information
X-ICS-MailScanner-ID: mA48aqQN003406
X-ICS-MailScanner: Found to be clean
X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5,
	autolearn=disabled, ALL_TRUSTED -1.44)
X-ICS-MailScanner-From: dann@HIDDEN
X-detected-kernel: by mx20.gnu.org: Solaris 10 (beta)
X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized.

With this patch:

--- xrdb.c.~1.65.~	Tue Jun  3 15:23:17 2008
+++ xrdb.c	Tue Nov  4 00:31:35 2008
@@ -664,11 +664,19 @@
   XrmName namelist[100];
   XrmClass classlist[100];
   XrmRepresentation type;
+  Bool b;
 
   XrmStringToNameList(name, namelist);
   XrmStringToClassList(class, classlist);
 
-  if (XrmQGetResource (rdb, namelist, classlist, &type, &value) == True
+  
+  b = XrmQGetResource (rdb, namelist, classlist, &type, &value);
+  
+  fprintf (stderr, "XQGET: name=%s class=%s retv=%d expected_type=%d type=%d\n",
+  	   name, class, b, expected_type, type);
+
+  
+  if (b == True
       && (type == expected_type))
     {
       if (type == x_rm_string)




do 
emacs -Q 

an place the mouse over a place on the mode-line that has a tooltip

Hundreds of lines like these will be printed:

XQGET: name=tooltip.completions-first-difference.attributeUnderline class=Emacs.Face.AttributeUnderline retv=0 expected_type=132 type=0
XQGET: name=tooltip.completions-first-difference.attributeInverse class=Emacs.Face.AttributeInverse retv=0 expected_type=132 type=0
XQGET: name=tooltip.completions-first-difference.attributeStipple class=Emacs.Face.AttributeStipple retv=0 expected_type=132 type=0
XQGET: name=tooltip.completions-first-difference.attributeBackgroundPixmap class=Emacs.Face.AttributeBackgroundPixmap retv=0 expected_type=132 type=0
XQGET: name=tooltip.completions-first-difference.attributeBold class=Emacs.Face.AttributeBold retv=0 expected_type=132 type=0
XQGET: name=tooltip.completions-first-difference.attributeItalic class=Emacs.Face.AttributeItalic retv=0 expected_type=132 type=0
XQGET: name=tooltip.completions-first-difference.attributeFont class=Emacs.Face.AttributeFont retv=0 expected_type=132 type=0
XQGET: name=tooltip.completions-first-difference.attributeInherit class=Emacs.Face.AttributeInherit retv=0 expect

It seems like a waste to initialize all these faces that won't be used by the tooltips anyway.





Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#1303; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.