Re: [RFC][PATCH v1] emacs: Replace `notmuch-search-result-format' evaluation.
authorDavid Edmondson <dme@dme.org>
Tue, 25 Nov 2014 08:16:22 +0000 (08:16 +0000)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:46:50 +0000 (14:46 -0700)
0f/aa2ba66b807aeebebbaada028f7ee4e3ea3517 [new file with mode: 0644]

diff --git a/0f/aa2ba66b807aeebebbaada028f7ee4e3ea3517 b/0f/aa2ba66b807aeebebbaada028f7ee4e3ea3517
new file mode 100644 (file)
index 0000000..f8db1c9
--- /dev/null
@@ -0,0 +1,107 @@
+Return-Path: <dme@dme.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 A0B77431FC3\r
+       for <notmuch@notmuchmail.org>; Tue, 25 Nov 2014 00:16:32 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.699\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=0.001]\r
+       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 4E5Y+fnycksP for <notmuch@notmuchmail.org>;\r
+       Tue, 25 Nov 2014 00:16:27 -0800 (PST)\r
+Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com\r
+ [74.125.82.42])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ A9F72431FAF   for <notmuch@notmuchmail.org>; Tue, 25 Nov 2014 00:16:27 -0800\r
+ (PST)\r
+Received: by mail-wg0-f42.google.com with SMTP id z12so135328wgg.1\r
+       for <notmuch@notmuchmail.org>; Tue, 25 Nov 2014 00:16:25 -0800 (PST)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:to:subject:in-reply-to:references:user-agent\r
+       :from:date:message-id:mime-version:content-type;\r
+       bh=Tu64Z8XkByWAs1+C3v+3xQ12389ccqPud0klV4hFqVg=;\r
+       b=dSlyTtVgtPmgUhKtM5MhQYhtyaU14O6fUisvUiLmivlrkBV/GTzq6wX2bzV70iZjA0\r
+       KfOPX2tWjMBU9t6+Ziocha7SJHn/4+/kIMWVHx3Wt3uIfW6BJFzEiTzWm0oM6tCWXhtu\r
+       RDjERTNfSg6c4cIRlZnp762xw2mKWlH1RwmWrC/QAScqcgv+feFatTaHERWFP++dXCGv\r
+       roP9z8ttLxf2DaodCYvY/NFPvW5V6Q5zJJDh81o+5d0OkaurJXb1TqbZ0vlqdrjPhPqT\r
+       eMup/yd4fQMFmxy8MrwxR/riMa4n/hAmbXFD+MDt7XvoE0eY7WdQG3tYWjIAQhoEwDM+\r
+       K6Rw==\r
+X-Gm-Message-State:\r
+ ALoCoQnWcVzNKkJrKceX95NhnfBpUSmMzhhFdWLwlxJNkNRPrB/4cFZtOtZJsyUqTQALvNlBxkVd\r
+X-Received: by 10.194.209.180 with SMTP id mn20mr41767491wjc.49.1416903385317;\r
+       Tue, 25 Nov 2014 00:16:25 -0800 (PST)\r
+Received: from disaster-area.hh.sledj.net\r
+       ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
+       by mx.google.com with ESMTPSA id\r
+       lp14sm1721442wic.20.2014.11.25.00.16.24 for <multiple recipients>\r
+       (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+       Tue, 25 Nov 2014 00:16:24 -0800 (PST)\r
+Received: from localhost (30000@localhost [local]);\r
+       by localhost (OpenSMTPD) with ESMTPA id 4a215841;\r
+       Tue, 25 Nov 2014 08:16:22 +0000 (UTC)\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: Re: [RFC][PATCH v1] emacs: Replace `notmuch-search-result-format'\r
+       evaluation.\r
+In-Reply-To: <87ppcbdb7n.fsf@maritornes.cs.unb.ca>\r
+References: <1416825869-28472-1-git-send-email-dme@dme.org>\r
+       <87ppcbdb7n.fsf@maritornes.cs.unb.ca>\r
+User-Agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1\r
+       (x86_64-pc-linux-gnu)\r
+From: David Edmondson <dme@dme.org>\r
+Date: Tue, 25 Nov 2014 08:16:22 +0000\r
+Message-ID: <cunh9xny9t5.fsf@gargravarr.hh.sledj.net>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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: Tue, 25 Nov 2014 08:16:32 -0000\r
+\r
+On Tue, Nov 25 2014, David Bremner wrote:\r
+>> +A symbol corresponding to an attribute of the\r
+>> + thread (e.g. `:date_relative' or `:subject').\r
+>\r
+> It'd be nice for the user to have a pointer here to figure out what\r
+> the possible attributes are.\r
+\r
+I don't believe that we currently document these anywhere. I'll add a\r
+list in the form "this will include such attributes as ...".\r
+\r
+Something that I didn't mention is that this implementation behaves\r
+differently from the current one in two ways:\r
+\r
+- The invisible authors are not available to isearch. That is, the\r
+  current implementation hides the authors that couldn't be shown in the\r
+  available space using invisible text that can be exposed during an\r
+  isearch in the buffer. This isn't done with the new implementation.\r
+\r
+- The truncation of author names is hard - they are just chopped at the\r
+  defined width (minus space for the ellipsis). The current code tries\r
+  to find a nice break point (between authors). That was done to better\r
+  support the the above feature (as isearch won't match text across a\r
+  visible/invisible boundary).\r
+\r
+The first of these is complex to fix. The current implementation relies\r
+on overlays, which in turn require direct access to the buffer where the\r
+text will be rendered. The buffer isn't available to the formatting\r
+function in the new implementation.\r
+\r
+The second could be fixed relatively straightforwardly, but without a\r
+fix for the invisible text, I'm not clear that it's useful (and in fact\r
+may be harmful).\r