1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00:00

Make news-path variable obsolete

* lisp/gnus/nnspool.el (news-path): Make obsolete.
(nnspool-spool-directory): Don't use above obsolete variable.
This commit is contained in:
Stefan Kangas 2023-08-08 19:16:23 +02:00
parent b8c05636ca
commit 2752573dfb

View 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/")