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