[PATCH 2/3] ruby: allow build with RUNPATH
[notmuch-archives.git] / 65 / 235e6cc2946dabadd4cc74a3fb1b82db2df522
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 77BE2431FB6\r
6         for <notmuch@notmuchmail.org>; Sat,  5 May 2012 05:31:08 -0700 (PDT)\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 SFgcvsPCv8Zr for <notmuch@notmuchmail.org>;\r
18         Sat,  5 May 2012 05:31:08 -0700 (PDT)\r
19 Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com\r
20  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
21  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
22  C97EE431FAE    for <notmuch@notmuchmail.org>; Sat,  5 May 2012 05:31:07 -0700\r
23  (PDT)\r
24 Received: by wgbdt14 with SMTP id dt14so2898698wgb.2\r
25         for <notmuch@notmuchmail.org>; Sat, 05 May 2012 05:31:06 -0700 (PDT)\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;\r
28         bh=9GLDEoNaO2zUfYSmes7Z/R/U3krLvKYr1k+lpVBbMz4=;\r
29         b=N4Rq1zq4FSRDHjDLaRckCyUoINJicOWm2DovCaJLhvB6C79JSS7hrnJNtrZQbed/xt\r
30         390DJ/9qxPVwLQESQoQKY/eYDXxq/NEdLWrw2Feq6omU2JKx9s3CiT8ev7gGpqrpykpO\r
31         exDkdbJpG2RqbHeyrOIiG308r2VrqigRIerV/zaQ9EY0mOGAgsUN9p+ghspPzuo17bCq\r
32         jOtyFUa7imOt9NHBYCy4IFvaqW+VcM8C8er5qxyjPtTfHPuAcSGYalcVv22p0tbb/Hwn\r
33         ZKPgJ0lCUHacu1pINej2nMxBYyCLeR90z1ufln4FLXgN/eCbFJDrQwoOI3uzyjR3jsCc\r
34         5CCQ==\r
35 Received: by 10.180.83.198 with SMTP id s6mr20900575wiy.8.1336221066321;\r
36         Sat, 05 May 2012 05:31:06 -0700 (PDT)\r
37 Received: from localhost (94-192-233-223.zone6.bethere.co.uk.\r
38  [94.192.233.223])      by mx.google.com with ESMTPS id\r
39  17sm5612417wis.0.2012.05.05.05.31.04   (version=TLSv1/SSLv3 cipher=OTHER);     Sat,\r
40  05 May 2012 05:31:04 -0700 (PDT)\r
41 From: Mark Walters <markwalters1009@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH] emacs: add pipe attachment command\r
44 Date: Sat,  5 May 2012 13:31:16 +0100\r
45 Message-Id: <1336221076-3671-1-git-send-email-markwalters1009@gmail.com>\r
46 X-Mailer: git-send-email 1.7.9.1\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.13\r
49 Precedence: list\r
50 List-Id: "Use and development of the notmuch mail system."\r
51         <notmuch.notmuchmail.org>\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
55 List-Post: <mailto:notmuch@notmuchmail.org>\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
59 X-List-Received-Date: Sat, 05 May 2012 12:31:08 -0000\r
60 \r
61 Allow the user to pipe the attachment somewhere. Bound to '|' on the\r
62 attachment button.\r
63 ---\r
64 \r
65 I found myself missing this functionality. It uses mm-pipe-part which\r
66 is nice as it sends single line output to the minibuffer and multiline\r
67 output to a new emacs buffer.\r
68 \r
69 \r
70  emacs/notmuch-show.el |   10 ++++++++++\r
71  1 files changed, 10 insertions(+), 0 deletions(-)\r
72 \r
73 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
74 index 37f0ebb..55aa505 100644\r
75 --- a/emacs/notmuch-show.el\r
76 +++ b/emacs/notmuch-show.el\r
77 @@ -453,6 +453,7 @@ message at DEPTH in the current thread."\r
78      (define-key map "s" 'notmuch-show-part-button-save)\r
79      (define-key map "v" 'notmuch-show-part-button-view)\r
80      (define-key map "o" 'notmuch-show-part-button-interactively-view)\r
81 +    (define-key map "|" 'notmuch-show-part-button-pipe)\r
82      map)\r
83    "Submap for button commands")\r
84  (fset 'notmuch-show-part-button-map notmuch-show-part-button-map)\r
85 @@ -524,6 +525,11 @@ message at DEPTH in the current thread."\r
86      (let ((handle (mm-make-handle (current-buffer) (list content-type))))\r
87        (mm-interactively-view-part handle))))\r
88  \r
89 +(defun notmuch-show-pipe-part (message-id nth &optional filename content-type)\r
90 +  (notmuch-with-temp-part-buffer message-id nth\r
91 +    (let ((handle (mm-make-handle (current-buffer) (list content-type))))\r
92 +      (mm-pipe-part handle))))\r
93 +\r
94  (defun notmuch-show-mm-display-part-inline (msg part nth content-type)\r
95    "Use the mm-decode/mm-view functions to display a part in the\r
96  current buffer, if possible."\r
97 @@ -1891,6 +1897,10 @@ the user (see `notmuch-show-stash-mlarchive-link-alist')."\r
98    (interactive)\r
99    (notmuch-show-part-button-internal button #'notmuch-show-interactively-view-part))\r
100  \r
101 +(defun notmuch-show-part-button-pipe (&optional button)\r
102 +  (interactive)\r
103 +  (notmuch-show-part-button-internal button #'notmuch-show-pipe-part))\r
104 +\r
105  (defun notmuch-show-part-button-internal (button handler)\r
106    (let ((button (or button (button-at (point)))))\r
107      (if button\r
108 -- \r
109 1.7.9.1\r
110 \r