From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#21468: 24.5; When next-line (visual) crosses overlay with before-string="\n" point goes to column 0 Date: Sat, 10 Oct 2015 09:37:43 -0400 Message-ID: References: <834miybogz.fsf@gnu.org> <83zj0q9k0m.fsf@gnu.org> <83twqxa5is.fsf@gnu.org> <83613d9lcl.fsf@gnu.org> <831te19goc.fsf@gnu.org> <83r3m0896l.fsf@gnu.org> <837fn57fod.fsf@gnu.org> <83zj013s0h.fsf@gnu.org> <83fv1jtctc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=047d7b5d33886685bc0521c0334c X-Trace: ger.gmane.org 1444484300 9797 80.91.229.3 (10 Oct 2015 13:38:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Oct 2015 13:38:20 +0000 (UTC) Cc: 21468@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 10 15:38:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZkuLj-0003gt-P3 for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Oct 2015 15:38:12 +0200 Original-Received: from localhost ([::1]:44965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkuLj-0005O7-0f for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Oct 2015 09:38:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkuLe-0005NW-6Q for bug-gnu-emacs@gnu.org; Sat, 10 Oct 2015 09:38:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkuLb-0001K7-1d for bug-gnu-emacs@gnu.org; Sat, 10 Oct 2015 09:38:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkuLa-0001Jw-Tp for bug-gnu-emacs@gnu.org; Sat, 10 Oct 2015 09:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZkuLa-0007fG-I6 for bug-gnu-emacs@gnu.org; Sat, 10 Oct 2015 09:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Oct 2015 13:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21468 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21468-submit@debbugs.gnu.org id=B21468.144448426929430 (code B ref 21468); Sat, 10 Oct 2015 13:38:02 +0000 Original-Received: (at 21468) by debbugs.gnu.org; 10 Oct 2015 13:37:49 +0000 Original-Received: from localhost ([127.0.0.1]:34943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkuLM-0007ec-KY for submit@debbugs.gnu.org; Sat, 10 Oct 2015 09:37:49 -0400 Original-Received: from mail-wi0-f178.google.com ([209.85.212.178]:35414) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkuLH-0007eR-Vl for 21468@debbugs.gnu.org; Sat, 10 Oct 2015 09:37:44 -0400 Original-Received: by wicge5 with SMTP id ge5so101232410wic.0 for <21468@debbugs.gnu.org>; Sat, 10 Oct 2015 06:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=xxriY3ec+4QCsI6GkJFvpshiVfekRRvAc86HkpH8/nI=; b=LZPvSLiOWQvwro989zmyPpzt4psnkisva+GVezIpBtRruzupE5itdbI/UJ4sZbgVV9 BVG9Vy0rkvhRx2+zAi6SvVc59vdUuoq7jrCEAAtHxktilk39VoWHMZ7AkOrUBTBU4+L6 7padzO5RsCJNRDKvohh4CJxRJjR8b2je/BPeg21g55X+GQ/SSIJvDOCIHQ2nS6CxkLte oTYCvop29C+0+fG9/DkK5lquXcwOlVp8e7zKAp+clxA/OGbCzdcKbMyv9ZyVmj5SP1h9 4cMjSoQyI8L4RPpz1/L4AoV1FXcOfAgMdcd86uEjsufQ/DvHw8vLZrzBovsVzXmbE8sO Kz4Q== X-Received: by 10.194.6.66 with SMTP id y2mr9546702wjy.82.1444484263345; Sat, 10 Oct 2015 06:37:43 -0700 (PDT) Original-Received: by 10.28.210.68 with HTTP; Sat, 10 Oct 2015 06:37:43 -0700 (PDT) In-Reply-To: <83fv1jtctc.fsf@gnu.org> X-Google-Sender-Auth: dH7Dtf-p1hE5D9Wg_DLE3cqVVWY X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107506 Archived-At: --047d7b5d33886685bc0521c0334c Content-Type: text/plain; charset=UTF-8 On 10/10/15, Eli Zaretskii wrote: >> Date: Fri, 9 Oct 2015 19:34:43 -0400 >> From: Noam Postavsky >> - On a truncated line with the overlay, move-end-of-line skips to the >> next line. (I tried to avoid this by only adding the stretched space >> when it's going to be visible. But that just made things worse >> (looping in the display engine)) >> >> - When at the end of line, next-line goes to the end-of-line instead >> of staying on the same column. > > Are these caused by the 'cursor' property, i.e. do not happen if that > property is not used? They're not caused by the 'cursor' property, although it makes the 2nd case more visually surprising. > > In any case, I'd appreciate a short self-contained test case for each > of these two issues, as I'm not sure I understand what's going on. > Using attached 21468-overlay.el The 1st case: emacs -Q -l 21468-overlay.el -f 21468-test-eol-skip then hit C-e. Point lands at the end of line 19 instead of the end of line 18 where it started. The 2nd case emacs -Q -l 21468-overlay.el -f 21468-test-eol-col-movement then hit C-e C-n. Point lands at the end of line 8 instead of line 8, column 33 which is what happens when there is no overlay. --047d7b5d33886685bc0521c0334c Content-Type: application/octet-stream; name="21468-overlay.el" Content-Disposition: attachment; filename="21468-overlay.el" Content-Transfer-Encoding: base64 X-Attachment-Id: file0 KGRlZmNvbnN0ICtmaWxlLW5hbWUrIGxvYWQtZmlsZS1uYW1lKQooZGVmdW4gMjE0NjgtcHV0LW92 ZXJsYXktYXQtbGluZSAobGluZSkKICAoZ290by1saW5lIGxpbmUpCiAgKGxldCAoKG92IChtYWtl LW92ZXJsYXkgKGxpbmUtYmVnaW5uaW5nLXBvc2l0aW9uKSAobGluZS1lbmQtcG9zaXRpb24pKSkK ICAgICAgICAoZmFjZSAobGlzdCA6b3ZlcmxpbmUgInJlZCIgOnVuZGVybGluZSAiZ3JlZW4iKSkp CiAgICAob3ZlcmxheS1wdXQgb3YgJ2ZhY2UgZmFjZSkKICAgIChvdmVybGF5LXB1dCBvdiAnYWZ0 ZXItc3RyaW5nCiAgICAgICAgICAgICAgICAgKHByb3BlcnRpemUgIlxzIiAnZmFjZSBmYWNlCiAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2Rpc3BsYXkgKGxpc3QgJ3NwYWNlIDphbGlnbi10 bwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGAoKyAoLCh3aW5k b3ctYm9keS13aWR0aC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