* 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.
2012-05-24 Glenn Morris <rgm@gnu.org>
+ * paths.el (news-directory, news-path): Move to gnus/nnspool.el.
+
* paths.el (gnus-default-nntp-server): Remove (gnus.el defines it).
* paths.el (rmail-file-name, rmail-spool-directory): Move from here...
2012-05-24 Glenn Morris <rgm@gnu.org>
+ * nnspool.el (news-directory, news-path): Move here from paths.el.
+ Don't see a need for these to be autoloaded.
+
* gnus.el (gnus-default-nntp-server): Make it a defcustom.
Merge in doc from paths.el version. Don't see any need for this to be
autoloaded, or for the warning about users not setting it.
(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
for initializing `Info-directory-list' when Info is started, unless
the environment variable INFOPATH is set.")
-(defvar news-directory
- (purecopy (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)
-
(defvar news-inews-program
(purecopy
(cond ((file-exists-p "/usr/bin/inews") "/usr/bin/inews")