]> git.eshelyaron.com Git - emacs.git/commitdiff
If `vm-visit-folder' doesn't exist, define it as a dummy function in
authorRomain Francoise <romain@orebokech.com>
Mon, 14 Nov 2005 21:04:26 +0000 (21:04 +0000)
committerRomain Francoise <romain@orebokech.com>
Mon, 14 Nov 2005 21:04:26 +0000 (21:04 +0000)
`eval-when-compile' to avoid compiler warning.
Require `man' at compile time.

lisp/ChangeLog
lisp/dired-x.el

index 674a8ec55684f2b77f69a3532e3614b60d143dd1..5667a43c2fffb2228b9ea8a5fd6d63f70f061624 100644 (file)
@@ -1,3 +1,9 @@
+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
index e48d6780c48bd7b591777e0736ad8b857eda68a6..14e0a459f86b564c53ca30150e2a1ba124eb2569 100644 (file)
 (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.