From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#46814: 26.3; Visual-line-mode produces fake newline if line begins with space Date: Sat, 27 Feb 2021 23:14:40 +0100 Message-ID: <87wnutdupb.fsf@gmail.com> References: <835z2dnzba.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5149"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 46814@debbugs.gnu.org, "Miguel V. S. Frasson" To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 27 23:15:25 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lG7rx-0001EN-KZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Feb 2021 23:15:25 +0100 Original-Received: from localhost ([::1]:55812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lG7rw-0005Pq-Nh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Feb 2021 17:15:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lG7ra-0005Pg-SP for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 17:15:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lG7ra-0005dn-Dm for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 17:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lG7ra-0000kQ-81 for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 17:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Feb 2021 22:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46814 X-GNU-PR-Package: emacs Original-Received: via spool by 46814-submit@debbugs.gnu.org id=B46814.16144640912843 (code B ref 46814); Sat, 27 Feb 2021 22:15:02 +0000 Original-Received: (at 46814) by debbugs.gnu.org; 27 Feb 2021 22:14:51 +0000 Original-Received: from localhost ([127.0.0.1]:45507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lG7rO-0000jm-Ip for submit@debbugs.gnu.org; Sat, 27 Feb 2021 17:14:50 -0500 Original-Received: from mail-wm1-f53.google.com ([209.85.128.53]:40245) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lG7rM-0000ja-Gm for 46814@debbugs.gnu.org; Sat, 27 Feb 2021 17:14:49 -0500 Original-Received: by mail-wm1-f53.google.com with SMTP id u11so4701921wmq.5 for <46814@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) Original-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) In-Reply-To: <835z2dnzba.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 27 Feb 2021 20:24:57 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:200994 Archived-At: Eli Zaretskii writes: >> From: "Miguel V. S. Frasson" >> 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@live.com> https://lists.gnu.org/archive/html/bug-gnu-emacs/2018-05/msg00894.html