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