all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#1303: too many faces initialized for tooltip frames
@ 2008-11-04  8:36 Dan Nicolaescu
  2019-09-30  7:05 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Nicolaescu @ 2008-11-04  8:36 UTC (permalink / raw)
  To: bug-gnu-emacs

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.







^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#1303: too many faces initialized for tooltip frames
  2008-11-04  8:36 bug#1303: too many faces initialized for tooltip frames Dan Nicolaescu
@ 2019-09-30  7:05 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-30  7:05 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: 1303

Dan Nicolaescu <dann@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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-30  7:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-04  8:36 bug#1303: too many faces initialized for tooltip frames Dan Nicolaescu
2019-09-30  7:05 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.