GNU bug report logs - #72485
Support 'visual-wrap-prefix-mode' in SHR/EWW

Previous Next

Package: emacs;

Reported by: Jim Porter <jporterbugs <at> gmail.com>

Date: Tue, 6 Aug 2024 03:49:02 UTC

Severity: normal

Done: Jim Porter <jporterbugs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jim Porter <jporterbugs <at> gmail.com>
Cc: 72485 <at> debbugs.gnu.org
Subject: bug#72485: Support 'visual-wrap-prefix-mode' in SHR/EWW
Date: Sun, 18 Aug 2024 21:53:54 +0300
> Date: Sun, 18 Aug 2024 11:28:40 -0700
> Cc: 72485 <at> debbugs.gnu.org
> From: Jim Porter <jporterbugs <at> gmail.com>
> 
> On 8/18/2024 11:12 AM, Eli Zaretskii wrote:
> >   *** EWW now enables 'visual-wrap-prefix-mode' when 'shr-fill-text' is nil.
> >   By default, 'shr-fill-text' is t, and EWW fills the text according to
> >   the width of the window.  If you customize 'shr-fill-text' to nil,
> >   EWW will now automatically turn on 'visual-wrap-prefix-mode' in
> >   addition to 'visual-line-mode', so that long lines are wrapped at
> >   word boundaries near window edge and the continuation lines are
> >   indented using prefixes computed from surrounding context.
> 
> That seems good to me, so I'll just use that as-is for Emacs 31. How 
> about this for the release branch?
> 
> 
> *** New option 'shr-fill-text'.
> When 'shr-fill-text' is non-nil (the default), SHR will fill the text
> according to the width of the window.  If you customize it to nil, SHR
> will leave the text as-is; in that case, EWW will automatically enable
> 'visual-line-mode' when displaying a page so that long lines are
> visually wrapped at word boundaries.

LGTM, thanks.

> (If you think this makes the Emacs 31 NEWS entry partially redundant, I 
> can try to trim that one down to only discuss the new additions, but I 
> don't mind either way.)

I see no reason to trim it.




This bug report was last modified 336 days ago.

Previous Next


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