Nick Roberts <[EMAIL PROTECTED]> 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!



_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to