diff options
author | Romain Francoise <romain@orebokech.com> | 2005-11-14 21:04:26 +0000 |
---|---|---|
committer | Romain Francoise <romain@orebokech.com> | 2005-11-14 21:04:26 +0000 |
commit | 670d3fce9d2df5fd60e77498981b553e878dbc8d (patch) | |
tree | 1c93edca25e734f701982ffb7348b996944b183b /lisp/dired-x.el | |
parent | d0158f73540f5f6de1861fb653cbb87832cb7ce3 (diff) | |
download | emacs-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.el | 9 |
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. |