summaryrefslogtreecommitdiff
path: root/lisp/gnus
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2012-05-24 00:31:45 -0700
committerGlenn Morris <rgm@gnu.org>2012-05-24 00:31:45 -0700
commitee2f89a66507839a1234a1ff5b96b20776fcd5ef (patch)
treed7df845fcd9a9c9892af49459beaa9d0827535b6 /lisp/gnus
parent61a583cade865fa455cc4a533c44e48eb5ec9f30 (diff)
downloademacs-ee2f89a66507839a1234a1ff5b96b20776fcd5ef.tar.gz
* paths.el (news-inews-program): Move to gnus/nnspool.el.
* gnus/nnspool.el (news-inews-program): Move here from paths.el. Don't see a need for this to be autoloaded. (Or even to exist; it is only used to init another variable.)
Diffstat (limited to 'lisp/gnus')
-rw-r--r--lisp/gnus/ChangeLog4
-rw-r--r--lisp/gnus/nnspool.el10
2 files changed, 12 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index f990c82e665..e096b9b2b26 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,7 +1,7 @@
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.
+ * nnspool.el (news-directory, news-path, news-inews-program):
+ 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
diff --git a/lisp/gnus/nnspool.el b/lisp/gnus/nnspool.el
index 3c197b92b27..fd079d909eb 100644
--- a/lisp/gnus/nnspool.el
+++ b/lisp/gnus/nnspool.el
@@ -40,6 +40,16 @@
"The root directory below which all news files are stored.")
(defvaralias 'news-path 'news-directory)
+;; Ditto re obsolescence.
+(defvar news-inews-program
+ (cond ((file-exists-p "/usr/bin/inews") "/usr/bin/inews")
+ ((file-exists-p "/usr/local/inews") "/usr/local/inews")
+ ((file-exists-p "/usr/local/bin/inews") "/usr/local/bin/inews")
+ ((file-exists-p "/usr/contrib/lib/news/inews") "/usr/contrib/lib/news/inews")
+ ((file-exists-p "/usr/lib/news/inews") "/usr/lib/news/inews")
+ (t "inews"))
+ "Program to post news.")
+
(nnoo-declare nnspool)
(defvoo nnspool-inews-program news-inews-program