`eval-when-compile' to avoid compiler warning.
Require `man' at compile time.
+2005-11-14 Romain Francoise <romain@orebokech.com>
+
+ * dired-x.el: If `vm-visit-folder' doesn't exist, define it as a
+ dummy function in `eval-when-compile' to avoid compiler warning.
+ Require `man' at compile time.
+
2005-11-14 Jay Belanger <belanger@truman.edu>
* calc-alg.el (calcFunc-write-out-power): Rename it to
(require 'dired-aux)
(defvar vm-folder-directory)
+(eval-when-compile (require 'man))
;;; User-defined variables.
;;; Run mail on mail folders.
-;;; (and (not (fboundp 'vm-visit-folder))
-;;; (defun vm-visit-folder (file &optional arg)
-;;; nil))
+;; Avoid compiler warning.
+(eval-when-compile
+ (when (not (fboundp 'vm-visit-folder))
+ (defun vm-visit-folder (file &optional arg)
+ nil)))
(defun dired-vm (&optional read-only)
"Run VM on this file.