Re: [PATCH] Fix typo in Message.maildir_flags_to_tags
[notmuch-archives.git] / 87 / f351fb4613620c0eb6312fac7e8ff1b91933a9
1 Return-Path: <too@guru-group.fi>\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 28D47431E64\r
6         for <notmuch@notmuchmail.org>; Wed,  4 Sep 2013 06:41:59 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id LNaly5TMZOiK for <notmuch@notmuchmail.org>;\r
16         Wed,  4 Sep 2013 06:41:53 -0700 (PDT)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id E3784431FDD\r
19         for <notmuch@notmuchmail.org>; Wed,  4 Sep 2013 06:41:52 -0700 (PDT)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id A966D100063; Wed,  4 Sep 2013 16:41:44 +0300 (EEST)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: notmuch@notmuchmail.org\r
24 Subject: [ALT PATCH] emacs: target one-notmuch.el[c] -- emacs client in one\r
25         .el[c] file\r
26 Date: Wed,  4 Sep 2013 16:41:42 +0300\r
27 Message-Id: <1378302102-14383-1-git-send-email-tomi.ollila@iki.fi>\r
28 X-Mailer: git-send-email 1.8.0\r
29 In-Reply-To: <1378150636-26822-1-git-send-email-tomi.ollila@iki.fi\e[D>\r
30 References: <1378150636-26822-1-git-send-email-tomi.ollila@iki.fi\e[D>\r
31 Cc: tomi.ollila@iki.fi\r
32 X-BeenThere: notmuch@notmuchmail.org\r
33 X-Mailman-Version: 2.1.13\r
34 Precedence: list\r
35 List-Id: "Use and development of the notmuch mail system."\r
36         <notmuch.notmuchmail.org>\r
37 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
38         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
39 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
40 List-Post: <mailto:notmuch@notmuchmail.org>\r
41 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
42 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
44 X-List-Received-Date: Wed, 04 Sep 2013 13:41:59 -0000\r
45 \r
46 Added Makefile recipes to create notmuch emacs client in just one\r
47 .el[c] file.\r
48 \r
49 This is an experimental feature and not built by default.\r
50 \r
51 This is useful for example when one wants to build the latest\r
52 emacs client and then distribute the elisp file to many machines.\r
53 \r
54 This is also useful for (initial) testing:\r
55 \r
56      make emacs/one-notmuch.elc\r
57      emacs -q -l emacs/one-notmuch.elc -f notmuch\r
58 \r
59 can be used to quickly experiment with new development.\r
60 ---\r
61 \r
62 This is alternative to\r
63 \r
64 id:1378150636-26822-1-git-send-email-tomi.ollila@iki.fi\r
65 \r
66 notmuch-one* was changed to one-notmuch*\r
67 \r
68 Now the created files do not "pollute" notmuch-* filenamespace\r
69 and is easier to distinquish.\r
70 \r
71 See the referred email for more usage possibilities.\r
72 \r
73  emacs/Makefile.local | 14 ++++++++++++++\r
74  1 file changed, 14 insertions(+)\r
75 \r
76 diff --git a/emacs/Makefile.local b/emacs/Makefile.local\r
77 index a910aff..7f3526d 100644\r
78 --- a/emacs/Makefile.local\r
79 +++ b/emacs/Makefile.local\r
80 @@ -46,6 +46,20 @@ endif\r
81  install: install-emacs\r
82  endif\r
83  \r
84 +# Unsupported hack to provide notmuch emacs client in one *.elc file.\r
85 +# It probably works -- or then it fails mysteriously. YMMV.\r
86 +# Enter `make emacs/one-notmuch.elc' in top level directory to build it.\r
87 +ifeq ($(HAVE_EMACS),1)\r
88 +$(dir)/one-notmuch.el: $(emacs_sources)\r
89 +       rm -f $(emacs_bytecode) # XXX\r
90 +       make -n all WITH_EMACS=1 | sed -n '/printf.*EMACS/ s/.* //p' | \\r
91 +               xargs grep -vh '(declare-function.*"notmuch' > '$@' || :\r
92 +       { echo ';; Local Variables:'; \\r
93 +         echo ';; byte-compile-warnings: (not cl-functions)'; \\r
94 +         echo ';; End:'; } >> '$@'\r
95 +endif\r
96 +CLEAN+=$(dir)/one-notmuch.el $(dir)/one-notmuch.elc\r
97 +\r
98  .PHONY: install-emacs\r
99  install-emacs:\r
100         mkdir -p "$(DESTDIR)$(emacslispdir)"\r
101 -- \r
102 1.8.0\r
103 \r