[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Chong Yidong
Subject: bug#7390: 24.0.50; pos-col-row gives incorrect row
Date: Sun, 14 Nov 2010 12:35:30 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]