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#4318: 23.1; trouble indenting looooong lines with visual-line-mode Date: Sat, 17 Sep 2011 12:42:39 +0300 Message-ID: <83ty8btshc.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1316252727 19544 80.91.229.12 (17 Sep 2011 09:45:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Sep 2011 09:45:27 +0000 (UTC) Cc: 4318@debbugs.gnu.org, gottlieb@nyu.edu To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 17 11:45:22 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R4rSc-0007nE-EY for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Sep 2011 11:45:22 +0200 Original-Received: from localhost ([::1]:59875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4rSb-0006ZM-KT for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Sep 2011 05:45:21 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4rSX-0006ZG-D7 for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2011 05:45:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4rST-0005Mf-SD for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2011 05:45:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4rST-0005MV-QY for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2011 05:45:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R4rX8-0004VD-5e; Sat, 17 Sep 2011 05:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2011 09:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4318 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 4318-submit@debbugs.gnu.org id=B4318.131625297617269 (code B ref 4318); Sat, 17 Sep 2011 09:50:02 +0000 Original-Received: (at 4318) by debbugs.gnu.org; 17 Sep 2011 09:49:36 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4rWh-0004US-Sv for submit@debbugs.gnu.org; Sat, 17 Sep 2011 05:49:36 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4rWf-0004UK-9l for 4318@debbugs.gnu.org; Sat, 17 Sep 2011 05:49:34 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LRN00500UK3T900@a-mtaout23.012.net.il> for 4318@debbugs.gnu.org; Sat, 17 Sep 2011 12:44:42 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.239.98]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LRN003W1V2IG140@a-mtaout23.012.net.il>; Sat, 17 Sep 2011 12:44:42 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 17 Sep 2011 05:50:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:51297 Archived-At: > From: Lars Magne Ingebrigtsen > Date: Sat, 17 Sep 2011 09:23:14 +0200 > Cc: 4318@debbugs.gnu.org > > Allan Gottlieb writes: > > > yyyy > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > > > > So far so good. Now indent the long line with say one space. > > If visual-line-mode is OFF, I see what I expect, the long line is > > preceded by one space. > > > > But with visual-line-mode ON, a blank line appears on the screen between > > the short and long lines, i.e. the long line (with only one word) was > > wrapped. > > This behavior seems wrong. > > I can confirm this behaviour in Emacs 24. > > The problem seems to be that `visual-line-mode' breaks long lines after > any white space -- even if the white space begins the line. That > doesn't seem optimal, I think. The extra line stands for the space that is not shown. If you place the cursor on that "empty line" and type "C-x =", you will see that point is before the space character, not before newline. So I think visual-line-mode (a.k.a. "word wrap") behaves correctly. Doing what the OP asks for would also have undesirable side effects, albeit different ones. E.g., adding some non-white character at the beginning of that line will suddenly and mysteriously move the "xxxx..." part one line down. And that's even before I consider the potential complications of the code, which already tracks the word wrap mode with no less than 12 state variables... My recommendation is to close this bug as "won't fix".