summaryrefslogtreecommitdiff
path: root/lisp/paths.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-12-21 18:01:03 +0000
committerKarl Heuer <kwzh@gnu.org>1995-12-21 18:01:03 +0000
commitd38d1b66aebc3cd6f0538eb40fea08e92abad3c9 (patch)
treeca6f485ff7247a92799717cd13ad51454def30d8 /lisp/paths.el
parent22661f847f2716b83dfc4f279e50c03c5b793f5f (diff)
downloademacs-d38d1b66aebc3cd6f0538eb40fea08e92abad3c9.tar.gz
(rmail-spool-directory): Try /var/spool/mail.
(news-path): Use /var/spool/news as last resort.
Diffstat (limited to 'lisp/paths.el')
-rw-r--r--lisp/paths.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/paths.el b/lisp/paths.el
index 990e4a0ae70..f4516d37a61 100644
--- a/lisp/paths.el
+++ b/lisp/paths.el
@@ -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/"))