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


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: "clement.pitclaudel <at> live.com" <clement.pitclaudel <at> live.com>, Lars Ingebrigtsen <larsi <at> gnus.org>, Eli Zaretskii <eliz <at> gnu.org>, "23341 <at> debbugs.gnu.org" <23341 <at> debbugs.gnu.org>, martin rudalics <rudalics <at> gmx.at>
Subject: bug#23341: x-show-tip does not respect the value of tooltip-hide-delay, and the default tooltip timeout isn't configurable
Date: Tue, 3 May 2022 01:32:25 +0000
> > `tooltip-show' doesn't let you do what `x-show-tip'
> > does.  That's what this discussion is about (IMHO).
> 
> And what exactly doesn't `tooltip-show' let you do, 
> that `x-show-tip'can?

Everything that's not determined by the specific
call that `tooltip-show' makes of `x-show-tip'.

Obviously.

That's a very specific, narrow call - it nails
down almost everything that `x-show-tip' takes
as an argument.

;; After getting the frame parameters from
;; `tooltip-frame-parameters', and perhaps
;; updating the foreground and background from
;; those of face `tooltip':
;;
(x-show-tip (propertize text 'face 'tooltip)
		 (selected-frame)
		 **THOSE-TOOLTIP-PARAMETERS**
		 tooltip-hide-delay
		 tooltip-x-offset
		 tooltip-y-offset))

IOW, the only possible input to the whole deal,
affecting the appearance, is TEXT.  All the
rest is baked in. 

Now, you can say that code could always bind
all of those `tooltip-*' thingies around a call
to `tooltip-show'.  Sure, it could.  It could
end up redefining, in effect, `x-tooltip-show'.

I'd say it makes more sense to (also) let users
use the more general, more versatile function
itself, `x-show-tip' - just as `tooltip-show' does.

What's good for the goose is good for the gander.




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.