From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 04 19:39:00 2014 Received: (at submit) by debbugs.gnu.org; 4 Jul 2014 23:39:00 +0000 Received: from localhost ([127.0.0.1]:43208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3D4F-0000c8-AB for submit@debbugs.gnu.org; Fri, 04 Jul 2014 19:38:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39508) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3D4D-0000bw-Lr for submit@debbugs.gnu.org; Fri, 04 Jul 2014 19:38:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X3D42-0002VW-4h for submit@debbugs.gnu.org; Fri, 04 Jul 2014 19:38:52 -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]:48612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3D42-0002VR-1y for submit@debbugs.gnu.org; Fri, 04 Jul 2014 19:38:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3D3w-0006vg-FX for bug-gnu-emacs@gnu.org; Fri, 04 Jul 2014 19:38:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X3D3p-0002Tq-FU for bug-gnu-emacs@gnu.org; Fri, 04 Jul 2014 19:38:40 -0400 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:65076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3D3p-0002TJ-4w for bug-gnu-emacs@gnu.org; Fri, 04 Jul 2014 19:38:33 -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 4841BC055D for ; Sat, 5 Jul 2014 08:38:26 +0900 (JST) Date: Sat, 05 Jul 2014 08:38:26 +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 the first row only containing a single image 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 (-----) Steps to reproduce: 1. $ emacs -Q & 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")) (insert ?\n)) 3. Ditto. (pos-visible-in-window-p (point-min) nil t) Result: The expected one is (0 0), but the actual one is (608 188). As far as I tested, this happens at the first row (i.e., (window-start)) only containing a single image. If you remove (insert ?\n) in the first expression, then the result is (0 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: 117350 stephen.berman@gmx.net-20140704190929-xpf743kwesgh2k4q 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 03:40:24 2014 Received: (at 17942-done) by debbugs.gnu.org; 5 Jul 2014 07:40:24 +0000 Received: from localhost ([127.0.0.1]:43359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3Ka7-00044l-GN for submit@debbugs.gnu.org; Sat, 05 Jul 2014 03:40:24 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:58295) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3Ka2-00044M-Od for 17942-done@debbugs.gnu.org; Sat, 05 Jul 2014 03:40:21 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N8800L00A7D2000@a-mtaout22.012.net.il> for 17942-done@debbugs.gnu.org; Sat, 05 Jul 2014 10:40:12 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N8800KMGAMZT490@a-mtaout22.012.net.il>; Sat, 05 Jul 2014 10:40:12 +0300 (IDT) Date: Sat, 05 Jul 2014 10:39:59 +0300 From: Eli Zaretskii Subject: Re: bug#17942: 24.3.92; pos-visible-in-window-p with PARTIALLY is wrong for the first row only containing a single image In-reply-to: X-012-Sender: halo1@inter.net.il To: YAMAMOTO Mitsuharu Message-id: <83tx6wdzjk.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17942-done Cc: 17942-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 08:38:26 +0900 > From: YAMAMOTO Mitsuharu > > 1. $ emacs -Q & > 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")) > (insert ?\n)) > > 3. Ditto. > > (pos-visible-in-window-p (point-min) nil t) > > Result: > > The expected one is (0 0), but the actual one is (608 188). As far as > I tested, this happens at the first row (i.e., (window-start)) only > containing a single image. If you remove (insert ?\n) in the first > expression, then the result is (0 0) as expected. Fixed in revision 117352 on the emacs-24 branch. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 05 04:00:51 2014 Received: (at 17942-done) by debbugs.gnu.org; 5 Jul 2014 08:00:51 +0000 Received: from localhost ([127.0.0.1]:43369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3Ktu-0004Zn-FE for submit@debbugs.gnu.org; Sat, 05 Jul 2014 04:00:51 -0400 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:64892) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3Ktn-0004ZX-W8 for 17942-done@debbugs.gnu.org; Sat, 05 Jul 2014 04:00:48 -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 CB15FC055D; Sat, 5 Jul 2014 17:00:40 +0900 (JST) Date: Sat, 05 Jul 2014 17:00:40 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: Eli Zaretskii Subject: Re: bug#17942: 24.3.92; pos-visible-in-window-p with PARTIALLY is wrong for the first row only containing a single image In-Reply-To: <83tx6wdzjk.fsf@gnu.org> References: <83tx6wdzjk.fsf@gnu.org> 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 17942-done Cc: 17942-done@debbugs.gnu.org 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: -0.0 (/) >>>>> On Sat, 05 Jul 2014 10:39:59 +0300, Eli Zaretskii said: >> Date: Sat, 05 Jul 2014 08:38:26 +0900 >> From: YAMAMOTO Mitsuharu >> >> 1. $ emacs -Q & >> 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")) >> (insert ?\n)) >> >> 3. Ditto. >> >> (pos-visible-in-window-p (point-min) nil t) >> >> Result: >> >> The expected one is (0 0), but the actual one is (608 188). As far as >> I tested, this happens at the first row (i.e., (window-start)) only >> containing a single image. If you remove (insert ?\n) in the first >> expression, then the result is (0 0) as expected. > Fixed in revision 117352 on the emacs-24 branch. Thanks for the quick fix. But it still returns a wrong value when an image is not at the beginning of buffer but located at the first row: (let ((p (point))) (insert-image (create-image "splash.png")) (insert ?\n) (set-window-start nil p) (pos-visible-in-window-p p nil t)) This returns (0 188) instead of (0 0). If we replace (insert ?\n) with (insert ?a ?\n), then it returns (0 0) as expected. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 05 04:25:45 2014 Received: (at 17942) by debbugs.gnu.org; 5 Jul 2014 08:25:45 +0000 Received: from localhost ([127.0.0.1]:43376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3LI1-0005AG-5S for submit@debbugs.gnu.org; Sat, 05 Jul 2014 04:25:45 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:54927) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X3LHy-0005A1-IK for 17942@debbugs.gnu.org; Sat, 05 Jul 2014 04:25:43 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N8800700CMYM400@a-mtaout20.012.net.il> for 17942@debbugs.gnu.org; Sat, 05 Jul 2014 11:25:36 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N88007PSCQNEH40@a-mtaout20.012.net.il>; Sat, 05 Jul 2014 11:25:36 +0300 (IDT) Date: Sat, 05 Jul 2014 11:25:23 +0300 From: Eli Zaretskii Subject: Re: bug#17942: 24.3.92; pos-visible-in-window-p with PARTIALLY is wrong for the first row only containing a single image In-reply-to: X-012-Sender: halo1@inter.net.il To: YAMAMOTO Mitsuharu Message-id: <83simgdxfw.fsf@gnu.org> References: <83tx6wdzjk.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17942 Cc: 17942@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 17:00:40 +0900 > From: YAMAMOTO Mitsuharu > Cc: 17942-done@debbugs.gnu.org > > > Fixed in revision 117352 on the emacs-24 branch. > > Thanks for the quick fix. But it still returns a wrong value when an > image is not at the beginning of buffer but located at the first row: > > (let ((p (point))) > (insert-image (create-image "splash.png")) > (insert ?\n) > (set-window-start nil p) > (pos-visible-in-window-p p nil t)) > > This returns (0 188) instead of (0 0). If we replace (insert ?\n) > with (insert ?a ?\n), then it returns (0 0) as expected. Fixed again in r117353. From unknown Sat Jun 14 05:01:34 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