bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#17944: 24.3.92; pos-visible-in-window-p with PARTIALLY is wrong for


From: Eli Zaretskii
Subject: bug#17944: 24.3.92; pos-visible-in-window-p with PARTIALLY is wrong for a large image in a wrapped line
Date: Sat, 05 Jul 2014 12:56:49 +0300

> Date: Sat, 05 Jul 2014 18:07:09 +0900
> From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
> 
> 1. $ emacs -Q -D &
> 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")))
> 
> 3. M-:
>    (progn
>      (set-frame-width nil 20)
>      (set-frame-height nil 10)
>      (set-window-start nil (point-min))
>      (pos-visible-in-window-p (point-min) nil t))
>    RET
> 
> Result:
> 
> Returns (0 94 0 68 0 1) for me, whereas I expect 0 instead of 94 for
> the Y-coordinate value.  If I add (insert ?\n) after (insert-image
> ...) to avoid line wrapping, then the result becomes (160 0 0 68 120
> 0) where the Y-coordinate value is 0 as expected.

Fixed in revision 117354 on the emacs-24 branch.





reply via email to

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