GNU bug report logs - #23341
x-show-tip does not respect the value of tooltip-hide-delay, and the default tooltip timeout isn't configurable

Previous Next

Package: emacs;

Reported by: Clément Pit--Claudel <clement.pitclaudel <at> live.com>

Date: Sat, 23 Apr 2016 02:48:02 UTC

Severity: normal

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 23341 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Clément Pit--Claudel
 <clement.pitclaudel <at> live.com>, 23341 <at> debbugs.gnu.org
Subject: Re: bug#23341: x-show-tip does not respect the value of
 tooltip-hide-delay, 
 and the default tooltip timeout isn't configurable
Date: Sat, 23 Apr 2016 19:08:43 +0200
>> A function that calls ‘x-show-tip’ directly should generally use
>> ‘tooltip-hide-delay’ as TIMEOUT argument.  If it doesn't, it should
>> provide a customizable variable to use as TIMEOUT argument instead.
>
> Maybe, but this isn't a documented convention AFAICS,

We can hardly say in the doc-string of ‘x-show-tip’ that

  This is an internal function; Lisp code should call `tooltip-show'.

and then explain how to call this function from Lisp code.

> and it's
> inconvenient to have to dig to find which default to set.  There's
> tooltip, pos-tip, 10 packages that depend on pos-tip, and probably a
> bunch more depending on tooltip. It would be nice to have one setting
> that applies in all cases where other customization has not happened,
> instead of using a hardcoded default. Don't you think?
>
> I opened this issue based on the experience that it took me some
> non-trivial amount of time to figure out that I had to configure
> flycheck-pos-tip-delay, and not tooltip-delay.

I don't know flycheck but ‘tooltip-delay’ is the delay _before_ showing
the tip.  Earlier we were talking about ‘tooltip-hide-delay’.

> flycheck-pos-tip
> follows the convention that you outlined above, but that convention
> wasn't obvious to me, and doesn't yield a consistent or very nice
> experience (any time I install a package that uses tooltips, I need to
> wonder configure its timeout, unless it uses tooltip — which I can't
> easily guess).

Any package that optionally provides its own delay for hiding tips
should, by default, use the value of ‘tooltip-hide-delay’ for that
option.

martin





This bug report was last modified 3 years and 25 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.