* bug#17944: 24.3.92; pos-visible-in-window-p with PARTIALLY is wrong for a large image in a wrapped line
@ 2014-07-05 9:07 YAMAMOTO Mitsuharu
2014-07-05 9:56 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: YAMAMOTO Mitsuharu @ 2014-07-05 9:07 UTC (permalink / raw)
To: 17944
This is different from Bug#17942, which has just been fixed.
Steps to reproduce:
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.
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
In GNU Emacs 24.3.92.1 (x86_64-apple-darwin13.2.0, GTK+ Version 3.12.2)
of 2014-07-05 on YAMAMOTO-no-iMac.local
Repository revision: 117353 eliz@gnu.org-20140705082407-pa7h7dorji08yem5
Windowing system distributor `The X.Org Foundation', version 11.0.11406000
Configured using:
`configure --without-imagemagick LDFLAGS=-L/opt/local/lib
CPPFLAGS=-I/opt/local/include'
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#17944: 24.3.92; pos-visible-in-window-p with PARTIALLY is wrong for a large image in a wrapped line
2014-07-05 9:07 bug#17944: 24.3.92; pos-visible-in-window-p with PARTIALLY is wrong for a large image in a wrapped line YAMAMOTO Mitsuharu
@ 2014-07-05 9:56 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2014-07-05 9:56 UTC (permalink / raw)
To: YAMAMOTO Mitsuharu; +Cc: 17944-done
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-05 9:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-05 9:07 bug#17944: 24.3.92; pos-visible-in-window-p with PARTIALLY is wrong for a large image in a wrapped line YAMAMOTO Mitsuharu
2014-07-05 9:56 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.