Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / 82 / e339929acbccd5b7525233577baff49f75ec34
1 Return-Path: <pioto@pioto.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 D2DFB431FD6\r
6         for <notmuch@notmuchmail.org>; Wed, 30 May 2012 00:02:57 -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.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 dldTmQyDVjvS for <notmuch@notmuchmail.org>;\r
16         Wed, 30 May 2012 00:02:55 -0700 (PDT)\r
17 Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com\r
18         [209.85.212.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 12A93431FC2\r
21         for <notmuch@notmuchmail.org>; Wed, 30 May 2012 00:02:55 -0700 (PDT)\r
22 Received: by vbbfc26 with SMTP id fc26so4786696vbb.26\r
23         for <notmuch@notmuchmail.org>; Wed, 30 May 2012 00:02:54 -0700 (PDT)\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25         d=google.com; s=20120113;\r
26         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references\r
27         :x-gm-message-state;\r
28         bh=3cHfl+b8d6nAtW/oyAsU4a5+QCU76Ar6Gr3zcb8lgz0=;\r
29         b=DXcQj1ERBqTHIwsmtOa6+Cf1QnrLWL4lk/Wxm42kNlM0xF6WEsEji2rQO9bHUzwkSg\r
30         2HpIY6Lpil6CGlcQGH/kNLcIICzGJskW8vzjKUD/H9n+xa2LUuysIJuan2Gl5oVlpPSZ\r
31         HHERsiodzGi9TjxHaQ1pPFxIJOr1w4b0/XGgjBPDyTg/ZyKqtQhN561k9roQtq9HXUuA\r
32         JBzudDhw1j6JdpNwU8RCKwlvwh9IFnLXrpsEXN0yFUIAQ8wUwF0PZsupDbVnFuF0sQMj\r
33         hdx1dKAiZIhkHeHqTyamm2CUV4gy+HYAIwIO1cqU53H2bEwGjcX7so7Ih3e9mgZWRnOR\r
34         FQSQ==\r
35 Received: by 10.52.20.5 with SMTP id j5mr8921434vde.81.1338361374332;\r
36         Wed, 30 May 2012 00:02:54 -0700 (PDT)\r
37 Received: from nas.home.pioto.org (pool-71-182-155-97.pitbpa.fios.verizon.net.\r
38         [71.182.155.97])\r
39         by mx.google.com with ESMTPS id c17sm28321629vdj.11.2012.05.30.00.02.53\r
40         (version=TLSv1/SSLv3 cipher=OTHER);\r
41         Wed, 30 May 2012 00:02:53 -0700 (PDT)\r
42 Received: by nas.home.pioto.org (Postfix, from userid 1001)\r
43         id ED4F6287E2; Wed, 30 May 2012 03:02:51 -0400 (EDT)\r
44 From: Mike Kelly <pioto@pioto.org>\r
45 To: notmuch@notmuchmail.org\r
46 Subject: [PATCH v2 3/9] Makefile.local: define _GNU_SOURCE\r
47 Date: Wed, 30 May 2012 03:01:58 -0400\r
48 Message-Id: <1338361324-57289-4-git-send-email-pioto@pioto.org>\r
49 X-Mailer: git-send-email 1.7.10.2\r
50 In-Reply-To: <1338361324-57289-1-git-send-email-pioto@pioto.org>\r
51 References: <1338361324-57289-1-git-send-email-pioto@pioto.org>\r
52 X-Gm-Message-State:\r
53  ALoCoQlDGUlPRmkIDNT1oo3esvR0F+l2Tmhu63fhcy6NbXPqbZRzLO57zz9O1CxQqVD71soIS760\r
54 X-BeenThere: notmuch@notmuchmail.org\r
55 X-Mailman-Version: 2.1.13\r
56 Precedence: list\r
57 List-Id: "Use and development of the notmuch mail system."\r
58         <notmuch.notmuchmail.org>\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
62 List-Post: <mailto:notmuch@notmuchmail.org>\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
66 X-List-Received-Date: Wed, 30 May 2012 07:02:58 -0000\r
67 \r
68 Several places currently define _GNU_SOURCE above the #includes to make\r
69 sure that things like 'getline(3)' are available, but defining these in\r
70 one place also helps to improve portability to other platforms where\r
71 these may not be available otherwise.\r
72 ---\r
73  Makefile.local           |    4 ++--\r
74  compat/have_getline.c    |    1 -\r
75  compat/have_strcasestr.c |    1 -\r
76  lib/notmuch-private.h    |    3 ---\r
77  notmuch-client.h         |    3 ---\r
78  5 files changed, 2 insertions(+), 10 deletions(-)\r
79 \r
80 diff --git a/Makefile.local b/Makefile.local\r
81 index 53b4a0d..48826b6 100644\r
82 --- a/Makefile.local\r
83 +++ b/Makefile.local\r
84 @@ -39,8 +39,8 @@ GPG_FILE=$(SHA1_FILE).asc\r
85  PV_FILE=bindings/python/notmuch/version.py\r
86  \r
87  # Smash together user's values with our extra values\r
88 -FINAL_CFLAGS = -DNOTMUCH_VERSION=$(VERSION) $(CFLAGS) $(WARN_CFLAGS) $(CONFIGURE_CFLAGS) $(extra_cflags)\r
89 -FINAL_CXXFLAGS = $(CXXFLAGS) $(WARN_CXXFLAGS) $(CONFIGURE_CXXFLAGS) $(extra_cflags) $(extra_cxxflags)\r
90 +FINAL_CFLAGS = -D_GNU_SOURCE -DNOTMUCH_VERSION=$(VERSION) $(CFLAGS) $(WARN_CFLAGS) $(CONFIGURE_CFLAGS) $(extra_cflags)\r
91 +FINAL_CXXFLAGS = -D_GNU_SOURCE $(CXXFLAGS) $(WARN_CXXFLAGS) $(CONFIGURE_CXXFLAGS) $(extra_cflags) $(extra_cxxflags)\r
92  FINAL_NOTMUCH_LDFLAGS = $(LDFLAGS) -Lutil -lutil -Llib -lnotmuch $(AS_NEEDED_LDFLAGS) $(GMIME_LDFLAGS) $(TALLOC_LDFLAGS)\r
93  FINAL_NOTMUCH_LINKER = CC\r
94  ifneq ($(LINKER_RESOLVES_LIBRARY_DEPENDENCIES),1)\r
95 diff --git a/compat/have_getline.c b/compat/have_getline.c\r
96 index a8bcd17..30f0e8f 100644\r
97 --- a/compat/have_getline.c\r
98 +++ b/compat/have_getline.c\r
99 @@ -1,4 +1,3 @@\r
100 -#define _GNU_SOURCE\r
101  #include <stdio.h>\r
102  #include <sys/types.h>\r
103  \r
104 diff --git a/compat/have_strcasestr.c b/compat/have_strcasestr.c\r
105 index c0fb762..e637b46 100644\r
106 --- a/compat/have_strcasestr.c\r
107 +++ b/compat/have_strcasestr.c\r
108 @@ -1,4 +1,3 @@\r
109 -#define _GNU_SOURCE\r
110  #include <strings.h>\r
111  \r
112  int main()\r
113 diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h\r
114 index bfb4111..95afc3f 100644\r
115 --- a/lib/notmuch-private.h\r
116 +++ b/lib/notmuch-private.h\r
117 @@ -21,9 +21,6 @@\r
118  #ifndef NOTMUCH_PRIVATE_H\r
119  #define NOTMUCH_PRIVATE_H\r
120  \r
121 -#ifndef _GNU_SOURCE\r
122 -#define _GNU_SOURCE /* For getline and asprintf */\r
123 -#endif\r
124  #include <stdio.h>\r
125  \r
126  #include "compat.h"\r
127 diff --git a/notmuch-client.h b/notmuch-client.h\r
128 index 19b7f01..3964229 100644\r
129 --- a/notmuch-client.h\r
130 +++ b/notmuch-client.h\r
131 @@ -21,9 +21,6 @@\r
132  #ifndef NOTMUCH_CLIENT_H\r
133  #define NOTMUCH_CLIENT_H\r
134  \r
135 -#ifndef _GNU_SOURCE\r
136 -#define _GNU_SOURCE /* for getline */\r
137 -#endif\r
138  #include <stdio.h>\r
139  \r
140  #include "compat.h"\r
141 -- \r
142 1.7.10.2\r
143 \r