]> git.eshelyaron.com Git - emacs.git/commitdiff
Make news-path variable obsolete
authorStefan Kangas <stefankangas@gmail.com>
Tue, 8 Aug 2023 17:16:23 +0000 (19:16 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Tue, 8 Aug 2023 17:53:18 +0000 (19:53 +0200)
* lisp/gnus/nnspool.el (news-path): Make obsolete.
(nnspool-spool-directory): Don't use above obsolete variable.

lisp/gnus/nnspool.el

index 3508c38889745ab18bc4615ff1c21e8affadc917..ca97afcb7f1c691dc4f418970ab071ba4aca7130 100644 (file)
@@ -35,7 +35,7 @@
 ;; It's only used to init nnspool-spool-directory, so why not just
 ;; set that variable's default directly?
 (eval-and-compile
-  (defvaralias 'news-path 'news-directory)
+  (define-obsolete-variable-alias 'news-path 'news-directory "30.1")
   (defvar news-directory (if (file-exists-p "/usr/spool/news/")
                             "/usr/spool/news/"
                           "/var/spool/news/")
@@ -62,9 +62,7 @@ This is most commonly `inews' or `injnews'.")
 If you are using Cnews, you probably should set this variable to nil.")
 
 (defvoo nnspool-spool-directory
-    (file-name-as-directory (if (boundp 'news-directory)
-                               (symbol-value 'news-directory)
-                             news-path))
+    (file-name-as-directory news-directory)
   "Local news spool directory.")
 
 (defvoo nnspool-nov-directory (concat nnspool-spool-directory "over.view/")