From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Erik Iverson Newsgroups: gmane.emacs.help Subject: Re: tooltip-show with a timer Date: Sat, 31 Jan 2009 10:42:41 -0600 Message-ID: <49847F81.2030008@biostat.wisc.edu> References: <49847EAC.3020708@biostat.wisc.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233420124 15820 80.91.229.12 (31 Jan 2009 16:42:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2009 16:42:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 31 17:43:18 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LTIw9-0003Nn-OZ for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 17:43:18 +0100 Original-Received: from localhost ([127.0.0.1]:47369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTIuq-0005OK-R6 for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 11:41:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTIuT-0005N8-Cn for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 11:41:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTIuS-0005Lv-Jq for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 11:41:32 -0500 Original-Received: from [199.232.76.173] (port=53722 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTIuS-0005LY-Ef for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 11:41:32 -0500 Original-Received: from pegasus.biostat.wisc.edu ([144.92.73.35]:58473) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1LTIuS-0007JE-3b for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 11:41:32 -0500 Original-Received: from [192.168.1.100] (c-24-118-170-198.hsd1.mn.comcast.net [24.118.170.198]) (authenticated bits=0) by pegasus.biostat.wisc.edu (8.13.6/8.13.6) with ESMTP id n0VGfODc002078 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sat, 31 Jan 2009 10:41:24 -0600 (CST) User-Agent: Thunderbird 2.0.0.19 (X11/20090105) In-Reply-To: <49847EAC.3020708@biostat.wisc.edu> X-BCG-MailScanner-Information: BCG: sysreq@biostat.wisc.edu X-BCG-MailScanner: Found to be clean X-BCG-MailScanner-From: iverson@biostat.wisc.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61802 Archived-At: If you don't know, you can then cancel the timer with M-x cancel-function-timers moving-tooltip Erik Iverson wrote: > Hello all, > > Could someone help me understand what is going on here? > > Define a function called moving-tooltip, which simply shows a tooltip > that says "hi". > > > (defun moving-tooltip () > (tooltip-show "hi")) > > Then, hook the new function up to a timer that runs every two seconds. > > (run-with-timer 1 2 'moving-tooltip) > > Let the mouse come to rest, and you'll see the tooltip. Don't move the > mouse, and the next time the tooltip timer is called, the tooltip gets > moved (specifically, to the upper-left corner of my screen). > > Any ideas as to what is happening here? > > I'd love it if the tooltip just stayed where it was if the mouse didn't > move. > > Thanks, > Erik > >