[Top][All Lists]

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

bug#4426: [PATCH] posn-at-point returns an incorrect value

From: IRIE Shinsuke
Subject: bug#4426: [PATCH] posn-at-point returns an incorrect value
Date: Wed, 17 Mar 2010 13:01:59 +0900
User-agent: Mozilla/5.0 (X11; U; Linux i686; ja; rv: Gecko/20100227 Thunderbird/3.0.3

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

Attachment: fix_bug4426.patch
Description: Text Data

reply via email to

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