From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: Q on Text Properties popup menu - shouldn't it use the pointer position, not the cursor position? Date: Fri, 24 Jun 2005 08:25:40 -0700 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1119626438 12713 80.91.229.2 (24 Jun 2005 15:20:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Jun 2005 15:20:38 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 24 17:20:34 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DlpyS-0006gL-AQ for ged-emacs-devel@m.gmane.org; Fri, 24 Jun 2005 17:20:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dlq5V-0004bs-El for ged-emacs-devel@m.gmane.org; Fri, 24 Jun 2005 11:27:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dlq4n-0004Lw-EN for emacs-devel@gnu.org; Fri, 24 Jun 2005 11:26:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dlq4f-0004H3-LX for emacs-devel@gnu.org; Fri, 24 Jun 2005 11:26:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dlq4d-0004Eq-Nl for emacs-devel@gnu.org; Fri, 24 Jun 2005 11:26:31 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Dlq7T-0005WV-2I for emacs-devel@gnu.org; Fri, 24 Jun 2005 11:29:27 -0400 Original-Received: from agminet01.oracle.com (localhost [127.0.0.1]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j5OFPiAh027716 for ; Fri, 24 Jun 2005 10:25:44 -0500 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j5OFPh62027659 for ; Fri, 24 Jun 2005 10:25:43 -0500 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j5OFPhLF001932 for ; Fri, 24 Jun 2005 09:25:43 -0600 Original-Received: from dradamslap (dhcp-amer-whq-csvpn-gw3-141-144-80-138.vpn.oracle.com [141.144.80.138]) by rgmsgw300.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j5OFPgTi001927 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 24 Jun 2005 09:25:42 -0600 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:39432 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39432 The Text Properties popup menu (via `C-mouse-2'), `facemenu-menu', currently applies to the cursor position (point). Isn't this misleading? If you are using the mouse to bring up the menu, then I think you might be expecting the position of application to be the pointer position, not the cursor position. Especially wrt menu items that are specific to a buffer position, it's likely that users will want to use the menu at different positions by simply pointing the mouse. For example, to check the text properties at some position, it would be convenient to just put the mouse over that position, pop up the menu, and choose Describe Properties. I tried this in various (pointer) positions, and I couldn't figure out why the result didn't correspond to what I expected. It wasn't until I looked at the facemenu code that I understood that the mouse position is irrelevant and the cursor position is used always. Don't you think that mouse position would be more relevant here than the cursor position, when accessed from a mouse menu? Commands such as `describe-text-properties' should still use the cursor position (e.g. for access via M-x), but I think that when such commands are accessed from a mouse (popup) menu, the pointer position should be used instead.