GNU bug report logs - #31666
Bad interaction between visual-line-mode and wrap-prefix on long lines

Previous Next

Package: emacs;

Reported by: Clément Pit-Claudel <clement.pitclaudel <at> live.com>

Date: Thu, 31 May 2018 12:29:02 UTC

Severity: minor

Merged with 11759

Found in version 24.1.50

Full log


Message #41 received at 31666 <at> debbugs.gnu.org (full text, mbox):

From: Clément Pit-Claudel <clement.pitclaudel <at> live.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 31666 <at> debbugs.gnu.org
Subject: Re: bug#31666: Bad interaction between visual-line-mode and
 wrap-prefix on long lines
Date: Fri, 8 Jun 2018 15:32:38 -0400
[Message part 1 (text/plain, inline)]

On 2018-06-08 15:24, Eli Zaretskii wrote:
>> Date: Fri, 08 Jun 2018 21:32:03 +0300
>> From: Eli Zaretskii <eliz <at> gnu.org>
>> Cc: 31666 <at> debbugs.gnu.org
>>
>>> Cc: 31666 <at> debbugs.gnu.org
>>> From: Clément Pit-Claudel <clement.pitclaudel <at> live.com>
>>> Date: Fri, 8 Jun 2018 14:04:16 -0400
>>>
>>> How hard would it be to introduce a no-break text property?
> 
> Btw, would it be OK to use some non-ASCII whitespace character in
> these situations?  For example, you could use u+2002 (or even NBSP,
> u+0A0, if you reset nobreak-char-display to nil).

Maybe! Org-mode doesn't currently support it (it's fontification rules don't consider that case), but they could be changed.

One additional remark, which may explain why originally I attributed the issue to wrap-prefix.  The case in which the issue tends to be the most perceptible is when using org-mode with long URLs as titles and with adaptive-wrap-prefix-mode.  In that case, starting from

  |***** https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31666

shrinking the window wraps like this:

  |***** 
  |      https://debbugs.gnu.org/cgi/bugre
  |      port.cgi?bug=31666

In that case, wrapping around the first space doesn't help, because the wrap prefix causes us to resume at exactly the same column on the next line.

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 5 years and 65 days ago.

Previous Next


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