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: Fri, 15 Feb 2019 09:28:28 +0100 Message-ID: <87bm3do3pv.fsf@poincare.umons.ac.be> References: <87ef8igwdw.fsf@poincare.umons.ac.be> <87ftstea3o.fsf@poincare.umons.ac.be> <874l97bnvv.fsf@poincare.umons.ac.be> <87h8d6o8lx.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="88016"; 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 Fri Feb 15 09:43:29 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 1guZ5k-000Mja-Aj for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Feb 2019 09:43:28 +0100 Original-Received: from localhost ([127.0.0.1]:34432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guZ5j-0001hR-Ci for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Feb 2019 03:43:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guZ3P-0000Hk-19 for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2019 03:41:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guYru-0006jp-PA for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2019 03:29:12 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49274) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1guYrm-0006dA-26 for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2019 03:29:08 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1guYrl-00052U-Th for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2019 03:29:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Christophe Troestler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Feb 2019 08:29:01 +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.155021932319343 (code B ref 34387); Fri, 15 Feb 2019 08:29:01 +0000 Original-Received: (at 34387) by debbugs.gnu.org; 15 Feb 2019 08:28:43 +0000 Original-Received: from localhost ([127.0.0.1]:48555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1guYrT-00051v-3D for submit@debbugs.gnu.org; Fri, 15 Feb 2019 03:28:43 -0500 Original-Received: from mail-eopbgr70050.outbound.protection.outlook.com ([40.107.7.50]:54244 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1guYrQ-00051a-Pe for 34387@debbugs.gnu.org; Fri, 15 Feb 2019 03:28:41 -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=L4wrsw+CuobmegRLhU33YiOtTXIXXWU8ctvnd2Hqw+g=; b=ey1NiZ6a1zCTwY1ck1xkEgCqzzesG/biElFMZXV/a1MJ9unrL9om5o9WKPc6XpcvDdMP3b5xZE4uLUZORqV6eqEmsGHLizPJgtg0pbvMTPQcBCRshYKhjZpewqOJy3Rlk18rIvZGCmtvWgAv95f2FdnB9cRgsNVR24GbJMKVFf8= Original-Received: from AM0PR01CA0002.eurprd01.prod.exchangelabs.com (2603:10a6:208:69::15) by VI1PR01MB4445.eurprd01.prod.exchangelabs.com (2603:10a6:803:a2::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.18; Fri, 15 Feb 2019 08:28:33 +0000 Original-Received: from AM5EUR03FT026.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::205) by AM0PR01CA0002.outlook.office365.com (2603:10a6:208:69::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16 via Frontend Transport; Fri, 15 Feb 2019 08:28:32 +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 AM5EUR03FT026.mail.protection.outlook.com (10.152.16.155) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.17 via Frontend Transport; Fri, 15 Feb 2019 08:28:31 +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; Fri, 15 Feb 2019 09:28:29 +0100 Original-Received: from localhost ([::1] helo=poincare) by poincare with esmtp (Exim 4.92-RC5) (envelope-from ) id 1guYrE-0007Ny-Ge; Fri, 15 Feb 2019 09:28:28 +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)(396003)(39850400004)(136003)(376002)(346002)(2980300002)(189003)(199004)(53546011)(93886005)(8746002)(2906002)(6116002)(3846002)(4744005)(72206003)(8936002)(246002)(9786002)(6246003)(4326008)(8676002)(478600001)(86362001)(47776003)(26005)(316002)(446003)(626008)(11346002)(6916009)(786003)(126002)(356004)(476003)(58126008)(486006)(229853002)(106466001)(50466002)(76176011)(74482002)(186003)(336012)(2486003)(7636002)(14444005)(76506005)(23676004)(106002)(7736002)(57986006)(426003)(305945005)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR01MB4445; H:smtp.umons.ac.be; FPR:; SPF:Pass; LANG:en; PTR:exchangehub1.umons.ac.be,pop.umons.ac.be,exchangehub2.umons.ac.be,smtp.umons.ac.be,imap.umons.ac.be; MX:1; A:0; X-Microsoft-Exchange-Diagnostics: 1; AM5EUR03FT026; 1:sNND2KGLhCpNnx37sQ1bRq66L+orm5wJ3k/z9N/ZW+Udmw1FjzWK6q+0Q4Ntb5cOHIgpgqOWnef7MKqFrndhYj/Sf8Qgg++Jz+UntC6hxgZHVaqT84ESAxSDYM2XqhXkQdcuLJVqk3Z2IIQU10/IPzCDfOzW0a7gKaUb9Wtlnoc= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 615611ea-dcfb-4112-2be4-08d6931f91e2 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:VI1PR01MB4445; X-MS-TrafficTypeDiagnostic: VI1PR01MB4445: X-Microsoft-Exchange-Diagnost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sOLyCV9GyauujE9+uMjEgGuMD2nXnJR2gH870D+fIyF3MVHcGMsa7fuFjBoJ21/rz//UwwTNOWFaQHJE1+j5VZEr4RIdZgJMYa6KaSzZy0Q/0Hq1okSDXL5XYmTNbgNCCsgBK0Xlm7xRYVNV9Bae/mmQXyH0RuR kI67ES52iNogRfeI47reDcUw8qoRoRqO6UMsgC/PYKqSQZ X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: I4ye3qIoLvayUGlGf/Z4s9MqrfqprMcBLnJX1iGiLoTlK7dRFXKFmNMutPCGw4O/EzEJSmFqJIl9r4jYWLi55rPPXxmz9V7t9eaW4SOXt3O9vmfBBSKS1xs12j3E06Mg4ihaup8GIPh89H2p11CUXlflgxZ7UeVM/uDNgpzEpiUTsymlxngQqwTe9RvqmcKEQ695Bgi8zYnrwGgA8YypuAFeTlJCaTG2jsuGt6NNFZWqOLIhP9H5rOV8rNikFTd5Math7mksdu9aEGJU7HLAkShb5tEBq0e4c1MlwZPjgFgPjLdDpWO13oSTry/Lee5NIykrabtCr6pwXRSDHV/itphclxUA/Vf/hFaJgvScw0AFUL+GRzgghPFCXYStVWGMSmwZY4UJQhLOHxbX8Scyf38jIi+OU7EbXFivohkNFYc= X-OriginatorOrg: umons.ac.be X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Feb 2019 08:28:31.5407 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 615611ea-dcfb-4112-2be4-08d6931f91e2 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: VI1PR01MB4445 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:155433 Archived-At: On 14 February 2019 at 23:50 CET, Katsumi Yamaoka wrote: > > [=E2=80=A6] I see. But, sorry, I meant to do first was: > > (define-advice mm-shr (:around (oldfn &rest handle) delete-trailing-white= space) > "Delete leading and trailing whitespace in Gnus article buffer." > (if (derived-mode-p 'gnus-article-mode) > (save-restriction > (narrow-to-region (point) (point)) > (apply oldfn handle) > (delete-trailing-whitespace)) > (apply oldfn handle))) > > That is, not to do the whitespace deletion when mm-shr is used > in other than Gnus as it might require whitespace. [=E2=80=A6] Sure. Thanks for taking the time to attract my attention to this. Best, C.