aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-08-04 03:26:33 +0000
committerRichard M. Stallman1994-08-04 03:26:33 +0000
commit1507a647c0902f04d43715c96bcea1d867a33a80 (patch)
treecb8cb9c51b5d3748f1223d0099a1ff38dc9a5a18
parent474ac5bb0537e63f246aca77d02dfcb07e0a24c8 (diff)
downloademacs-1507a647c0902f04d43715c96bcea1d867a33a80.tar.gz
emacs-1507a647c0902f04d43715c96bcea1d867a33a80.zip
(gnus-kill-files-directory): New variable.
(gnus-Newsgroup-kill-file, gnus-newsgroup-kill-file): Use it.
-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.")
158 "*A directory name to save articles to (default to ~/News). 158 "*A directory name to save articles to (default to ~/News).
159Initialized from the SAVEDIR environment variable.") 159Initialized from the SAVEDIR environment variable.")
160 160
161(defvar gnus-kill-files-directory (getenv "SAVEDIR")
162 "*A directory name to save kill files to (default to ~/News).
163Initialized from the SAVEDIR environment variable.")
164
161(defvar gnus-default-article-saver (function gnus-summary-save-in-rmail) 165(defvar gnus-default-article-saver (function gnus-summary-save-in-rmail)
162 "*A function to save articles in your favorite format. 166 "*A function to save articles in your favorite format.
163The function must be interactively callable (in other words, it must 167The function must be interactively callable (in other words, it must
@@ -809,9 +813,6 @@ the hash tables.")
809(autoload 'metamail-buffer "metamail" 813(autoload 'metamail-buffer "metamail"
810 "Process current buffer through 'metamail'." t) 814 "Process current buffer through 'metamail'." t)
811 815
812(autoload 'timezone-make-sortable-date "timezone")
813(autoload 'timezone-parse-date "timezone")
814
815(autoload 'rmail-output "rmailout" 816(autoload 'rmail-output "rmailout"
816 "Append this message to Unix mail file named FILE-NAME." t) 817 "Append this message to Unix mail file named FILE-NAME." t)
817(autoload 'mail-position-on-field "sendmail") 818(autoload 'mail-position-on-field "sendmail")
@@ -1243,6 +1244,7 @@ Various hooks for customization:
1243 "Read network news. 1244 "Read network news.
1244If optional argument CONFIRM is non-nil, ask NNTP server." 1245If optional argument CONFIRM is non-nil, ask NNTP server."
1245 (interactive "P") 1246 (interactive "P")
1247 (require 'timezone)
1246 (unwind-protect 1248 (unwind-protect
1247 (progn 1249 (progn
1248 (switch-to-buffer (get-buffer-create gnus-group-buffer)) 1250 (switch-to-buffer (get-buffer-create gnus-group-buffer))
@@ -4994,17 +4996,17 @@ If NEWSGROUP is nil, return the global KILL file instead."
4994 (string-equal newsgroup "")) 4996 (string-equal newsgroup ""))
4995 ;; The global KILL file is placed at top of the directory. 4997 ;; The global KILL file is placed at top of the directory.
4996 (expand-file-name gnus-kill-file-name 4998 (expand-file-name gnus-kill-file-name
4997 (or gnus-article-save-directory "~/News"))) 4999 (or gnus-kill-files-directory "~/News")))
4998 (gnus-use-long-file-name 5000 (gnus-use-long-file-name
4999 ;; Append ".KILL" to capitalized newsgroup name. 5001 ;; Append ".KILL" to capitalized newsgroup name.
5000 (expand-file-name (concat (gnus-capitalize-newsgroup newsgroup) 5002 (expand-file-name (concat (gnus-capitalize-newsgroup newsgroup)
5001 "." gnus-kill-file-name) 5003 "." gnus-kill-file-name)
5002 (or gnus-article-save-directory "~/News"))) 5004 (or gnus-kill-files-directory "~/News")))
5003 (t 5005 (t
5004 ;; Place "KILL" under the hierarchical directory. 5006 ;; Place "KILL" under the hierarchical directory.
5005 (expand-file-name (concat (gnus-newsgroup-directory-form newsgroup) 5007 (expand-file-name (concat (gnus-newsgroup-directory-form newsgroup)
5006 "/" gnus-kill-file-name) 5008 "/" gnus-kill-file-name)
5007 (or gnus-article-save-directory "~/News"))) 5009 (or gnus-kill-files-directory "~/News")))
5008 )) 5010 ))
5009 5011
5010(defun gnus-newsgroup-kill-file (newsgroup) 5012(defun gnus-newsgroup-kill-file (newsgroup)
@@ -5014,16 +5016,16 @@ If NEWSGROUP is nil, return the global KILL file instead."
5014 (string-equal newsgroup "")) 5016 (string-equal newsgroup ""))
5015 ;; The global KILL file is placed at top of the directory. 5017 ;; The global KILL file is placed at top of the directory.
5016 (expand-file-name gnus-kill-file-name 5018 (expand-file-name gnus-kill-file-name
5017 (or gnus-article-save-directory "~/News"))) 5019 (or gnus-kill-files-directory "~/News")))
5018 (gnus-use-long-file-name 5020 (gnus-use-long-file-name
5019 ;; Append ".KILL" to newsgroup name. 5021 ;; Append ".KILL" to newsgroup name.
5020 (expand-file-name (concat newsgroup "." gnus-kill-file-name) 5022 (expand-file-name (concat newsgroup "." gnus-kill-file-name)
5021 (or gnus-article-save-directory "~/News"))) 5023 (or gnus-kill-files-directory "~/News")))
5022 (t 5024 (t
5023 ;; Place "KILL" under the hierarchical directory. 5025 ;; Place "KILL" under the hierarchical directory.
5024 (expand-file-name (concat (gnus-newsgroup-directory-form newsgroup) 5026 (expand-file-name (concat (gnus-newsgroup-directory-form newsgroup)
5025 "/" gnus-kill-file-name) 5027 "/" gnus-kill-file-name)
5026 (or gnus-article-save-directory "~/News"))) 5028 (or gnus-kill-files-directory "~/News")))
5027 )) 5029 ))
5028 5030
5029;; For subscribing new newsgroup 5031;; For subscribing new newsgroup