[PATCH] emacs: Fix "not defined at runtime" warning
authorAustin Clements <amdragon@MIT.EDU>
Wed, 8 Aug 2012 21:40:10 +0000 (17:40 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:49:00 +0000 (09:49 -0800)
7f/81036c59f87a4668b0864262c11192daf87047 [new file with mode: 0644]

diff --git a/7f/81036c59f87a4668b0864262c11192daf87047 b/7f/81036c59f87a4668b0864262c11192daf87047
new file mode 100644 (file)
index 0000000..8baff72
--- /dev/null
@@ -0,0 +1,96 @@
+Return-Path: <amdragon@mit.edu>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 368A7431FAF\r
+       for <notmuch@notmuchmail.org>; Wed,  8 Aug 2012 14:40:19 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 4MvLrX+FZ08T for <notmuch@notmuchmail.org>;\r
+       Wed,  8 Aug 2012 14:40:18 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-5.mit.edu (DMZ-MAILSEC-SCANNER-5.MIT.EDU\r
+       [18.7.68.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id 31780431FAE\r
+       for <notmuch@notmuchmail.org>; Wed,  8 Aug 2012 14:40:18 -0700 (PDT)\r
+X-AuditID: 12074422-b7f1f6d00000090b-16-5022dcc12bf1\r
+Received: from mailhub-auth-3.mit.edu ( [18.9.21.43])\r
+       by dmz-mailsec-scanner-5.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id CE.A0.02315.1CCD2205; Wed,  8 Aug 2012 17:40:17 -0400 (EDT)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+       by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id q78LeHRc019445; \r
+       Wed, 8 Aug 2012 17:40:17 -0400\r
+Received: from drake.dyndns.org (26-4-181.dynamic.csail.mit.edu [18.26.4.181])\r
+       (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q78LeCww018616\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Wed, 8 Aug 2012 17:40:17 -0400 (EDT)\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1SzDzA-0001Ox-54; Wed, 08 Aug 2012 17:40:12 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] emacs: Fix "not defined at runtime" warning\r
+Date: Wed,  8 Aug 2012 17:40:10 -0400\r
+Message-Id: <1344462010-5349-1-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 1.7.10\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFprJIsWRmVeSWpSXmKPExsUixCmqrXvwjlKAwZ5NhhbXb85kdmD0eLbq\r
+       FnMAYxSXTUpqTmZZapG+XQJXxrJVDxgL/rFWTN96kLWB8T1LFyMnh4SAicSujnNQtpjEhXvr\r
+       2boYuTiEBPYxSkw9NR/KWc8o8ffWAmYI5ySTxOFrz5hBWoQE5jJKHL5cAWKzCWhIbNu/nBHE\r
+       FhGQlth5dzZrFyMHB7OAmsSfLhWQsLCAjcTRlidg21gEVCVud65gAynhFbCXWHYpEOIIeYmn\r
+       9/vYJjDyLmBkWMUom5JbpZubmJlTnJqsW5ycmJeXWqRrqpebWaKXmlK6iREUAuwuSjsYfx5U\r
+       OsQowMGoxMN7ca1SgBBrYllxZe4hRkkOJiVR3sBbQCG+pPyUyozE4oz4otKc1OJDjBIczEoi\r
+       vNXbgHK8KYmVValF+TApaQ4WJXHeayk3/YUE0hNLUrNTUwtSi2CyMhwcShK8TMBQFxIsSk1P\r
+       rUjLzClBSDNxcIIM5wEafuE2yPDigsTc4sx0iPwpRkUpcd7jIAkBkERGaR5cLyxGXzGKA70i\r
+       zLsGpIoHGN9w3a+ABjMBDT4sCja4JBEhJdXA2MJwZs2mMtab6k78z+9o/9T0YFTeJh20Pdcg\r
+       ykc+R0rVpFie/0nmAkZNrrMuurZvJv65zNfDetJGuWerj0rQlcc99zrFrv29bnbtd31+3/4o\r
+       Xv/enICj7ByTaraUcvpuXbhy2pF33/e/Vo0JdeBb6vEjruRlncWED+qLLOJvaZxZdmDl532u\r
+       SizFGYmGWsxFxYkA/QK/+awCAAA=\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 08 Aug 2012 21:40:19 -0000\r
+\r
+Previously, the Emacs byte compiler produced the warning\r
+\r
+    the function `remove-if-not' might not be defined at runtime.\r
+\r
+because we only required cl at compile-time (not runtime).  This fixes\r
+this warning by requiring cl at runtime, ensuring that the definition\r
+of remove-if-not is available.\r
+---\r
+ emacs/notmuch-lib.el |    2 +-\r
+ 1 file changed, 1 insertion(+), 1 deletion(-)\r
+\r
+diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el\r
+index 30db58f..900235b 100644\r
+--- a/emacs/notmuch-lib.el\r
++++ b/emacs/notmuch-lib.el\r
+@@ -24,7 +24,7 @@\r
+ (require 'mm-view)\r
+ (require 'mm-decode)\r
+ (require 'json)\r
+-(eval-when-compile (require 'cl))\r
++(require 'cl)\r
+ \r
+ (defvar notmuch-command "notmuch"\r
+   "Command to run the notmuch binary.")\r
+-- \r
+1.7.10\r
+\r