Re: RFC notmuch-pick: an emacs threaded message view with split-pane
authorDaniel Schoepe <daniel@schoepe.org>
Sun, 12 Feb 2012 14:31:46 +0000 (15:31 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:44:22 +0000 (09:44 -0800)
54/1a718e5745029c94d71df84c76a685826f1f3c [new file with mode: 0644]

diff --git a/54/1a718e5745029c94d71df84c76a685826f1f3c b/54/1a718e5745029c94d71df84c76a685826f1f3c
new file mode 100644 (file)
index 0000000..e136c67
--- /dev/null
@@ -0,0 +1,149 @@
+Return-Path: <daniel@schoepe.org>\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 DE9B6431FB6\r
+       for <notmuch@notmuchmail.org>; Sun, 12 Feb 2012 06:32:00 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.8\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.8 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\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 94fqzEFsTMEl for <notmuch@notmuchmail.org>;\r
+       Sun, 12 Feb 2012 06:31:59 -0800 (PST)\r
+Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com\r
+       [209.85.215.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id A7A38431FAE\r
+       for <notmuch@notmuchmail.org>; Sun, 12 Feb 2012 06:31:59 -0800 (PST)\r
+Received: by eaak14 with SMTP id k14so2126823eaa.26\r
+       for <notmuch@notmuchmail.org>; Sun, 12 Feb 2012 06:31:57 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schoepe.org; s=google;\r
+       h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
+       :mime-version:content-type;\r
+       bh=zrmFGdaiEosfW50ta3fH19vEaOGxA0p8SiaAowGgkEQ=;\r
+       b=YFnG8wWQKhH/0dwSHoJsXy+zRPmV9xCI4vjMGKGhEpWbLAOPjNTYLAmei2g/WkW/kd\r
+       ZRx4DgtUeEYg6O6o5hkU3c+CIwUx4iso8PSViUksrDhlkSROt/TgeDhbLyC5GvwhkNYg\r
+       cGWY0RN3bN2LOb3DkgwS9JKWuK7iBV5assxyo=\r
+Received: by 10.213.19.130 with SMTP id a2mr2216711ebb.148.1329057116835;\r
+       Sun, 12 Feb 2012 06:31:56 -0800 (PST)\r
+Received: from localhost (dslb-088-069-141-163.pools.arcor-ip.net.\r
+       [88.69.141.163])\r
+       by mx.google.com with ESMTPS id o49sm49321230eei.0.2012.02.12.06.31.55\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Sun, 12 Feb 2012 06:31:56 -0800 (PST)\r
+From: Daniel Schoepe <daniel@schoepe.org>\r
+To: <notmuch@notmuchmail.org>\r
+Subject: Re: RFC notmuch-pick: an emacs threaded message view with split-pane\r
+In-Reply-To: <87d39k1gvi.fsf@qmul.ac.uk>\r
+References: <87d39k1gvi.fsf@qmul.ac.uk> <87ehu0cf16.fsf@schoepe.localhost>\r
+User-Agent: Notmuch/0.11.1+180~g5d5a693 (http://notmuchmail.org)\r
+       Emacs/24.0.93.1 (x86_64-pc-linux-gnu)\r
+Date: Sun, 12 Feb 2012 15:31:46 +0100\r
+Message-ID: <878vk8cect.fsf@schoepe.localhost>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+X-Gm-Message-State:\r
+ ALoCoQnMIN2MzK65/myX2KHPNVkSuMwBwWCoZtfHTXOUNdo7t/Jb9o0LZfSRGD6y3IyKZFPgyL3F\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: Sun, 12 Feb 2012 14:32:01 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Forgot to reply to the list....\r
+\r
+On Sun, 12 Feb 2012 10:32:48 +0000, Mark Walters <markwalters1009@gmail.com=\r
+> wrote:\r
+> Questions/thoughts and known bugs:\r
+>=20\r
+> Do people like the rough idea?=20\r
+\r
+I think it's a great idea. What I find especially nice about this, is\r
+that it works for both, just showing the structure of one thread and the\r
+traditional all-messages-matching-a-search view. I've actually rebound\r
+<return> in notmuch-search to this and it works great so far:\r
+\r
+(defun notmuch-search-pick ()\r
+  "Show the selected thread with notmuch-pick"\r
+  (interactive)\r
+  (notmuch-pick (notmuch-search-find-thread-id)\r
+               notmuch-search-query-string\r
+               (notmuch-prettify-subject (notmuch-search-find-subject)))\r
+  (unless (notmuch-pick-get-match)\r
+    (notmuch-pick-next-message))\r
+  (notmuch-pick-show-message))\r
+\r
+> At the moment there is some shared code with notmuch-show.el. This could\r
+> be factored out: however, while this pick mode is WIP I don't think it\r
+> is worth it. I have tried to keep the impact on the current parts of the\r
+> emacs code and the command line interface fairly small.\r
+>=20\r
+> I will send the patches as 3 bits: one is the command-line support\r
+> needed (i.e. changes to notmuch-show.c) one is the changes to the other\r
+> emacs files and the final one is the notmuch-pick.el file itself.\r
+>=20\r
+> There are some things that need fixing: some of which are marked in the\r
+> code. For example the highlighting (lowlighting?) of non-matching\r
+> messages is hard-wired gray and should be a defcustom. The tags are not\r
+> in a nice tag face and do not update automatically. There should be an\r
+> option not to use the split-screen mode.\r
+\r
+Yeah, the hardcoded "black" is also pretty annoying if one uses a\r
+black background. :)\r
+I'll send a patch fixing that later.\r
+\r
+> Anyway I am already finding it useful: show a long thread, press 'Z' to\r
+> see the thread structure nicely and then ...\r
+\r
+Yeah, that's basically my main use case, as I don't like dozens of\r
+messages of the same thread cluttering up all the search results\r
+(e.g. for tag:notmuch).\r
+\r
+Thanks for the great work David and Mark, I've really been looking\r
+forward to something that makes my half-baked attempt at thread\r
+outlining [1] obsolete. :)\r
+\r
+[1] id:"1324082126-25404-1-git-send-email-daniel@schoepe.org"\r
+\r
+Cheers,\r
+Daniel\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iQIcBAEBAgAGBQJPN81SAAoJEIaTAtce+Z+JrhwQAI1mwOtkSWFfS3lLM+kSqnBm\r
+C8rT7NVBrDYoKMK4v1xA0AV2nGQl+Qw+fkQlmec4FwmaajJHMSCO2RMXBzIE8kwu\r
+un1LPPeawM051yHq0uquY9CSrBMII3dOxa4qwR6noa+Syd8MBP6bgHFlDCAlpSg4\r
+ZPyndlJ2vGHAj/cLdAiq3zbO15s8/3F7fYkRCOiP90/fK1aPfco8tTnZy8DcpZw7\r
+/5mtqeG3BoeJKAoLaIkXcG+u/wPW9RYGst/Th1cbntnLNyfC2lZeVNkh37jxAYMa\r
+lT2dOc3X0UXaqzeowFY0+QJUwVLeItU3XvYluLvtkHc8iVn1JIYBBynEgJNTM0An\r
+pITawmpaQPjCAUF4kYmvw1VvSaHcZwsUzNHtGXUqPPvGnJa9Fgqhx11UpmuMs0Q7\r
+0971bnLQ6Drh24/I0NNHqC4ZZlY3MJuvFObe95yGkBQ1Pns2BWWDFYdE/VPUimFj\r
+OugITtDIU1QtDuVja1xofh0IwEqnvOmMsr7gbp7FBRY0y+4QLk1bsz2qwh1UWovb\r
+TrfbOY2nQlmMFEx/VoBTx+xbl8rbUrDPAp/QJ3bSnADEAUqgzqOHn+ncS54Wqr7d\r
+9k4VXzYy7ufcMg83hxbb81IXTUgWutJ7Vw/ZuqQrCnDxjuzx3JkebcK1fXcgKCFq\r
+6VnYbl/iTi3trCgdGeu5\r
+=InYV\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r