From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Christophe Troestler Newsgroups: gmane.emacs.bugs Subject: bug#34387: 26.1; Gnus: handle empty message parts Date: Wed, 13 Feb 2019 18:26:44 +0100 Message-ID: <874l97bnvv.fsf@poincare.umons.ac.be> References: <87ef8igwdw.fsf@poincare.umons.ac.be> <87ftstea3o.fsf@poincare.umons.ac.be> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="188672"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.1.0; emacs 26.1 Cc: 34387@debbugs.gnu.org To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 13 18:27:24 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtyJd-000mp0-RS for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Feb 2019 18:27:22 +0100 Original-Received: from localhost ([127.0.0.1]:60986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtyJX-0005BM-9y for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Feb 2019 12:27:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtyJQ-0005B4-3v for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2019 12:27:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtyJM-0002WN-Fa for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2019 12:27:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47988) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gtyJK-0002Te-PF for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2019 12:27:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gtyJK-0005M8-BX for bug-gnu-emacs@gnu.org; Wed, 13 Feb 2019 12:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Christophe Troestler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Feb 2019 17:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34387 X-GNU-PR-Package: emacs Original-Received: via spool by 34387-submit@debbugs.gnu.org id=B34387.155007881620574 (code B ref 34387); Wed, 13 Feb 2019 17:27:02 +0000 Original-Received: (at 34387) by debbugs.gnu.org; 13 Feb 2019 17:26:56 +0000 Original-Received: from localhost ([127.0.0.1]:47269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gtyJD-0005Lm-Og for submit@debbugs.gnu.org; Wed, 13 Feb 2019 12:26:55 -0500 Original-Received: from mail-eopbgr70072.outbound.protection.outlook.com ([40.107.7.72]:4307 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gtyJB-0005LX-3A for 34387@debbugs.gnu.org; Wed, 13 Feb 2019 12:26:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alumniumonsac.onmicrosoft.com; s=selector1-umons-ac-be; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HslE/3NAZ9QNOehPh+ETYwWbVOaC1Ve0Kwz/0SING5s=; b=Xx3sSnzag9N/IRPnph8Gc7ego4zFzkqvMjO3lFZspP9POtiNXoGfl4KkRLnH4TU0mSI23+tCUKaZad5bQXgAD1zavKWJbUETVwu4oddoGVvBqqvXpODCqwCi2uh4zaInkBZmtQigSvShL9UXW6rGm40rOuQeb5cb8tfnrM2/lMc= Original-Received: from VI1PR0102CA0021.eurprd01.prod.exchangelabs.com (2603:10a6:802::34) by AM6PR01MB4438.eurprd01.prod.exchangelabs.com (2603:10a6:20b:3c::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.22; Wed, 13 Feb 2019 17:26:46 +0000 Original-Received: from AM5EUR03FT035.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::206) by VI1PR0102CA0021.outlook.office365.com (2603:10a6:802::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16 via Frontend Transport; Wed, 13 Feb 2019 17:26:45 +0000 Authentication-Results: spf=pass (sender IP is 193.190.208.132) smtp.mailfrom=umons.ac.be; jpl.org; dkim=none (message not signed) header.d=none;jpl.org; dmarc=bestguesspass action=none header.from=umons.ac.be; Received-SPF: Pass (protection.outlook.com: domain of umons.ac.be designates 193.190.208.132 as permitted sender) receiver=protection.outlook.com; client-ip=193.190.208.132; helo=smtp.umons.ac.be; Original-Received: from smtp.umons.ac.be (193.190.208.132) by AM5EUR03FT035.mail.protection.outlook.com (10.152.16.119) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.17 via Frontend Transport; Wed, 13 Feb 2019 17:26:45 +0000 Original-Received: from poincare (10.104.2.63) by smtp.umons.ac.be (10.104.2.84) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 13 Feb 2019 18:26:44 +0100 Original-Received: from [::1] (helo=poincare) by poincare with esmtp (Exim 4.92-RC5) (envelope-from ) id 1gtyJ2-0005EU-DP; Wed, 13 Feb 2019 18:26:44 +0100 In-Reply-To: X-Originating-IP: [10.104.2.63] X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:193.190.208.132; IPV:NLI; CTRY:BE; EFV:NLI; SFV:NSPM; SFS:(10009020)(39860400002)(376002)(346002)(136003)(396003)(2980300002)(199004)(189003)(2906002)(106466001)(86362001)(305945005)(356004)(58126008)(14444005)(478600001)(74482002)(53546011)(4326008)(93886005)(106002)(246002)(50466002)(6246003)(7736002)(8676002)(7636002)(486006)(126002)(6116002)(76176011)(8936002)(186003)(426003)(8746002)(23676004)(229853002)(786003)(26005)(11346002)(476003)(63266004)(316002)(446003)(626008)(72206003)(47776003)(6916009)(57986006)(9786002)(2486003)(336012)(3846002)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR01MB4438; H:smtp.umons.ac.be; FPR:; SPF:Pass; LANG:en; PTR:smtp.umons.ac.be,exchangehub1.umons.ac.be,exchangehub2.umons.ac.be,imap.umons.ac.be,pop.umons.ac.be; A:0; MX:1; X-Microsoft-Exchange-Diagnostics: 1; AM5EUR03FT035; 1:yFzsgFA1Y2Hbn0P1ruceei51NvotAJIcRvF4O8HpLh+E0h+8Q88ssvhifGXp4WT5wBl7x4NPjC4uhU3Fq4jKlHDnU896hgztwh/n1aEjWuWIUEIXRhsJALCa7hYTr7h0we59M6hEZyVIVL5u/Z4CRg== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 77c84e58-a481-44da-ab76-08d691d86d54 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4608076)(4709027)(2017052603328)(7153060)(7193020); SRVR:AM6PR01MB4438; X-MS-TrafficTypeDiagnostic: AM6PR01MB4438: X-Microsoft-Exchange-Diagnostics: 1; AM6PR01MB4438; 20:xF0QNoO3tqOgSXGaNK07yiWXIfXC3J74soE2KVYV/xl9a6upmyjapWzMtd0r42kBINT54Kii9VsDe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NgAn6WfH2QwoOOlPxCs60FWtxeuPFKU4uhy14ERTpCi+PXUDMB/iIJUIytVFZrlh gLgxYt5649BuTiolYSygcjWEKKkZfmgL6LohyMsUaBQXyi X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: kINR9fX3drrKVKiM0PBZBEexT8BW/rqIMGqmwG8ROAs3AR6smnS09N/bOSJueh2ybu5G801IzWWj5JbR4dRiwcFmVTAOc/C5ij93YbjYK3sg13oZywhln51UpOCbO99eVL1uEinmWAGyuaWh7c4zrU5yvElF/995FG40f6VlJ7fLfjCDHA8RV2RcHXpjxh0rKetyvp0kpsBy6iI89wZK+43ujgW2WHnkhATZMyiv4lmeKgI53ZCfi8l4n0aJ+E/mGfmtYWY3QohAze2V4pllHMvX2GSCf5cUEIMh+2gAnFwKvkQrdFCW/OXOu+G8+UpOC2yTXq/K8bm/P5kzsWKxr7NFFwSeRyEBGw4NzNenwleS7cfT56zikUig/zBp8Eny6frLpkZApyHesRNOQ1UVPj/JdXzxU6hj4g9YQYVYMJo= X-OriginatorOrg: umons.ac.be X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2019 17:26:45.0430 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 77c84e58-a481-44da-ab76-08d691d86d54 X-MS-Exchange-CrossTenant-Id: 488bed9d-d6a7-48d5-ba1f-ebec3823b357 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=488bed9d-d6a7-48d5-ba1f-ebec3823b357; Ip=[193.190.208.132]; Helo=[smtp.umons.ac.be] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR01MB4438 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155399 Archived-At: On 13 February 2019 at 05:53 CET, Katsumi Yamaoka wrote: > > [=E2=80=A6] If it is (narrow-to-region beg (point)) in gnus-mime-display-= single to issue (args-out-of-range 4409 4410), I guess an html rendering fu= nction deletes buffer's contents so that the buffer's end point may be 4409= . Here is a model to reproduce the same error: > > (with-temp-buffer ;; article buffer > (insert-char ?x 4409) > (let ((beg (point))) ;; buffer's end point =3D=3D 4410 > (delete-char -1) ;; html function does this > (narrow-to-region beg (point)))) > =3D> (args-out-of-range 4409 4410) > > The default html function is mm-shr, that gnus-mime-display-single calls = by way of mm-display-part, mm-display-inline, and mm-inline-text-html. At = that time, the point is positioned at the end of the article buffer, where = the header lines and a single empty line are there. Thanks for your analysis. I indeed had an advice executed after mm-shr to = remove trailing whitespace=E2=80=94these making sometimes the rendered text= hard to read. Deleting the advice makes the call work. What approach would you recommend to remove trailing whitespace after rende= ring HTML? Best, C.