From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= Newsgroups: gmane.emacs.devel Subject: HTML display in Gnus (was: Sending plaintext with Gmail) Date: Tue, 05 May 2020 10:13:08 +0200 Message-ID: <87eery2417.fsf@gmail.com> References: <7976B8C1-AFC7-4662-B750-6492EB70C0D5@gmail.com> <29721725-0696-4dcf-b5de-36924a5de259@default> <3777996c-7b3f-4d44-9636-f18aaff76a65@default> <87wo5s6rhz.fsf_-_@gmail.com> <87k11ren8n.fsf@gmail.com> <87lfm7wwf4.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="66382"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Emacs developers To: Lars Ingebrigtsen , Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 05 10:13:52 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jVsi8-000H8P-Ov for ged-emacs-devel@m.gmane-mx.org; Tue, 05 May 2020 10:13:52 +0200 Original-Received: from localhost ([::1]:41138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVsi7-0001BE-S0 for ged-emacs-devel@m.gmane-mx.org; Tue, 05 May 2020 04:13:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVshW-0000ao-5l for emacs-devel@gnu.org; Tue, 05 May 2020 04:13:14 -0400 Original-Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:38566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVshU-00069j-L7 for emacs-devel@gnu.org; Tue, 05 May 2020 04:13:13 -0400 Original-Received: by mail-wr1-x430.google.com with SMTP id x17so1582069wrt.5 for ; Tue, 05 May 2020 01:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=mnfFERLytjknirmd7xBCqW7FGDPlx+74Dk41G5msxk8=; b=Dck2UWNugGPTR+Q8bZY83VjR/jNMoy2WN2ZkaJzDcnU0BVpLy+EjQftiqpeD7Yckn2 KCYWWwy7jybszOWKiuv/7eZuRS9ywvA12fJsdly4ng59wi6ZQk4B8P6sjsAUfqGEJ3tM R+RRuvsxltZex7EI8MRvAUHyny9sdwCOWMyDKzXTVWqFCQ7+IR6TZHfi0qGdqrx/ukEK jtaUP2qelOcLrdlcH+LJL8vfX961QyM1Bm+SkWG0ZWysVN9SA+yn8xdSl4f8DZB6cp69 Bizeez6lDKEf++gWDeCFka81L9ZWHs5GXZ8ZRS2gfl+MycJjVU+VeAft/M5ICXG3PLrF /tLw== 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:message-id :user-agent:mime-version:content-transfer-encoding; bh=mnfFERLytjknirmd7xBCqW7FGDPlx+74Dk41G5msxk8=; b=JOUL2qOB46zMdZWJ/aaOrR/N1pUO9IzSDLIdKE90I7Jb3JfRRxPueAz7LqvC3EQo/w j8+pe6fQl5r5mc/pyVd7m1JH2NYrC6e5yEZZwaU8QtLAytxW4KIjskVTMBMYRPfqkER+ vYRTn1vJ48i3F0FbxXatEUzfkmk74eMY7nyD/xcvebL2biFW/z/MxxF0dAzd4w9oh0aq k6G2okdsLOK1k0PYBO7HXaV2OjqkDkI0K4hhGu1KDLtEO09SmhEPLIyF7cWnPBKdu5PB 2RcA8o20+uvdWq7VSDJaBB0IPeQfQsR+jMO34yLxv803lhzRoYDI1urDWqRVrvvhMpAP eWrQ== X-Gm-Message-State: AGi0PuYteo1YVM/4jkU2/rMODzuzph1JJHPZ3F5iqN6b0K06DJeaOJ2g CnNpjsEtHPeVZEQN1JUQDu1tBKqFI9TTig== X-Google-Smtp-Source: APiQypIqVCbnqLX4BcnoFRyTaB6RpP9T8NMPK7J9ga24nzzWjKaYzOSq6nytdyfDBenj6z9H+3y6iA== X-Received: by 2002:adf:df82:: with SMTP id z2mr2544317wrl.58.1588666389879; Tue, 05 May 2020 01:13:09 -0700 (PDT) Original-Received: from my-little-tumbleweed (200.143.13.109.rev.sfr.net. [109.13.143.200]) by smtp.gmail.com with ESMTPSA id t17sm1871772wro.2.2020.05.05.01.13.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 01:13:09 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=kevin.legouguec@gmail.com; helo=mail-wr1-x430.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248952 Archived-At: Lars Ingebrigtsen writes: > See mm-discouraged-alternatives. Andreas Schwab writes: > You can add text/html to mm-discouraged-alternatives. See (emacs-mime) > Display Customization::. > > Andreas. Ah, that's where it was! Thanks :) I was mostly asking for the sake of people who find HTML unacceptable; I'm mostly fine with it, though lines spanning the full window width are somewhat hard to read. After an hour fiddling with shr-width and gnus-html-frame-width to no avail, I realized that the latter is only used with the gnus-w3m renderer, while mm-shr let-binds the former to (if shr-use-fonts nil fill-column) This is surprising (to me), since shr-width's docstring says that an integer value works just fine even when shr-use-fonts is set: > If =E2=80=98shr-use-fonts=E2=80=99 is set, the mean character width is us= ed to > compute the pixel width, which is used instead. I've modified the snippet above to bind shr-width to fill-column unconditionally, and it works wonders for me. Maybe this condition makes no sense anymore? As things stand, if shr-use-fonts is set, the user loses control over the line width. WDYT?