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 29A22431FD9
\r
6 for <notmuch@notmuchmail.org>; Fri, 30 Nov 2012 00:23:44 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 v9XKpzbd1sNo for <notmuch@notmuchmail.org>;
\r
18 Fri, 30 Nov 2012 00:23:43 -0800 (PST)
\r
19 Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com
\r
20 [209.85.212.169]) (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 2B294429E29
\r
23 for <notmuch@notmuchmail.org>; Fri, 30 Nov 2012 00:23:26 -0800 (PST)
\r
24 Received: by mail-wi0-f169.google.com with SMTP id hq12so6189689wib.2
\r
25 for <notmuch@notmuchmail.org>; Fri, 30 Nov 2012 00:23:25 -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=jLpymd7H5ciP4UVLLlbim3a2VEEI+DVjLVnu0hRrbt0=;
\r
29 b=F5Axkc1sgT81OlKmzIY3hEjZYD0royvWce41JbJk/HKwZC/tfYllwp8rI7ghmu3Qg1
\r
30 lt8ohH1b2QWwGNql6gFDSZyvfR2N3rb+ZSOfjdHC3Yv/+B533ReOHziXlOT8w10BG92H
\r
31 imnoXzdoidoYx4JkYiXr7Ofz3fQu9Rz9+ytuuFldwzR0yG++RUxX5MtrfO5fNMBIjbea
\r
32 z8wOs6KwtcSOw+7uwjcGZH4cEnS2D16SG2Mo/HVLm9EXjTEH1vZ4f5UgRHLbG41m2J5D
\r
33 Nu7M0Fe0eJQYOQnzE2PQfq5wayxonwLy3w5B5VMzqL4qN8gOPY/c8gGb6NiTgXKR+7cb
\r
35 Received: by 10.216.218.151 with SMTP id k23mr131417wep.193.1354263804931;
\r
36 Fri, 30 Nov 2012 00:23:24 -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 w5sm5935534wiz.10.2012.11.30.00.23.23
\r
39 (version=TLSv1/SSLv3 cipher=OTHER);
\r
40 Fri, 30 Nov 2012 00:23:24 -0800 (PST)
\r
41 From: Mark Walters <markwalters1009@gmail.com>
\r
42 To: notmuch@notmuchmail.org
\r
43 Subject: [PATCH 4/5] emacs: make search tag completion use the tags it
\r
45 Date: Fri, 30 Nov 2012 08:21:30 +0000
\r
46 Message-Id: <1354263691-19715-5-git-send-email-markwalters1009@gmail.com>
\r
47 X-Mailer: git-send-email 1.7.9.1
\r
48 In-Reply-To: <1354263691-19715-1-git-send-email-markwalters1009@gmail.com>
\r
49 References: <1354263691-19715-1-git-send-email-markwalters1009@gmail.com>
\r
50 X-BeenThere: notmuch@notmuchmail.org
\r
51 X-Mailman-Version: 2.1.13
\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: Fri, 30 Nov 2012 08:23:44 -0000
\r
64 From: markwalters1009 <markwalters1009@gmail.com>
\r
66 Tagging from search mode now passes the tags it believes are present
\r
67 to the completion function. This means that the user interface is more
\r
68 consistent: tag-completion will complete to any tag the user can see
\r
69 (even if it is no longer present).
\r
71 emacs/notmuch.el | 5 +++--
\r
72 1 files changed, 3 insertions(+), 2 deletions(-)
\r
74 diff --git a/emacs/notmuch.el b/emacs/notmuch.el
\r
75 index 4e6bbcf..4ffa803 100644
\r
76 --- a/emacs/notmuch.el
\r
77 +++ b/emacs/notmuch.el
\r
78 @@ -567,8 +567,9 @@ and will also appear in a buffer named \"*Notmuch errors*\"."
\r
80 (defun notmuch-search-tag-region (beg end &optional tag-changes)
\r
81 "Change tags for threads in the given region."
\r
82 - (let ((search-string (notmuch-search-find-thread-id-region-search beg end)))
\r
83 - (setq tag-changes (funcall 'notmuch-tag search-string tag-changes))
\r
84 + (let ((search-string (notmuch-search-find-thread-id-region-search beg end))
\r
85 + (current-tags (notmuch-search-get-tags-region beg end)))
\r
86 + (setq tag-changes (funcall 'notmuch-tag search-string tag-changes current-tags))
\r
87 (notmuch-search-foreach-result beg end
\r
89 (notmuch-search-set-tags
\r