Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / 77 / 64d68c26499c213edc5b1de83bc6963fe47d80
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 ABCBD409DF8\r
6         for <notmuch@notmuchmail.org>; Wed, 19 May 2010 01:53:55 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] 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 3jusqt8LtSHl for <notmuch@notmuchmail.org>;\r
16         Wed, 19 May 2010 01:53:43 -0700 (PDT)\r
17 Received: from mail-ew0-f213.google.com (mail-ew0-f213.google.com\r
18         [209.85.219.213])\r
19         by olra.theworths.org (Postfix) with ESMTP id 6C0C94196F3\r
20         for <notmuch@notmuchmail.org>; Wed, 19 May 2010 01:53:43 -0700 (PDT)\r
21 Received: by ewy5 with SMTP id 5so1814153ewy.0\r
22         for <notmuch@notmuchmail.org>; Wed, 19 May 2010 01:53:41 -0700 (PDT)\r
23 Received: by 10.213.54.205 with SMTP id r13mr3663997ebg.79.1274259221887;\r
24         Wed, 19 May 2010 01:53:41 -0700 (PDT)\r
25 Received: from ut.hh.sledj.net (host83-217-165-81.dsl.vispa.com\r
26         [83.217.165.81])\r
27         by mx.google.com with ESMTPS id 13sm3502755ewy.13.2010.05.19.01.53.38\r
28         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
29         Wed, 19 May 2010 01:53:39 -0700 (PDT)\r
30 Received: by ut.hh.sledj.net (Postfix, from userid 1000)\r
31         id A976659409B; Wed, 19 May 2010 08:03:45 +0100 (BST)\r
32 From: David Edmondson <dme@dme.org>\r
33 To: notmuch@notmuchmail.org\r
34 Subject: [PATCH 13/13] emacs: Allow the display of absolute dates in the\r
35         header line.\r
36 Date: Wed, 19 May 2010 08:03:40 +0100\r
37 Message-Id: <1274252620-1249-14-git-send-email-dme@dme.org>\r
38 X-Mailer: git-send-email 1.7.1\r
39 In-Reply-To: <1274252620-1249-1-git-send-email-dme@dme.org>\r
40 References: <1274252620-1249-1-git-send-email-dme@dme.org>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Wed, 19 May 2010 08:53:55 -0000\r
54 \r
55 Add `notmuch-show-relative-dates' to control whether the summary line\r
56 in `notmuch-show' mode displays relative dates (e.g. '26 mins ago') or\r
57 the full date string from the message. Default to `t' for\r
58 compatibility with the previous behaviour.\r
59 ---\r
60  emacs/notmuch-show.el |    9 ++++++++-\r
61  1 files changed, 8 insertions(+), 1 deletions(-)\r
62 \r
63 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
64 index 7601857..cbc3012 100644\r
65 --- a/emacs/notmuch-show.el\r
66 +++ b/emacs/notmuch-show.el\r
67 @@ -58,6 +58,11 @@ any given message."\r
68    :group 'notmuch\r
69    :type 'boolean)\r
70  \r
71 +(defcustom notmuch-show-relative-dates t\r
72 +  "Display relative dates in the message summary line."\r
73 +  :group 'notmuch\r
74 +  :type 'boolean)\r
75 +\r
76  (defvar notmuch-show-markup-headers-hook '(notmuch-show-colour-headers)\r
77    "A list of functions called to decorate the headers listed in\r
78  `notmuch-message-headers'.")\r
79 @@ -407,7 +412,9 @@ current buffer, if possible."\r
80      (setq message-start (point-marker))\r
81  \r
82      (notmuch-show-insert-headerline headers\r
83 -                                   (or (plist-get msg :date_relative)\r
84 +                                   (or (if notmuch-show-relative-dates\r
85 +                                           (plist-get msg :date_relative)\r
86 +                                         nil)\r
87                                         (plist-get headers :Date))\r
88                                     (plist-get msg :tags) depth)\r
89  \r
90 -- \r
91 1.7.1\r
92 \r