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 21:48:15 +0900 (JST) Organization: Red Hat Japan, Inc. Message-ID: <20120720.214815.1549263809083737000.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 1342788509 20622 80.91.229.3 (20 Jul 2012 12:48:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Jul 2012 12:48:29 +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 14:48:28 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 1SsCdA-0000Td-86 for ged-emacs-devel@m.gmane.org; Fri, 20 Jul 2012 14:48:28 +0200 Original-Received: from localhost ([::1]:51077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsCd9-0002pJ-Jf for ged-emacs-devel@m.gmane.org; Fri, 20 Jul 2012 08:48:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsCd6-0002oZ-ML for emacs-devel@gnu.org; Fri, 20 Jul 2012 08:48:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SsCd1-0001Yy-0A for emacs-devel@gnu.org; Fri, 20 Jul 2012 08:48:24 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:37513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsCd0-0001Yj-OS for emacs-devel@gnu.org; Fri, 20 Jul 2012 08:48:18 -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 q6KCmHG9004359 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 20 Jul 2012 08:48:17 -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 q6KCmGeF001720; Fri, 20 Jul 2012 08:48:16 -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:151782 Archived-At: >> 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). It seems that removing point-pixel-position in wrong way. Following patch is needed. === modified file 'lisp/mouse.el' *** lisp/mouse.el 2012-07-20 11:32:30 +0000 --- lisp/mouse.el 2012-07-20 12:46:34 +0000 *************** *** 116,122 **** (setq position (cond ((eq position 'point) ! (let* ((pp (posn-at-point pos window)) (xy (posn-x-y pp))) (list (list (car xy) (cdr xy)) (posn-window pp)))) ((not position) --- 116,122 ---- (setq position (cond ((eq position 'point) ! (let* ((pp (posn-at-point)) (xy (posn-x-y pp))) (list (list (car xy) (cdr xy)) (posn-window pp)))) ((not position)