avoid.el compiliation fixups
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 13 Apr 2012 21:17:38 +0000 (23:17 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 13 Apr 2012 21:17:38 +0000 (23:17 +0200)
* avoid.el: Require cl when compiling.  And also move the
`provide' to the end.

lisp/ChangeLog
lisp/avoid.el

index 87163f1..c806ed4 100644 (file)
@@ -1,3 +1,8 @@
+2012-04-13  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * avoid.el: Require cl when compiling.  And also move the
+       `provide' to the end.
+
 2012-04-13  Thierry Volpiatto  <thierry.volpiatto@gmail.com>
 
        * avoid.el (mouse-avoidance-banish-position): New variable.
index 81e0737..eb8a4ad 100644 (file)
@@ -67,7 +67,7 @@
 
 ;;; Code:
 
-(provide 'avoid)
+(eval-when-compile (require 'cl))
 
 (defgroup avoid nil
   "Make mouse pointer stay out of the way of editing."
@@ -457,4 +457,6 @@ definition of \"random distance\".)"
 (if mouse-avoidance-mode
     (mouse-avoidance-mode mouse-avoidance-mode))
 
+(provide 'avoid)
+
 ;;; avoid.el ends here