emacs: Fix "not defined at runtime" warning
authorAustin Clements <amdragon@MIT.EDU>
Wed, 8 Aug 2012 21:40:10 +0000 (17:40 -0400)
committerDavid Bremner <bremner@debian.org>
Sun, 12 Aug 2012 19:05:08 +0000 (21:05 +0200)
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

index 30db58ffbff32c2d703c22f3a21427402a08b20d..900235bc5edbf59a03c2758da13906eac077e6a0 100644 (file)
@@ -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.")