From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ben North Newsgroups: gmane.emacs.devel Subject: Bug in `next-line' when last char in line has after-string property Date: Tue, 02 Jan 2007 17:54:23 +0000 Message-ID: <1167760463.459a9c4fbbe73@imp.hosting365.ie> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="-MOQ116776046244742a220df5b70c9ba6b01b5971dc32" X-Trace: sea.gmane.org 1167771825 13097 80.91.229.12 (2 Jan 2007 21:03:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Jan 2007 21:03:45 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 02 22:03:42 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H1qn8-0003Ty-DR for ged-emacs-devel@m.gmane.org; Tue, 02 Jan 2007 22:03:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1qn7-0002iH-Sq for ged-emacs-devel@m.gmane.org; Tue, 02 Jan 2007 16:03:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H1nqI-0005LI-HS for emacs-devel@gnu.org; Tue, 02 Jan 2007 12:54:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H1nqF-0005Gl-NF for emacs-devel@gnu.org; Tue, 02 Jan 2007 12:54:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1nqF-0005Gh-LI for emacs-devel@gnu.org; Tue, 02 Jan 2007 12:54:27 -0500 Original-Received: from [82.195.128.192] (helo=web.hosting365.ie) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H1nqE-0003ba-DK for emacs-devel@gnu.org; Tue, 02 Jan 2007 12:54:26 -0500 Original-Received: from web.hosting365.ie (localhost [127.0.0.1]) by web.hosting365.ie (8.12.11.20060308/8.12.11) with ESMTP id l02HsNZa015496 for ; Tue, 2 Jan 2007 17:54:23 GMT Original-Received: (from httpd@localhost) by web.hosting365.ie (8.12.11.20060308/8.12.11/Submit) id l02HsNqT015494 for emacs-devel@gnu.org; Tue, 2 Jan 2007 17:54:23 GMT Original-Received: from ext159.sig.com (ext159.sig.com [141.162.101.50]) by imp.hosting365.ie (IMP) with HTTP for ; Tue, 02 Jan 2007 17:54:23 +0000 Original-To: emacs-devel@gnu.org User-Agent: Internet Messaging Program (IMP) 3.2.8 X-Originating-IP: 141.162.101.50 X-Mailman-Approved-At: Tue, 02 Jan 2007 16:02:18 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64645 Archived-At: This message is in MIME format. ---MOQ116776046244742a220df5b70c9ba6b01b5971dc32 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit The attached file shows a bug in 22.0.92. To reproduce, launch "emacs -Q". (The bug is exhibited with or without the "-nw" option.) `find-file' the attached file. Make sure your window is narrow enough that the initial line of `-' characters wraps. Go to the end of the buffer (M->) and do `eval-last-sexp' (C-x C-e). The desired behaviour is that point ends up in the first column of the second line. It in fact ends up in the first column of the third line. You can carry on playing with this: go to the very start of the buffer, and hit C-n --- point moves down two lines instead of one. I looked into this a bit, which is what lead to the attached test-case using only functions implemented in C, but I don't know the C code well enough to dig further I'm afraid. Hope the report is useful nonetheless. ---MOQ116776046244742a220df5b70c9ba6b01b5971dc32 Content-Type: application/octet-stream; name="line-motion-bug.el" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="line-motion-bug.el" OyAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0KCihwcm9nbiAoc2V0cSBvdmVybGF5CiAgICAgICAgICAgICAo bGV0ICgoZW5kLW9mLWZpcnN0LWxpbmUgKHNhdmUtZXhjdXJzaW9uIChnb3RvLWNoYXIgMSkgKGVu ZC1vZi1saW5lKSAocG9pbnQpKSkpCiAgICAgICAgICAgICAgIChtYWtlLW92ZXJsYXkgKDEtIGVu ZC1vZi1maXJzdC1saW5lKSBlbmQtb2YtZmlyc3QtbGluZSkpCiAgICAgICAgICAgICB0cnVuY2F0 ZS1saW5lcyB0KQogICAgICAgKG92ZXJsYXktcHV0IG92ZXJsYXkgJ2FmdGVyLXN0cmluZyAiWCIp CiAgICAgICAocHJvZ24KICAgICAgICAgKGdvdG8tY2hhciAxKQogICAgICAgICAoZ290by1jaGFy IChsaW5lLWVuZC1wb3NpdGlvbikpCiAgICAgICAgICh2ZXJ0aWNhbC1tb3Rpb24gMSkpKQo= ---MOQ116776046244742a220df5b70c9ba6b01b5971dc32 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel ---MOQ116776046244742a220df5b70c9ba6b01b5971dc32--