GNU bug report logs - #4318
23.1; trouble indenting looooong lines with visual-line-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Allan Gottlieb <gottlieb@HIDDEN>; Keywords: confirmed; dated Wed, 2 Sep 2009 14:20:04 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 4318 <at> debbugs.gnu.org:


Received: (at 4318) by debbugs.gnu.org; 15 Dec 2015 16:35:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 15 11:35:02 2015
Received: from localhost ([127.0.0.1]:52873 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1a8sZ0-0007EC-5u
	for submit <at> debbugs.gnu.org; Tue, 15 Dec 2015 11:35:02 -0500
Received: from mail-lb0-f179.google.com ([209.85.217.179]:34712)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <gmnt.p8@HIDDEN>) id 1a8nCu-00065J-C2
 for 4318 <at> debbugs.gnu.org; Tue, 15 Dec 2015 05:51:48 -0500
Received: by mail-lb0-f179.google.com with SMTP id cs9so3044864lbb.1
 for <4318 <at> debbugs.gnu.org>; Tue, 15 Dec 2015 02:51:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:date:message-id:subject:from:to:content-type;
 bh=p2FwpKpouV+kH1n0wyVrPexBGqti+0zsfkcqim2iDv8=;
 b=E90eVv8Eo7tIrv/ozquRVmJGXnbvqbvo2hNolCCTKgKnV8LCh/Tv8vTFKt/EGetKa9
 M5aUO39l7J8GpRgCSgHIaGzWNLoE9JKWPIlqtIrFxfJO8cSSPlnlhle4xZ+8FfwOHvg6
 D4CGZ6qLKR8q2TJEoJJ96eoLE/kniWUrJoQKeSdlqZk7eFVLwpw6+TLxTyGr6stEzLJL
 p2zsANDjuSnKd1UdrEOcvdzaFaYsm5vUX1RYPf6aBYmZprHy7wvY64lhyV6wwdaOn9l5
 6r5e1Sx+bJRULhF9fCkid0J7+ZYUhwmy1pXID0GjDplNGyslE3KmnvfEhm5AAYXTzYf6
 CwCw==
MIME-Version: 1.0
X-Received: by 10.112.172.201 with SMTP id be9mr805284lbc.49.1450176702530;
 Tue, 15 Dec 2015 02:51:42 -0800 (PST)
Received: by 10.25.24.30 with HTTP; Tue, 15 Dec 2015 02:51:42 -0800 (PST)
Date: Tue, 15 Dec 2015 11:51:42 +0100
Message-ID: <CAGwY1paJzAbdvE_xpmoSwzeATvOs=cMCz8HBgWkgL3JU_K6c4g@HIDDEN>
Subject: bug#4318
From: GMNT p8 <gmnt.p8@HIDDEN>
To: 4318 <at> debbugs.gnu.org
Content-Type: multipart/alternative; boundary=001a11c3888e3750490526ed93fb
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 4318
X-Mailman-Approved-At: Tue, 15 Dec 2015 11:34:56 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

--001a11c3888e3750490526ed93fb
Content-Type: text/plain; charset=UTF-8

Hello,
we just started to work on this issue, if you have any tips or advices that
aren't in the report yet about how to solve it, they are welcome.

Thanks in advance.
Cheers

-GMNT

--001a11c3888e3750490526ed93fb
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div><div>Hello, <br>we just started to work on =
this issue, if you have any tips or advices that aren&#39;t in the report y=
et about how to solve it, they are welcome.<br></div><br></div>Thanks in ad=
vance.<br></div>Cheers<br></div><br>-GMNT<br></div>

--001a11c3888e3750490526ed93fb--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#4318; Package emacs. Full text available.

Message received at 4318 <at> debbugs.gnu.org:


Received: (at 4318) by debbugs.gnu.org; 18 Sep 2011 15:31:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 18 11:31:15 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1R5JKs-0004Zc-F0
	for submit <at> debbugs.gnu.org; Sun, 18 Sep 2011 11:31:15 -0400
Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <cyd@HIDDEN>) id 1R5JKq-0004ZW-Sd
	for 4318 <at> debbugs.gnu.org; Sun, 18 Sep 2011 11:31:13 -0400
Received: from furball (dhcp-128-36-168-97.central.yale.edu [128.36.168.97])
	(authenticated bits=0)
	by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id
	p8IFQFbb007583
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Sun, 18 Sep 2011 11:26:16 -0400
From: Chong Yidong <cyd@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#4318: 23.1;
	trouble indenting looooong lines with visual-line-mode
References: <yu9ocptv3hz.fsf@HIDDEN> <m3boujaazh.fsf@HIDDEN>
	<83ty8btshc.fsf@HIDDEN>
Date: Sun, 18 Sep 2011 11:26:16 -0400
In-Reply-To: <83ty8btshc.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 17 Sep
	2011 12:42:39 +0300")
Message-ID: <87pqixg9d3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145
X-Spam-Score: -2.7 (--)
X-Debbugs-Envelope-To: 4318
Cc: Lars Magne Ingebrigtsen <larsi@HIDDEN>, gottlieb@HIDDEN,
	4318 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.7 (--)

Eli Zaretskii <eliz@HIDDEN> writes:

>> 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.

It's different from what other word-wrapping editors do, so I think this
should be considered a bug.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#4318; Package emacs. Full text available.

Message received at 4318 <at> debbugs.gnu.org:


Received: (at 4318) by debbugs.gnu.org; 18 Sep 2011 08:12:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 18 04:12:19 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1R5CU7-0000Md-FJ
	for submit <at> debbugs.gnu.org; Sun, 18 Sep 2011 04:12:19 -0400
Received: from hermes.netfonds.no ([80.91.224.195])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <larsi@HIDDEN>) id 1R5CTx-0000Le-9C
	for 4318 <at> debbugs.gnu.org; Sun, 18 Sep 2011 04:12:13 -0400
Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]
	helo=stories.gnus.org)
	by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.72) (envelope-from <larsi@HIDDEN>)
	id 1R5CP6-000589-6h; Sun, 18 Sep 2011 10:07:08 +0200
From: Lars Magne Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#4318: 23.1;
	trouble indenting looooong lines with visual-line-mode
In-Reply-To: <83ty8btshc.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 17 Sep
	2011 12:42:39 +0300")
Date: Sun, 18 Sep 2011 09:56:40 +0200
Message-ID: <m3ty8a1dxj.fsf@HIDDEN>
References: <yu9ocptv3hz.fsf@HIDDEN> <m3boujaazh.fsf@HIDDEN>
	<83ty8btshc.fsf@HIDDEN>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX9/Po0NCqMgXMkJhoY
	GA8rLSEpKx8nKR05Si/WAAACG0lEQVQ4jW2SS3bbMAxFWa3AikN5qqTpBkr3aB6zC7AbQvOoAOZh
	RWy/ACUriVsMdERdPTzi49q2fWjv9HHnLB7soMevrr3GCpaDf3Ht+T8gwdF16V+QgBWgSby/Ap80
	YKogne10qeCbfU4gR3egVP/ZAAAQv4MPChhpGhQU/Ah8Ahox5AoQAUZcQEciMOcQNRUSCZVV0eEo
	XKZgHnMRlnlTgJBUUAQJZqDXLRXnoGAvpWguSQqax96Dvkv1KAWZC6GB+92BsxBPRwOWh6SoRxN3
	HTHRmKtHIq1U8NI8ut+9WjKpi4LEo3nIa/PsnnYdcs6DGMDCBFDo4h5rKpkkS7B51CAtsHmKO20J
	Fsqq8GitRbTKWwPqPeu1nF+7bqA3MKYktCp0lLB1dyRgM/cpfW47afA7QNyA3nL6nyJpr61yb8af
	AFMt0M83ihEKs/UKbwCj1FSdzLpHQLWOOigKgw3qIHOtbwOTLKCT9/VR4IGLdtcAVlC0jqbvnbfB
	5uoBugpYFQY6DkFT2SbqKFHXD1YgoYaZG6hLvYA8rLdipJnnRJdGQX8Q/VoWD0ZtYYFX3SoDOQxS
	b2WrJzyQgV2/D1cPXSQFJZe3TyDqiopu8SDD241iH2oLQvj+5RYscVrAfTgdY4wrOJ70/bmCl1jj
	FN2veFzeF7AeYnQvP1Ku8gWs/yv407aHn2ff3ivYXfp43rf7fdtGt2lXcI2/X5gS3HoJWmQAAAAA
	SUVORK5CYII=
X-Now-Playing: Eurythmics's _Sweet Dreams (Are Made Of This)_: "This Is The
	House"
MIME-Version: 1.0
Content-Type: text/plain
X-MailScanner-ID: 1R5CP6-000589-6h
X-Netfonds-MailScanner: Found to be clean
X-Netfonds-MailScanner-From: larsi@HIDDEN
MailScanner-NULL-Check: 1316938028.52124@VkbtlyFPpxLpmOIaHqb+yw
X-Spam-Status: No
X-Spam-Score: -2.7 (--)
X-Debbugs-Envelope-To: 4318
Cc: 4318 <at> debbugs.gnu.org, gottlieb@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.7 (--)

Eli Zaretskii <eliz@HIDDEN> writes:

> 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.

I think that's probably desired.

The point of `visual-line-mode' is to (visually) do word wrap between
words to keep lines short(ish).  Folding before there even has been a
word looks odd to me.

On the other hand, it does make the lines visually shorter, so it's
debatable...

> 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...

:-)

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#4318; Package emacs. Full text available.

Message received at 4318 <at> debbugs.gnu.org:


Received: (at 4318) by debbugs.gnu.org; 17 Sep 2011 09:49:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 17 05:49:36 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1R4rWh-0004US-Sv
	for submit <at> debbugs.gnu.org; Sat, 17 Sep 2011 05:49:36 -0400
Received: from mtaout23.012.net.il ([80.179.55.175])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <eliz@HIDDEN>) id 1R4rWf-0004UK-9l
	for 4318 <at> debbugs.gnu.org; Sat, 17 Sep 2011 05:49:34 -0400
Received: from conversion-daemon.a-mtaout23.012.net.il by
	a-mtaout23.012.net.il (HyperSendmail v2007.08) id
	<0LRN00500UK3T900@HIDDEN> for
	4318 <at> debbugs.gnu.org; Sat, 17 Sep 2011 12:44:42 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([77.127.239.98]) by a-mtaout23.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0LRN003W1V2IG140@HIDDEN>;
	Sat, 17 Sep 2011 12:44:42 +0300 (IDT)
Date: Sat, 17 Sep 2011 12:42:39 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#4318: 23.1;
	trouble indenting looooong lines with visual-line-mode
In-reply-to: <m3boujaazh.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Lars Magne Ingebrigtsen <larsi@HIDDEN>
Message-id: <83ty8btshc.fsf@HIDDEN>
References: <yu9ocptv3hz.fsf@HIDDEN> <m3boujaazh.fsf@HIDDEN>
X-Spam-Score: -1.7 (-)
X-Debbugs-Envelope-To: 4318
Cc: 4318 <at> debbugs.gnu.org, gottlieb@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.7 (-)

> From: Lars Magne Ingebrigtsen <larsi@HIDDEN>
> Date: Sat, 17 Sep 2011 09:23:14 +0200
> Cc: 4318 <at> debbugs.gnu.org
> 
> Allan Gottlieb <gottlieb@HIDDEN> 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".




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#4318; Package emacs. Full text available.
Added tag(s) confirmed. Request was from Lars Magne Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 4318 <at> debbugs.gnu.org:


Received: (at 4318) by debbugs.gnu.org; 17 Sep 2011 07:31:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 17 03:31:56 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1R4pNR-0002Bz-3G
	for submit <at> debbugs.gnu.org; Sat, 17 Sep 2011 03:31:55 -0400
Received: from hermes.netfonds.no ([80.91.224.195])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <larsi@HIDDEN>) id 1R4pND-0002B7-PZ
	for 4318 <at> debbugs.gnu.org; Sat, 17 Sep 2011 03:31:43 -0400
Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]
	helo=stories.gnus.org)
	by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.72) (envelope-from <larsi@HIDDEN>)
	id 1R4pIS-0004dd-Sm; Sat, 17 Sep 2011 09:26:44 +0200
From: Lars Magne Ingebrigtsen <larsi@HIDDEN>
To: Allan Gottlieb <gottlieb@HIDDEN>
Subject: Re: 23.1; trouble indenting looooong lines with visual-line-mode
In-Reply-To: <yu9ocptv3hz.fsf@HIDDEN> (Allan Gottlieb's message of "Wed, 02
	Sep 2009 10:13:28 -0400")
Date: Sat, 17 Sep 2011 09:23:14 +0200
Message-ID: <m3boujaazh.fsf@HIDDEN>
References: <yu9ocptv3hz.fsf@HIDDEN>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)
X-Now-Playing: Various's _Not Alone (3)_: "Sorrow - Long Dark Shadow"
MIME-Version: 1.0
Content-Type: text/plain
X-MailScanner-ID: 1R4pIS-0004dd-Sm
X-Netfonds-MailScanner: Found to be clean
X-Netfonds-MailScanner-From: larsi@HIDDEN
MailScanner-NULL-Check: 1316849204.95145@HtUOOVLOSmjRe9I8iLZ7IA
X-Spam-Status: No
X-Spam-Score: -2.7 (--)
X-Debbugs-Envelope-To: 4318
Cc: 4318 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.7 (--)

Allan Gottlieb <gottlieb@HIDDEN> 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.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#4318; Package emacs. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 2 Sep 2009 14:13:45 +0000
From gottlieb@HIDDEN Wed Sep  2 07:13:44 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,FOURLA,FVGT_m_MULTI_ODD,
	IMPRONONCABLE_1,MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2 autolearn=no
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from lists.gnu.org (lists.gnu.org [199.232.76.165])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n82EDhJ7031125
	for <submit@HIDDEN>; Wed, 2 Sep 2009 07:13:44 -0700
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1Miqal-00075I-0v
	for bug-gnu-emacs@HIDDEN; Wed, 02 Sep 2009 10:13:43 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1Miqag-00073C-GB
	for bug-gnu-emacs@HIDDEN; Wed, 02 Sep 2009 10:13:42 -0400
Received: from [199.232.76.173] (port=45976 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1Miqag-000739-86
	for bug-gnu-emacs@HIDDEN; Wed, 02 Sep 2009 10:13:38 -0400
Received: from mx20.gnu.org ([199.232.41.8]:28990)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60)
	(envelope-from <gottlieb@HIDDEN>)
	id 1Miqaf-0007Mt-T9
	for bug-gnu-emacs@HIDDEN; Wed, 02 Sep 2009 10:13:38 -0400
Received: from smtp.cs.nyu.edu ([128.122.80.33])
	by mx20.gnu.org with esmtp (Exim 4.60)
	(envelope-from <gottlieb@HIDDEN>)
	id 1Miqaf-0005x5-Bx
	for bug-gnu-emacs@HIDDEN; Wed, 02 Sep 2009 10:13:37 -0400
Received: from ajglap.localdomain (ool-4578da1c.dyn.optonline.net [69.120.218.28])
	(authenticated bits=0)
	by smtp.cs.nyu.edu (8.14.3/8.13.8) with ESMTP id n82EDXfC018440
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <bug-gnu-emacs@HIDDEN>; Wed, 2 Sep 2009 10:13:34 -0400 (EDT)
Received: by ajglap.localdomain (Postfix, from userid 1502)
	id 1E1B719D922; Wed,  2 Sep 2009 10:13:28 -0400 (EDT)
From: Allan Gottlieb <gottlieb@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 23.1; trouble indenting looooong lines with visual-line-mode
Date: Wed, 02 Sep 2009 10:13:28 -0400
Message-ID: <yu9ocptv3hz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Detected-Operating-System: by mx20.gnu.org: Solaris 10 (beta)
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4)


Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@HIDDEN mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Start with emacs -Q and a buffer in fundamental mode

Consider a line wider than the frame, for example

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

which exceeds an 80 column frame.
Now assume you have a short line say
yyyy
followed by the above long line, i.e.
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 realize the blank line is not in the file, but believe the on-screen
image is misleading or at least annoying.

Thanks for emacs.
allan <gottlieb@HIDDEN>


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/23.1/etc/DEBUG for instructions.


In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7)
 of 2009-08-17 on ajglap
Windowing system distributor `The X.Org Foundation', version 11.0.10503000
configured using `configure  '--prefix=/usr' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--without-rsvg' '--with-tiff' '--with-xpm' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-O2 -march=prescott -pipe' 'LDFLAGS=-Wl,-O1''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: Article

Minor modes in effect:
  iswitchb-mode: t
  delete-selection-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x a j g SPC i n i t <return> M-x g n u s <return> 
<return> <down> <down> <down> SPC E SPC <help-echo> 
<select-window> <help-echo> <select-window> <help-echo> 
<select-window> <select-window> q <down> <return> <C-end> 
C-r - > <return> <return> <help-echo> <help-echo> <select-window> 
<help-echo> <select-window> <select-window> <select-window> 
<help-echo> <help-echo> <select-window> ! d ! <select-window> 
<select-window> C-x 5 2 <switch-frame> <switch-frame> 
<select-window> <help-echo> <help-echo> M-x r e p o 
r t - e m <tab> <return>

Recent messages:
Fetching headers for nnml:MAIL...done
Finding all score files...done
Generating summary...done
Retrieving newsgroup: nnml:emacs...
Fetching headers for nnml:emacs...done
Scoring...done
Generating summary...done
Mark set
Mark saved where search started
Auto-saving...done




Acknowledgement sent to Allan Gottlieb <gottlieb@HIDDEN>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#4318; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.