From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Ludlam Newsgroups: gmane.emacs.help Subject: Re: Cursor position in pixels Date: Mon, 14 Mar 2005 10:46:04 -0500 Organization: The MathWorks, Inc., Natick, MA 01760 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110815756 27574 80.91.229.2 (14 Mar 2005 15:55:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2005 15:55:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 14 16:55:55 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DArob-0000nY-EG for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2005 16:49:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DAs4I-0003Qo-Ms for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2005 11:05:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!news.mathworks.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: ludlamelinux.dhcp.mathworks.com Original-X-Trace: fred.mathworks.com 1110815164 13553 144.212.109.50 (14 Mar 2005 15:46:04 GMT) Original-X-Complaints-To: news@mathworks.com Original-NNTP-Posting-Date: Mon, 14 Mar 2005 15:46:04 +0000 (UTC) User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:nlfcOYMTL+kTjrmZvgxwjoEQhWg= Original-Xref: shelby.stanford.edu gnu.emacs.help:129264 Original-To: help-gnu-emacs@gnu.org 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:24816 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24816 >>> PT seems to think that: >I plan to implement emacs support for a language and want to display >suggestions for the user in a pop up frame. For example, the user >starts to type the name of a function and if he hesitates a small >frame appears in the screen above the line the cursor is in showing >possible completions. > >In order to position the popup frame correctly I need to know the >position of the cursor in pixels relative to the top/left corner of >the current Emacs frame. I couldn't find anything like that in the >documentation. Is it possible? > >Of course, I can show the completions in an other window in the same >frame (pop-to-buffer), but a small temporary popup frame above the >cursor would be nicer. I'm not sure what you mean by "emacs support for a language and want to display suggestions for the user in a pop up frame." but it could be that if you add support for semantic (cedet.sf.net/semantic.shtml), even if you don't use the full parser architecture, you could use the popup tooltip like support built into that framework without having to figure out pixel positions. Cedet/Semantic tries to provide smart completions at idle time. If that's what you are looking to do, it may be a little easier, plus you would get a host of other useful features at the same time. Eric