Revert 2003-12-03 change, instead, provide the compiler macro for
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 8 Dec 2003 02:35:36 +0000 (02:35 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 8 Dec 2003 02:35:36 +0000 (02:35 +0000)
rmail-select-summary if rmail is not available.

lisp/ChangeLog
lisp/gnus-util.el

index cb89cd8..cadfba1 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-08  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-util.el: Revert 2003-12-03 change, instead, provide the
+       compiler macro for rmail-select-summary if rmail is not available.
+
 2003-12-08  Simon Josefsson  <jas@extundo.com>
 
        * flow-fill.el (fill-flowed-encode-tests, fill-flowed-test): Add.
index 6c4d54d..d3d4be1 100644 (file)
@@ -803,14 +803,17 @@ with potentially long computations."
 ;;; Functions for saving to babyl/mail files.
 
 (eval-when-compile
-  (when (featurep 'xemacs)
-    ;; The XEmacs version of rmail requires tm, however tm was taken
-    ;; over to SEMI and FLIM long ago.  So, there may be those who
-    ;; have not installed tm.
-    (require 'alist)
-    (provide 'tm-view))
-  (require 'rmail)
-  (autoload 'rmail-update-summary "rmailsum")
+  (condition-case nil
+      (progn
+       (require 'rmail)
+       (autoload 'rmail-update-summary "rmailsum"))
+    (error
+     (define-compiler-macro rmail-select-summary (&rest body)
+       ;; Rmail of the XEmacs version is supplied by the package, and
+       ;; requires tm and apel packages.  However, there may be those
+       ;; who haven't installed those packages.  This macro helps such
+       ;; people even if they install those packages later.
+       `(eval '(rmail-select-summary ,@body)))))
   (defvar rmail-default-rmail-file)
   (defvar mm-text-coding-system))