(rmail-default-rmail-file, mm-text-coding-system):
authorDave Love <fx@gnu.org>
Fri, 2 May 2003 17:53:29 +0000 (17:53 +0000)
committerDave Love <fx@gnu.org>
Fri, 2 May 2003 17:53:29 +0000 (17:53 +0000)
Defvar when compiling.
(gnus-output-to-rmail): Require mm-util.

lisp/gnus-util.el

index 23c418e..c41232a 100644 (file)
@@ -29,6 +29,9 @@
 ;; used by Gnus and may be used by any other package without loading
 ;; Gnus first.
 
+;; [Unfortunately, it does depend on other parts of Gnus, e.g. the
+;; autoloads below...]
+
 ;;; Code:
 
 (require 'custom)
@@ -798,10 +801,14 @@ with potentially long computations."
 
 ;;; Functions for saving to babyl/mail files.
 
-(defvar rmail-default-rmail-file)
+(eval-when-compile
+  (defvar rmail-default-rmail-file)
+  (defvar mm-text-coding-system))
+
 (defun gnus-output-to-rmail (filename &optional ask)
   "Append the current article to an Rmail file named FILENAME."
   (require 'rmail)
+  (require 'mm-util)
   ;; Most of these codes are borrowed from rmailout.el.
   (setq filename (expand-file-name filename))
   (setq rmail-default-rmail-file filename)