From 8a8cc4acfbe9ddfda71f375a18a3599be0a844d6 Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Tue, 12 Apr 2016 09:04:04 +0100 Subject: [PATCH] [PATCH v1] emacs: Don't indent multipart sub-parts during reply. --- 1e/76476ae1cecb79c55216b03b0c3dacd5a35018 | 105 ++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 1e/76476ae1cecb79c55216b03b0c3dacd5a35018 diff --git a/1e/76476ae1cecb79c55216b03b0c3dacd5a35018 b/1e/76476ae1cecb79c55216b03b0c3dacd5a35018 new file mode 100644 index 000000000..84cc5fd57 --- /dev/null +++ b/1e/76476ae1cecb79c55216b03b0c3dacd5a35018 @@ -0,0 +1,105 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 2D9426DE012F + for ; Tue, 12 Apr 2016 01:04:17 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.178 +X-Spam-Level: +X-Spam-Status: No, score=-0.178 tagged_above=-999 required=5 + tests=[AWL=-0.111, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, + RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, + RCVD_IN_MSPIKE_WL=-0.01, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=0.001] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id bUkyyYru5_8b for ; + Tue, 12 Apr 2016 01:04:08 -0700 (PDT) +Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com + [74.125.82.53]) by arlo.cworth.org (Postfix) with ESMTPS id 4F2766DE0127 for + ; Tue, 12 Apr 2016 01:04:08 -0700 (PDT) +Received: by mail-wm0-f53.google.com with SMTP id u206so16675275wme.1 + for ; Tue, 12 Apr 2016 01:04:08 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=dme-org.20150623.gappssmtp.com; s=20150623; + h=from:to:subject:date:message-id; + bh=67BKMmg8T9ZHlF7JtZTXgxY8kKbjEv2qQh2OVlkKqSo=; + b=RXn6ZnEy2zMckG08ucru+VD1flDRGY1U2qT9gyGGGEaJ7LCgudvjfb7FLJ9/mY6Fc6 + LrX0ZHbC8LzqX7M9wdRz3jkY2ptiiPTDx6eeyEeOH9ohLYYRHY8kIlu3B+RbtZ9ezrG+ + uSSTXsDK6inGrfykxWEBVpazIKccitm64ddlvb8rcYwVkNZZkbH0WnDLgi4iKL67JkCK + xzYeyJLiA/Bm0S8qYu+jDcTbcIoakJOtjk8Azt7lT95PPxBd2AJJfh8QWRU8uEFhHVu1 + SuT/POh6fDX5RW3QBsb2Dfm/CSWiCVLTreNHnrwZih4//sZP6RH6jUKdya5L6tAJjxi/ + b5wA== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:subject:date:message-id; + bh=67BKMmg8T9ZHlF7JtZTXgxY8kKbjEv2qQh2OVlkKqSo=; + b=QTukE51A1atDbaG/kICqjvS7PNHTCqQxS1EQ0OVL8inpHzVcNoqWs/rCEUuQeCVLpY + GSU3A7nBuTOSXW4isDPUY7zK0GiHtBj61oGSp1PAx+ZPoA6Ceb+KLyuhaDiLjMPgbU8u + +QoLRfuvjvO7qlFmVz2YWTPuhUrIdQaumYnKlqtrTgZGaLuU520Dlg91wLBaZKmeTjNA + P3I0UjGmmE5SqChS5OYhNWRGJo5CmJZscpbMgDJWoecd8pej5ejun8PtBFfke9KatNgK + 9QPGas0tslqz+P7kwI5bXTbyM0sq89QfsYA5V3257U1nr4ejxsuzIDT7Zg9hdNHfTND3 + t3WQ== +X-Gm-Message-State: + AOPr4FUx74dOd8mD0a4agflVcAVaFVow5KdyTmZt5DXYrdDn2FedW/bjUdkbEC5hud+2lw== +X-Received: by 10.28.179.7 with SMTP id c7mr2654760wmf.46.1460448246640; + Tue, 12 Apr 2016 01:04:06 -0700 (PDT) +Received: from disaster-area.hh.sledj.net + ([2a01:348:1a2:1:ea39:35ff:fe2c:a227]) + by smtp.gmail.com with ESMTPSA id jk1sm31967016wjb.27.2016.04.12.01.04.05 + for + (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Tue, 12 Apr 2016 01:04:05 -0700 (PDT) +Received: from localhost (disaster-area.hh.sledj.net [local]) + by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 0107e406 + for ; Tue, 12 Apr 2016 08:04:04 +0000 (UTC) +From: David Edmondson +To: notmuch@notmuchmail.org +Subject: [PATCH v1] emacs: Don't indent multipart sub-parts during reply. +Date: Tue, 12 Apr 2016 09:04:04 +0100 +Message-Id: <1460448244-31134-1-git-send-email-dme@dme.org> +X-Mailer: git-send-email 2.1.4 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 12 Apr 2016 08:04:17 -0000 + +When generating cited messages for replay, override any existing +setting for `notmuch-show-indent-multipart' to ensure that no +indentation occurs. +--- + +In response to id:87oa9fsl9i.fsf@alice.fifthhorseman.net. + + emacs/notmuch-mua.el | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el +index 935cbd3..31e6360 100644 +--- a/emacs/notmuch-mua.el ++++ b/emacs/notmuch-mua.el +@@ -248,7 +248,9 @@ mutiple parts get a header." + ;; Don't omit long parts. + (notmuch-show-max-text-part-size 0) + ;; Insert headers for parts as appropriate for replying. +- (notmuch-show-insert-header-p-function notmuch-mua-reply-insert-header-p-function)) ++ (notmuch-show-insert-header-p-function notmuch-mua-reply-insert-header-p-function) ++ ;; Don't indent multipart sub-parts. ++ (notmuch-show-indent-multipart nil)) + (notmuch-show-insert-body original (plist-get original :body) 0) + (buffer-substring-no-properties (point-min) (point-max))))) + +-- +2.1.4 + -- 2.26.2