From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii 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 12:56:49 +0300 Message-ID: <83pphkdt7i.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1404554317 31983 80.91.229.3 (5 Jul 2014 09:58:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Jul 2014 09:58:37 +0000 (UTC) Cc: 17944-done@debbugs.gnu.org To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 05 11:58:22 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 1X3Mja-00039P-I8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Jul 2014 11:58:18 +0200 Original-Received: from localhost ([::1]:39786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3Mja-0001bq-4u for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Jul 2014 05:58:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3MjR-0001ao-N3 for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2014 05:58:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X3MjL-0004pR-DU for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2014 05:58:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3MjL-0004pM-B4 for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2014 05:58:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X3MjK-0007T8-VF for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2014 05:58:03 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Jul 2014 09:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 17944 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 17944@debbugs.gnu.org, eliz@gnu.org, mituharu@math.s.chiba-u.ac.jp Original-Received: via spool by 17944-done@debbugs.gnu.org id=D17944.140455423228636 (code D ref 17944); Sat, 05 Jul 2014 09:58:02 +0000 Original-Received: (at 17944-done) by debbugs.gnu.org; 5 Jul 2014 09:57:12 +0000 Original-Received: from localhost ([127.0.0.1]:43433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3MiV-0007Ro-Gb for submit@debbugs.gnu.org; Sat, 05 Jul 2014 05:57:11 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:47198) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3MiS-0007RY-FJ for 17944-done@debbugs.gnu.org; Sat, 05 Jul 2014 05:57:09 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N8800M00GL19200@a-mtaout22.012.net.il> for 17944-done@debbugs.gnu.org; Sat, 05 Jul 2014 12:57:01 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N8800MY4GZ04B20@a-mtaout22.012.net.il>; Sat, 05 Jul 2014 12:57:01 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il 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:91206 Archived-At: > Date: Sat, 05 Jul 2014 18:07:09 +0900 > From: YAMAMOTO Mitsuharu > > 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.