From unknown Tue Sep 09 08:20:46 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3020: 23.0.92; `previous-line' sometimes fails with overlays Reply-To: Markus Triska , 3020@debbugs.gnu.org Resent-From: Markus Triska Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 16 Apr 2009 18:40:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 3020 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12399068781686 (code B ref -1); Thu, 16 Apr 2009 18:40:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 16 Apr 2009 18:34:38 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3GIYUmt001677 for ; Thu, 16 Apr 2009 11:34:31 -0700 Received: from mx10.gnu.org ([199.232.76.166]:45683) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LuWPt-00054T-N4 for emacs-pretest-bug@gnu.org; Thu, 16 Apr 2009 14:34:29 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LuWPr-00083K-DY for emacs-pretest-bug@gnu.org; Thu, 16 Apr 2009 14:34:29 -0400 Received: from mail.gmx.net ([213.165.64.20]:48433) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LuWPq-00082c-Sa for emacs-pretest-bug@gnu.org; Thu, 16 Apr 2009 14:34:27 -0400 Received: (qmail invoked by alias); 16 Apr 2009 18:34:24 -0000 Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-imac.local) [62.178.240.212] by mail.gmx.net (mp025) with SMTP; 16 Apr 2009 20:34:24 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX1/YupZ+z8vYjjExMZjIQzuwxpnEd3KVy4suxs5aZn 6k6vtmY7e7i4lF Received: by mt-imac.local (Postfix, from userid 501) id 49ED22BA2B5; Thu, 16 Apr 2009 20:34:23 +0200 (CEST) From: Markus Triska To: emacs-pretest-bug@gnu.org Date: Thu, 16 Apr 2009 20:34:23 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.51 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. When I evaluate the following form in "emacs -Q": (progn (switch-to-buffer (get-buffer-create "test")) (insert "the first line\na ") (let ((o (make-overlay (point) (point)))) (overlay-put o 'after-string (propertize (concat "very very very very very very very very " "very very very very very very very very " "long line") 'face '(:background "cyan")))) (insert "\nand the last line") (previous-line)) and then press C-p, point unexpectedly fails to move. However, when I then press C-a C-n C-p C-p, the second C-p works as expected. In GNU Emacs 23.0.92.1 (i386-apple-darwin9.6.1, GTK+ Version 2.14.7) of 2009-04-16 on mt-imac.local Windowing system distributor `The X.Org Foundation', version 11.0.10402000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t From unknown Tue Sep 09 08:20:46 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3020: 23.0.92; `previous-line' sometimes fails with overlays Reply-To: Stephen Berman , 3020@debbugs.gnu.org Resent-From: Stephen Berman Original-Sender: steve@escher.local.home Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 16 Apr 2009 22:55:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3020 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12399221741979 (code B ref -1); Thu, 16 Apr 2009 22:55:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 16 Apr 2009 22:49:34 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3GMnUgB001971 for ; Thu, 16 Apr 2009 15:49:31 -0700 Received: from mail.gnu.org ([199.232.76.166]:38426 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LuaOf-0005wu-El for emacs-pretest-bug@gnu.org; Thu, 16 Apr 2009 18:49:29 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LuaOd-0005lo-MI for emacs-pretest-bug@gnu.org; Thu, 16 Apr 2009 18:49:29 -0400 Received: from mail.gmx.net ([213.165.64.20]:52916) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LuaOd-0005lS-5T for emacs-pretest-bug@gnu.org; Thu, 16 Apr 2009 18:49:27 -0400 Received: (qmail invoked by alias); 16 Apr 2009 22:49:24 -0000 Received: from i59F57782.versanet.de (EHLO escher.local.home) [89.245.119.130] by mail.gmx.net (mp065) with SMTP; 17 Apr 2009 00:49:24 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1+aCR99Y/2a6Uvp9GFhA7yOcVTtwceCUc3kILm6ir b+wa7OXovwRGk9 Received: by escher.local.home (Postfix, from userid 1000) id D77451D156D; Fri, 17 Apr 2009 00:49:22 +0200 (CEST) From: Stephen Berman To: Markus Triska Cc: 3020@debbugs.gnu.org, emacs-pretest-bug@gnu.org References: Sender: steve@escher.local.home Date: Fri, 17 Apr 2009 00:49:22 +0200 In-Reply-To: (Markus Triska's message of "Thu, 16 Apr 2009 20:34:23 +0200") Message-ID: <87vdp4p631.fsf@escher.local.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.59 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. On Thu, 16 Apr 2009 20:34:23 +0200 Markus Triska wrote: > When I evaluate the following form in "emacs -Q": > > (progn > (switch-to-buffer (get-buffer-create "test")) > (insert "the first line\na ") > (let ((o (make-overlay (point) (point)))) > (overlay-put > o 'after-string > (propertize (concat "very very very very very very very very " > "very very very very very very very very " > "long line") 'face '(:background "cyan")))) > (insert "\nand the last line") > (previous-line)) > > and then press C-p, point unexpectedly fails to move. However, when I > then press C-a C-n C-p C-p, the second C-p works as expected. Here are some further observations: - The first C-p does not fail when the propertized string is short enough so that when point is at the end of the string it is visually below but crucially before any initial segment of the string. To see this with window-width of 85 (else adjust accordingly) replace the second string of the concat above by each of the following, evalling and trying C-p in between: "very very very very very very very " "very very very very very very very " - The first C-p does not fail when the propertized string is alone on the line it starts on, i.e., not preceded by another string on the same line. To see this replace the first inserted string by each of the following, evalling and trying C-p in between: "the first line\n " "the first line\n" - The condition under which the second C-p works is when point is at a lower column number than the column at which the propertized string begins. For example, in the above the propertized string begins at column 2, and the second C-p works if point is at column 0 or column 1 when the movement from below begins; if point is at column 2 or higher, the second C-p fails. - The previous observation recalls a problem with the invisible text property I noted in the context of a different, but perhaps related, bug; see http://thread.gmane.org/gmane.emacs.pretest.bugs/2194/focus=83503 Steve Berman From unknown Tue Sep 09 08:20:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Markus Triska Subject: bug#3020 closed by Chong Yidong (Re: 23.0.92; `previous-line' sometimes fails with overlays) Message-ID: References: <87y6to21m6.fsf@cyd.mit.edu> X-Emacs-PR-Message: they-closed 3020 X-Emacs-PR-Package: emacs Reply-To: 3020@debbugs.gnu.org Date: Sat, 25 Apr 2009 15:35:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1240673704-11368-1" This is a multi-part message in MIME format... ------------=_1240673704-11368-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #3020: 23.0.92; `previous-line' sometimes fails with overlays It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 3020: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3020 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1240673704-11368-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 3020-done) by emacsbugs.donarmstrong.com; 25 Apr 2009 15:29:25 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3PFTLSp009993 for <3020-done@emacsbugs.donarmstrong.com>; Sat, 25 Apr 2009 08:29:23 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id E167357E251; Sat, 25 Apr 2009 11:29:21 -0400 (EDT) From: Chong Yidong To: Markus Triska Cc: 3020-done@debbugs.gnu.org, Stephen Berman Subject: Re: 23.0.92; `previous-line' sometimes fails with overlays Date: Sat, 25 Apr 2009 11:29:21 -0400 Message-ID: <87y6to21m6.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > point unexpectedly fails to move. However, when I then press C-a C-n > C-p C-p, the second C-p works as expected. I've checked in a fix. Thanks for noticing the problem. ------------=_1240673704-11368-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 16 Apr 2009 18:34:38 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3GIYUmt001677 for ; Thu, 16 Apr 2009 11:34:31 -0700 Received: from mx10.gnu.org ([199.232.76.166]:45683) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LuWPt-00054T-N4 for emacs-pretest-bug@gnu.org; Thu, 16 Apr 2009 14:34:29 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LuWPr-00083K-DY for emacs-pretest-bug@gnu.org; Thu, 16 Apr 2009 14:34:29 -0400 Received: from mail.gmx.net ([213.165.64.20]:48433) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LuWPq-00082c-Sa for emacs-pretest-bug@gnu.org; Thu, 16 Apr 2009 14:34:27 -0400 Received: (qmail invoked by alias); 16 Apr 2009 18:34:24 -0000 Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-imac.local) [62.178.240.212] by mail.gmx.net (mp025) with SMTP; 16 Apr 2009 20:34:24 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX1/YupZ+z8vYjjExMZjIQzuwxpnEd3KVy4suxs5aZn 6k6vtmY7e7i4lF Received: by mt-imac.local (Postfix, from userid 501) id 49ED22BA2B5; Thu, 16 Apr 2009 20:34:23 +0200 (CEST) From: Markus Triska To: emacs-pretest-bug@gnu.org Subject: 23.0.92; `previous-line' sometimes fails with overlays Date: Thu, 16 Apr 2009 20:34:23 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.51 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. When I evaluate the following form in "emacs -Q": (progn (switch-to-buffer (get-buffer-create "test")) (insert "the first line\na ") (let ((o (make-overlay (point) (point)))) (overlay-put o 'after-string (propertize (concat "very very very very very very very very " "very very very very very very very very " "long line") 'face '(:background "cyan")))) (insert "\nand the last line") (previous-line)) and then press C-p, point unexpectedly fails to move. However, when I then press C-a C-n C-p C-p, the second C-p works as expected. In GNU Emacs 23.0.92.1 (i386-apple-darwin9.6.1, GTK+ Version 2.14.7) of 2009-04-16 on mt-imac.local Windowing system distributor `The X.Org Foundation', version 11.0.10402000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t ------------=_1240673704-11368-1--