* nnshimbun.el (Gnus-p): Use `file-exists-p' instead of `locate-library' to
authoryamaoka <yamaoka>
Tue, 12 Jun 2001 04:35:08 +0000 (04:35 +0000)
committeryamaoka <yamaoka>
Tue, 12 Jun 2001 04:35:08 +0000 (04:35 +0000)
 check for the existence of mailcap.el in the same directory of gnus.el.

ChangeLog
lisp/nnshimbun.el

index 3f468a7..c1374d9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,10 @@
 2001-06-12  Katsumi Yamaoka <yamaoka@jpl.org>
 
-       * lisp/nnshimbun.el (nnshimbun-retrieve-headers-with-nov): Remove
-       a redundant check that I made.
+       * lisp/nnshimbun.el (Gnus-p): Use `file-exists-p' instead of
+       `locate-library' to check for the existence of mailcap.el in the
+       same directory of gnus.el.
+       (nnshimbun-retrieve-headers-with-nov): Remove a redundant check
+       that I made.
 
 2001-06-11  Katsumi Yamaoka <yamaoka@jpl.org>
 
index 3d5ecb9..18f0946 100644 (file)
 (eval-and-compile
   (let ((Gnus-p
         (eval-when-compile
-          (let ((gnus (locate-library "gnus"))
-                ;; Gnus has mailcap.el in the same directory of gnus.el.
-                (mailcap (locate-library "mailcap")))
-            (and gnus mailcap
-                 (string-equal (file-name-directory gnus)
-                               (file-name-directory mailcap)))))))
+          (let ((gnus (locate-library "gnus")))
+            (and gnus
+                 ;; Gnus has mailcap.el in the same directory of gnus.el.
+                 (file-exists-p (expand-file-name
+                                 "mailcap.el"
+                                 (file-name-directory gnus))))))))
     (if Gnus-p
        (progn
          (defmacro nnshimbun-mail-header-subject (header)