GNU bug report logs - #17944
24.3.92; pos-visible-in-window-p with PARTIALLY is wrong for a large image in a wrapped line

Previous Next

Package: emacs;

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

Date: Sat, 5 Jul 2014 09:08: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 17944-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: 17944-done <at> debbugs.gnu.org
Subject: Re: 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 <at> 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.




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

Previous Next


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