summaryrefslogtreecommitdiff
path: root/lisp/dired-x.el
diff options
context:
space:
mode:
authorRomain Francoise <romain@orebokech.com>2005-11-14 21:04:26 +0000
committerRomain Francoise <romain@orebokech.com>2005-11-14 21:04:26 +0000
commit670d3fce9d2df5fd60e77498981b553e878dbc8d (patch)
tree1c93edca25e734f701982ffb7348b996944b183b /lisp/dired-x.el
parentd0158f73540f5f6de1861fb653cbb87832cb7ce3 (diff)
downloademacs-670d3fce9d2df5fd60e77498981b553e878dbc8d.tar.gz
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.
Diffstat (limited to 'lisp/dired-x.el')
-rw-r--r--lisp/dired-x.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index e48d6780c48..14e0a459f86 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -112,6 +112,7 @@
(require 'dired-aux)
(defvar vm-folder-directory)
+(eval-when-compile (require 'man))
;;; User-defined variables.
@@ -1411,9 +1412,11 @@ Uses `man.el' of \\[manual-entry] fame."
;;; 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.