GNU bug report logs - #46814
26.3; Visual-line-mode produces fake newline if line begins with space

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: "Miguel V. S. Frasson" <mvsfrasson@HIDDEN>; dated Sat, 27 Feb 2021 16:32:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 46814) by debbugs.gnu.org; 28 Feb 2021 17:39:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 28 12:39:58 2021
Received: from localhost ([127.0.0.1]:47143 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lGQ2w-0007g9-Gf
	for submit <at> debbugs.gnu.org; Sun, 28 Feb 2021 12:39:58 -0500
Received: from eggs.gnu.org ([209.51.188.92]:59644)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1lGQ2u-0007fr-Oi; Sun, 28 Feb 2021 12:39:57 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:54336)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1lGQ2f-00012q-6T; Sun, 28 Feb 2021 12:39:41 -0500
Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4042
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1lGQ2I-0006Pm-0d; Sun, 28 Feb 2021 12:39:23 -0500
Date: Sun, 28 Feb 2021 19:39:11 +0200
Message-Id: <83mtvom6rk.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?Q?K=C3=A9vin?= Le Gouguec <kevin.legouguec@HIDDEN>
In-Reply-To: <87wnutdupb.fsf@HIDDEN> (message from =?utf-8?Q?K=C3=A9vin?=
 Le Gouguec on Sat, 27 Feb 2021 23:14:40 +0100)
Subject: Re: 26.3; Visual-line-mode produces fake newline if line begins
 with space
References: <CAARdmY0066ERc2+z2S+bFvx1vebZZFB=DOBwy4igY9Ho_-2nXA@HIDDEN>
 <835z2dnzba.fsf@HIDDEN> <87wnutdupb.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46814
Cc: 46814 <at> debbugs.gnu.org, mvsfrasson@HIDDEN
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: -1.7 (-)

merge 46814 31666
thanks

> From: Kévin Le Gouguec <kevin.legouguec@HIDDEN>
> Cc: "Miguel V. S. Frasson" <mvsfrasson@HIDDEN>,  46814 <at> debbugs.gnu.org
> Date: Sat, 27 Feb 2021 23:14:40 +0100
> 
> > Patches are welcome to implement this.  Word of warning: the current
> > implementation of this is in C, as part of the display engine, and
> > it's very complex.
> 
> Should this be merged with bug#11759 and bug#31666?

Yes, I think so.  But note that some of the issues reported there were
fixed meanwhile, and we nowadays have word-wrap that uses character
categories, not just whitespace.




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

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


Received: (at 46814) by debbugs.gnu.org; 27 Feb 2021 22:14:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 27 17:14:50 2021
Received: from localhost ([127.0.0.1]:45507 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lG7rO-0000jm-Ip
	for submit <at> debbugs.gnu.org; Sat, 27 Feb 2021 17:14:50 -0500
Received: from mail-wm1-f53.google.com ([209.85.128.53]:40245)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <kevin.legouguec@HIDDEN>) id 1lG7rM-0000ja-Gm
 for 46814 <at> debbugs.gnu.org; Sat, 27 Feb 2021 17:14:49 -0500
Received: by mail-wm1-f53.google.com with SMTP id u11so4701921wmq.5
 for <46814 <at> debbugs.gnu.org>; Sat, 27 Feb 2021 14:14:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=DYpkOJd0ffds0MbrYBDSuu6eA5yI6PfKIaPqCm3bApY=;
 b=Y5V8R3I83eeF1us3ftLYxSDoUEX0gFceiOhxyX/XIVHl7tQpjoSekfOLx1FUNrPdfb
 tFlVhc4hWB09lSySpvtm6pfmtQseqHZEzw7mmIr01GtpYPoTZxEMo59FCQzUmJkB4YTk
 2Zby16TOSaWN5sDkOp5YbFV3ukDpSipPcLOh4uyAIbGtLx//RCFZk7zTVF+B+Pt+hQ75
 p4mR/3gihCsAZ3KKQsGu8YNhZ57dju6cVlIrWjC65oDzw+t9jJ/qaezB9Da1Y+dJ718X
 NTl52ya4ensmLLsfR25VL3a+oXwVMoLg2zCFBQYIPevPQw1ZKQjHcie2ilvN1oHtw0kx
 ZHNA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=DYpkOJd0ffds0MbrYBDSuu6eA5yI6PfKIaPqCm3bApY=;
 b=rYlyh3ALLBdnE2HuprToESyOqTcmedw4+jrgASTsvh/KvLOTF/rwn6V9mfp1nvx0bb
 tDaJEtLIjSws1SMIsWyG3oweI1W/Jeg7mMjvdKVfhGTLkJDdthmoEs5k2q3ogE4fsC/W
 FiMhd8iT52mmsYcmpkGgBCSvB3/Wg5xfLQTB1wTTyqyLyzUQ8ii/nqyB3SWtLTThz/4h
 0zT2nl6QUOT067RbpFnmNpykC+4eC2vo3MVLFvnI2rS/oRqlTDosr2zQVe66KvKE6EZj
 qys6wD6NAOv7H2ULd78w7lZ1D64SS8v42uVBYNi9+KdU4aawy3Do+oGDvpxqqH7QUdjz
 e8Bw==
X-Gm-Message-State: AOAM530IwOhH8uFsuBIZwiQEySoe7ylGtwiGqPSdTT1DqTbMyHOp3pQw
 NFl33xI0amWXfhi35Ym3V40NBi6VPznSag==
X-Google-Smtp-Source: ABdhPJyubYI6TDjkSjPc8cuieg7dTJWLx1ImXqlK2N9McyP5MlUNm3N5KdCWO60IGoTXEO5KRnn2tA==
X-Received: by 2002:a05:600c:2282:: with SMTP id
 2mr178911wmf.132.1614464082257; 
 Sat, 27 Feb 2021 14:14:42 -0800 (PST)
Received: from my-little-tumbleweed ([2a01:e0a:20e:d340:922b:34ff:fe95:9aed])
 by smtp.gmail.com with ESMTPSA id
 m132sm6964403wmf.45.2021.02.27.14.14.41
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 27 Feb 2021 14:14:41 -0800 (PST)
From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= <kevin.legouguec@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: 26.3; Visual-line-mode produces fake newline if line begins
 with space
References: <CAARdmY0066ERc2+z2S+bFvx1vebZZFB=DOBwy4igY9Ho_-2nXA@HIDDEN>
 <835z2dnzba.fsf@HIDDEN>
Date: Sat, 27 Feb 2021 23:14:40 +0100
In-Reply-To: <835z2dnzba.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 27 Feb
 2021 20:24:57 +0200")
Message-ID: <87wnutdupb.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 46814
Cc: 46814 <at> debbugs.gnu.org, "Miguel V. S. Frasson" <mvsfrasson@HIDDEN>
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: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: "Miguel V. S. Frasson" <mvsfrasson@HIDDEN>
>> Date: Sat, 27 Feb 2021 13:30:23 -0300
>>=20
>> In visual-line-mode, if after leading whitespace it follows very long
>> text without spaces, it occurs a visual line break after the leading
>> whitespace, creating an false blank line, annoying users because extra
>> blank lines may change the meaning of text.
>>=20
>> It would be more sensible in visual-line-mode forbids visual line breaks
>> after leading whitespace, because they always create blank lines.
>
> Patches are welcome to implement this.  Word of warning: the current
> implementation of this is in C, as part of the display engine, and
> it's very complex.

Should this be merged with bug#11759 and bug#31666?  Skimming [1], I get
the impression that this new report describes a similar problem, i.e.
visual-line-mode refusing to break a word preceded by whitespace.
Quoting Cl=C3=A9ment :

>                If breaking before a word doesn't prevent that word
> from being broken, it would seem better to not break before it.  In
> other words, assuming 9 columns:
>
> Here breaking at ' ' is useful:
>=20
>   Input:
>   123456789
>   xxx aaaaaaa
>=20
>   Visual-line mode (good)
>   123456789
>   xxx
>   aaaaaaa
>=20
> But not here:
>=20
>   Input
>   123456789
>   xxx aaaaaaaaaaaaa
>=20
>   Visual-line mode (bad):
>   123456789
>   xxx
>   aaaaaaaaa
>   aaaa
>=20
>   What I'd expect:
>   123456789
>   xxx aaaaa
>   aaaaaaaa

Apologies if I've missed some subtleties.


[1] bug#31666#11
    <99baa6b2-584f-789f-ecf8-d845aedd18ef@HIDDEN>
    https://lists.gnu.org/archive/html/bug-gnu-emacs/2018-05/msg00894.html




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

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


Received: (at 46814) by debbugs.gnu.org; 27 Feb 2021 18:25:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 27 13:25:14 2021
Received: from localhost ([127.0.0.1]:45367 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lG4HC-0003gB-2B
	for submit <at> debbugs.gnu.org; Sat, 27 Feb 2021 13:25:14 -0500
Received: from eggs.gnu.org ([209.51.188.92]:50342)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1lG4HA-0003fu-MI
 for 46814 <at> debbugs.gnu.org; Sat, 27 Feb 2021 13:25:12 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:36858)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1lG4H5-0004cJ-GA; Sat, 27 Feb 2021 13:25:07 -0500
Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1389
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1lG4H2-0007oS-9e; Sat, 27 Feb 2021 13:25:06 -0500
Date: Sat, 27 Feb 2021 20:24:57 +0200
Message-Id: <835z2dnzba.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: "Miguel V. S. Frasson" <mvsfrasson@HIDDEN>
In-Reply-To: <CAARdmY0066ERc2+z2S+bFvx1vebZZFB=DOBwy4igY9Ho_-2nXA@HIDDEN>
 (mvsfrasson@HIDDEN)
Subject: Re: bug#46814: 26.3;
 Visual-line-mode produces fake newline if line begins with space
References: <CAARdmY0066ERc2+z2S+bFvx1vebZZFB=DOBwy4igY9Ho_-2nXA@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 46814
Cc: 46814 <at> debbugs.gnu.org
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: -1.7 (-)

> From: "Miguel V. S. Frasson" <mvsfrasson@HIDDEN>
> Date: Sat, 27 Feb 2021 13:30:23 -0300
> 
> In visual-line-mode, if after leading whitespace it follows very long
> text without spaces, it occurs a visual line break after the leading
> whitespace, creating an false blank line, annoying users because extra
> blank lines may change the meaning of text.
> 
> It would be more sensible in visual-line-mode forbids visual line breaks
> after leading whitespace, because they always create blank lines.

Patches are welcome to implement this.  Word of warning: the current
implementation of this is in C, as part of the display engine, and
it's very complex.




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

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


Received: (at submit) by debbugs.gnu.org; 27 Feb 2021 16:31:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 27 11:31:07 2021
Received: from localhost ([127.0.0.1]:45217 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lG2Ui-0000sg-B7
	for submit <at> debbugs.gnu.org; Sat, 27 Feb 2021 11:31:07 -0500
Received: from lists.gnu.org ([209.51.188.17]:52016)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mvsfrasson@HIDDEN>) id 1lG2Ug-0000sZ-Ov
 for submit <at> debbugs.gnu.org; Sat, 27 Feb 2021 11:31:03 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:48070)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mvsfrasson@HIDDEN>)
 id 1lG2Uf-00079l-3s
 for bug-gnu-emacs@HIDDEN; Sat, 27 Feb 2021 11:31:02 -0500
Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:33964)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <mvsfrasson@HIDDEN>)
 id 1lG2UY-00014p-Q9
 for bug-gnu-emacs@HIDDEN; Sat, 27 Feb 2021 11:31:00 -0500
Received: by mail-lf1-x12e.google.com with SMTP id v9so810647lfa.1
 for <bug-gnu-emacs@HIDDEN>; Sat, 27 Feb 2021 08:30:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=I7aNzZBkbh0qe4JQC1ygw46rL6gz0bm+H/7A/uKItWo=;
 b=QNqqgSBuN/nM0n+BePeAuIkMCbZs7lMH99/9ahNIR9l5g7Jx9lrimxNFHKjghQRaY7
 3wsHICyPtdGwNUDaaHhuMX+v7zDely0ftcgd4zMMdNRRP/k7KJpf4TERoKSoiUfeX9dE
 DOSEETPpMne/KVU16TdS4Sl031XL4WOmQpKdKy3U+JJ7vQ5FyeCaRY+hl+VUw/OYLtAK
 MpmC41TCixDxVefQjhfW9vVbP4aE+hl6Rq27wLkgHXwmKZ6Y68tOWK9ssmC+K0AiTHIq
 nxM2mlQAwcql9B+QqnbBWtTwVxp0Y8H+2m/0MXFyZ1R6G2o+2Ip5thNQSy3vQgKcOnK6
 +BJQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=I7aNzZBkbh0qe4JQC1ygw46rL6gz0bm+H/7A/uKItWo=;
 b=OIAHpZPRGIlwxlJE4wq1LGLdzxQVlgekZpwDLKc3vYkVv2BbvFPS2/gGRv0ILreQoR
 IhY/IVbjYFwgBohPxDAIVJVTQqAqQMtGFhaZchnknT9040IRKDtWh/ZA/0XJtyfXVxHp
 OnsAFs0bhRSkZqIxhg+KIHKcyeojxtj3PEaS57OUsC32YAcJoVMsddojRAIKmXzS9CJP
 yvMAULoYAJmFd/4JBUth9NTRtO3RRYROQTOzikzKVCFL9RSk2mEXGEnTM9L+mTXfWHjL
 P85dsKPEitbDRs3XFq3P29cHgs4ZgyFGYzKFHhQinKWdumJYKxR7E2XaAcZaQ/IeCftp
 JuMA==
X-Gm-Message-State: AOAM532e9YM7MWwZBCNpD3KtNc+1IcH8OJt9KEyh2m8v8YY1i9OHk+YN
 RjyeBkfBDbFK2/YylFXhzH2t2hFZAvCJUNU5AZC76eelbFpaGA==
X-Google-Smtp-Source: ABdhPJxcKpGbOmOvzOHdbWUiiTeJG4iJGVYgJe3KfZhtkwJYfrHVRIYBJ5fyWGuO62IgtCzDO7BMS3I2Gvdl6UZC408=
X-Received: by 2002:a19:488e:: with SMTP id v136mr4824539lfa.611.1614443449633; 
 Sat, 27 Feb 2021 08:30:49 -0800 (PST)
MIME-Version: 1.0
From: "Miguel V. S. Frasson" <mvsfrasson@HIDDEN>
Date: Sat, 27 Feb 2021 13:30:23 -0300
Message-ID: <CAARdmY0066ERc2+z2S+bFvx1vebZZFB=DOBwy4igY9Ho_-2nXA@HIDDEN>
Subject: 26.3; Visual-line-mode produces fake newline if line begins with space
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2a00:1450:4864:20::12e;
 envelope-from=mvsfrasson@HIDDEN; helo=mail-lf1-x12e.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
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: -3.3 (---)

Hi.

In visual-line-mode, if after leading whitespace it follows very long
text without spaces, it occurs a visual line break after the leading
whitespace, creating an false blank line, annoying users because extra
blank lines may change the meaning of text.

It would be more sensible in visual-line-mode forbids visual line breaks
after leading whitespace, because they always create blank lines.

How to reproduce:

a) emacs -Q
b) type some text without spaces but *with leading spaces*, like

  1-Aaaaaaaaaa
  2-Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

c) M-x visual-line-moded.
d) Result: visual linebreak after "  " on line 2, creating blank
line. No gain, because one still gets long line displayed.

  1-Aaaaaaaaaa

2-Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

e) Proposal: keep leading space together with following long text.

Best regards

Miguel.


In GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.13)
 of 2019-12-24 built on lcy01-amd64-029
Windowing system distributor 'The X.Org Foundation', version 11.0.12009000
System Description:    Ubuntu 20.04.2 LTS

Recent messages:
Enviando para o Google Translate ... FEITO!
Mark set [3 times]
Auto-saving...done
Visual-Line mode disabled in current buffer
Visual-Line mode enabled in current buffer
Saving file /home/sme/Drive/livros/circulos-berkeley/AMS-volume2/mcl-impa/Chapter12ReflectionsAcrossLineIII.tex...
Wrote /home/sme/Drive/livros/circulos-berkeley/AMS-volume2/mcl-impa/Chapter12ReflectionsAcrossLineIII.tex
Quit
Sorting environment...done
Removing duplicates...done

Configured using:
 'configure --build=x86_64-linux-gnu --prefix=/usr
 '--includedir=${prefix}/include' '--mandir=${prefix}/share/man'
 '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var
 --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu'
 '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode
 --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib
 --program-suffix=26 --with-modules --with-file-notification=inotify
 --with-mailutils --with-x=yes --with-x-toolkit=gtk3 --with-xwidgets
 --with-lcms2 'CFLAGS=-g -O2
 -fdebug-prefix-map=/build/emacs26-XQGPla/emacs26-26.3~1.git96dd019=.
-fstack-protector-strong
 -Wformat -Werror=format-security -no-pie' 'CPPFLAGS=-Wdate-time
 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro
 -no-pie''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB
NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS
LIBSYSTEMD LCMS2

Important settings:
  value of $LANG: pt_BR.UTF-8
  locale-coding-system: utf-8-unix

Major mode: LaTeX/MPS

Minor modes in effect:
  LaTeX-math-mode: t
  TeX-PDF-mode: t
  TeX-source-correlate-mode: t
  shell-dirtrack-mode: t
  reftex-mode: t
  show-paren-mode: t
  recentf-mode: t
  delete-selection-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  visual-line-mode: t
  transient-mark-mode: t

Load-path shadows:
/home/sme/Dropbox/.emacs.d/asy-mode hides /usr/share/emacs/site-lisp/asy-mode
/usr/share/emacs/site-lisp/latex-cjk-thai/thai-word hides
/usr/share/emacs/26.3/lisp/language/thai-word

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail
rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils url-util reftex-parse misearch
multi-isearch copiar preview prv-emacs reftex-dcr reftex-auc noutline
outline tex-buf font-latex texmathp latex easy-mmode latex-flymake
flymake-proc flymake warnings thingatpt tex-ispell tex-style tex dbus
xml crm advice tex-mode compile shell pcomplete comint ansi-color ring
latexenc elec-pair reftex reftex-loaddefs reftex-vars texify
gregorio-mode server edmacro kmacro paren recentf tree-widget wid-edit
delsel cus-start cus-load finder-inf info tex-site package easymenu
epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core
cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win
x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify lcms2 dynamic-setting
system-font-setting font-render-setting xwidget-internal move-toolbar
gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 392659 23400)
 (symbols 48 34817 2)
 (miscs 40 146 888)
 (strings 32 106550 3128)
 (string-bytes 1 2760077)
 (vectors 16 34854)
 (vector-slots 8 1477234 189742)
 (floats 8 455 1948)
 (intervals 56 9132 389)
 (buffers 992 17))


-- 
Miguel Vinicius Santini Frasson
mvsfrasson@HIDDEN




Acknowledgement sent to "Miguel V. S. Frasson" <mvsfrasson@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#46814; 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: Sun, 28 Feb 2021 17:45:02 UTC

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