--- /dev/null
+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 161FE431FBF\r
+ for <notmuch@notmuchmail.org>; Sat, 6 Sep 2014 09:22:22 -0700 (PDT)\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 BHcd5Jq7qgPo for <notmuch@notmuchmail.org>;\r
+ Sat, 6 Sep 2014 09:22:16 -0700 (PDT)\r
+Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com\r
+ [74.125.82.41]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client\r
+ certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
+ 59267431FB6 for <notmuch@notmuchmail.org>; Sat, 6 Sep 2014 09:22:16 -0700\r
+ (PDT)\r
+Received: by mail-wg0-f41.google.com with SMTP id l18so13012471wgh.12\r
+ for <notmuch@notmuchmail.org>; Sat, 06 Sep 2014 09:22:15 -0700 (PDT)\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;\r
+ bh=IJHJGm5niuuhrybROmq3x4oe7EMVPf1Br/EgZQtbZng=;\r
+ b=VuaF8uiGaUI53hqjJWIH+qenlnP0C2E21z+Cm6m7poAlaw+RtDypKMP5gWVn1tF8qv\r
+ +HlgqXUcocnWiY1dx+7VZOANcYXDsWkQ/TNhHfO/Le/s/XjdiEUiRhFkwhOi07QEgB6L\r
+ hwL1aK4TMxpIbfmdVjnD0rzZMLnqH1550dIO2hRgUs/5ZTqw0o/tmHtLLeWL7nXoZJU1\r
+ j06QPRPV16LFocGBl3gyHJNnXvIGmGK7gQzFiAWscMATxHEd/fN8SK0BMUpEzhzqTZHS\r
+ Olhsr8GdHXWlnh9At/bKtIMCgA/zC2CrMbnU3HjvBpuiUJYakn6buDU+z44a5eX0Xt+j\r
+ /LQw==\r
+X-Received: by 10.180.98.131 with SMTP id ei3mr10915345wib.56.1410020534945;\r
+ Sat, 06 Sep 2014 09:22:14 -0700 (PDT)\r
+Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162])\r
+ by mx.google.com with ESMTPSA id hm5sm5002129wjb.2.2014.09.06.09.22.13\r
+ for <multiple recipients>\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Sat, 06 Sep 2014 09:22:14 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [Patch v2 0/2] emacs: show: mark messages read if seen in buffer\r
+Date: Sat, 6 Sep 2014 17:22:09 +0100\r
+Message-Id: <1410020531-24419-1-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.10.4\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: Sat, 06 Sep 2014 16:22:22 -0000\r
+\r
+This is v2 of this patch: v1 is at id:1405533339-7666-1-git-send-email-markwalters1009@gmail.com\r
+\r
+The first patch just documents what is required for a mark-read\r
+function. The second patch adds my preferred logic of marking a\r
+message seen if `enough' of it has been visible in the buffer.\r
+\r
+There are two changes from v1. First patch 1 is new. Secondly I have\r
+modified the defcustom for the second patch. It is slightly fiddly as\r
+my function has a parameter the default function does not. The\r
+defcustom in the previous patch worked but it was unable to parse\r
+itself so when you revisited the defcustom it looked like you had\r
+specified the lisp manually rather than having selected one of the two\r
+options.\r
+\r
+The new version fixes this so the defcustom behaves exactly as you would expect.\r
+\r
+I like this version of the mark read function; but it is quite a lot\r
+of code (all unused unless the user selects this option so it is low\r
+risk). If people would prefer not to include it then I can just post\r
+the relevant code to the wiki and people can add it to their .emacs\r
+file if they want this function.\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+\r
+\r
+\r
+Mark Walters (2):\r
+ emacs: show: document the mark unread defcustom function\r
+ emacs: show: mark messages unread if seen in buffer\r
+\r
+ emacs/notmuch-show.el | 82 +++++++++++++++++++++++++++++++++++++++++++++++--\r
+ 1 file changed, 80 insertions(+), 2 deletions(-)\r
+\r
+-- \r
+1.7.10.4\r
+\r