[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in tooltip handling

From: Tassilo Horn
Subject: Bug in tooltip handling
Date: Fri, 30 Jun 2006 10:11:17 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Hi all,

I'm not quite sure if this is a bug or a intended change in tooltip
handling, but here I go.

Supporting own tooltips in Emacs 21 was basically a matter of:

| (defun my-tooltip-mode (&optional arg)
|     ;; [snip]
|     (tooltip-mode 1)
|     (add-hook 'tooltip-hook 'my-tooltip-function)
|     (make-local-variable 'track-mouse)
|     (setq track-mouse on))
| (defun my-tooltip-function (event)
|     (interactive "e")
|     ;; process event...
|     (tooltip-show "Huzzah!"))

This convenient approach (used for example by dictionary-el) doesn't
work anymore in Emacs 22. If I set `track-mouse' to a non-nil value,
even the standard tooltips which worked before (e.g. the modeline help
tooltips) don't work anymore.

I use the CVS HEAD of yesterday.

[Emacs] is written in Lisp, which is the only computer language that is
beautiful.  -- Neal Stephenson, _In the Beginning was the Command Line_

reply via email to

[Prev in Thread] Current Thread [Next in Thread]