From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#2749: 23.0.91; Visual Line Mode: incorrect line wrapping in corner case Date: Fri, 10 May 2013 17:59:43 +0300 Message-ID: <83ip2qc23k.fsf@gnu.org> References: <87d4c694r2.fsf@cyd.mit.edu> <87obfhhn9d.fsf@rosalinde.fritz.box> <871u9f6ij1.fsf@rosalinde.fritz.box> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1368198103 12700 80.91.229.3 (10 May 2013 15:01:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 May 2013 15:01:43 +0000 (UTC) Cc: pent@aparamon.msk.ru, 2749@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 10 17:01: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 1UaopJ-0004jJ-F0 for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 May 2013 17:01:41 +0200 Original-Received: from localhost ([::1]:43468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaopJ-0000Er-5E for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 May 2013 11:01:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaooZ-0007n2-Jh for bug-gnu-emacs@gnu.org; Fri, 10 May 2013 11:00:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UaooX-0007s8-LB for bug-gnu-emacs@gnu.org; Fri, 10 May 2013 11:00:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaooX-0007s1-Dp for bug-gnu-emacs@gnu.org; Fri, 10 May 2013 11:00:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Uaoog-0007v1-5y for bug-gnu-emacs@gnu.org; Fri, 10 May 2013 11:01:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 May 2013 15:01:01 +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.136819804030375 (code B ref 2749); Fri, 10 May 2013 15:01:01 +0000 Original-Received: (at 2749) by debbugs.gnu.org; 10 May 2013 15:00:40 +0000 Original-Received: from localhost ([127.0.0.1]:35765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UaooJ-0007tr-BW for submit@debbugs.gnu.org; Fri, 10 May 2013 11:00:39 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:46489) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UaooG-0007tZ-3k for 2749@debbugs.gnu.org; Fri, 10 May 2013 11:00:37 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MML0090087EWH00@a-mtaout22.012.net.il> for 2749@debbugs.gnu.org; Fri, 10 May 2013 18:00:00 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MML0094Y8BZWT00@a-mtaout22.012.net.il>; Fri, 10 May 2013 18:00:00 +0300 (IDT) In-reply-to: <871u9f6ij1.fsf@rosalinde.fritz.box> X-012-Sender: halo1@inter.net.il 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:74127 Archived-At: > From: Stephen Berman > Date: Fri, 10 May 2013 16:01:22 +0200 > Cc: pent , 2749@debbugs.gnu.org > > I've been using Emacs as described above (i.e., with the patch below) > and till today have had no problems, but I just bumped into one, which > is indeed confusing, even pretty nasty. I've reproduced it with -Q on a > fresh build from the latest trunk (with the patch added). I don't know > how to debug it, but I will describe how to reproduce it, in the hope > that someone can fix it (or at least give me some help in trying to > debug it) and then hopefully overflow-newline-into-fringe can be allowed > in Visual Line mode. Does the patch below fix the problem (and whatever original problem that led you to this recipe)? --- src/xdisp.c~0 2013-05-10 17:56:44.338000000 +0300 +++ src/xdisp.c 2013-05-10 17:57:07.197375000 +0300 @@ -8466,7 +8466,8 @@ && it->bidi_it.paragraph_dir == R2L) ? WINDOW_LEFT_FRINGE_WIDTH (it->w) : WINDOW_RIGHT_FRINGE_WIDTH (it->w)) == 0 - || IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) + || (IT_OVERFLOW_NEWLINE_INTO_FRINGE (it) + && it->line_wrap != WORD_WRAP)) { if (!get_next_display_element (it)) {