From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 5F6816DE021E for ; Sat, 15 Aug 2015 00:08:26 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.570, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-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 B4kHz8yqdo_M for ; Sat, 15 Aug 2015 00:08:24 -0700 (PDT) Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by arlo.cworth.org (Postfix) with ESMTPS id 4D23D6DE1003 for ; Sat, 15 Aug 2015 00:08:24 -0700 (PDT) Received: by wicja10 with SMTP id ja10so34510868wic.1 for ; Sat, 15 Aug 2015 00:08:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KtoNQF59UZsQqKbZrYUO7kQLBR9pQPRZmh++KYevpLU=; b=sH+BKVSJ6WyKfOpNN3RO8lQd/SObgAc7YwVkat0cn2bAWxwRn9fp2dbBfTmAdgjCHd kab4V7Kb1d1A6Nj6PsPeN1DqGJJSG3E7xgK7EeSIA3M74Z8H9xJQf38pona1395UjyGj 6dSUTt3dV4/jWebNUwv350mimupCUFaCaQX17ra+JIDlDAAGN9hpLzBHL6yYoVWI3hPK NCk4AIqm8BDVaU6cYUXoE34pXhWqbwtR9cc6JISeJ1hb2yIDEm/4XRkbgf+TVzNmiFIv lf14EaVO35cfo04EXvwZBYQGF8qMB9QYo/2gKPp3z23OZ3EGRLNJceeMC093vAR2HUSf 6vrA== X-Received: by 10.181.13.230 with SMTP id fb6mr13768632wid.47.1439622502584; Sat, 15 Aug 2015 00:08:22 -0700 (PDT) Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162]) by smtp.gmail.com with ESMTPSA id mc18sm6482531wic.23.2015.08.15.00.08.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Aug 2015 00:08:21 -0700 (PDT) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH] emacs: tree bugfix Date: Sat, 15 Aug 2015 08:08:13 +0100 Message-Id: <1439622493-18191-1-git-send-email-markwalters1009@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <87d1ys7n1s.fsf@maritornes.cs.unb.ca> References: <87d1ys7n1s.fsf@maritornes.cs.unb.ca> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.18 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: Sat, 15 Aug 2015 07:08:26 -0000 Formerly replying to an encrypted message in tree-view did not work. This is a first attempt to make it work. --- notmuch-mua-reply decides whether to process crypto based on the buffer-local variable notmuch-show-process-crypto. This sets to its default value (which is notmuch-crypto-process-mime) in tree-mode buffers. As I do not have any crypto setup please can someone test? You will need to set notmuch-crypto-process-mime to t first: I have no idea if that is a bad thing to do! Any comments on whether it is a bad thing would be very useful as (assuming this bascically fixes the problem) the easy actual fix is to do this and let the user toggle process-crypto for the whole tree buffer. Best wishes Mark emacs/notmuch-tree.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 182235e..5695b68 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -867,6 +867,11 @@ (defun notmuch-tree-worker (basic-query &optional query-context target open-targ (setq notmuch-tree-query-context query-context) (setq notmuch-tree-target-msg target) (setq notmuch-tree-open-target open-target) + ;; Set the default value for `notmuch-show-process-crypto' in this + ;; buffer. Although we don't use this some of the functions we call + ;; (such as reply) do. It is a buffer local variable so setting it + ;; will not affect genuine show buffers. + (setq notmuch-show-process-crypto notmuch-crypto-process-mime) (erase-buffer) (goto-char (point-min)) -- 2.1.4