[PATCH v2 08/11] contrib: pick: close window function
authorMark Walters <markwalters1009@gmail.com>
Sun, 18 Aug 2013 12:14:36 +0000 (13:14 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:56:25 +0000 (09:56 -0800)
1f/88c2b93f9ca0b4ec8dfbdb41331faf9e420baf [new file with mode: 0644]

diff --git a/1f/88c2b93f9ca0b4ec8dfbdb41331faf9e420baf b/1f/88c2b93f9ca0b4ec8dfbdb41331faf9e420baf
new file mode 100644 (file)
index 0000000..28c7ca6
--- /dev/null
@@ -0,0 +1,92 @@
+Return-Path: <markwalters1009@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 6FBCD431FDB\r
+       for <notmuch@notmuchmail.org>; Sun, 18 Aug 2013 05:15:42 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+       RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 1P0OIvo7wrXj for <notmuch@notmuchmail.org>;\r
+       Sun, 18 Aug 2013 05:15:36 -0700 (PDT)\r
+Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com\r
+ [74.125.82.54])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ 2BBA642117A   for <notmuch@notmuchmail.org>; Sun, 18 Aug 2013 05:14:59 -0700\r
+ (PDT)\r
+Received: by mail-wg0-f54.google.com with SMTP id e12so2650264wgh.21\r
+       for <notmuch@notmuchmail.org>; Sun, 18 Aug 2013 05:14:58 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
+       bh=wlmkO6dXIVm/zMpyR378cmgyg6lzbyXnQ7bS+2BuzPc=;\r
+       b=fchb9uZ+Bnfx2iSmRIKDH3mtFR6OMsnS+iK+IvvDMYfPWIABmZdYRRbJ22/yIDCtUt\r
+       GP0Nk/woM10fhtdeau6RTL1xvUr303MkvTrCHpf4Rh61ESZzeFdSQBiz+lZOFUFBcIRy\r
+       faSMZ+9lm37y6sbQiekT9QKJWR82sf09Dbw7CiNfwuzU0Yl7pig6+F81op9Ya2NofjbD\r
+       HraZd3MmFY/6oZrLSk0/S1JsHOvJshvEPeGQ1wvUbQDfv5Swb0rTKwFcuS7YRZUPksNO\r
+       sbw/0zauu4yVGhzg9GAQvdLnz410UpxGhKSFtBQvr8zJ1+kDF1cbIsw1eaE+rx6RRMlS\r
+       o2FQ==\r
+X-Received: by 10.180.210.243 with SMTP id mx19mr4448604wic.35.1376828098067; \r
+       Sun, 18 Aug 2013 05:14:58 -0700 (PDT)\r
+Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
+       by mx.google.com with ESMTPSA id hb2sm10683934wib.0.1969.12.31.16.00.00\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Sun, 18 Aug 2013 05:14:57 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 08/11] contrib: pick: close window function\r
+Date: Sun, 18 Aug 2013 13:14:36 +0100\r
+Message-Id: <1376828079-21455-9-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <1376828079-21455-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1376828079-21455-1-git-send-email-markwalters1009@gmail.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 18 Aug 2013 12:15:42 -0000\r
+\r
+---\r
+ contrib/notmuch-pick/notmuch-pick.el |   12 ++++++++++++\r
+ 1 files changed, 12 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/contrib/notmuch-pick/notmuch-pick.el b/contrib/notmuch-pick/notmuch-pick.el\r
+index bd506ca..ba252d5 100644\r
+--- a/contrib/notmuch-pick/notmuch-pick.el\r
++++ b/contrib/notmuch-pick/notmuch-pick.el\r
+@@ -208,6 +208,18 @@ This function does not give an error if there is no button."\r
+   (let ((button (or button (button-at (point)))))\r
+     (when button (button-activate button))))\r
\r
++(defun notmuch-pick-close-message-pane-and (func)\r
++  "Close message pane and execute FUNC.\r
++\r
++This function returns a function (so can be used as a keybinding)\r
++which closes the message pane if open and then executes function\r
++FUNC."\r
++  `(lambda ()\r
++      ,(concat "(Close message pane and) " (documentation func t))\r
++     (interactive)\r
++     (notmuch-pick-close-message-window)\r
++     (funcall #',func)))\r
++\r
+ (defvar notmuch-pick-mode-map\r
+   (let ((map (make-sparse-keymap)))\r
+     (define-key map [mouse-1] 'notmuch-pick-show-message)\r
+-- \r
+1.7.9.1\r
+\r