From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24899: 25.1; x-hide-tip always returns nil with USE_GTK Date: Tue, 08 Nov 2016 17:18:35 +0200 Message-ID: <83fun2gfuc.fsf@gnu.org> References: <58217D5C.1000302@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1478618383 15039 195.159.176.226 (8 Nov 2016 15:19:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 8 Nov 2016 15:19:43 +0000 (UTC) Cc: noah.v.peart@gmail.com, 24899@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 08 16:19:34 2016 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 1c48B6-0000CK-7C for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Nov 2016 16:19:12 +0100 Original-Received: from localhost ([::1]:33772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c48B9-00088o-7n for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Nov 2016 10:19:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c48B0-00087b-NV for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 10:19:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c48Ax-0007k5-CA for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 10:19:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c48Ax-0007jz-8B for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 10:19:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c48Aw-0002E1-5c for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 10:19:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Nov 2016 15:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24899 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24899-submit@debbugs.gnu.org id=B24899.14786182938494 (code B ref 24899); Tue, 08 Nov 2016 15:19:02 +0000 Original-Received: (at 24899) by debbugs.gnu.org; 8 Nov 2016 15:18:13 +0000 Original-Received: from localhost ([127.0.0.1]:49788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c48A9-0002Cw-7m for submit@debbugs.gnu.org; Tue, 08 Nov 2016 10:18:13 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c48A8-0002Ck-59 for 24899@debbugs.gnu.org; Tue, 08 Nov 2016 10:18:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c489z-0007MH-3B for 24899@debbugs.gnu.org; Tue, 08 Nov 2016 10:18:06 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c489y-0007MC-Vw; Tue, 08 Nov 2016 10:18:03 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2905 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1c489y-0006BV-75; Tue, 08 Nov 2016 10:18:02 -0500 In-reply-to: <58217D5C.1000302@gmx.at> (message from martin rudalics on Tue, 08 Nov 2016 08:23:08 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:125470 Archived-At: > Date: Tue, 08 Nov 2016 08:23:08 +0100 > From: martin rudalics > > Thanks for the report. I think that before investigating this further > we need another recipe. Yours is based on ‘pos-tip-show’ which is not > part of Emacs. Does ‘pos-tip-show’ use GTK+ tooltips or the native > Emacs ones - what is your value of ‘x-gtk-use-system-tooltips’? > > Then we would have to decide how to retrieve a non-nil return value for > ‘x-hide-tip’ in the first place. Here the tooltip disappears > immediately when I type anything, so the return value is always nil by > force, presumably. We'd probably need a timer to test your function. > > Finally, we would have to check the results for the function you get > this way for both ‘x-gtk-use-system-tooltips’ nil/t settings and for at > least one other toolkit. > > Can you please try doing all that? Martin, did you try this on master or on the emacs-25 branch? I think there's an omission in the Emacs 25.1 code, which the OP is running, that is already fixed on master. For emacs-25, the following patch should at least bring you closer to the solution, if not be the solution: diff --git a/src/xfns.c b/src/xfns.c index 7c1bb1c..a6d8980 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -6120,7 +6120,10 @@ Value is t if tooltip was open, nil otherwise. */) the tip is shown. */ struct frame *f = XFRAME (frame); if (FRAME_LIVE_P (f) && xg_hide_tooltip (f)) - frame = Qnil; + { + frame = Qnil; + deleted = Qt; + } } #endif