[PATCH 0/5] emacs: make tab completion use visible tags
authorMark Walters <markwalters1009@gmail.com>
Fri, 30 Nov 2012 08:21:26 +0000 (08:21 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:51:11 +0000 (09:51 -0800)
14/f58e93dcea1c99e1ca2ea2389f57bccdc19725 [new file with mode: 0644]

diff --git a/14/f58e93dcea1c99e1ca2ea2389f57bccdc19725 b/14/f58e93dcea1c99e1ca2ea2389f57bccdc19725
new file mode 100644 (file)
index 0000000..a6893c4
--- /dev/null
@@ -0,0 +1,102 @@
+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 96112431FBC\r
+       for <notmuch@notmuchmail.org>; Fri, 30 Nov 2012 00:23:18 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 2.7\r
+X-Spam-Level: **\r
+X-Spam-Status: No, score=2.7 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
+       FREEMAIL_REPLY=2.499, 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 v2Uq5cT9PeQY for <notmuch@notmuchmail.org>;\r
+       Fri, 30 Nov 2012 00:23:18 -0800 (PST)\r
+Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
+       [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id F4038431FAF\r
+       for <notmuch@notmuchmail.org>; Fri, 30 Nov 2012 00:23:17 -0800 (PST)\r
+Received: by mail-we0-f181.google.com with SMTP id t11so77850wey.26\r
+       for <notmuch@notmuchmail.org>; Fri, 30 Nov 2012 00:23:15 -0800 (PST)\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:x-mailer;\r
+       bh=71VN7hjCim4P1dYPNDWY6YWGiRiSOlQc1A1jfQSjZrE=;\r
+       b=zysjz7DxcT5vxHOB3DqFSCD0rR12eFgQBs6W9oArbNBDDy3jzoGnc/hdyfyItDbfbv\r
+       yVGNwmVGRJTsZ6/ANU4qg70LyJyqJdfCuix4ovKeo+nwIHCtPsV8lgnwoRF++UJxh5AR\r
+       ol3ZkFP2d/3KHmwS3pwF5pqndm0v8zDSc8QCEndz8hiV2kRr95ljdSCvjvM2Md8L/hsy\r
+       lWE4eBiSvj62uuuxTtjdpSULMaFRTVyjUhL0Eg6ObLj1K4DT4H34aJZArB9xfbX0mAf1\r
+       EPJmvB2T/HCtQuAh1vmVHR+6EmB432WsoW5f4wquwCH98FQmF3RIgmLkV1PZ7RUp8zl6\r
+       TtWA==\r
+Received: by 10.216.28.8 with SMTP id f8mr151196wea.162.1354263795462;\r
+       Fri, 30 Nov 2012 00:23:15 -0800 (PST)\r
+Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
+       by mx.google.com with ESMTPS id d9sm14727234wiw.0.2012.11.30.00.23.13\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Fri, 30 Nov 2012 00:23:14 -0800 (PST)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/5] emacs: make tab completion use visible tags\r
+Date: Fri, 30 Nov 2012 08:21:26 +0000\r
+Message-Id: <1354263691-19715-1-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\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: Fri, 30 Nov 2012 08:23:18 -0000\r
+\r
+Currently when doing tab completion emacs queries the database and\r
+completes to any tag when adding but only completes to tags that are\r
+present in the message/thread/region when removing. However, since it\r
+queries the database it does this based on the current tags in the\r
+database not the current tags shown in the search view.\r
+\r
+This means that tag completion is not predictable and this seems\r
+undesirable. This series modifies it so that the tag caller can\r
+specify the possible completions (typically based on the tags that it\r
+believes are present). This means that the user know that -un<tab>\r
+will complete to -unread if he can see unread in the messages\r
+tags. (unread is a common stale tag as when you quit from a show\r
+buffer back to the search buffer the unread has often been removed).\r
+\r
+One side effect is that it solves the `large search' problem when\r
+doing tag completion on the very large queries that will be generated\r
+by the move to tagging by message-id rather than thread-id.\r
+id:1353763256-32336-1-git-send-email-markwalters1009@gmail.com\r
+(The tagging can use the batch tagging when that goes in).\r
+\r
+I think this makes the user interface more predictable/consistent but\r
+whether it is worth the change is less clear.\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+markwalters1009 (5):\r
+  emacs: move tag.el utility functions from lists to strings\r
+  emacs: allow the tag caller to specify possible completions.\r
+  emacs: notmuch.el remove duplicate tags from get-tags-region\r
+  emacs: make search tag completion use the tags it believes are there\r
+  emacs: show tag completion\r
+\r
+ emacs/notmuch-show.el |   32 +++++++++++++++++++++++++-------\r
+ emacs/notmuch-tag.el  |   38 +++++++++++++++++++++++++++-----------\r
+ emacs/notmuch.el      |   10 ++++++----\r
+ 3 files changed, 58 insertions(+), 22 deletions(-)\r
+\r
+-- \r
+1.7.9.1\r
+\r