From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Masatake YAMATO Newsgroups: gmane.emacs.devel Subject: Re: Where the menu should be appeared when C-mouse-3 is triggered Date: Fri, 20 Jul 2012 20:56:26 +0900 (JST) Organization: Red Hat Japan, Inc. Message-ID: <20120720.205626.241222894708490981.yamato@redhat.com> References: <20120720.135534.2139116803885399180.yamato@redhat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1342785401 27244 80.91.229.3 (20 Jul 2012 11:56:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Jul 2012 11:56:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: monnier@IRO.UMontreal.CA Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 20 13:56:41 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SsBoy-0004hc-IU for ged-emacs-devel@m.gmane.org; Fri, 20 Jul 2012 13:56:36 +0200 Original-Received: from localhost ([::1]:51948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsBox-0002uT-Tv for ged-emacs-devel@m.gmane.org; Fri, 20 Jul 2012 07:56:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsBos-0002uC-II for emacs-devel@gnu.org; Fri, 20 Jul 2012 07:56:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SsBor-0001ej-El for emacs-devel@gnu.org; Fri, 20 Jul 2012 07:56:30 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:15719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsBor-0001ef-6b for emacs-devel@gnu.org; Fri, 20 Jul 2012 07:56:29 -0400 Original-Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6KBuS69016537 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 20 Jul 2012 07:56:28 -0400 Original-Received: from localhost (dhcp-193-19.nrt.redhat.com [10.64.193.19]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q6KBuQFe015831; Fri, 20 Jul 2012 07:56:27 -0400 In-Reply-To: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151781 Archived-At: Hi, >> With the patch f10 can show the same menu items as >> C-mouse-3 shows. The menu is shows at point or mouse >> cursor; last-nonmenu-event is referred to decide the >> postion. The menu items reflects (current-buffer) when >> the menu is shown at point. > > Sounds good. Installed (except I removed point-pixel-position). Thanks. >> I think a function showing menu at point may be useful >> other elisp program, so I introduced `point-pixel-position' >> and 'point' constant for POSITION parameter of `popup-menu'. > > Maybe a better direction is to make popup-menu (and x-popup-menu, ...) > accept posn arguments, so you can just use things like (event-end > ) or (posn-at-point) to specify where to display it. The > docstring of popup-menu seems to indicate that an `event' can be used, > but at least in my tests it doesn't seem to work. > > Could you look at making a patch to do that (i.e. accept a posn, > or maybe an event)? Sure. I'll continue to hack this area. > > Stefan > Masatake YAMATO