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: Wed, 10 Mar 2004 14:36:02 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040310.143602.258500688.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 1079046421 20128 80.91.224.253 (11 Mar 2004 23:07:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Mar 2004 23:07:01 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Mar 12 00:06:45 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 1B1ZGH-0000ND-00 for ; Fri, 12 Mar 2004 00:06:45 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1ZGH-0001A6-00 for ; Fri, 12 Mar 2004 00:06:45 +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 1B1XQF-00035l-L1 for emacs-devel@quimby.gnus.org; Thu, 11 Mar 2004 16:08:55 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B0wOY-0000Lh-9b for emacs-devel@gnu.org; Wed, 10 Mar 2004 00:36:42 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B0wO1-0000CN-4b for emacs-devel@gnu.org; Wed, 10 Mar 2004 00:36:41 -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 1B0wO0-0000CK-5A; Wed, 10 Mar 2004 00:36:08 -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 i2A5a2Z22130; Wed, 10 Mar 2004 14:36:02 +0900 (JST) Original-To: miles@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:20319 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20319 > 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