GNU bug report logs -
#18384
24.3.93; posn-col-row and posn-actual-col-row return different row number for point-min when header-line-format is non-nil
Previous Next
Reported by: Dmitry <dgutov <at> yandex.ru>
Date: Mon, 1 Sep 2014 21:14:01 UTC
Severity: normal
Found in version 24.3.93
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18384 in the body.
You can then email your comments to 18384 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18384
; Package
emacs
.
(Mon, 01 Sep 2014 21:14:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Dmitry <dgutov <at> yandex.ru>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 01 Sep 2014 21:14:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
(Not a regression, same in Emacs 24.3 release, and apparently earlier versions).
1. Open a simple buffer; maybe an empty one.
2. (setq header-line-format "aaaa")
3. (posn-actual-col-row (posn-at-point (point-min)))
=> (0 . 1)
4. (posn-col-row (posn-at-point (point-min)))
=> (0 . -1)
I would also understand if the latter returned (0 . 0) instead of the
same value, but -1 seems obviously wrong.
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7390#40 ?
In GNU Emacs 24.3.93.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
of 2014-08-18 on axl
Repository revision: 117447 eliz <at> gnu.org-20140817144850-xgexz1n2z8s4aiur
Windowing system distributor `The X.Org Foundation', version 11.0.11501000
System Description: Ubuntu 14.04.1 LTS
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Tue, 02 Sep 2014 15:21:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Dmitry <dgutov <at> yandex.ru>
:
bug acknowledged by developer.
(Tue, 02 Sep 2014 15:21:04 GMT)
Full text and
rfc822 format available.
Message #10 received at 18384-done <at> debbugs.gnu.org (full text, mbox):
> From: Dmitry <dgutov <at> yandex.ru>
> Date: Tue, 02 Sep 2014 01:13:03 +0400
>
> 1. Open a simple buffer; maybe an empty one.
> 2. (setq header-line-format "aaaa")
> 3. (posn-actual-col-row (posn-at-point (point-min)))
> => (0 . 1)
> 4. (posn-col-row (posn-at-point (point-min)))
> => (0 . -1)
>
> I would also understand if the latter returned (0 . 0) instead of the
> same value, but -1 seems obviously wrong.
They are both wrong. The correct result is (0 . 0), of course.
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7390#40 ?
Yes, this is indeed a fall-out of bug #7390. As you see in
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7390#49, the Y pixel
issue was fixed on the trunk (in r102407), but then my temporary
change in posn-col-row on the release branch, which shouldn't have
been merged onto the trunk, _was_ merged (in r102428) and screwed this
up. Reverting that change fixed posn-col-row.
As for posn-actual-col-row, the problem was in posn-at-point, which
was returning incorrect row count when header line is present in the
window. I fixed that as well.
Revision 117473 on the emacs-24 branch should fix both issues.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18384
; Package
emacs
.
(Tue, 02 Sep 2014 23:42:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 18384-done <at> debbugs.gnu.org (full text, mbox):
On 09/02/2014 07:20 PM, Eli Zaretskii wrote:
> Revision 117473 on the emacs-24 branch should fix both issues.
Thanks!
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 01 Oct 2014 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 84 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.