From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72485: Support 'visual-wrap-prefix-mode' in SHR/EWW Date: Sun, 18 Aug 2024 21:12:09 +0300 Message-ID: <86zfp9ya2u.fsf@gnu.org> References: <867ccf4jfm.fsf@gnu.org> <1936f13e-b10a-e4de-b26b-14a2d36a54fe@gmail.com> <868qwu1llq.fsf@gnu.org> <671bd15e-35f4-caca-d99c-ef6e92d6a588@gmail.com> <861q2m192q.fsf@gnu.org> <3a549122-156c-2993-34b0-2c4b071e8b38@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32876"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72485@debbugs.gnu.org To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 18 20:13:51 2024 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 1sfkPX-0008Qt-8I for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Aug 2024 20:13:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfkP7-00008p-Ml; Sun, 18 Aug 2024 14:13:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sfkP4-00008U-LN for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2024 14:13:22 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sfkP4-0000k9-3k for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2024 14:13:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=Ct03dS65wz4YIAwsZZk+ArTJ36QxI3SO6Y4Ka+P0Nqs=; b=M5FiZcvYDCzElwtcDwxhPXhV36wbNbQw9+qch6lpr3sRBvvnu7NG++KnC42YPj0YkIjPbaqvZTDJ2rDKJnGY5ZEHuo9yBL2EHKGpofvEkB5jpb8GYhsScL95xQg0qCL2CinGWEVGRvcVChW6ZxwiwrII46lTWq+LbGDWPqzZQI7Uq86ZaJlPBohN9ynLnsixSGgh6+M0T00HCTOaeyufvMA4xMM7SDKnt+Oz/MWlt0YovRKiNwbF2mL6WHd+wIFChVEHwWYWqbcCOMNaSgWiepxF35GxF4fyBoIzs/DurIDos6Qh4jm8/4eeNzESNLCJgZqN/Do1VqYePM+1lvTwvw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sfkPi-0006Iz-0W for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2024 14:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Aug 2024 18:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72485 X-GNU-PR-Package: emacs Original-Received: via spool by 72485-submit@debbugs.gnu.org id=B72485.172400478224147 (code B ref 72485); Sun, 18 Aug 2024 18:14:01 +0000 Original-Received: (at 72485) by debbugs.gnu.org; 18 Aug 2024 18:13:02 +0000 Original-Received: from localhost ([127.0.0.1]:56783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfkOk-0006HJ-D4 for submit@debbugs.gnu.org; Sun, 18 Aug 2024 14:13:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfkOj-0006Gw-0W for 72485@debbugs.gnu.org; Sun, 18 Aug 2024 14:13:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sfkNy-0000ff-Ag; Sun, 18 Aug 2024 14:12:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Ct03dS65wz4YIAwsZZk+ArTJ36QxI3SO6Y4Ka+P0Nqs=; b=Z7zqKcU+R5ep 28m3GEhaD3gkZnwpEYPuLbdm4luSQSgHiWd3zbrgr8Iyg5+CDKcPxyXFHTC6dcFlor2uhoLAyauvg rh8TlhUFypn0b7f1LNGfcrgr5tauAl4mWwWIBfW2P0F8Q1LRqF81eOCk+msSkBZ07thRvNG3ZxaeU czMcs11Hly3RNqLqqUo+kK8TcAXGXdUmiGnYBsWjzqtDDmvQEqoo3GpPdrkeIXcXYPC7gkc73RYDU Cx77HrEWXohwnTN1aT9J5Sa/wTZ3tLPfYQkIzMrnYbzutWbkJGcD5EAGaes5Le/wuXQqDDjPHSG2b rJlSqQky2Bx5s60s75Tafw==; In-Reply-To: <3a549122-156c-2993-34b0-2c4b071e8b38@gmail.com> (message from Jim Porter on Sun, 18 Aug 2024 09:58:07 -0700) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:290345 Archived-At: > Date: Sun, 18 Aug 2024 09:58:07 -0700 > Cc: 72485@debbugs.gnu.org > From: Jim Porter > > *** New option 'shr-fill-text'. > When non-nil (the default), SHR will insert newlines in text to wrap it. > If customized to nil, SHR will leave the text as-is; in that case, EWW > will automatically enable 'visual-line-mode' to visually wrap the text > when displaying a page. Inserting newlines is not the important part of this variable's effect. The important part is filling the text, and shr does that with fixed-pitch and variable-pitch fonts alike. The NEWS entry should describe this important part. > *** EWW now enables 'visual-wrap-prefix-mode' when 'shr-fill-text' is nil. > When 'shr-fill-text' is customized to nil, EWW now enables > 'visual-wrap-prefix-mode' when rendering in addition to > 'visual-line-mode'. This improves the display of multiline, indented > text, such as block quotes or (un)ordered lists. I evidently fail to explain myself, so let me just propose an entry as I envisioned it: *** 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.