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

Previous Next

Package: emacs;

Reported by: Dan Nicolaescu <dann <at> ics.uci.edu>

Date: Tue, 4 Nov 2008 08:45:02 UTC

Severity: minor

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1303 in the body.
You can then email your comments to 1303 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1303; Package emacs. Full text and rfc822 format available.

Message #3 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Dan Nicolaescu <dann <at> ics.uci.edu>
To: bug-gnu-emacs <bug-gnu-emacs <at> gnu.org>
Subject: too many faces initialized for tooltip frames
Date: Tue, 4 Nov 2008 00:36:52 -0800 (PST)
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.





Severity set to `minor' from `normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Thu, 15 Jan 2009 23:45:05 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#1303; Package emacs. (Mon, 30 Sep 2019 07:06:02 GMT) Full text and rfc822 format available.

Message #8 received at 1303 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Dan Nicolaescu <dann <at> ics.uci.edu>
Cc: 1303 <at> debbugs.gnu.org
Subject: Re: bug#1303: too many faces initialized for tooltip frames
Date: Mon, 30 Sep 2019 09:05:27 +0200
Dan Nicolaescu <dann <at> ics.uci.edu> writes:

> +  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);

[...]

> 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

I tried this and I didn't get any output on stderr, so I'm guessing this
has been fixed in the ten years since this was reported, and I'm closing
this bug report.

If this is still an issue, please reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 1303 <at> debbugs.gnu.org and Dan Nicolaescu <dann <at> ics.uci.edu> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 30 Sep 2019 07:06:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 28 Oct 2019 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 174 days ago.

Previous Next


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