database error
[notmuch-archives.git] / 29 / ae1723df5603c9faed3af25f7d4e74e3601ebc
1 Return-Path: <schnouki@schnouki.net>\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 41795429E25\r
6         for <notmuch@notmuchmail.org>; Tue, 20 Dec 2011 16:21:53 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.1\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1]\r
13         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 eJh08DWYw-xB for <notmuch@notmuchmail.org>;\r
17         Tue, 20 Dec 2011 16:21:52 -0800 (PST)\r
18 Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])\r
19         by olra.theworths.org (Postfix) with ESMTP id 94C3C431FB6\r
20         for <notmuch@notmuchmail.org>; Tue, 20 Dec 2011 16:21:52 -0800 (PST)\r
21 Received: from odin.local (nancy.schnouki.net [78.238.0.45])\r
22         by ks3536.kimsufi.com (Postfix) with ESMTPSA id 44C8C6A0026;\r
23         Wed, 21 Dec 2011 01:21:50 +0100 (CET)\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;\r
25         s=key-schnouki; t=1324426910;\r
26         bh=MF+JmPIRDzzaJzOG0nIxg5X+wKTZZFdikc1l9l1XLy0=;\r
27         h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References;\r
28         b=W2hO45Zo6INRWufSxa7LLGvK6y0TO2tDfc8udqKzQBH51ibasjCv42vS7J33YuSbC\r
29         l4mBjQHMwFBffm8GVgJFK4lvUumXoAh8RDKUQ+C8NagN1oW7el/W+1Rhkpen+pYFqq\r
30         FJ3eCsT9rdkWGbqcH/lED0LYxP8zulN0Yv3QD/3U=\r
31 From: Thomas Jost <schnouki@schnouki.net>\r
32 To: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
33 Subject: [PATCH] emacs: add notmuch-hello-refresh-hook\r
34 Date: Wed, 21 Dec 2011 01:21:18 +0100\r
35 Message-Id: <1324426878-14148-1-git-send-email-schnouki@schnouki.net>\r
36 X-Mailer: git-send-email 1.7.8\r
37 In-Reply-To: <877h1ws6r7.fsf@gmail.com>\r
38 References: <877h1ws6r7.fsf@gmail.com>\r
39 Cc: notmuch@notmuchmail.org\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Wed, 21 Dec 2011 00:21:53 -0000\r
53 \r
54 This hook is called every time a notmuch-hello buffer is updated.\r
55 ---\r
56 Hi Dmitry,\r
57 \r
58 I like the idea of having a -mode-hook and a -refresh-hook :) Thanks for your\r
59 suggestions!\r
60 \r
61 Regards,\r
62 Thomas\r
63 \r
64  emacs/notmuch-hello.el |    9 ++++++++-\r
65  1 files changed, 8 insertions(+), 1 deletions(-)\r
66 \r
67 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
68 index 115f80a..9fa3137 100644\r
69 --- a/emacs/notmuch-hello.el\r
70 +++ b/emacs/notmuch-hello.el\r
71 @@ -143,6 +143,11 @@ Typically \",\" in the US and UK and \".\" or \" \" in Europe."\r
72    :group 'notmuch\r
73    :type 'hook)\r
74  \r
75 +(defcustom notmuch-hello-refresh-hook nil\r
76 +  "Functions called after updating a `notmuch-hello' buffer."\r
77 +  :type 'hook\r
78 +  :group notmuch)\r
79 +\r
80  (defvar notmuch-hello-url "http://notmuchmail.org"\r
81    "The `notmuch' web site.")\r
82  \r
83 @@ -590,7 +595,9 @@ Complete list of currently available key bindings:\r
84           (widget-forward 1)))\r
85  \r
86        (unless (widget-at)\r
87 -       (notmuch-hello-goto-search)))))\r
88 +       (notmuch-hello-goto-search))))\r
89 +\r
90 +  (run-hooks 'notmuch-hello-refresh-hook))\r
91  \r
92  (defun notmuch-folder ()\r
93    "Deprecated function for invoking notmuch---calling `notmuch' is preferred now."\r
94 -- \r
95 1.7.8\r
96 \r