From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20677: tooltips generate garbage Date: Tue, 02 Jun 2015 22:08:59 +0300 Message-ID: <836176rkqc.fsf@gnu.org> References: <556639D1.1030702@alice.it> <83iobdxvzi.fsf@gnu.org> <556C462E.5050906@alice.it> <83a8wjts15.fsf@gnu.org> <556C812C.4030901@alice.it> <83zj4js8nz.fsf@gnu.org> <556CD4EB.8080602@alice.it> <83oakysuu4.fsf@gnu.org> <556D7608.4070006@alice.it> <556D78C6.5070309@alice.it> <83k2vmrwdx.fsf@gnu.org> <876176qg7o.fsf@web.de> <871thuqfv3.fsf@web.de> <87wpzmp0lo.fsf@web.de> <838uc2rspt.fsf@gnu.org> <87wpzm9iiz.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1433272244 23239 80.91.229.3 (2 Jun 2015 19:10:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jun 2015 19:10:44 +0000 (UTC) Cc: 20677@debbugs.gnu.org, angelo.graziosi@alice.it To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 02 21:10:28 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YzrZk-00006r-4y for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jun 2015 21:10:12 +0200 Original-Received: from localhost ([::1]:60497 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzrZj-0000X2-7z for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jun 2015 15:10:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzrZg-0000VI-3D for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2015 15:10:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzrZc-0005oI-2S for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2015 15:10:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzrZb-0005nl-Vj for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2015 15:10:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YzrZb-0000mh-C0 for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2015 15:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Jun 2015 19:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20677 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20677-submit@debbugs.gnu.org id=B20677.14332721622965 (code B ref 20677); Tue, 02 Jun 2015 19:10:03 +0000 Original-Received: (at 20677) by debbugs.gnu.org; 2 Jun 2015 19:09:22 +0000 Original-Received: from localhost ([127.0.0.1]:37937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YzrYv-0000ll-9H for submit@debbugs.gnu.org; Tue, 02 Jun 2015 15:09:21 -0400 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:57703) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YzrYt-0000lW-69 for 20677@debbugs.gnu.org; Tue, 02 Jun 2015 15:09:20 -0400 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NPB00800ZFMN000@mtaout24.012.net.il> for 20677@debbugs.gnu.org; Tue, 02 Jun 2015 22:00:47 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NPB003GTZHAQG60@mtaout24.012.net.il>; Tue, 02 Jun 2015 22:00:46 +0300 (IDT) In-reply-to: <87wpzm9iiz.fsf@web.de> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103512 Archived-At: > From: Michael Heerdegen > Cc: 20677@debbugs.gnu.org, angelo.graziosi@alice.it > Date: Tue, 02 Jun 2015 18:33:56 +0200 > > Eli Zaretskii writes: > > > Does it even compile? I think it shouldn't compile. Or maybe I'm > > missing something. > > I tried "make" again, and it compiles. I'm now trying bootstrapping > again to see if I missed an error message. The code is in non-GTK portion, so the compiler doesn't see it when you build with GTK. That's why it doesn't complain in that configuration, and that's why reverting that change cannot have any effect on the GTK build. > > Can you see whether Emacs gets an expose event when the tip pops down? > > Sorry, you've found my limit in understanding. How can check that? The function expose_frame (defined in xdisp.c) should be called when such an event comes in. If your Emacs was configured with --enable-checking='yes,glyphs', then you can see the fact that the function is called announced on stderr after invoking "M-x trace-redisplay RET". (If you do that, I suggest to turn off blink-cursor-mode first, to reduce clutter from redisplay cycles induced by the blinking.) Alternatively, put a breakpoint at entry to expose_frame, and see if it's called when the tip pops down. The call should come from handle_one_xevent in xterm.c, where you will see that the call to x_clear_area is not done in the Cairo build -- this could be the culprit, perhaps at least when the GTK tooltip was just popped down. Caveat: please note that I have no idea what does using Cairo change in how Emacs interacts with X, I'm just making stabs in the dark at this point. Thanks.