Subject: bug#7390: 24.0.50; pos-col-row gives incorrect row

From: Chong Yidong <[email-masked]>
Date: Sun, 14 Nov 2010 12:35:30 -0500

Eli Zaretskii <[email-masked]> writes:

>> (setq header-line-format (propertize "foo" 'face '(:height 5.0)))
>>
>> then this new code gives the wrong value.
>
> That's expected: posn-col-row is documented to return an
> approximation, based on the assumption that all the lines are of the
> canonical height.  Your example breaks that assumption.  Similar
> problems will happen if one of the lines above the mouse click uses an
> unusually large font.

I know, but posn-col-row, when called for a text area event position,
ought to give the (approximate) row/column number counting from the top
of the text area.