]> code.delx.au - gnu-emacs/commitdiff
(rmail-spool-directory): Try /var/spool/mail.
authorKarl Heuer <kwzh@gnu.org>
Thu, 21 Dec 1995 18:01:03 +0000 (18:01 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 21 Dec 1995 18:01:03 +0000 (18:01 +0000)
(news-path): Use /var/spool/news as last resort.

lisp/paths.el

index 990e4a0ae70860a3845762fd58dd2a4b47da1836..f4516d37a61a556c4896200fcb378f59e62a4f7a 100644 (file)
@@ -48,7 +48,10 @@ They are searched in the order they are given in this list.
 Therefore, the directory of Info files that come with Emacs
 normally should come last (so that local files override standard ones).")
 
-(defvar news-path "/usr/spool/news/"
+(defvar news-path
+  (if (file-exists-p "/usr/spool/news/")
+      "/usr/spool/news/"
+    "/var/spool/news/")
   "The root directory below which all news files are stored.")
 
 (defvar news-inews-program
@@ -98,6 +101,9 @@ Will use `gnus-startup-file'-SERVER instead if exists.")
        ;; let's assume this dir is never used for anything else.
        ((file-exists-p "/var/mail")
         "/var/mail/")
+       ;; Many GNU/Linux systems use this name.
+       ((file-exists-p "/var/spool/mail")
+        "/var/spool/mail")
        ((memq system-type '(dgux hpux usg-unix-v unisoft-unix rtu irix))
         "/usr/mail/")
        (t "/usr/spool/mail/"))