From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#2749: 23.0.91; Visual Line Mode: incorrect line wrapping in corner case Date: Sat, 18 May 2013 22:30:00 +0200 Message-ID: <87mwrs6ng7.fsf@rosalinde.fritz.box> References: <87d4c694r2.fsf@cyd.mit.edu> <87obfhhn9d.fsf@rosalinde.fritz.box> <871u9f6ij1.fsf@rosalinde.fritz.box> <83ip2qc23k.fsf@gnu.org> <87wqr66dij.fsf@rosalinde.fritz.box> <83ehdebut7.fsf@gnu.org> <87sj1u64ew.fsf@rosalinde.fritz.box> <83d2sybphy.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1368909056 26856 80.91.229.3 (18 May 2013 20:30:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 May 2013 20:30:56 +0000 (UTC) Cc: 2749@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 18 22:30:55 2013 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 1UdnmF-0001s0-SX for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 May 2013 22:30:52 +0200 Original-Received: from localhost ([::1]:50286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdnmF-0006Ri-Bq for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 May 2013 16:30:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udnm8-0006PD-Gs for bug-gnu-emacs@gnu.org; Sat, 18 May 2013 16:30:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Udnm5-0001aG-6u for bug-gnu-emacs@gnu.org; Sat, 18 May 2013 16:30:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udnm5-0001aA-3k for bug-gnu-emacs@gnu.org; Sat, 18 May 2013 16:30:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UdnmS-0006A3-16 for bug-gnu-emacs@gnu.org; Sat, 18 May 2013 16:31:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 May 2013 20:31:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2749 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 2749-submit@debbugs.gnu.org id=B2749.136890903623626 (code B ref 2749); Sat, 18 May 2013 20:31:03 +0000 Original-Received: (at 2749) by debbugs.gnu.org; 18 May 2013 20:30:36 +0000 Original-Received: from localhost ([127.0.0.1]:50704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Udnlz-000691-JW for submit@debbugs.gnu.org; Sat, 18 May 2013 16:30:35 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:60669) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Udnlx-00068j-20 for 2749@debbugs.gnu.org; Sat, 18 May 2013 16:30:34 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.27]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MK7RL-1UcQJy18Sb-001OWF for <2749@debbugs.gnu.org>; Sat, 18 May 2013 22:30:03 +0200 Original-Received: (qmail invoked by alias); 18 May 2013 20:30:02 -0000 Original-Received: from i59F56E2D.versanet.de (EHLO rosalinde.fritz.box) [89.245.110.45] by mail.gmx.net (mp027) with SMTP; 18 May 2013 22:30:02 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX18Peuo5sUIPmhihv6XiH4p5Nu/s+UdeT98v+SgKfX izk6Y5y/eHMfXv In-Reply-To: <83d2sybphy.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 10 May 2013 22:31:53 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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:74395 Archived-At: On Fri, 10 May 2013 22:31:53 +0300 Eli Zaretskii wrote: >> From: Stephen Berman [...] >> I may be misunderstanding you here, but it sounds like you think the >> patch to enable overflow-newline-into-fringe in Visual Line mode is >> already in the trunk; it isn't. > > I know. I said "imagine" because I understand this change is not in > the repository. > >> But if it were now enabled (with my patch) and your patch were also >> added (to prevent the problem I reported today), then Org and magit >> users and others will be able to see if other problems do arise. > > I suspect subtle issues will be triggered by this change in modes that > make heavy use of display properties. But if Stefan is willing to > take that risk, let's install this and see what breaks. I hope Stefan's silence till now just means he hasn't yet had time to give this issue due consideration.... In the mean time, I've encountered another problem, which has nothing to do with display properties or overlays: -1. Apply both my patch and yours (Eli's). 0. emacs -Q 1. Type `a RET C-80 x RET b' to insert three line of text, of which the second runs the width of the window, up to the right fringe. 2. M-x visual-line-mode 3. With point on `a', type `C-n': now point is on the first `x' of the second inserted line. Here's the first instance of the problem: 4. Type `C-n' again: now point is in the fringe at the end of the line of x's. Here's the next instance of the problem: 5. Type `C-p': now point is back on the first `x' of the second inserted line. (If you type `C-n' again after step 4, so point is on `b' in the third inserted line, and then type `C-p', now point is back in the fringe at the end of the line of x's. I assume this is not an instance of the problem, but point moving correctly back to the goal column.) As you've no doubt guessed by now, the problem occurs in vertical-motion, and can be reproduced by replacing `C-n' and `C-p' in the recipe by `M-: (vertical-motion 1)' and `M-: (vertical-motion -1)', respectively. I tried to debug it but my GDB skills are unfortunately too limited; if you feel like advising me, I'm all ears. Otherwise, it would be great if you could fix this as quickly as you fixed the last problem I reported! Steve Berman