From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs 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 Organization: Faculty of Science, Chiba University Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1404551313 1163 80.91.229.3 (5 Jul 2014 09:08:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Jul 2014 09:08:33 +0000 (UTC) To: 17944@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 05 11:08:25 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X3LxJ-0006h5-5y for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Jul 2014 11:08:25 +0200 Original-Received: from localhost ([::1]:39606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3LxI-0003Ts-Nl for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Jul 2014 05:08:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3Lx2-0003S2-Ez for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2014 05:08:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X3Lww-0003vj-DD for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2014 05:08:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3Lww-0003ve-AJ for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2014 05:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X3Lwv-0006Dy-TU for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2014 05:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Jul 2014 09:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17944 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140455126023883 (code B ref -1); Sat, 05 Jul 2014 09:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Jul 2014 09:07:40 +0000 Original-Received: from localhost ([127.0.0.1]:43385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3LwZ-0006D6-Gx for submit@debbugs.gnu.org; Sat, 05 Jul 2014 05:07:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57392) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3LwX-0006Cn-Bh for submit@debbugs.gnu.org; Sat, 05 Jul 2014 05:07:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X3LwL-0003M5-W7 for submit@debbugs.gnu.org; Sat, 05 Jul 2014 05:07:31 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3LwL-0003Ls-T2 for submit@debbugs.gnu.org; Sat, 05 Jul 2014 05:07:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3LwG-0003QP-BR for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2014 05:07:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X3LwA-0003IB-R3 for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2014 05:07:20 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:64876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3LwA-0003Hu-Gc for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2014 05:07:14 -0400 Original-Received: from fermat.math.s.chiba-u.ac.jp (fermat [133.82.132.10]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 32587C055D for ; Sat, 5 Jul 2014 18:07:09 +0900 (JST) User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?UTF-8?Q?Shij=C5=8D?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91205 Archived-At: 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'