all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: 17944-done@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 12:56:49 +0300	[thread overview]
Message-ID: <83pphkdt7i.fsf@gnu.org> (raw)
In-Reply-To: <wly4w8qima.wl%mituharu@math.s.chiba-u.ac.jp>

> 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	other threads:[~2014-07-05  9:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

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=83pphkdt7i.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=17944-done@debbugs.gnu.org \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    /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.