Re: [PATCH] lib: provide _notmuch_database_log_append
[notmuch-archives.git] / 5f / eb4383d031adb7bd405e934854b245242f511f
1 Return-Path: <damien.cassou@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 C24D7431FAF\r
6         for <notmuch@notmuchmail.org>; Mon, 17 Sep 2012 09:43:35 -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: -0.799\r
10 X-Spam-Level: \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 FKYj-SQAGREK for <notmuch@notmuchmail.org>;\r
17         Mon, 17 Sep 2012 09:43:35 -0700 (PDT)\r
18 Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com\r
19  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  2122C431FAE    for <notmuch@notmuchmail.org>; Mon, 17 Sep 2012 09:43:34 -0700\r
22  (PDT)\r
23 Received: by wgbdq12 with SMTP id dq12so4703563wgb.2\r
24         for <notmuch@notmuchmail.org>; Mon, 17 Sep 2012 09:43:33 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=from:to:subject:user-agent:date:message-id:mime-version\r
27         :content-type; bh=MSEDRup9dZ6NCH91CbmFiBi9GYcejBwlPx5UtasSO6E=;\r
28         b=itiiBhfRWFKQVvQyiUHyBc8VBGfI5E/qADd/ZWT3tQ+8EjAWDse+wNu86wahvpsC6z\r
29         yGMXLptAT9Y/kJtKeHMDr9h/VIkvfbTogqd4Ic6Ty+GtWfCNQ88XIHPGQBidX2RI8KIx\r
30         JaiO5gW64J2t5a9R5Y5RqaGnGs70WMpVL6fJjptJWQpgS6e4uDxJorFkU99309PKmaNC\r
31         /cWbJNQTWcIJTMpZnu3Sjx2ynW1YLW2QH94yFabilHqaQyC3pJV5vMCSX1UpV0E0jkUp\r
32         aAyLF5e6Kc/8/2Di/TLK9LlahQHOFZbScgBQqukzSNdETMZMG1WI0UPQxeJmVFa7LlRX\r
33         lMQA==\r
34 Received: by 10.180.104.197 with SMTP id gg5mr17296118wib.9.1347900213845;\r
35         Mon, 17 Sep 2012 09:43:33 -0700 (PDT)\r
36 Received: from luz3 ([78.251.247.165])\r
37         by mx.google.com with ESMTPS id el6sm18545485wib.8.2012.09.17.09.43.32\r
38         (version=TLSv1/SSLv3 cipher=OTHER);\r
39         Mon, 17 Sep 2012 09:43:32 -0700 (PDT)\r
40 From: Damien Cassou <damien.cassou@gmail.com>\r
41 To: notmuch@notmuchmail.org\r
42 Subject: [PATCH] Run `notmuch-show-hook' after setting `header-line-format'\r
43 User-Agent: Notmuch/0.14 (http://notmuchmail.org) Emacs/24.2.50.1\r
44         (i686-pc-linux-gnu)\r
45 Date: Mon, 17 Sep 2012 18:43:28 +0200\r
46 Message-ID: <87pq5kior3.fsf@gmail.com>\r
47 MIME-Version: 1.0\r
48 Content-Type: text/plain\r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.13\r
51 Precedence: list\r
52 List-Id: "Use and development of the notmuch mail system."\r
53         <notmuch.notmuchmail.org>\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
57 List-Post: <mailto:notmuch@notmuchmail.org>\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
61 X-List-Received-Date: Mon, 17 Sep 2012 16:43:36 -0000\r
62 \r
63 This patch makes it possible for notmuch-show hooks to change the\r
64 header line.\r
65 \r
66 Signed-off-by: Damien Cassou <damien.cassou@gmail.com>\r
67 ---\r
68  emacs/notmuch-show.el |    6 +++---\r
69  1 file changed, 3 insertions(+), 3 deletions(-)\r
70 \r
71 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
72 index ce5ea6f..16008b4 100644\r
73 --- a/emacs/notmuch-show.el\r
74 +++ b/emacs/notmuch-show.el\r
75 @@ -1070,10 +1070,10 @@ function is used."\r
76 \r
77        (jit-lock-register #'notmuch-show-buttonise-links)\r
78 \r
79 -      (run-hooks 'notmuch-show-hook))\r
80 +      ;; Set the header line to the subject of the first message.\r
81 +      (setq header-line-format (notmuch-show-strip-re (notmuch-show-get-subject)))\r
82 \r
83 -    ;; Set the header line to the subject of the first message.\r
84 -    (setq header-line-format (notmuch-show-strip-re (notmuch-show-get-subject)))))\r
85 +      (run-hooks 'notmuch-show-hook))))\r
86 \r
87  (defun notmuch-show-capture-state ()\r
88    "Capture the state of the current buffer.\r
89 --\r
90 1.7.9.5\r