1 Return-Path: <fgeller@gmail.com>
\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 E84DC429E3A
\r
6 for <notmuch@notmuchmail.org>; Mon, 18 Jul 2011 15:29:24 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id C7zdTuubi8pA for <notmuch@notmuchmail.org>;
\r
17 Mon, 18 Jul 2011 15:29:23 -0700 (PDT)
\r
18 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com
\r
19 [209.85.161.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 2DD11429E31
\r
22 for <notmuch@notmuchmail.org>; Mon, 18 Jul 2011 15:29:19 -0700 (PDT)
\r
23 Received: by mail-fx0-f46.google.com with SMTP id 19so7015353fxh.19
\r
24 for <notmuch@notmuchmail.org>; Mon, 18 Jul 2011 15:29:18 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
26 h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;
\r
27 bh=Y+5nlOl15aDsBpanxt8Q4Iuj07ALOAnua/EeQUKyfuA=;
\r
28 b=k2Q8kyiN2mlfw7iBn7kogpzfHHq/4+IiIonjcJKC955g4ElAQxFkEFXsB4i0TPPVWh
\r
29 SyJ5cpq/g21JZ2GQJNnxUsKtKDJmvy5GsebMSnM+UTG5uDmciBkF9W52eXGCNBmxdfuC
\r
30 T1uNMWd6Tkzh7MgBd0wP0rzcDR0pFjnO+ke60=
\r
31 Received: by 10.223.127.195 with SMTP id h3mr10753431fas.135.1311028158857;
\r
32 Mon, 18 Jul 2011 15:29:18 -0700 (PDT)
\r
33 Received: from localhorst.example.com (brln-4d0cb676.pool.mediaWays.net
\r
35 by mx.google.com with ESMTPS id h20sm14243fai.44.2011.07.18.15.29.17
\r
36 (version=TLSv1/SSLv3 cipher=OTHER);
\r
37 Mon, 18 Jul 2011 15:29:18 -0700 (PDT)
\r
38 Received: by localhorst.example.com (Postfix, from userid 501)
\r
39 id E1F174720604; Tue, 19 Jul 2011 00:29:16 +0200 (CEST)
\r
40 From: Felix Geller <fgeller@gmail.com>
\r
41 To: notmuch@notmuchmail.org
\r
42 Subject: [PATCH 2/2] Emacs: Add variable to toggle thread indentation to
\r
44 Date: Tue, 19 Jul 2011 00:28:39 +0200
\r
45 Message-Id: <1311028119-50637-3-git-send-email-fgeller@gmail.com>
\r
46 X-Mailer: git-send-email 1.7.6
\r
47 In-Reply-To: <1311028119-50637-1-git-send-email-fgeller@gmail.com>
\r
48 References: <87vcuz2yga.fsf@servo.factory.finestructure.net>
\r
49 <1311028119-50637-1-git-send-email-fgeller@gmail.com>
\r
50 X-BeenThere: notmuch@notmuchmail.org
\r
51 X-Mailman-Version: 2.1.13
\r
53 List-Id: "Use and development of the notmuch mail system."
\r
54 <notmuch.notmuchmail.org>
\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
58 List-Post: <mailto:notmuch@notmuchmail.org>
\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
61 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
62 X-List-Received-Date: Mon, 18 Jul 2011 22:29:25 -0000
\r
64 Add customizable variable notmuch-show-indent-messages-in-thread
\r
65 to toggle indentation of messages in a thread in a notmuch-show
\r
68 emacs/notmuch-show.el | 13 ++++++++++---
\r
69 1 files changed, 10 insertions(+), 3 deletions(-)
\r
71 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
72 index f96743b..48df4c5 100644
\r
73 --- a/emacs/notmuch-show.el
\r
74 +++ b/emacs/notmuch-show.el
\r
75 @@ -90,6 +90,11 @@ any given message."
\r
79 +(defcustom notmuch-show-indent-messages-in-thread t
\r
80 + "Should messages be indented according to their depth in a thread?"
\r
84 (defcustom notmuch-show-indent-multipart nil
\r
85 "Should the sub-parts of a multipart/* part be indented?"
\r
86 ;; dme: Not sure which is a good default.
\r
87 @@ -237,8 +242,9 @@ unchanged ADDRESS if parsing fails."
\r
88 "Insert a notmuch style headerline based on HEADERS for a
\r
89 message at DEPTH in the current thread."
\r
90 (let ((start (point)))
\r
91 - (insert (notmuch-show-spaces-n depth)
\r
92 - (notmuch-show-clean-address (plist-get headers :From))
\r
93 + (when notmuch-show-indent-messages-in-thread
\r
94 + (insert (notmuch-show-spaces-n depth)))
\r
95 + (insert (notmuch-show-clean-address (plist-get headers :From))
\r
99 @@ -733,7 +739,8 @@ current buffer, if possible."
\r
100 (setq content-end (point-marker))
\r
102 ;; Indent according to the depth in the thread.
\r
103 - (indent-rigidly content-start content-end depth)
\r
104 + (when notmuch-show-indent-messages-in-thread
\r
105 + (indent-rigidly content-start content-end depth))
\r
107 (setq message-end (point-max-marker))
\r