[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in tooltip handling
From: |
Tassilo Horn |
Subject: |
Re: Bug in tooltip handling |
Date: |
Mon, 03 Jul 2006 08:13:48 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
Nick Roberts <address@hidden> writes:
Hi Nick,
> > | (setq track-mouse on))
> ^^^ t?
Just a typo.
> > | (defun my-tooltip-function (event)
> > | (interactive "e")
> > | ;; process event...
> > | (tooltip-show "Huzzah!"))
> > `----
>
> This didn't seem to work very well on Emacs 21 when I tried it. Also
> there's no mechanism to remove my-tooltip-function from tooltip-hook.
>
> You can get it to work as before by using:
>
> (defun my-tooltip-mode (&optional arg)
> ;; [snip]
> (gud-tooltip-mode 1)
> ^^^
Indeed, this works.
> > This convenient approach (used for example by dictionary-el)
> > doesn't work anymore in Emacs 22.
>
> dictionary-el isn't part of Emacs 22. I have split GUD tooltips
> (which use track-mouse from ordinary ones (which don't).
dictionary-el and my own mode display tooltips based on the word under
the mouse pointer. The event based approach makes it easy to extract the
word. If there's a better way, please let me know.
Currently I use an own timer an lots of ugly code to work arround this.
> This means that they can be toggled independently. At some stage, if
> other packages want to use tooltips in the way GUD does, that part
> could be split out of gud.el.
That would be really nice.
Bye,
Tassilo
--
A child of five could understand this! Fetch me a child of five!
- Re: Bug in tooltip handling, Nick Roberts, 2006/07/02
- Re: Bug in tooltip handling, Leon, 2006/07/02
- Re: Bug in tooltip handling,
Tassilo Horn <=
- Re: Bug in tooltip handling, Nick Roberts, 2006/07/03
- Re: Bug in tooltip handling, Tassilo Horn, 2006/07/04
- Re: Bug in tooltip handling, Nick Roberts, 2006/07/04
- Re: Bug in tooltip handling, Tassilo Horn, 2006/07/04
- Re: Bug in tooltip handling, Nick Roberts, 2006/07/04
- Re: Bug in tooltip handling, Tassilo Horn, 2006/07/05
- Re: Bug in tooltip handling, Nick Roberts, 2006/07/05
- Re: Bug in tooltip handling, Tassilo Horn, 2006/07/05