--- /dev/null
+Return-Path: <amdragon@mit.edu>\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 9B56D431FC3\r
+ for <notmuch@notmuchmail.org>; Wed, 23 Oct 2013 08:44:17 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[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 umz0wQgEyWBk for <notmuch@notmuchmail.org>;\r
+ Wed, 23 Oct 2013 08:44:11 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-3.mit.edu (dmz-mailsec-scanner-3.mit.edu\r
+ [18.9.25.14])\r
+ by olra.theworths.org (Postfix) with ESMTP id 4EC1F431FBC\r
+ for <notmuch@notmuchmail.org>; Wed, 23 Oct 2013 08:44:11 -0700 (PDT)\r
+X-AuditID: 1209190e-b7f828e0000009cf-65-5267eec966ff\r
+Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
+ by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP\r
+ id 8A.03.02511.9CEE7625; Wed, 23 Oct 2013 11:44:09 -0400 (EDT)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+ by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id r9NFi7ar031949; \r
+ Wed, 23 Oct 2013 11:44:08 -0400\r
+Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
+ (authenticated bits=0)\r
+ (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+ by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r9NFi59a000497\r
+ (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);\r
+ Wed, 23 Oct 2013 11:44:06 -0400\r
+Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80)\r
+ (envelope-from <amdragon@mit.edu>)\r
+ id 1VZ0bM-0005UO-Ub; Wed, 23 Oct 2013 11:44:05 -0400\r
+Date: Wed, 23 Oct 2013 11:44:04 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: Mark Walters <markwalters1009@gmail.com>\r
+Subject: Re: [PATCH 0/8] Improve tag change completion\r
+Message-ID: <20131023154404.GE20337@mit.edu>\r
+References: <1382471457-26056-1-git-send-email-amdragon@mit.edu>\r
+ <87mwm1x9pi.fsf@qmul.ac.uk> <20131023001952.GD20337@mit.edu>\r
+ <87fvrsxqc4.fsf@qmul.ac.uk>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+In-Reply-To: <87fvrsxqc4.fsf@qmul.ac.uk>\r
+User-Agent: Mutt/1.5.21 (2010-09-15)\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42IRYrdT1z35Lj3I4FMrh8XquTwW12/OZHZg\r
+ 8tg56y67x7NVt5gDmKK4bFJSczLLUov07RK4Mt7dvcZY8Fyh4vWRtYwNjA8kuxg5OSQETCR2\r
+ 9PWxQthiEhfurWfrYuTiEBLYxyjx5FQfE4SzkVFizt0tjBDOaSaJ+VeOsEA4SxglehbOZATp\r
+ ZxFQlfj+4AHYLDYBDYlt+5eDxUUEdCRuH1rADmIzC0hLfPvdzARiCwuYSUx82A9WzwtUM/fO\r
+ N7C4kMB8RonHX20h4oISJ2c+YYHo1ZK48e8lUA0H2Jzl/zhAwpxAq3a/7wEbLyqgIjHl5Da2\r
+ CYxCs5B0z0LSPQuhewEj8ypG2ZTcKt3cxMyc4tRk3eLkxLy81CJdY73czBK91JTSTYygsOaU\r
+ 5NvB+PWg0iFGAQ5GJR5ei/a0ICHWxLLiytxDjJIcTEqivIVv04OE+JLyUyozEosz4otKc1KL\r
+ DzFKcDArifDuuAuU401JrKxKLcqHSUlzsCiJ897ksA8SEkhPLEnNTk0tSC2CycpwcChJ8L5/\r
+ A9QoWJSanlqRlplTgpBm4uAEGc4DNLwGZDFvcUFibnFmOkT+FKOilDjvZ5BmAZBERmkeXC8s\r
+ 7bxiFAd6RZjXBJiEhHiAKQuu+xXQYCagwVOWpIEMLklESEk1MMb+93E6VcEj4P9X6fq1WW81\r
+ pMTkq7jqGlrjrdtWHL/131VZWiPBx2VLlOE60WKPE1Vbt8r8u/jt0yM2n2lBO26U9ApPFHJe\r
+ 3Oah7Pn+g3q2xG/7rss+n/afPXqoeuu9qNXHpXn4JZd2VbNpxD7O/W+//OzeSA/RA0HPJ4VN\r
+ Y5R/FHHR+9UuLSWW4oxEQy3mouJEAHxS9rkWAwAA\r
+Cc: notmuch@notmuchmail.org\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: Wed, 23 Oct 2013 15:44:17 -0000\r
+\r
+Quoth Mark Walters on Oct 23 at 10:56 am:\r
+> \r
+> Hi\r
+> \r
+> On Wed, 23 Oct 2013, Austin Clements <amdragon@MIT.EDU> wrote:\r
+> > Quoth Mark Walters on Oct 22 at 10:43 pm:\r
+> >> This looks good to me +1. It makes the code clearer and nicer to read as\r
+> >> well as giving a better user experience, and it is makes fixing the long\r
+> >> standing tagging races simpler.\r
+> >> \r
+> >> I have a couple of docstring comments:\r
+> >> \r
+> >> In patch 2 perhaps notmuch-tag-completions could have a docstring.\r
+> >\r
+> > Added. I noticed that I had failed to update the call from\r
+> > `notmuch-select-tag-with-completion', so I fixed that, too. I don't\r
+> > understand why we take lists of search terms in random places and\r
+> > never use more than one element, but I suppose this series doesn't\r
+> > make that any worse.\r
+> \r
+> As far as I can see, at the end of the series, notmuch-tag-completions\r
+> is only called with no argument: i.e., it's always just finding the list\r
+> of all tags. This is because notmuch-select-tag-with-completion is only\r
+> called once from "notmuch-search-filter-by-tag" with no search-terms\r
+> argument. So it might be nice to just remove the search-terms\r
+> completely. (The only downside is we might break user lisp.)\r
+\r
+That's true. Though it doesn't significantly complicate the code and\r
+it's hard to say if we may need this for something else in the future,\r
+so I'd just as soon leave it until we have a more compelling reason to\r
+remove it (e.g., if we add tag list caching or something).\r
+\r
+> Best wishes\r
+> \r
+> Mark\r
+> \r
+> \r
+> >> In Patch 4 I think the docstring for notmuch-search-tag is outdated: it\r
+> >> is "Change tags for the currently selected thread or region." but \r
+> >> beg and end can now be specified by the caller.\r
+> >\r
+> > I've left the first sentence as it is, since it's good interactive\r
+> > documentation and a typical way to describe functions even if they\r
+> > take a region as arguments (see, for example, `kill-region'). But\r
+> > I've elaborated the rest of the docstring to be clearer about this.\r
+> >\r
+> >> and one actual comment:\r
+> >> \r
+> >> in patch 3 (for show) delete-dups is called before the list is passed to\r
+> >> notmuch-read-tag-changes whereas it is not for search or pick.\r
+> >> Obviously this is not actually a problem but it might be worth being\r
+> >> consistent.\r
+> >\r
+> > Ah, whoops. I'd done this before I decided to handle duplicates in\r
+> > `notmuch-read-tag-changes'. Since it's redundant, I've removed it.\r
+> >\r
+> >> But that was all I found. All tests pass and everything I try behaves\r
+> >> exactly as expected.\r
+> >> \r
+> >> Best wishes\r
+> >> \r
+> >> Mark\r
+> >> \r
+> >> \r
+> >> On Tue, 22 Oct 2013, Austin Clements <amdragon@MIT.EDU> wrote:\r
+> >> > This series improves tag change completion in various ways for\r
+> >> > commands like +, -, and *.\r
+> >> >\r
+> >> > From a user perspective, this provides command-specific prompts like\r
+> >> > "Tag message" and "Tag all" instead of the generic "Tag" prompt, and\r
+> >> > bases tag removal completions on the tags that are in the buffer,\r
+> >> > rather than the current tags in the database, providing a more\r
+> >> > predicable experience.\r
+> >> >\r
+> >> > From an implementation perspective, this new tag removal completion\r
+> >> > behavior improves efficiency and eliminates a road block to fixing the\r
+> >> > tagging race bug (which otherwise results in massive queries just to\r
+> >> > compute removal completions). The new code is also more "Elispy" and\r
+> >> > predictable because all tag change prompting now occurs at the\r
+> >> > interactive entry points, rather than buried under several layers of\r
+> >> > non-interactive calls.\r
+> >> >\r
+> >> > This is a spiritual successor to\r
+> >> > id:1354263691-19715-1-git-send-email-markwalters1009@gmail.com, though\r
+> >> > it takes a very different approach. This is also a prerequisite to\r
+> >> > the tag race fix in\r
+> >> > id:1381185201-25197-1-git-send-email-amdragon@mit.edu and I plan to\r
+> >> > send an updated version of that series when this one is accepted.\r
+> >> >\r
+> >> > Patches 1, 5, and 6 could be pushed on their own. They fix bugs or\r
+> >> > sort of bugs that get in the way of the rest of the series.\r