From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Masatake YAMATO Newsgroups: gmane.emacs.devel Subject: Re: feature request: tooltip-show-at-point Date: Thu, 11 Mar 2004 16:00:52 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040311.160052.267395478.jet@gyve.org> References: <20040305.163150.205306604.jet@gyve.org> <20040308210522.GB12443@fencepost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1079227409 24679 80.91.224.253 (14 Mar 2004 01:23:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 Mar 2004 01:23:29 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Mar 14 02:23:23 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B2KLb-0005Tv-00 for ; Sun, 14 Mar 2004 02:23:23 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B2KLT-0005wK-00 for ; Sun, 14 Mar 2004 02:23:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B2Jug-0007Pa-6g for emacs-devel@quimby.gnus.org; Sat, 13 Mar 2004 19:55:34 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B2Ikb-0004vv-JG for emacs-devel@gnu.org; Sat, 13 Mar 2004 18:41:05 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B1KBe-0002Pd-Dt for emacs-devel@gnu.org; Thu, 11 Mar 2004 02:01:29 -0500 Original-Received: from [210.130.136.40] (helo=r-maa.spacetown.ne.jp) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1KBd-0002OK-Hc for emacs-devel@gnu.org; Thu, 11 Mar 2004 02:00:57 -0500 Original-Received: from localhost (nat-pool.jp.redhat.com [219.120.63.249]) by r-maa.spacetown.ne.jp (8.11.6) with ESMTP id i2B70qn13308 for ; Thu, 11 Mar 2004 16:00:52 +0900 (JST) Original-To: emacs-devel@gnu.org In-Reply-To: <20040308210522.GB12443@fencepost> X-Mailer: Mew version 4.0.62 on Emacs 21.3.50 / Mule 5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20419 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20419 [resending] > On Fri, Mar 05, 2004 at 04:31:50PM +0900, Masatake YAMATO wrote: > > This function works, however too slow to follow the point motion > > in real time. How do you think to provide a built-in function which > > show the tooltip at point? > > Would it be enough to be able to move an existing tooltip? That shouldn't > be too slow, and seems like a more general primitive. Is it easy to calculate (x, y) for moving? > x-show-tip is a built-in function. > (x-show-tip STRING &optional FRAME PARMS TIMEOUT DX DY) Here, the unit of DX and DY are pixel, not character. Is there easy way to get the (x, y) for the point? I have to calculate it from character widths and heights? BTW, "Eric M. Ludlam" worte: 1) A function that takes a frame, window, and buffer position and returns an X/Y location on the screen that would allow accurate tooltip positioning. At this time, a means of positioning the mouse pointer over a particular character is used to then position the tool-tip. That requires that the mouse move. In addition, things like header lines, split windows, and toolbars seem to effect the accuracy of that mechanism. How about for the point? Masatake YAMATO