1 Return-Path: <dmitry.kurochkin@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 A0529429E44
\r
6 for <notmuch@notmuchmail.org>; Wed, 25 May 2011 15:10:17 -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 TIrE6bjNebvQ for <notmuch@notmuchmail.org>;
\r
17 Wed, 25 May 2011 15:10:16 -0700 (PDT)
\r
18 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com
\r
19 [209.85.161.53]) (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 C2C60429E3E
\r
22 for <notmuch@notmuchmail.org>; Wed, 25 May 2011 15:10:13 -0700 (PDT)
\r
23 Received: by mail-fx0-f53.google.com with SMTP id 8so217139fxm.26
\r
24 for <notmuch@notmuchmail.org>; Wed, 25 May 2011 15:10:13 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
26 h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer
\r
27 :in-reply-to:references;
\r
28 bh=kVtWvPNv7PCYxGpsW4z4gcFJpz8dGK0w5i4tHNcs9nE=;
\r
29 b=idTyhXMThE36UZAQMmQewc8FdSLpfAxEwbgnAIMjI7USYhDRwiPEF7v7GzGbuVQw9a
\r
30 5eivXAlQmlUJz6hvHQMPZ/sjR5eoUGfMWS2Si0HFwxRZ4qifO/3e7PgQjpVyYQZrYnYQ
\r
31 h/2Ozk7mc4xJtCFKgtyTnHxjxyExBSb3UqImY=
\r
32 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
\r
33 h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;
\r
34 b=iiv30eUWjtdgtaijUGH8tZN6lxBxl7OF9Ncmmki0pdsPVs6629ao7sqiJHKLXNV1Rt
\r
35 neNsjFHnvR2oYeL3vrScxBsA9Z7Rn6TXQivBf6i9ksOKGWnZTDoUoM9gdAl1557EuOO0
\r
36 C8KRsJ1GRjoB0uv+AYghCclsp/So2FOeXpkjQ=
\r
37 Received: by 10.223.59.146 with SMTP id l18mr121018fah.58.1306361413474;
\r
38 Wed, 25 May 2011 15:10:13 -0700 (PDT)
\r
39 Received: from localhost ([91.144.186.21])
\r
40 by mx.google.com with ESMTPS id m26sm31645fab.34.2011.05.25.15.10.12
\r
41 (version=TLSv1/SSLv3 cipher=OTHER);
\r
42 Wed, 25 May 2011 15:10:12 -0700 (PDT)
\r
43 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
44 To: notmuch@notmuchmail.org
\r
45 Subject: [PATCH 2/5] Set message invisibility spec properties before inserting
\r
47 Date: Thu, 26 May 2011 02:10:13 +0400
\r
48 Message-Id: <1306361416-5019-3-git-send-email-dmitry.kurochkin@gmail.com>
\r
49 X-Mailer: git-send-email 1.7.5.1
\r
50 In-Reply-To: <1306361416-5019-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
51 References: <1306361416-5019-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
52 X-BeenThere: notmuch@notmuchmail.org
\r
53 X-Mailman-Version: 2.1.13
\r
55 List-Id: "Use and development of the notmuch mail system."
\r
56 <notmuch.notmuchmail.org>
\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
60 List-Post: <mailto:notmuch@notmuchmail.org>
\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
64 X-List-Received-Date: Wed, 25 May 2011 22:10:18 -0000
\r
66 This would allow body-inserting code (in particular, wash
\r
67 button-inserting code) to use message invisibility specs.
\r
69 emacs/notmuch-show.el | 6 +++---
\r
70 1 files changed, 3 insertions(+), 3 deletions(-)
\r
72 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
73 index 786debf..34c0b79 100644
\r
74 --- a/emacs/notmuch-show.el
\r
75 +++ b/emacs/notmuch-show.el
\r
76 @@ -693,6 +693,9 @@ current buffer, if possible."
\r
78 (setq content-start (point-marker))
\r
80 + (plist-put msg :headers-invis-spec headers-invis-spec)
\r
81 + (plist-put msg :message-invis-spec message-invis-spec)
\r
83 ;; Set `headers-start' to point after the 'Subject:' header to be
\r
84 ;; compatible with the existing implementation. This just sets it
\r
85 ;; to after the first header.
\r
86 @@ -730,10 +733,7 @@ current buffer, if possible."
\r
88 (put-text-property message-start message-end :notmuch-message-extent (cons message-start message-end))
\r
90 - (plist-put msg :headers-invis-spec headers-invis-spec)
\r
91 (overlay-put (make-overlay headers-start headers-end) 'invisible headers-invis-spec)
\r
93 - (plist-put msg :message-invis-spec message-invis-spec)
\r
94 (overlay-put (make-overlay body-start body-end) 'invisible message-invis-spec)
\r
96 ;; Save the properties for this message. Currently this saves the
\r