GNU bug report logs -
#4426
23.0.91; posn-at-point returns an incorrect value
Previous Next
Reported by: irieshinsuke <at> yahoo.co.jp
Date: Mon, 14 Sep 2009 09:25:04 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
6 months ago I reported bug #4426, that is, `posn-at-point' returns
incorrect value when header line is displayed. I've investigated this
bug and found the solution.
I describe again this bug:
If header line is displayed, `posn-object-width-height' incorrectly
returns the size of object in position different from specified one.
For example, an expression
(posn-object-width-height (posn-at-point (window-start)))
must return the width and height of character on the top left corner
of text area, but actually returns the ones on the beginning of
header line.
It turned out that this problem occurs as a result of confusion between
it.vpos and MATRIX_ROW_VPOS in a function buffer_posn_from_coords
(included in dispnew.c).
So I wrote the small patch to fix this bug. Please check it.
IRIE Shinsuke
[fix_bug4426.patch (text/x-diff, attachment)]
This bug report was last modified 13 years and 291 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.