From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Alexandrov Newsgroups: gmane.emacs.help Subject: Re: Comfortably display text in a wide frame (was: MIME issue: can't set encoding on mail or mml-to-mime) Date: Fri, 15 May 2020 18:34:22 +0300 Message-ID: References: <87eerxijq0.fsf@no.workgroup> <20200506153405.GC19646@tuxteam.de> <871rnu6z4i.fsf@no.workgroup> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="26037"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux) Cc: Radu Butoi , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 15 18:37:28 2020 Return-path: Envelope-to: geh-help-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 1jZdKy-0006fu-AO for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 18:37:28 +0200 Original-Received: from localhost ([::1]:49642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZdKx-0002V9-80 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 12:37:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZcM9-0003Fw-Uz for help-gnu-emacs@gnu.org; Fri, 15 May 2020 11:34:37 -0400 Original-Received: from relay-1.mailobj.net ([213.182.54.6]:53964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZcM8-0001Gi-MC for help-gnu-emacs@gnu.org; Fri, 15 May 2020 11:34:37 -0400 Original-Received: from v-2c.localdomain (unknown [192.168.90.162]) by relay-1.mailobj.net (Postfix) with SMTP id 290F515C4; Fri, 15 May 2020 17:34:29 +0200 (CEST) Original-Received: by mail-2.net-c.com [213.182.54.29] with ESMTP Fri, 15 May 2020 17:34:28 +0200 (CEST) X-EA-Auth: 3sCWlCu6lqGEIKJV3K3H6OBVYUIaeL7URgvFCzQbnDwYqgF2oVhu9FQadxWvjsQnWoxjW9BBrF8XjA5aKtdcsRZwMnVHpopB In-Reply-To: <871rnu6z4i.fsf@no.workgroup> (Gregor Zattler's message of "Fri, 08 May 2020 20:49:17 +0200") Received-SPF: pass client-ip=213.182.54.6; envelope-from=dag@gnui.org; helo=relay-1.mailobj.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/15 11:34:29 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, MISSING_HEADERS=1.021, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Fri, 15 May 2020 12:31:38 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123093 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Gregor Zattler wrote: > * Radu Butoi [2020-05-06; 18:37]: >> There should be an option to soft-wrap incoming long lines to your prefe= rred width for any reasonable client, as is the default in emacs, as well a= s the web page displaying the archives of these lists. > > thanks, your email finally motivated me to search for such thing and I fo= und "Notmuch Wash Wrap Lines Length" and configured it. > > Much better now. I bet, it=CA=BCs a port of aforeimplied =E2=80=98gnus-treat-fill-long-lines= =E2=80=99 and is not window-width-aware. That is, if the current window is= narrower than preconfigured fill-column, it still dumbly wraps on that col= umn. Let alone following window resizing, when the message is already disp= layed. In other words, that=CA=BCs rather a workaround, than a proper solution, wh= ich should rely on same display machinery, that soft-wraps lines longer tha= n window. Actually, depending on how you manage _system_ windows, it may make perfect= sense to automatically shrink the frame displaying your MUA to a comfortab= le width. Or, if resizing frames is not convenient for you (or even impossible, as on= TTY), I=CA=BCd suggest to use major-mode-agnostic =E2=80=98visual-fill-col= umn-mode=E2=80=99 (not part of GNU Emacs, available on Melpa). The followi= ng configuration bits are for Gnus, but you got the idea: --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline Content-Transfer-Encoding: quoted-printable (setq-default fringes-outside-margins nil ; was nil visual-fill-column-fringes-outside-margins nil) ; was t (when-require 'visual-fill-column (setq-default visual-fill-column-width 80) (setq split-window-preferred-function #'visual-fill-column-split-window-sensibly) (define-key ctl-x-map (kbd "M-f") #'visual-fill-column-mode)) (setq gnus-treat-fill-article nil ; was nil gnus-treat-fill-long-lines nil) ; was (typep "text/plain") (add-hook 'gnus-article-mode-hook #'visual-line-mode) (when-require 'visual-fill-column (add-hook 'gnus-article-mode-hook #'visual-fill-column-mode)) ;; Name may be misleading, it does not set `fill-column' (which is still us= ed ;; by M-q) in `message-mode', but enables auto-filling on a given column. (setq message-fill-column nil) ; was 72 ;; FIXME: There is no proper way to make fill commands to unfill. (add-hook 'message-mode-hook (lambda () (setq-local fill-column most-positive-fixnum))) (when-require 'visual-fill-column (add-hook 'message-mode-hook #'visual-fill-column-mode)) --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYIACsWIQRSX35grYEsI2F1K7TIsPhUjufz5wUCXr62fg0cZGFnQGdudWku b3JnAAoJEMiw+FSO5/Pn0YMBALd3Ymy6bWm6lbE/VQDjLgZbSQ/ZVCIzMlb/z+m0 jkGeAP0fxknAZt788qQEqZIjZ3obyDutWShOpi89KSVvNTACBg== =F4F8 -----END PGP SIGNATURE----- --==-=-=--