[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fix some tooltip related problems
From: |
martin rudalics |
Subject: |
Re: Fix some tooltip related problems |
Date: |
Thu, 11 Jan 2018 11:56:39 +0100 |
> I thought that Emacs tooltips were Emacs frames. What
> prevents Emacs from doing what it wants in such a frame?
> This works for me, for example:
>
> (x-show-tip (propertize "abc" 'face '(:foreground "gray")))
>
> What's different here from what you are talking about?
>
> OK, I'm using MS Windows. But does this not work also
> on GNU/Linux and Mac?
>
> And if that doesn't work on such platforms, can't we use
> a ("normal") Emacs frame where such things do work? Just
> what is it that makes it impossible for Emacs to dim the
> text in a tooltip? Sorry, but this is not clear to me.
System tooltips are lightweight objects with restricted abilities.
They have uniform appearance and the single tooltip window is usually
shared among all running programs and the operating system.
Emacs tooltips are merely an emulation of system tooltips. Most
restrictions of system tooltips have been retrofit artificially, like
uniform faces which are built into `tooltip-show' (but can be avoided
by using `x-show-tip' as you mention above) or the fact that only one
tooltip can be present at any time.
The great disadvantage of Emacs tooltips is that they are heavyweight
precisely due to their versatility. Showing an Emacs tooltip here on
Windows with -Q incurs an entire GC cycle. Also, there are some minor
annoyances like the one that showing Emacs tooltips for menu items
depends on the presence of a blinking cursor.
martin
- RE: Fix some tooltip related problems, (continued)
- RE: Fix some tooltip related problems, Drew Adams, 2018/01/09
- Re: Fix some tooltip related problems, martin rudalics, 2018/01/10
- RE: Fix some tooltip related problems, Drew Adams, 2018/01/10
- Re: Fix some tooltip related problems, Alan Third, 2018/01/10
- RE: Fix some tooltip related problems, Drew Adams, 2018/01/10
- Re: Fix some tooltip related problems, Alan Third, 2018/01/10
- RE: Fix some tooltip related problems, Drew Adams, 2018/01/10
- Re: Fix some tooltip related problems, Eli Zaretskii, 2018/01/10
- Re: Fix some tooltip related problems, Yuri Khan, 2018/01/11
- RE: Fix some tooltip related problems, Drew Adams, 2018/01/11
- Re: Fix some tooltip related problems,
martin rudalics <=
- RE: Fix some tooltip related problems, Drew Adams, 2018/01/11
- Re: Fix some tooltip related problems, martin rudalics, 2018/01/11
- Re: Fix some tooltip related problems, Robert Pluim, 2018/01/11
- Re: Fix some tooltip related problems, Eli Zaretskii, 2018/01/11
- Re: Fix some tooltip related problems, martin rudalics, 2018/01/11
- Re: Fix some tooltip related problems, Daniele Nicolodi, 2018/01/11
- Re: Fix some tooltip related problems, Eli Zaretskii, 2018/01/12
- Re: Fix some tooltip related problems, Robert Pluim, 2018/01/12
- Re: Fix some tooltip related problems, Eli Zaretskii, 2018/01/12
- Re: Fix some tooltip related problems, Robert Pluim, 2018/01/12