--- /dev/null
+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 13552431FC3\r
+ for <notmuch@notmuchmail.org>; Tue, 22 Apr 2014 13:12:11 -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 myv0loWB6Gr0 for <notmuch@notmuchmail.org>;\r
+ Tue, 22 Apr 2014 13:12:07 -0700 (PDT)\r
+Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com\r
+ [74.125.82.43]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client\r
+ certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
+ A12AA431FBD for <notmuch@notmuchmail.org>; Tue, 22 Apr 2014 13:12:07 -0700\r
+ (PDT)\r
+Received: by mail-wg0-f43.google.com with SMTP id x13so4343036wgg.26\r
+ for <notmuch@notmuchmail.org>; Tue, 22 Apr 2014 13:12:05 -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;\r
+ bh=eecWy2sxc/yUt/ky/Hj89JPbws4GPVUSWkyVppUuP9g=;\r
+ b=bRsjH4HID6PXyhGMh/VpGbSgUfCx2Ngz6RdRhCh+S7BqFVs7J801I2EucY/x+O1EU9\r
+ +T4h6mF2CQNV6ZeoFbHScycqTq1gnl57l/I1vo/6bWvdnIqAaHdE9OXJMYZ0C/AqzTeN\r
+ uhpzRD+yceoCPYNOOWfUYloIzAnPQ9AnzM0Q/o5CIEQ5dyXIq3xzf8TDH26DrPm5FTey\r
+ myadH+8nRn+jmHJxuTV3g9PwIos5/SUzhMK2f8i83kQTIvwlcX7TTjM8qoVgL1EYMMPx\r
+ 3U8tbkdGRVyZl2mnMxreATDehGRfrhA+cStbhyPCTtYmxa+es0xf7JxIIbdm4SnFUMLv\r
+ rOMg==\r
+X-Received: by 10.194.9.36 with SMTP id w4mr355156wja.79.1398197524265;\r
+ Tue, 22 Apr 2014 13:12:04 -0700 (PDT)\r
+Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162])\r
+ by mx.google.com with ESMTPSA id et5sm24542531wib.8.2014.04.22.13.12.02\r
+ for <multiple recipients>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Tue, 22 Apr 2014 13:12:03 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [WIP PATCH 0/4] Add a mark thread option\r
+Date: Tue, 22 Apr 2014 21:11:46 +0100\r
+Message-Id: <1398197510-28224-1-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.10.4\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: Tue, 22 Apr 2014 20:12:11 -0000\r
+\r
+Allow users to mark threads in the search buffer and then apply\r
+tagging operations to all marked threads.\r
+\r
+This was requested on irc and is also something I have wanted several times.\r
+\r
+Patch 1 is a cleanup which simplifies the existing code (imo) and\r
+makes the subsequent patches easier.\r
+\r
+Patch 2 is large but mostly just passing an argument all the way\r
+throught the call chain.\r
+\r
+Patch 3 and 4 do the actual logic.\r
+\r
+At the moment the best way to clear all markings is to refresh the\r
+buffer. Maybe that should change (do we even want refresh to clear\r
+markings?)\r
+\r
+On light testing it seems to work.\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+Mark Walters (4):\r
+ emacs: search: tidy notmuch-search-foreach-result\r
+ emacs: search: add a marked thread variable and add to relevant\r
+ functions\r
+ emacs: search: split foreach-result into list and region variants\r
+ emacs: search: add key binding for marking a thread\r
+\r
+ emacs/notmuch.el | 151 ++++++++++++++++++++++++++++++++++--------------------\r
+ 1 file changed, 95 insertions(+), 56 deletions(-)\r
+\r
+-- \r
+1.7.10.4\r
+\r