check for the existence of mailcap.el in the same directory of gnus.el.
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>
(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)