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: tooltip-show with a timer Date: Sat, 31 Jan 2009 10:39:08 -0600 Message-ID: <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 1233419960 15305 80.91.229.12 (31 Jan 2009 16:39:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2009 16:39:20 +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:40:34 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 1LTItL-0002SZ-92 for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 17:40:23 +0100 Original-Received: from localhost ([127.0.0.1]:46863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTIs2-000495-Jq for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 11:39:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTIrL-0003xS-O6 for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 11:38:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTIrK-0003wg-Bz for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 11:38:19 -0500 Original-Received: from [199.232.76.173] (port=60612 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTIrK-0003wb-3D for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 11:38:18 -0500 Original-Received: from pegasus.biostat.wisc.edu ([144.92.73.35]:58460) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1LTIrJ-0006eD-Ik for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 11:38:17 -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 n0VGbuQX002057 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sat, 31 Jan 2009 10:38:04 -0600 (CST) User-Agent: Thunderbird 2.0.0.19 (X11/20090105) 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:61801 Archived-At: 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