From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15783: 24.3; posn-at-x-y is relative to the buffer area, posn-at-point is relative to the text area. Date: Fri, 01 Nov 2013 18:32:10 +0200 Message-ID: <83fvrgaxrp.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1383323596 16641 80.91.229.3 (1 Nov 2013 16:33:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Nov 2013 16:33:16 +0000 (UTC) Cc: 15783@debbugs.gnu.org To: =?UTF-8?Q?=E6=A4=8E=E9=87=8E_?= =?UTF-8?Q?=E8=A3=95=E6=A8=B9?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 01 17:33:20 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1VcHex-0007Fx-CL for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2013 17:33:19 +0100 Original-Received: from localhost ([::1]:39147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcHew-0000i3-Ve for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2013 12:33:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcHeo-0000hw-1r for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2013 12:33:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VcHeg-00034R-P5 for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2013 12:33:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcHeg-00034J-MA for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2013 12:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VcHef-0004te-PB for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2013 12:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2013 16:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15783 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15783-submit@debbugs.gnu.org id=B15783.138332355518783 (code B ref 15783); Fri, 01 Nov 2013 16:33:01 +0000 Original-Received: (at 15783) by debbugs.gnu.org; 1 Nov 2013 16:32:35 +0000 Original-Received: from localhost ([127.0.0.1]:57786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VcHeD-0004sr-SY for submit@debbugs.gnu.org; Fri, 01 Nov 2013 12:32:35 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:50276) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VcHe9-0004sb-Pw for 15783@debbugs.gnu.org; Fri, 01 Nov 2013 12:32:30 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MVL00100F67BF00@a-mtaout21.012.net.il> for 15783@debbugs.gnu.org; Fri, 01 Nov 2013 18:32:23 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MVL001WQF9Y5V70@a-mtaout21.012.net.il>; Fri, 01 Nov 2013 18:32:23 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79864 Archived-At: > From: 椎野 裕樹 > > Date: Fri, 1 Nov 2013 23:49:00 +0900 > > On Emacs 24 with non-nil header-line-format, y offset returned by > `posn-at-point' is relative to the text area *not including the header > line*. However, `posn-at-x-y' takes y offset relative to the buffer > area *including the header line*. > > Is this by design? Yes. > When I get the position by `posn-at-point', and then convert the > position to the point by `posn-at-x-y', the resulting point does not > match the point given to `posn-at-point'. You should test for non-nil header-line-format, and adjust the value accordingly. > On Emacs 22 and 23, both functions are relative to the buffer area > including the header line. It's fine. That caused much more grave bugs.