>>> PT <[EMAIL PROTECTED]> 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 _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs