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: Mon, 18 Feb 2013 13:03:12 +0100 Message-ID: <87obfhhn9d.fsf@rosalinde.fritz.box> References: <87d4c694r2.fsf@cyd.mit.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361195721 21490 80.91.229.3 (18 Feb 2013 13:55:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2013 13:55:21 +0000 (UTC) Cc: pent , 2749@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 18 14:55:41 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 1U7RC1-0006xx-3e for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Feb 2013 14:55:41 +0100 Original-Received: from localhost ([::1]:59491 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7RBh-00026P-74 for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Feb 2013 08:55:21 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7RBY-00025y-Cu for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 08:55:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7RBP-0005qG-8r for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 08:55:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7PRz-0000IT-6H for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 07:04:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U7PSw-0008FO-8t for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 07:05:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Feb 2013 12:05:02 +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.136118906431657 (code B ref 2749); Mon, 18 Feb 2013 12:05:02 +0000 Original-Received: (at 2749) by debbugs.gnu.org; 18 Feb 2013 12:04:24 +0000 Original-Received: from localhost ([127.0.0.1]:33960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U7PSJ-0008EX-LW for submit@debbugs.gnu.org; Mon, 18 Feb 2013 07:04:24 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:64692) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U7PSC-0008EK-TZ for 2749@debbugs.gnu.org; Mon, 18 Feb 2013 07:04:21 -0500 Original-Received: from mailout-de.gmx.net ([10.1.76.24]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0M1TnD-1V0sZh2FZZ-00tXm6 for <2749@debbugs.gnu.org>; Mon, 18 Feb 2013 13:03:16 +0100 Original-Received: (qmail invoked by alias); 18 Feb 2013 12:03:16 -0000 Original-Received: from i59F571A5.versanet.de (EHLO rosalinde.fritz.box) [89.245.113.165] by mail.gmx.net (mp024) with SMTP; 18 Feb 2013 13:03:16 +0100 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1+UfkQRM22UBvo6KuDWHKZY2W8SADUg5t3CFNJAtk /XMwN74D6rYhn2 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:71470 Archived-At: On Tue, 24 Mar 2009 21:35:02 -0400 Stefan Monnier wrote: >> This behavior is expected. The word wrap algorithm treats lines that >> are too long to wrap using the ordinary line-wrapping rules, and since >> overflow-newline-into-fringe is disabled in Visual Line mode, the extra >> empty line is used to show the non-overflowed newline character. > >> After the release, I might look into letting word wrap handle >> overflow-newline-into-fringe behavior. I suspect, however, that this >> may lead to confusing results in some circumstances. > > BTW: why is overflow-newline-into-fringe ignored when word-wrap is > non-nil? What kind of confusing results are you thinking of? I would like to use a string of length window-width in a display overlay together with word-wrap and a non-nil wrap-prefix. Currently this results in a following empty line with indentation, which is rather disconcerting. But after removing `&& (IT)->line_wrap != WORD_WRAP' from the definition of IT_OVERFLOW_NEWLINE_INTO_FRINGE and rebuilding Emacs, the empty indented line is gone and I have just what I want. I haven't yet seen anything confusing. So I too would be very interested to know if there are known or suspected problems with allowing non-nil overflow-newline-into-fringe with word-wrap. If it's not clear there are any, could we allow it and then see if anyone screams bloody murder? Steve Berman