--- /dev/null
+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 C7D5F4196F2\r
+ for <notmuch@notmuchmail.org>; Fri, 23 Apr 2010 04:54:26 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.9\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
+ tests=[BAYES_00=-1.9] autolearn=ham\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 xkse3Qud2RbV for <notmuch@notmuchmail.org>;\r
+ Fri, 23 Apr 2010 04:54:26 -0700 (PDT)\r
+Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com\r
+ [74.125.82.181])\r
+ by olra.theworths.org (Postfix) with ESMTP id F0724431FC1\r
+ for <notmuch@notmuchmail.org>; Fri, 23 Apr 2010 04:54:25 -0700 (PDT)\r
+Received: by wyf23 with SMTP id 23so1405988wyf.26\r
+ for <notmuch@notmuchmail.org>; Fri, 23 Apr 2010 04:54:25 -0700 (PDT)\r
+Received: by 10.216.158.12 with SMTP id p12mr2874809wek.152.1272023664676;\r
+ Fri, 23 Apr 2010 04:54:24 -0700 (PDT)\r
+Received: from ut.hh.sledj.net (gmp-ea-fw-1.sun.com [192.18.1.36])\r
+ by mx.google.com with ESMTPS id r29sm92802wbv.9.2010.04.23.04.54.23\r
+ (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
+ Fri, 23 Apr 2010 04:54:23 -0700 (PDT)\r
+Received: by ut.hh.sledj.net (Postfix, from userid 1000)\r
+ id CF1F2594135; Fri, 23 Apr 2010 12:54:22 +0100 (BST)\r
+From: David Edmondson <dme@dme.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] emacs: Allow headers to be shown by default in show mode\r
+Date: Fri, 23 Apr 2010 12:54:21 +0100\r
+Message-Id: <1272023661-14038-1-git-send-email-dme@dme.org>\r
+X-Mailer: git-send-email 1.7.0\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, 23 Apr 2010 11:54:26 -0000\r
+\r
+Add `notmuch-show-headers-visible' which, when set `t', causes headers\r
+to be shown by default.\r
+---\r
+ emacs/notmuch-show.el | 9 +++++++--\r
+ 1 files changed, 7 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index cd859f0..3ea07c8 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -42,6 +42,11 @@\r
+ that if this order is changed the headers shown when a message is\r
+ collapsed will change.")\r
+ \r
++(defcustom notmuch-show-headers-visible nil\r
++ "Should the headers be visible by default?"\r
++ :group 'notmuch\r
++ :type 'boolean)\r
++\r
+ (defvar notmuch-show-markup-headers-hook '(notmuch-show-colour-headers)\r
+ "A list of functions called to decorate the headers listed in\r
+ `notmuch-show-headers'.")\r
+@@ -433,8 +438,8 @@ current buffer, if possible."\r
+ ;; the content).\r
+ (notmuch-show-set-message-properties msg)\r
+ \r
+- ;; Headers are hidden by default.\r
+- (notmuch-show-headers-visible msg nil)\r
++ ;; Set header visibility.\r
++ (notmuch-show-headers-visible msg notmuch-show-headers-visible)\r
+ \r
+ ;; Message visibility depends on whether it matched the search\r
+ ;; criteria.\r
+-- \r
+1.7.0\r
+\r