summaryrefslogtreecommitdiff
path: root/lisp/gnus.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-08-04 03:26:33 +0000
committerRichard M. Stallman <rms@gnu.org>1994-08-04 03:26:33 +0000
commit1507a647c0902f04d43715c96bcea1d867a33a80 (patch)
treecb8cb9c51b5d3748f1223d0099a1ff38dc9a5a18 /lisp/gnus.el
parent474ac5bb0537e63f246aca77d02dfcb07e0a24c8 (diff)
downloademacs-1507a647c0902f04d43715c96bcea1d867a33a80.tar.gz
(gnus-kill-files-directory): New variable.
(gnus-Newsgroup-kill-file, gnus-newsgroup-kill-file): Use it.
Diffstat (limited to 'lisp/gnus.el')
-rw-r--r--lisp/gnus.el20
1 files changed, 11 insertions, 9 deletions
diff --git a/lisp/gnus.el b/lisp/gnus.el
index 6407862d0fe..d882d95ea4e 100644
--- a/lisp/gnus.el
+++ b/lisp/gnus.el
@@ -158,6 +158,10 @@ used instead.")
"*A directory name to save articles to (default to ~/News).
Initialized from the SAVEDIR environment variable.")
+(defvar gnus-kill-files-directory (getenv "SAVEDIR")
+ "*A directory name to save kill files to (default to ~/News).
+Initialized from the SAVEDIR environment variable.")
+
(defvar gnus-default-article-saver (function gnus-summary-save-in-rmail)
"*A function to save articles in your favorite format.
The function must be interactively callable (in other words, it must
@@ -809,9 +813,6 @@ the hash tables.")
(autoload 'metamail-buffer "metamail"
"Process current buffer through 'metamail'." t)
-(autoload 'timezone-make-sortable-date "timezone")
-(autoload 'timezone-parse-date "timezone")
-
(autoload 'rmail-output "rmailout"
"Append this message to Unix mail file named FILE-NAME." t)
(autoload 'mail-position-on-field "sendmail")
@@ -1243,6 +1244,7 @@ Various hooks for customization:
"Read network news.
If optional argument CONFIRM is non-nil, ask NNTP server."
(interactive "P")
+ (require 'timezone)
(unwind-protect
(progn
(switch-to-buffer (get-buffer-create gnus-group-buffer))
@@ -4994,17 +4996,17 @@ If NEWSGROUP is nil, return the global KILL file instead."
(string-equal newsgroup ""))
;; The global KILL file is placed at top of the directory.
(expand-file-name gnus-kill-file-name
- (or gnus-article-save-directory "~/News")))
+ (or gnus-kill-files-directory "~/News")))
(gnus-use-long-file-name
;; Append ".KILL" to capitalized newsgroup name.
(expand-file-name (concat (gnus-capitalize-newsgroup newsgroup)
"." gnus-kill-file-name)
- (or gnus-article-save-directory "~/News")))
+ (or gnus-kill-files-directory "~/News")))
(t
;; Place "KILL" under the hierarchical directory.
(expand-file-name (concat (gnus-newsgroup-directory-form newsgroup)
"/" gnus-kill-file-name)
- (or gnus-article-save-directory "~/News")))
+ (or gnus-kill-files-directory "~/News")))
))
(defun gnus-newsgroup-kill-file (newsgroup)
@@ -5014,16 +5016,16 @@ If NEWSGROUP is nil, return the global KILL file instead."
(string-equal newsgroup ""))
;; The global KILL file is placed at top of the directory.
(expand-file-name gnus-kill-file-name
- (or gnus-article-save-directory "~/News")))
+ (or gnus-kill-files-directory "~/News")))
(gnus-use-long-file-name
;; Append ".KILL" to newsgroup name.
(expand-file-name (concat newsgroup "." gnus-kill-file-name)
- (or gnus-article-save-directory "~/News")))
+ (or gnus-kill-files-directory "~/News")))
(t
;; Place "KILL" under the hierarchical directory.
(expand-file-name (concat (gnus-newsgroup-directory-form newsgroup)
"/" gnus-kill-file-name)
- (or gnus-article-save-directory "~/News")))
+ (or gnus-kill-files-directory "~/News")))
))
;; For subscribing new newsgroup