GNU bug report logs - #17942
24.3.92; pos-visible-in-window-p with PARTIALLY is wrong for the first row only containing a single image

Previous Next

Package: emacs;

Reported by: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>

Date: Fri, 4 Jul 2014 23:39:01 UTC

Severity: normal

Found in version 24.3.92

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 17942-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
Cc: 17942-done <at> debbugs.gnu.org
Subject: Re: bug#17942: 24.3.92;
 pos-visible-in-window-p with PARTIALLY is wrong for the first
 row	only containing a single image
Date: Sat, 05 Jul 2014 10:39:59 +0300
> Date: Sat, 05 Jul 2014 08:38:26 +0900
> From: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
> 
> 1. $ emacs -Q &
> 2. Type the following expression and hit C-j in the *scratch* buffer.
> 
>   (save-excursion
>     (goto-char (point-min))
>     (insert-image (create-image "splash.png"))
>     (insert ?\n))
> 
> 3. Ditto.
> 
>    (pos-visible-in-window-p (point-min) nil t)
> 
> Result:
> 
> The expected one is (0 0), but the actual one is (608 188).  As far as
> I tested, this happens at the first row (i.e., (window-start)) only
> containing a single image.  If you remove (insert ?\n) in the first
> expression, then the result is (0 0) as expected.

Fixed in revision 117352 on the emacs-24 branch.




This bug report was last modified 10 years and 319 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.