From unknown Sun Jun 22 11:44:26 2025 X-Loop: help-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 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: To: 17944@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.140455126023883 (code B ref -1); Sat, 05 Jul 2014 09:08:01 +0000 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 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) 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-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 unknown Sun Jun 22 11:44:26 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: YAMAMOTO Mitsuharu Subject: bug#17944: closed (Re: bug#17944: 24.3.92; pos-visible-in-window-p with PARTIALLY is wrong for a large image in a wrapped line) Message-ID: References: <83pphkdt7i.fsf@gnu.org> X-Gnu-PR-Message: they-closed 17944 X-Gnu-PR-Package: emacs Reply-To: 17944@debbugs.gnu.org Date: Sat, 05 Jul 2014 09:58:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1404554283-28707-1" This is a multi-part message in MIME format... ------------=_1404554283-28707-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #17944: 24.3.92; pos-visible-in-window-p with PARTIALLY is wrong for a larg= e image in a wrapped line which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 17944@debbugs.gnu.org. --=20 17944: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17944 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1404554283-28707-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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. ------------=_1404554283-28707-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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' ------------=_1404554283-28707-1--