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: `posn-at-point' and `posn-at-x-y' not in manual Date: Sat, 05 Jun 2004 02:11:54 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040605.021154.18301863.jet@gyve.org> References: <6581542.1086359828010.JavaMail.www@wwinf0603> <20040605.015318.205310889.jet@gyve.org> 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 1086369188 25604 80.91.224.253 (4 Jun 2004 17:13:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 Jun 2004 17:13:08 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jun 04 19:12:58 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 1BWIFW-00017O-00 for ; Fri, 04 Jun 2004 19:12:58 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BWIFW-0000l6-00 for ; Fri, 04 Jun 2004 19:12:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BWIFu-0001Aw-JW for emacs-devel@quimby.gnus.org; Fri, 04 Jun 2004 13:13:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BWIFs-0001Ar-6X for emacs-devel@gnu.org; Fri, 04 Jun 2004 13:13:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BWIFq-00019f-Mw for emacs-devel@gnu.org; Fri, 04 Jun 2004 13:13:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BWIFq-00019V-KL for emacs-devel@gnu.org; Fri, 04 Jun 2004 13:13:18 -0400 Original-Received: from [210.130.136.40] (helo=r-maa.spacetown.ne.jp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BWIF6-0007jB-RE for emacs-devel@gnu.org; Fri, 04 Jun 2004 13:12:33 -0400 Original-Received: from localhost (h219-110-074-001.catv01.itscom.jp [219.110.74.1]) by r-maa.spacetown.ne.jp (8.11.6) with ESMTP id i54HCQR00633; Sat, 5 Jun 2004 02:12:27 +0900 (JST) Original-To: david.ponce@wanadoo.fr In-Reply-To: <20040605.015318.205310889.jet@gyve.org> 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:24538 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24538 > Thank you, sir. > However, I'd like not to move the mouse cursor if possible. > I've implemented `point-pixel-position' based on your code. > Maybe this code is applicable to popup menu. Here is the example: (let* ((pos (posn-at-point)) (x-y (posn-x-y pos)) (wnd (posn-window pos))) (popup-menu (list nil "eval-after-load" "eval-and-compile" "eval-buffer" "eval-current-buffer" "eval-defun") (list (list (car x-y) (cdr x-y)) wnd))) May be useful to show completion candidate. Masatake YAMATO