From unknown Fri Jun 20 18:17:11 2025 X-Loop: don@donarmstrong.com Subject: bug#1303: too many faces initialized for tooltip frames Reply-To: Dan Nicolaescu , 1303@debbugs.gnu.org Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 04 Nov 2008 08:45:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1303 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122578782612399 (code B ref -1); Tue, 04 Nov 2008 08:45:02 +0000 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 ; 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@gnu.org; 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@gnu.org; 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@gnu.org; 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 ) id 1KxHPI-0006Iq-Jv for bug-gnu-emacs@gnu.org; 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 ) id 1KxHPH-0004sW-Ee for bug-gnu-emacs@gnu.org; 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 ; 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@mothra.ics.uci.edu> From: Dan Nicolaescu To: bug-gnu-emacs 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@mothra.ics.uci.edu 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. From rgm@gnu.org Thu Jan 15 15:38:28 2009 Received: (at control) by emacsbugs.donarmstrong.com; 15 Jan 2009 23:38:28 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=2.3 required=4.0 tests=MISSING_SUBJECT,NOSUBJECT, VALID_BTS_CONTROL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0FNcPDO030885 for ; Thu, 15 Jan 2009 15:38:27 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LNblm-0003kP-P8; Thu, 15 Jan 2009 18:37:02 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18799.51358.725326.185170@fencepost.gnu.org> Date: Thu, 15 Jan 2009 18:37:02 -0500 From: Glenn Morris To: control severity 1305 wishlist severity 1303 minor severity 1250 minor severity 1367 wishlist severity 1405 minor severity 1457 wishlist severity 1555 minor severity 1569 minor severity 1688 minor close 1705 severity 1731 minor close 1756 severity 1768 minor severity 1779 minor tags 1798 moreinfo reassign 1860 notemacs reassign 1902 emacs,ns reassign 1924 spam reassign 1926 notemacs stop From unknown Fri Jun 20 18:17:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#1303: too many faces initialized for tooltip frames Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Sep 2019 07:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1303 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dan Nicolaescu Cc: 1303@debbugs.gnu.org Received: via spool by 1303-submit@debbugs.gnu.org id=B1303.156982713526729 (code B ref 1303); Mon, 30 Sep 2019 07:06:02 +0000 Received: (at 1303) by debbugs.gnu.org; 30 Sep 2019 07:05:35 +0000 Received: from localhost ([127.0.0.1]:56670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEpkV-0006x3-LW for submit@debbugs.gnu.org; Mon, 30 Sep 2019 03:05:35 -0400 Received: from quimby.gnus.org ([80.91.231.51]:45528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEpkU-0006wt-9K for 1303@debbugs.gnu.org; Mon, 30 Sep 2019 03:05:34 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEpkO-0004PD-6n; Mon, 30 Sep 2019 09:05:32 +0200 From: Lars Ingebrigtsen References: <200811040836.mA48aqHV020724@mothra.ics.uci.edu> Date: Mon, 30 Sep 2019 09:05:27 +0200 In-Reply-To: <200811040836.mA48aqHV020724@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Tue, 4 Nov 2008 00:36:52 -0800 (PST)") Message-ID: <875zlajmbs.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Dan Nicolaescu 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); Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dan Nicolaescu 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 30 03:05:40 2019 Received: (at control) by debbugs.gnu.org; 30 Sep 2019 07:05:40 +0000 Received: from localhost ([127.0.0.1]:56673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEpkZ-0006xM-TH for submit@debbugs.gnu.org; Mon, 30 Sep 2019 03:05:40 -0400 Received: from quimby.gnus.org ([80.91.231.51]:45542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEpkY-0006xE-J5 for control@debbugs.gnu.org; Mon, 30 Sep 2019 03:05:38 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEpkV-0004PL-UT for control@debbugs.gnu.org; Mon, 30 Sep 2019 09:05:37 +0200 Date: Mon, 30 Sep 2019 09:05:35 +0200 Message-Id: <874l0ujmbk.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #1303 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 1303 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 1303 quit