(gnus-remove-overlays): eval-and-compile.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 20 Oct 2009 05:12:07 +0000 (05:12 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 20 Oct 2009 05:12:07 +0000 (05:12 +0000)
lisp/ChangeLog
lisp/gnus-sum.el

index a7022ec..87525d6 100644 (file)
@@ -1,3 +1,7 @@
+2009-10-20  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-sum.el (gnus-remove-overlays): eval-and-compile.
+
 2009-10-19  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus-sum.el (gnus-summary-show-thread): Remove useless goto-char.
index fb80d60..21a213d 100644 (file)
@@ -11277,14 +11277,15 @@ If ARG is positive number, turn showing conversation threads on."
     (gnus-message 6 "Threading is now %s" (if gnus-show-threads "on" "off"))
     (gnus-summary-position-point)))
 
-(if (fboundp 'remove-overlays)
-    (defalias 'gnus-remove-overlays 'remove-overlays)
-  (defun gnus-remove-overlays (beg end name val)
-    "Clear BEG and END of overlays whose property NAME has value VAL.
+(eval-and-compile
+  (if (fboundp 'remove-overlays)
+      (defalias 'gnus-remove-overlays 'remove-overlays)
+    (defun gnus-remove-overlays (beg end name val)
+      "Clear BEG and END of overlays whose property NAME has value VAL.
 For compatibility with Emacs 21 and XEmacs."
-    (dolist (ov (gnus-overlays-in beg end))
-      (when (eq (gnus-overlay-get ov name) val)
-       (gnus-delete-overlay ov)))))
+      (dolist (ov (gnus-overlays-in beg end))
+       (when (eq (gnus-overlay-get ov name) val)
+         (gnus-delete-overlay ov))))))
 
 (defun gnus-summary-show-all-threads ()
   "Show all threads."