From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: 17944@debbugs.gnu.org
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 18:07:09 +0900 [thread overview]
Message-ID: <wly4w8qima.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
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'
next reply other threads:[~2014-07-05 9:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-05 9:07 YAMAMOTO Mitsuharu [this message]
2014-07-05 9:56 ` bug#17944: 24.3.92; pos-visible-in-window-p with PARTIALLY is wrong for a large image in a wrapped line Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wly4w8qima.wl%mituharu@math.s.chiba-u.ac.jp \
--to=mituharu@math.s.chiba-u.ac.jp \
--cc=17944@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.