all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Nicolaescu <dann@ics.uci.edu>
To: bug-gnu-emacs <bug-gnu-emacs@gnu.org>
Subject: bug#1303: too many faces initialized for tooltip frames
Date: Tue, 4 Nov 2008 00:36:52 -0800 (PST)	[thread overview]
Message-ID: <200811040836.mA48aqHV020724@mothra.ics.uci.edu> (raw)

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.







             reply	other threads:[~2008-11-04  8:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04  8:36 Dan Nicolaescu [this message]
2019-09-30  7:05 ` bug#1303: too many faces initialized for tooltip frames Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200811040836.mA48aqHV020724@mothra.ics.uci.edu \
    --to=dann@ics.uci.edu \
    --cc=1303@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.