From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#7390: 24.0.50; pos-col-row gives incorrect row Date: Sat, 13 Nov 2010 13:38:01 -0800 Message-ID: References: <9C53EFF0802044A489EF842E6A1B8150@us.oracle.com><8362w1dp3e.fsf@gnu.org> <87eiapkjv9.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1289684658 4631 80.91.229.12 (13 Nov 2010 21:44:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Nov 2010 21:44:18 +0000 (UTC) Cc: 7390@debbugs.gnu.org To: "'Chong Yidong'" , "'Eli Zaretskii'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 13 22:44:14 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PHNtN-0003Qq-FG for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Nov 2010 22:44:13 +0100 Original-Received: from localhost ([127.0.0.1]:58850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHNtN-0007ik-1V for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Nov 2010 16:44:13 -0500 Original-Received: from [140.186.70.92] (port=39205 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHNtF-0007gw-7S for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2010 16:44:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHNtD-0003Vr-M8 for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2010 16:44:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHNtD-0003Vn-Ki for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2010 16:44:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PHNkT-000615-N5; Sat, 13 Nov 2010 16:35:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Nov 2010 21:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7390 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7390-submit@debbugs.gnu.org id=B7390.128968406123120 (code B ref 7390); Sat, 13 Nov 2010 21:35:01 +0000 Original-Received: (at 7390) by debbugs.gnu.org; 13 Nov 2010 21:34:21 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PHNjp-00060r-9z for submit@debbugs.gnu.org; Sat, 13 Nov 2010 16:34:21 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PHNjn-00060m-Me for 7390@debbugs.gnu.org; Sat, 13 Nov 2010 16:34:20 -0500 Original-Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oADLd94a006909 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 13 Nov 2010 21:39:11 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oADLd97q005892; Sat, 13 Nov 2010 21:39:09 GMT Original-Received: from abhmt006.oracle.com by acsmt353.oracle.com with ESMTP id 775665821289684281; Sat, 13 Nov 2010 13:38:01 -0800 Original-Received: from dradamslap1 (/10.159.14.224) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 13 Nov 2010 13:38:01 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87eiapkjv9.fsf@stupidchicken.com> Thread-Index: AcuDd50VjxOyl9vITSGRaKVV+rnisQAAnX9Q X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 13 Nov 2010 16:35:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41573 Archived-At: Thanks to you both for fixing this so quickly. > The underlying situation is currently somewhat unsatisfactory---the > pixel position of a mouse-event in the text area counts X > from the start of the text area (excluding margins and fringes), > and Y from the top of the window (including the header line). Yes, that's an inconsistency. But what do we want "pixel" position to mean? Both (1) a position within the text area and (2) a position overall (including things like scroll bars and header lines can be useful. We should not sacrifice one for the other. What you need in terms of a position depends on what you are trying to do. It seems we need either two different functions (for each such positioning function) or an argument that determines the behavior. > This arises from some internal redisplay engine semantics, and is not > really intuitive. Rightfully, the header-line should be excluded from > the pixel Y coordinates. No, I don't think there is any such "rightfully". Both behaviors are important and useful (position within text area and position within total frame/window including non-text decorations). We should not decide that one of them is "right". But each of them needs to be consistent. > It's not feasible to change this for Emacs 23, > since existing code might depend on the current behavior. But we can > contemplate changing this in Emacs 24. > > (Such a change will not affect the picture-mouse-set-point fix.) Let's contemplate coming up with functions that give both kinds of position, not just one.