1 Return-Path: <dme@dme.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id C7D5F4196F2
\r
6 for <notmuch@notmuchmail.org>; Fri, 23 Apr 2010 04:54:26 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5
\r
12 tests=[BAYES_00=-1.9] autolearn=ham
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id xkse3Qud2RbV for <notmuch@notmuchmail.org>;
\r
16 Fri, 23 Apr 2010 04:54:26 -0700 (PDT)
\r
17 Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com
\r
19 by olra.theworths.org (Postfix) with ESMTP id F0724431FC1
\r
20 for <notmuch@notmuchmail.org>; Fri, 23 Apr 2010 04:54:25 -0700 (PDT)
\r
21 Received: by wyf23 with SMTP id 23so1405988wyf.26
\r
22 for <notmuch@notmuchmail.org>; Fri, 23 Apr 2010 04:54:25 -0700 (PDT)
\r
23 Received: by 10.216.158.12 with SMTP id p12mr2874809wek.152.1272023664676;
\r
24 Fri, 23 Apr 2010 04:54:24 -0700 (PDT)
\r
25 Received: from ut.hh.sledj.net (gmp-ea-fw-1.sun.com [192.18.1.36])
\r
26 by mx.google.com with ESMTPS id r29sm92802wbv.9.2010.04.23.04.54.23
\r
27 (version=TLSv1/SSLv3 cipher=RC4-MD5);
\r
28 Fri, 23 Apr 2010 04:54:23 -0700 (PDT)
\r
29 Received: by ut.hh.sledj.net (Postfix, from userid 1000)
\r
30 id CF1F2594135; Fri, 23 Apr 2010 12:54:22 +0100 (BST)
\r
31 From: David Edmondson <dme@dme.org>
\r
32 To: notmuch@notmuchmail.org
\r
33 Subject: [PATCH] emacs: Allow headers to be shown by default in show mode
\r
34 Date: Fri, 23 Apr 2010 12:54:21 +0100
\r
35 Message-Id: <1272023661-14038-1-git-send-email-dme@dme.org>
\r
36 X-Mailer: git-send-email 1.7.0
\r
37 X-BeenThere: notmuch@notmuchmail.org
\r
38 X-Mailman-Version: 2.1.13
\r
40 List-Id: "Use and development of the notmuch mail system."
\r
41 <notmuch.notmuchmail.org>
\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
43 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
45 List-Post: <mailto:notmuch@notmuchmail.org>
\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
49 X-List-Received-Date: Fri, 23 Apr 2010 11:54:26 -0000
\r
51 Add `notmuch-show-headers-visible' which, when set `t', causes headers
\r
52 to be shown by default.
\r
54 emacs/notmuch-show.el | 9 +++++++--
\r
55 1 files changed, 7 insertions(+), 2 deletions(-)
\r
57 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
58 index cd859f0..3ea07c8 100644
\r
59 --- a/emacs/notmuch-show.el
\r
60 +++ b/emacs/notmuch-show.el
\r
62 that if this order is changed the headers shown when a message is
\r
63 collapsed will change.")
\r
65 +(defcustom notmuch-show-headers-visible nil
\r
66 + "Should the headers be visible by default?"
\r
70 (defvar notmuch-show-markup-headers-hook '(notmuch-show-colour-headers)
\r
71 "A list of functions called to decorate the headers listed in
\r
72 `notmuch-show-headers'.")
\r
73 @@ -433,8 +438,8 @@ current buffer, if possible."
\r
75 (notmuch-show-set-message-properties msg)
\r
77 - ;; Headers are hidden by default.
\r
78 - (notmuch-show-headers-visible msg nil)
\r
79 + ;; Set header visibility.
\r
80 + (notmuch-show-headers-visible msg notmuch-show-headers-visible)
\r
82 ;; Message visibility depends on whether it matched the search
\r