aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools
diff options
context:
space:
mode:
authorRalf Doering <[email protected]>2010-03-22 14:00:19 +0100
committerBjörn Gustavsson <[email protected]>2010-03-22 19:05:42 +0100
commit43ae537a151b07a3cd9b96df784e1dd5e6a7f00c (patch)
tree5f19876606b15c4082e97f204f6a297e27d1437e /lib/tools
parent99101783758b3e4805284aaec16d34dc3597158e (diff)
downloadotp-43ae537a151b07a3cd9b96df784e1dd5e6a7f00c.tar.gz
otp-43ae537a151b07a3cd9b96df784e1dd5e6a7f00c.tar.bz2
otp-43ae537a151b07a3cd9b96df784e1dd5e6a7f00c.zip
erlang-eunit.el: Require cl, as it is used
erlang-eunit.el (part of erlang-mode) uses "flet", which is only available if emacs package cl was loaded. The docs of the CL package suggest that '...packages installed in Emacs must not load "CL" at run time.' We honour this by using eval-when-compile. This fixes warnings when byte-compiling erlang-eunit.el with: emacs -batch -f batch-byte-compile erlang-eunit.el The warning fixed is: In erlang-eunit-compile-and-run-tests: erlang-eunit.el:146:4:Warning: `(save-some-buffers (&optional any) nil)' is a malformed function This bug was reported initially against Ubuntu packages, see https://bugs.launchpad.net/bugs/541893 for reference Signed-off-by: Ralf Doering <[email protected]>
Diffstat (limited to 'lib/tools')
-rw-r--r--lib/tools/emacs/erlang-eunit.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tools/emacs/erlang-eunit.el b/lib/tools/emacs/erlang-eunit.el
index 05528aee6d..1046143698 100644
--- a/lib/tools/emacs/erlang-eunit.el
+++ b/lib/tools/emacs/erlang-eunit.el
@@ -20,6 +20,9 @@
;;;
;;; Author: Klas Johansson
+(eval-when-compile
+ (require 'cl))
+
(defvar erlang-eunit-separate-src-and-test-directories t
"*Whether or not to keep source and EUnit test files in separate directories")