diff options
author | Glenn Morris <rgm@gnu.org> | 2012-05-24 00:27:24 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2012-05-24 00:27:24 -0700 |
commit | 61a583cade865fa455cc4a533c44e48eb5ec9f30 (patch) | |
tree | d55ee8d9a190ba8355d57851a0e0b34b8b7001fc /lisp/gnus/nnspool.el | |
parent | 98e15937bea2f34f8020fec43a8ddb8197fef3db (diff) | |
download | emacs-61a583cade865fa455cc4a533c44e48eb5ec9f30.tar.gz |
* paths.el (news-directory, news-path): Move to gnus/nnspool.el.
* gnus/nnspool.el (news-directory, news-path): Move here from paths.el.
Don't see a need for these to be autoloaded. This file is the only
place that uses them, to init another variable.
Diffstat (limited to 'lisp/gnus/nnspool.el')
-rw-r--r-- | lisp/gnus/nnspool.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/gnus/nnspool.el b/lisp/gnus/nnspool.el index 2b024e20740..3c197b92b27 100644 --- a/lisp/gnus/nnspool.el +++ b/lisp/gnus/nnspool.el @@ -31,6 +31,15 @@ (require 'nnoo) (eval-when-compile (require 'cl)) +;; Probably this entire thing should be obsolete. +;; It's only used to init nnspool-spool-directory, so why not just +;; set that variable's default directly? +(defvar news-directory (if (file-exists-p "/usr/spool/news/") + "/usr/spool/news/" + "/var/spool/news/") + "The root directory below which all news files are stored.") +(defvaralias 'news-path 'news-directory) + (nnoo-declare nnspool) (defvoo nnspool-inews-program news-inews-program |