]> git.eshelyaron.com Git - emacs.git/commitdiff
* paths.el (news-inews-program): Move to gnus/nnspool.el.
authorGlenn Morris <rgm@gnu.org>
Thu, 24 May 2012 07:31:45 +0000 (00:31 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 24 May 2012 07:31:45 +0000 (00:31 -0700)
* 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.)

lisp/ChangeLog
lisp/gnus/ChangeLog
lisp/gnus/nnspool.el
lisp/paths.el

index 5d065a617a6a3eae0ecabe6f829090efe384f839..1b3b9f9e07d43c0aef14eb43eb0306fb2d2b942a 100644 (file)
@@ -1,6 +1,7 @@
 2012-05-24  Glenn Morris  <rgm@gnu.org>
 
-       * paths.el (news-directory, news-path): Move to gnus/nnspool.el.
+       * paths.el (news-directory, news-path, news-inews-program):
+       Move to gnus/nnspool.el.
 
        * paths.el (gnus-default-nntp-server): Remove (gnus.el defines it).
 
index f990c82e665ac911b020ce0e65b74999c7f82455..e096b9b2b26ffe0ae15e0a824b9185ef874bac95 100644 (file)
@@ -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
index 3c197b92b276c7e74e07ef9af6c43b0b0af910d0..fd079d909eb2c8cef8fc8d4e0b64099a92182c20 100644 (file)
   "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
index ec5b3f4c5dd24ef41eb117b4f06451b5faa2d1f1..5269933d245da42029b06ae2b09899a2c0304095 100644 (file)
@@ -101,16 +101,6 @@ This variable `Info-default-directory-list' is used as the default
 for initializing `Info-directory-list' when Info is started, unless
 the environment variable INFOPATH is set.")
 
-(defvar news-inews-program
-  (purecopy
-  (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.")
-
 (defcustom remote-shell-program
   (purecopy
   (cond