Re: Flat search and threaded views
[notmuch-archives.git] / 72 / acfc07557416113866b55b78f5faf77570e692
1 Return-Path: <jani@nikula.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 D5B67431FC7\r
6         for <notmuch@notmuchmail.org>; Tue, 17 Apr 2012 01:35:44 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
9 X-Spam-Flag: NO\r
10 X-Spam-Score: -0.7\r
11 X-Spam-Level: \r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
13         tests=[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 JBtSyiWSWup6 for <notmuch@notmuchmail.org>;\r
17         Tue, 17 Apr 2012 01:35:43 -0700 (PDT)\r
18 Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com\r
19         [209.85.216.181]) (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 DE4B6431FCB\r
22         for <notmuch@notmuchmail.org>; Tue, 17 Apr 2012 01:35:39 -0700 (PDT)\r
23 Received: by mail-qc0-f181.google.com with SMTP id k26so4608191qcs.26\r
24         for <notmuch@notmuchmail.org>; Tue, 17 Apr 2012 01:35:39 -0700 (PDT)\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=google.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references\r
28         :in-reply-to:references:x-gm-message-state;\r
29         bh=9jyVHuPJah+agZjkc2BgwHJ1f4IInR1ml8EZTVVyC2Y=;\r
30         b=OPYzZYPDccarm1UJEFcpgzfg6jQsJtlSpGlYtUpJUt6mRJwdMqM65Nu6lEk0xIZhoJ\r
31         eRz1uj1pAMVkYrTV2BSB93uX/H2pTMWOCy9OdnraaJ9e5TEhahj4YQJZTdpOaOZIGLyz\r
32         32VA3WBL4IYIEjfpAJniK61weJmHL53xpmGnhyoCOQ6t9VBLa7zwso1bFteFPCUNsUPn\r
33         rhhT7A9owdrBwvT7el6XwiZw3E2g0a5IseDum6EE6mtdV6GyZB9FdTkKXT4riNncmqBX\r
34         cOyZ9+/Ew/gxQqrpBinTSIsaDoH6AA0w1T1PP7maExl8LdP9SKvojIMBzVtOtiMYlywn\r
35         BpTw==\r
36 Received: by 10.229.137.147 with SMTP id w19mr5885686qct.132.1334651739517;\r
37         Tue, 17 Apr 2012 01:35:39 -0700 (PDT)\r
38 Received: from localhost (nikula.org. [92.243.24.172])\r
39         by mx.google.com with ESMTPS id dx8sm30146864qab.5.2012.04.17.01.35.38\r
40         (version=SSLv3 cipher=OTHER); Tue, 17 Apr 2012 01:35:38 -0700 (PDT)\r
41 From: Jani Nikula <jani@nikula.org>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [RFC PATCH 4/4] emacs: add notmuch hello refresh hook to place point\r
44         in a widget\r
45 Date: Tue, 17 Apr 2012 08:35:25 +0000\r
46 Message-Id:\r
47  <c846baf8b367f94d1936887100bc584e7f86e0af.1334651669.git.jani@nikula.org>\r
48 X-Mailer: git-send-email 1.7.1\r
49 In-Reply-To:\r
50  <bcfdc0d1969997e89e5abe0b320d77ee2109796a.1334651669.git.jani@nikula.org>\r
51 References:\r
52  <bcfdc0d1969997e89e5abe0b320d77ee2109796a.1334651669.git.jani@nikula.org>\r
53 In-Reply-To:\r
54  <bcfdc0d1969997e89e5abe0b320d77ee2109796a.1334651669.git.jani@nikula.org>\r
55 References:\r
56  <bcfdc0d1969997e89e5abe0b320d77ee2109796a.1334651669.git.jani@nikula.org>\r
57 X-Gm-Message-State:\r
58  ALoCoQkbuKr3XjXeywYEX3SNAc8Dv2Xt46hFiApavYY2a23ViD9sJV3/VnQGuZUGlDsRkwnRXRag\r
59 X-BeenThere: notmuch@notmuchmail.org\r
60 X-Mailman-Version: 2.1.13\r
61 Precedence: list\r
62 List-Id: "Use and development of the notmuch mail system."\r
63         <notmuch.notmuchmail.org>\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
67 List-Post: <mailto:notmuch@notmuchmail.org>\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
70         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
71 X-List-Received-Date: Tue, 17 Apr 2012 08:35:45 -0000\r
72 \r
73 Add support for putting point to a widget after refresh through a\r
74 hook. This approximates the old behaviour.\r
75 ---\r
76  emacs/notmuch-hello.el |    8 +++++++-\r
77  1 files changed, 7 insertions(+), 1 deletions(-)\r
78 \r
79 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
80 index 13da146..07e64d4 100644\r
81 --- a/emacs/notmuch-hello.el\r
82 +++ b/emacs/notmuch-hello.el\r
83 @@ -148,7 +148,8 @@ International Bureau of Weights and Measures."\r
84  (defcustom notmuch-hello-refresh-hook nil\r
85    "Functions called after updating a `notmuch-hello' buffer."\r
86    :type 'hook\r
87 -  :options '(notmuch-hello-refresh-status-message)\r
88 +  :options '(notmuch-hello-refresh-status-message\r
89 +            notmuch-hello-refresh-point-to-widget)\r
90    :group 'notmuch-hello\r
91    :group 'notmuch-hooks)\r
92  \r
93 @@ -752,6 +753,11 @@ Used internally by `notmuch-hello-refresh-status-message'.")\r
94                        (notmuch-hello-nice-number (- diff-count))))))\r
95        (setq notmuch-hello-refresh-count new-count))))\r
96  \r
97 +(defun notmuch-hello-refresh-point-to-widget (no-display)\r
98 +  "Hook to place point to widget after notmuch-hello refresh."\r
99 +  (widget-backward 1)\r
100 +  (widget-forward 1))\r
101 +\r
102  ;;;###autoload\r
103  (defun notmuch-hello (&optional no-display)\r
104    "Run notmuch and display saved searches, known tags, etc."\r
105 -- \r
106 1.7.1\r
107 \r