From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#30399: 27.0.50; tooltips are broken Date: Thu, 08 Feb 2018 23:26:29 +0100 Message-ID: <87wozn9kyy.fsf@gmx.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1518128743 28706 195.159.176.226 (8 Feb 2018 22:25:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Feb 2018 22:25:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: 30399@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 08 23:25:39 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejucy-0005cm-Rx for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Feb 2018 23:25:13 +0100 Original-Received: from localhost ([::1]:58193 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejuf0-0003fP-6h for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Feb 2018 17:27:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejueo-0003dk-G1 for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 17:27:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejuek-0002sm-A3 for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 17:27:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54774) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejuek-0002sZ-5h for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 17:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ejuej-0008DM-W9 for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 17:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Feb 2018 22:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151812880631553 (code B ref -1); Thu, 08 Feb 2018 22:27:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Feb 2018 22:26:46 +0000 Original-Received: from localhost ([127.0.0.1]:34438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejueT-0008Cr-Np for submit@debbugs.gnu.org; Thu, 08 Feb 2018 17:26:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57775) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejueS-0008Cf-5C for submit@debbugs.gnu.org; Thu, 08 Feb 2018 17:26:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejueL-0002eM-Ok for submit@debbugs.gnu.org; Thu, 08 Feb 2018 17:26:38 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53235) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ejueL-0002e8-LT for submit@debbugs.gnu.org; Thu, 08 Feb 2018 17:26:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejueK-0003TZ-Av for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 17:26:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejueH-0002br-4E for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 17:26:36 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:37425) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejueG-0002aX-QW for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2018 17:26:33 -0500 Original-Received: from rosalinde ([83.135.20.87]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LezI3-1f3Ktl1S1P-00qfA1 for ; Thu, 08 Feb 2018 23:26:30 +0100 X-Provags-ID: V03:K0:rWsc+HdTEoYlFIGt1brPRLDuq92no4LHujG8TuFNiJ6Wb7JF7MB 1UztC+cHQvnM8jYf0igXHcX6Nj3qWteqQoC6yUbUg0d5UcOD86kTDH/pLSdL2k9vhBJKcB8 gDop8uW0OT0Qbc7yii7P8WenVwsgr+vnmxz3VuTfVk1C9vxKRH3ZhUm5ejlNNabg4fboT8O 3/QarClXs35hr8Vuo/cPA== X-UI-Out-Filterresults: notjunk:1;V01:K0:/yjkYoWtxSI=:t87WRM7ittkwtp2isio3mq ExQje/qNX+zu7eIxz7asv94Z2nb6rkiCQD9ikYvnVa8sLPVjCO2UHO0RAwMkNNOrhz4pn1YwS M3g3tmgJVG7aYEciyIRfAAJRoeIUKnhM+/KgnwQAk7ueH6ucGjc4ThtwBcgsTHk1G/JCtdxWD 4/MKwZzYmdXk/ucp9QcwkFYDZtNQ6aqojSejb++r9oN4UKwkCJH6BAH677Th9OmEIpre2J6Xp g5eOGbyRlZ126VhiCJAZAdy6WkUbA7CneQYMsseQ7EIrCLhvUdNXKd6YxgBsMgmlF5vm33QJi lWtycJY3gZrDZb/fUl6k/bovr47hBqh9hKwZ02+BN4pce+f78kNinnIniRSSYVEVlMc90xGXU 1S6Fo5rrgdUnv0fHrVPkPvCdhWznOcwd2RtTWU4gyuEkHXObZIoAqpI88gRWsK9mbweZHbF57 eOZ13rSI1t3bllDHthXrHbP72u9MSJVpw5Y3OBVDHz8S2WvBDObYJ+55tEKr1eYYtvBfIqwYg iSQcaK975GOGEmZ/hgmQAae1zJVyrsully8Eb3C8VJL+dP7S/0UrBev4W0py7CaMLLp0+6/qC ZYRWV9AdkR8jLesv62GZkJaab3bali1bH19qki/0ZgDb3G1l1PmWYq8XY79hIhR4sklIB0Lqp i4u41R6WEd/TopOn1sodQJ886teT7uxe8LaY7SR8V6RkZZfWTEsbFWtvs2DvTzaKudNG5ao56 MiCs0iRkgDfHEiyxP7l1JwmKTxPHcgQaZ+KtUJkVEd3SjhldwaEWSKmVy6upUR65r6yDjLl9 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:143035 Archived-At: I'm seeing buggy behavior with tooltips on master, and though I haven't bisected with git, I see the problems starting with my first build after this commit: e462308f03..: Martin Rudalics 2018-01-18 Fix some tooltip related problems and I don't see the problems in my builds before that commit. My builds are with GTK+; I haven't tried with another or no toolkit. Here's the (expected) behavior prior to that commit (also seen in current emacs-26): 0. emacs -Q 1. evaluate (tooltip-show "This is a test") => A GTK+-themed tooltip is displayed for 10 seconds or until there is an input event, then disappears. 2. evaluate (x-show-tip "This is a test") => A GTK+-themed tooltip is displayed for 5 seconds or until there is an input event, then disappears. 3. evaluate (let (x-gtk-use-system-tooltips) (tooltip-show "This is a test")) => A non-toolkit tooltip is displayed for 10 seconds or until there is an input event, then disappears. 4. evaluate (let (x-gtk-use-system-tooltips) (x-show-tip "This is a test")) => A non-toolkit tooltip is displayed for 5 seconds or until there is an input event, then disappears. And here's the buggy behavior (starting with step 2) I see on master since the above commit: 0. emacs -Q 1. evaluate (tooltip-show "This is a test") => A GTK+-themed tooltip is displayed for 10 seconds or until there is an input event, then disappears. 2. evaluate (x-show-tip "This is a test") => A GTK+-themed tooltip is displayed and remains displayed, even if there are input events, until executing step 3 or repeating step 1. 3. evaluate (let (x-gtk-use-system-tooltips) (tooltip-show "This is a test")) => A non-toolkit tooltip is displayed and remains displayed, even if there are input events, until the end of the Emacs session (at least I haven't found a way to get rid of it); however, if the GTK+-themed tooltip from step 2 is still displayed when the above sexp is evaluated, then after 10 (not 5) seconds the GTK+-themed tooltip disappears (but the non-toolkit tooltip remains). 4. evaluate (let (x-gtk-use-system-tooltips) (x-show-tip "This is a test")) => A non-toolkit tooltip is displayed and remains displayed, even if there are input events, until the end of the Emacs session AFAICT; if the tooltip from step 3 is still displayed when the above sexp is evaluated, it is just moved by this step but does not disappear, and if the GTK+-themed tooltip from step 2 is still displayed that tooltip also remains displayed (unlike in step 3). I tried stepping through Fx_show_tip in gdb while executing step 1 and again with step 2 in current master. In both cases the GTK+-themed tooltip appears, the code path jumps to start_timer, runs a timer, calls x-hide-tip and then the function returns; in step 1, on continuing, the tooltip disappears, but in step 2, on continuing, the tooltip remains. Then I tried stepping through x_hide_tip, but the breakpoint was hit before the tooltip was displayed and on continuing until the command loop was again accessible, any input immediate hit the breakpoint again. So I probably cannot debug this further without guidance. In GNU Emacs 27.0.50 (build 17, x86_64-pc-linux-gnu, GTK+ Version 3.22.18) of 2018-02-08 built on rosalinde Repository revision: a710f8aa61ca73054109dc4f926d1ac6aabdd849 Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 System Description: Linux From Scratch Configured using: 'configure --with-xwidgets 'CFLAGS=-Og -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS XWIDGETS LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix