From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Re: Possible to show tooltip at (point) ???? Date: Sun, 28 Dec 2008 18:31:01 +0100 Message-ID: References: <30c6373b0812272248y7c51447ax15bcea34d8cce132@mail.gmail.com> <8763l47jpy.fsf@cyd.mit.edu> <30c6373b0812280124r6301ec1ka7e12d2e719126a1@mail.gmail.com> <49574CB0.5050600@gnu.org> <30c6373b0812280920y722b7822s7c844f0c73636545@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230485532 5563 80.91.229.12 (28 Dec 2008 17:32:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Dec 2008 17:32:12 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org, Jason Rumney To: "Kevin Burton" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 28 18:33:16 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LGzVl-0001Fx-Ox for ged-emacs-devel@m.gmane.org; Sun, 28 Dec 2008 18:33:10 +0100 Original-Received: from localhost ([127.0.0.1]:52173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LGzUX-0007hg-SZ for ged-emacs-devel@m.gmane.org; Sun, 28 Dec 2008 12:31:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LGzTl-0007PZ-VB for emacs-devel@gnu.org; Sun, 28 Dec 2008 12:31:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LGzTk-0007Oh-C8 for emacs-devel@gnu.org; Sun, 28 Dec 2008 12:31:05 -0500 Original-Received: from [199.232.76.173] (port=34518 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LGzTk-0007Od-78 for emacs-devel@gnu.org; Sun, 28 Dec 2008 12:31:04 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.158]:25868) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LGzTi-0002fp-NR; Sun, 28 Dec 2008 12:31:03 -0500 Original-Received: by fg-out-1718.google.com with SMTP id l26so1744985fgb.30 for ; Sun, 28 Dec 2008 09:31:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=bVqVKGRQF0eJYz+jndNTh8CgzVpEQsx5ufQJa+toorc=; b=wF9rIVEIdNSuSyFdK5EFyJ+3ovur+vVKTbvBKj38K3FGoT7Wjc0tTSJqlPQK1AI8sB ZcWZMiONqrFo6M57Og/Y9vQIi0kiIN2xcLAQkh/frLvNuxlSbUCMaKix5MB4HIzSPt0R GXXmUmrJzbEhK5tMmPfPirgXV8+qc5/ELPh3k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=gHtEohgEUObVRGMlNhaC05GGqaumD+8gT2dobrjSfwTwEyfHqszVmUrSKj656M/JAB 7MLNfzuViBwMYTMyKZ3lwG1dK66m9JvlLetqoszNTEQUxlNXeo/Cnoy0Wlxpn2hu9YRw 3Zzvi4Iw7XOJ2Vqzy6+Ipz/UHV7KVoJHy+i+0= Original-Received: by 10.86.80.17 with SMTP id d17mr7600249fgb.55.1230485461885; Sun, 28 Dec 2008 09:31:01 -0800 (PST) Original-Received: by 10.86.35.9 with HTTP; Sun, 28 Dec 2008 09:31:01 -0800 (PST) In-Reply-To: <30c6373b0812280920y722b7822s7c844f0c73636545@mail.gmail.com> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:107342 Archived-At: On Sun, Dec 28, 2008 at 6:20 PM, Kevin Burton wrote: > In the predictive package? > I think one just needs to compute the left-margin width. Here is what I have. There is indeed a problem with the left margin. What change do you propose? (defun point-to-coord (point) "Return coordinates of POINT in selected window. The coordinates are in the form \(\(XOFFSET YOFFSET) WINDOW). This form is suitable for `popup-menu'." ;; Fix-me: showtip.el adds (window-inside-pixel-edges ;; (selected-window)). Why? (let* ((pn (posn-at-point point)) (x-y (posn-x-y pn)) (x (car x-y)) (y (cdr x-y)) (pos (list (list x (+ y 20)) (selected-window)))) pos)) > I wrote a tooltip-at-point package a few years ago (but never got it t work > reliably) and added this into the mix.... > Kevin > > On Sun, Dec 28, 2008 at 9:14 AM, Lennart Borgman > wrote: >> >> On Sun, Dec 28, 2008 at 10:53 AM, Jason Rumney wrote: >> > Kevin Burton wrote: >> >> >> >> You mean by specifying top and left? I think that is what I was going >> >> to >> >> do to position the tooltip but first I need to find out the x/y of the >> >> current point. >> > >> > (posn-at-point &optional POS WINDOW) >> >> I think there is a bug with left margin. (Though I have not had time >> to submit a bug report for this.)