From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 05 05:07:40 2014 Received: (at submit) by debbugs.gnu.org; 5 Jul 2014 09:07:40 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 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 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 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 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 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) Date: Sat, 05 Jul 2014 18:07:09 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: bug-gnu-emacs@gnu.org Subject: 24.3.92; pos-visible-in-window-p with PARTIALLY is wrong for a large image in a wrapped line User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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' From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 05 05:57:12 2014 Received: (at 17944-done) by debbugs.gnu.org; 5 Jul 2014 09:57:12 +0000 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 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 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) 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) Date: Sat, 05 Jul 2014 12:56:49 +0300 From: Eli Zaretskii Subject: Re: bug#17944: 24.3.92; pos-visible-in-window-p with PARTIALLY is wrong for a large image in a wrapped line In-reply-to: X-012-Sender: halo1@inter.net.il To: YAMAMOTO Mitsuharu Message-id: <83pphkdt7i.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17944-done Cc: 17944-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > 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. From unknown Tue Jun 17 01:43:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 02 Aug 2014 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator