Sync with latest Gnus.
authoryamaoka <yamaoka>
Wed, 19 Apr 2000 22:06:41 +0000 (22:06 +0000)
committeryamaoka <yamaoka>
Wed, 19 Apr 2000 22:06:41 +0000 (22:06 +0000)
lisp/ChangeLog
lisp/gnus-mailcap.el

index 0d44718..129fe0d 100644 (file)
@@ -1,3 +1,7 @@
+2000-04-19  Dave Love  <fx@gnu.org>
+
+       * mailcap.el (mailcap-parse-mimetypes): Add ...mime.types.
+
 2000-04-18 12:28:24  Shenghuo ZHU  <zsh@cs.rochester.edu>
 
        * nnwarchive.el (nnwarchive-type-definition): New egroups html.
index 4595ce7..f4c6be8 100644 (file)
@@ -801,11 +801,21 @@ this type is returned."
    ((memq system-type '(ms-dos ms-windows windows-nt))
     (setq path (mapconcat 'expand-file-name
                          '("~/mime.typ" "~/etc/mime.typ") ";")))
-   (t (setq path (mapconcat 'expand-file-name
-                           '("~/.mime-types"
-                             "/etc/mime-types:/usr/etc/mime-types"
-                             "/usr/local/etc/mime-types"
-                             "/usr/local/www/conf/mime-types") ":"))))
+   (t (setq path (mapconcat
+                 'expand-file-name
+                 ;; mime.types seems to be the normal name,
+                 ;; definitely so on current GNUish systems.  The
+                 ;; ordering follows that for mailcap.
+                 '("~/.mime.types"
+                   "/etc/mime.types"
+                   "/usr/etc/mime.types"
+                   "/usr/local/etc/mime.types"
+                   "/usr/local/www/conf/mime.types"
+                   "~/.mime-types"
+                   "/etc/mime-types"
+                   "/usr/etc/mime-types"
+                   "/usr/local/etc/mime-types"
+                   "/usr/local/www/conf/mime-types") ":"))))
   (let ((fnames (reverse
                 (split-string path
                               (if (memq system-type