Re: [Patch v2 0/3] emacs: allow show to colour based on tags and flags
authorMark Walters <markwalters1009@gmail.com>
Sun, 29 Apr 2012 23:37:22 +0000 (00:37 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:49 +0000 (09:46 -0800)
4f/ceb59612cc582a2ec32d3350b8cba85ede108d [new file with mode: 0644]

diff --git a/4f/ceb59612cc582a2ec32d3350b8cba85ede108d b/4f/ceb59612cc582a2ec32d3350b8cba85ede108d
new file mode 100644 (file)
index 0000000..ebe7383
--- /dev/null
@@ -0,0 +1,141 @@
+Return-Path: <m.walters@qmul.ac.uk>\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 43D34431FAF\r
+       for <notmuch@notmuchmail.org>; Sun, 29 Apr 2012 16:37:13 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.401\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.401 tagged_above=-999 required=5\r
+       tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,\r
+       FREEMAIL_REPLY=2.499, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3]\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 s-ZQa8g7FemK for <notmuch@notmuchmail.org>;\r
+       Sun, 29 Apr 2012 16:37:09 -0700 (PDT)\r
+Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 8B8B4431FAE\r
+       for <notmuch@notmuchmail.org>; Sun, 29 Apr 2012 16:37:09 -0700 (PDT)\r
+Received: from smtp.qmul.ac.uk ([138.37.6.40])\r
+       by mail2.qmul.ac.uk with esmtp (Exim 4.71)\r
+       (envelope-from <m.walters@qmul.ac.uk>)\r
+       id 1SOdfr-0002KO-UB; Mon, 30 Apr 2012 00:37:04 +0100\r
+Received: from 94-192-233-223.zone6.bethere.co.uk ([94.192.233.223]\r
+       helo=localhost)\r
+       by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69)\r
+       (envelope-from <m.walters@qmul.ac.uk>)\r
+       id 1SOdfr-00031c-JA; Mon, 30 Apr 2012 00:37:03 +0100\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: Austin Clements <amdragon@MIT.EDU>, notmuch@notmuchmail.org\r
+Subject: Re: [Patch v2 0/3] emacs: allow show to colour based on tags and\r
+ flags\r
+In-Reply-To: <20120429230220.GO2704@mit.edu>\r
+References: <1335739697-8501-1-git-send-email-markwalters1009@gmail.com>\r
+       <20120429230220.GO2704@mit.edu>\r
+User-Agent: Notmuch/0.12+128~g0f26d91 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Mon, 30 Apr 2012 00:37:22 +0100\r
+Message-ID: <87k40yyurx.fsf@qmul.ac.uk>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Sender-Host-Address: 94.192.233.223\r
+X-QM-SPAM-Info: Sender has good ham record.  :)\r
+X-QM-Body-MD5: 8146f51d46245f742d8722bb154f480f (of first 20000 bytes)\r
+X-SpamAssassin-Score: -1.2\r
+X-SpamAssassin-SpamBar: -\r
+X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
+       determine if it is\r
+       spam. We require at least 5.0 points to mark a message as spam.\r
+       This message scored -1.2 points.\r
+       Summary of the scoring: \r
+       * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\r
+       *      medium trust\r
+       *      [138.37.6.40 listed in list.dnswl.org]\r
+       * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
+       provider *      (markwalters1009[at]gmail.com)\r
+       * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay\r
+       *      domain\r
+       *  1.0 FREEMAIL_REPLY From and body contain different freemails\r
+       *  0.1 AWL AWL: From: address is in the auto white-list\r
+X-QM-Scan-Virus: ClamAV says the message is clean\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, 29 Apr 2012 23:37:13 -0000\r
+\r
+\r
+On Mon, 30 Apr 2012, Austin Clements <amdragon@MIT.EDU> wrote:\r
+> I haven't really looked at this series yet, but I do have a quick\r
+> high-level question.  Why use separate customization variables for the\r
+> colors in search and show mode?  Wouldn't it make more sense to set\r
+> the colors just once and use them in both modes?\r
+\r
+I think that their use is somewhat different since in show mode the\r
+colour can be quite high contrast because mostly you only have a few\r
+header lines (that may depend how much time you spend in\r
+expanded/collapsed views); one example is that in show mode the header\r
+line normally has a background colour (I think even without\r
+customisation) whereas in search mode that would be weird as every line\r
+would have it.\r
+\r
+> BTW, I like how this clearly distinguishes tags and flags.  I wonder\r
+> if we could transition to flags for some information that's current\r
+> shoe-horned into tags but actually represents immutable information\r
+> about a message (attachment, signed, and encrypted or so).\r
+\r
+Yes some of those could make sense: I hadn't thought about them at\r
+all. I think attachment is closer to a genuine tag as I frequently include\r
+tag:attachment in my searched but I would guess that searching for\r
+signed/encrypted is not as common (but I don't use either so could be wrong)\r
+\r
+> My one concern is that there's a common tag called "flagged", so this\r
+> might be overloading terminology.\r
+\r
+I hadn't thought of that: I agree but don't have a good suggestion for\r
+avoiding it. \r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+\r
+>\r
+> Quoth Mark Walters on Apr 29 at 11:48 pm:\r
+>> This is a rebased (but otherwise unchanged) version of\r
+>> id:"1334431301-27303-1-git-send-email-markwalters1009@gmail.com".\r
+>> \r
+>> It's probably too late for 0.13 but in case anyone would like to look\r
+>> at it this version applies cleanly to master so should be easier to\r
+>> test.\r
+>> \r
+>> The first two patches are basically David Edmondson's patch\r
+>> id:"1325006003-27152-1-git-send-email-dme@dme.org".\r
+>> \r
+>> Best wishes\r
+>> \r
+>> Mark\r
+>> \r
+>> \r
+>> Mark Walters (3):\r
+>>   emacs: Move colour line from search to lib\r
+>>   emacs: Add `notmuch-show-line-faces' and apply it.\r
+>>   emacs: allow notmuch-show-line-faces to use flags for colouring\r
+>> \r
+>>  emacs/notmuch-lib.el  |   18 ++++++++++++++++++\r
+>>  emacs/notmuch-show.el |   44 ++++++++++++++++++++++++++++++++++++++++----\r
+>>  emacs/notmuch.el      |   15 +--------------\r
+>>  3 files changed, 59 insertions(+), 18 deletions(-)\r