Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / ba / a23e957b6959164b20b704981f2d6e61fa6467
1 Return-Path: <markwalters1009@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id E98AF431FBF\r
6         for <notmuch@notmuchmail.org>; Sun,  2 Dec 2012 16:59:01 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.201\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
14         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id K3UU2YS+kOiV for <notmuch@notmuchmail.org>;\r
18         Sun,  2 Dec 2012 16:59:00 -0800 (PST)\r
19 Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com\r
20         [209.85.212.175]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id C76E4431FC2\r
23         for <notmuch@notmuchmail.org>; Sun,  2 Dec 2012 16:58:54 -0800 (PST)\r
24 Received: by mail-wi0-f175.google.com with SMTP id hm11so787414wib.2\r
25         for <notmuch@notmuchmail.org>; Sun, 02 Dec 2012 16:58:53 -0800 (PST)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
28         bh=HdN992WXFL0vFdWmuse2Rzc4MGBvDeSS60jD4jI8RPA=;\r
29         b=t7+6hvKDHok4RQz5Zz5qHni5c4N5JZUUoruVBMgH3g3OmUwAICkCONKDbPc6MISrpk\r
30         r+EtWIFfCr+4GBH7ZTpDYc9vqaByEY/vTreh+3CZPjhc46OnMqgnGErbP1i++j36NNL+\r
31         DciJSYUMQGK90YVPx7EpWKYocSLYpinl7eF5fQZ+v61INOpu8p4PKlT+wg4wsXwmb5th\r
32         8DPEBWLq5m4YOwdeZ1qT1/92Z8X7DFyI51FetyhgqVEis5a0Sbzw188uaqTeZ3FUm5Uq\r
33         kZMyZTnZ++JB8nmld8lguGbLP18siphVfMBzyNCfbCTXRaarErvhpt1jho26eB0hzAgX\r
34         AFKg==\r
35 Received: by 10.216.209.130 with SMTP id s2mr2933166weo.86.1354496333581;\r
36         Sun, 02 Dec 2012 16:58:53 -0800 (PST)\r
37 Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
38         by mx.google.com with ESMTPS id d9sm9334493wiw.0.2012.12.02.16.58.52\r
39         (version=TLSv1/SSLv3 cipher=OTHER);\r
40         Sun, 02 Dec 2012 16:58:52 -0800 (PST)\r
41 From: Mark Walters <markwalters1009@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH v2 3/3] emacs: show make default part button toggle view when\r
44         sensible\r
45 Date: Mon,  3 Dec 2012 00:58:37 +0000\r
46 Message-Id: <1354496317-24564-4-git-send-email-markwalters1009@gmail.com>\r
47 X-Mailer: git-send-email 1.7.9.1\r
48 In-Reply-To: <1354496317-24564-1-git-send-email-markwalters1009@gmail.com>\r
49 References: <1354496317-24564-1-git-send-email-markwalters1009@gmail.com>\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Mon, 03 Dec 2012 00:59:02 -0000\r
63 \r
64 When the part has no filename it is reasonable to guess it is not a\r
65 part for saving or other normal attachment things so default to\r
66 toggling viewability. Possibly this should be customisable but the 4\r
67 main actions (save, view, open with, toggle viewability) all force\r
68 that particular action so it is easy for the user to get round if we\r
69 do make a mistake.\r
70 ---\r
71  emacs/notmuch-show.el |    7 ++++++-\r
72  1 files changed, 6 insertions(+), 1 deletions(-)\r
73 \r
74 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
75 index 9a33d28..c8c1657 100644\r
76 --- a/emacs/notmuch-show.el\r
77 +++ b/emacs/notmuch-show.el\r
78 @@ -1988,7 +1988,12 @@ the user (see `notmuch-show-stash-mlarchive-link-alist')."\r
79  \r
80  (defun notmuch-show-part-button-default (&optional button)\r
81    (interactive)\r
82 -  (notmuch-show-part-button-internal button notmuch-show-part-button-default-action))\r
83 +  (let* ((button (or button (button-at (point))))\r
84 +        (filename (and button (button-get button :notmuch-filename)))\r
85 +        (handler (if filename\r
86 +                     notmuch-show-part-button-default-action\r
87 +                   #'notmuch-show-internally-show-part)))\r
88 +    (notmuch-show-part-button-internal button handler)))\r
89  \r
90  (defun notmuch-show-part-button-save (&optional button)\r
91    (interactive)\r
92 -- \r
93 1.7.9.1\r
94 \r