aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJulien Danjou2010-10-30 15:01:14 +0000
committerKatsumi Yamaoka2010-10-30 15:01:14 +0000
commit837ba704f88ac7d2b1935d1810d1574ec811a94f (patch)
tree7a58fc83d7cf7e2fa60be7f2164ba0ab5ab8c026 /lisp
parent1e961f101bfecf496850df9415ae79d37a5c0170 (diff)
downloademacs-837ba704f88ac7d2b1935d1810d1574ec811a94f.tar.gz
emacs-837ba704f88ac7d2b1935d1810d1574ec811a94f.zip
gnus-start.el (gnus-find-new-newsgroups): Remove gnus-check-first-time-used.
gnus.el: Remove gnus-backup-default-subscribed-newsgroups. gnus-group.el: Remove gnus-group-fetch-control.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/ChangeLog9
-rw-r--r--lisp/gnus/gnus-group.el31
-rw-r--r--lisp/gnus/gnus-start.el140
-rw-r--r--lisp/gnus/gnus-sum.el6
-rw-r--r--lisp/gnus/gnus.el13
5 files changed, 56 insertions, 143 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 00fcc7f3a50..ab16707d386 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,12 @@
12010-10-30 Julien Danjou <julien@danjou.info>
2
3 * gnus-group.el: Remove gnus-group-fetch-control.
4
5 * gnus-start.el (gnus-find-new-newsgroups): Remove
6 gnus-check-first-time-used.
7
8 * gnus.el: Remove gnus-backup-default-subscribed-newsgroups.
9
12010-10-30 Knut Anders Hatlen <kahatlen@gmail.com> (tiny change) 102010-10-30 Knut Anders Hatlen <kahatlen@gmail.com> (tiny change)
2 11
3 * nnimap.el (nnimap-update-info): Allow 'ticked and other flags to be 12 * nnimap.el (nnimap-update-info): Allow 'ticked and other flags to be
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index 83951834424..24215a61950 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -741,7 +741,6 @@ simple manner.")
741 "e" gnus-score-edit-all-score) 741 "e" gnus-score-edit-all-score)
742 742
743(gnus-define-keys (gnus-group-help-map "H" gnus-group-mode-map) 743(gnus-define-keys (gnus-group-help-map "H" gnus-group-mode-map)
744 "C" gnus-group-fetch-control
745 "d" gnus-group-describe-group 744 "d" gnus-group-describe-group
746 "v" gnus-version) 745 "v" gnus-version)
747 746
@@ -807,10 +806,6 @@ simple manner.")
807 ["Describe" gnus-group-describe-group :active (gnus-group-group-name) 806 ["Describe" gnus-group-describe-group :active (gnus-group-group-name)
808 ,@(if (featurep 'xemacs) nil 807 ,@(if (featurep 'xemacs) nil
809 '(:help "Display description of the current group"))] 808 '(:help "Display description of the current group"))]
810 ["Fetch control message" gnus-group-fetch-control
811 :active (gnus-group-group-name)
812 ,@(if (featurep 'xemacs) nil
813 '(:help "Display the archived control message for the current group"))]
814 ;; Actually one should check, if any of the marked groups gives t for 809 ;; Actually one should check, if any of the marked groups gives t for
815 ;; (gnus-check-backend-function 'request-expire-articles ...) 810 ;; (gnus-check-backend-function 'request-expire-articles ...)
816 ["Expire articles" gnus-group-expire-articles 811 ["Expire articles" gnus-group-expire-articles
@@ -4022,32 +4017,6 @@ If DONT-SCAN is non-nil, scan non-activated groups as well."
4022 (gnus-group-position-point) 4017 (gnus-group-position-point)
4023 ret)) 4018 ret))
4024 4019
4025(defun gnus-group-fetch-control (group)
4026 "Fetch the archived control messages for the current group.
4027If given a prefix argument, prompt for a group."
4028 (interactive
4029 (list (or (when current-prefix-arg
4030 (gnus-group-completing-read))
4031 (gnus-group-group-name)
4032 gnus-newsgroup-name)))
4033 (unless group
4034 (error "No group name given"))
4035 (let ((name (gnus-group-real-name group))
4036 hierarchy)
4037 (when (string-match "\\(^[^\\.]+\\)\\..*" name)
4038 (setq hierarchy (match-string 1 name))
4039 (if gnus-group-fetch-control-use-browse-url
4040 (browse-url (concat "ftp://ftp.isc.org/usenet/control/"
4041 hierarchy "/" name ".gz"))
4042 (let ((enable-local-variables nil))
4043 (gnus-group-read-ephemeral-group
4044 group
4045 `(nndoc ,group (nndoc-address
4046 ,(find-file-noselect
4047 (concat "/ftp@ftp.isc.org:/usenet/control/"
4048 hierarchy "/" name ".gz")))
4049 (nndoc-article-type mbox)) t nil nil))))))
4050
4051(defun gnus-group-describe-group (force &optional group) 4020(defun gnus-group-describe-group (force &optional group)
4052 "Display a description of the current newsgroup." 4021 "Display a description of the current newsgroup."
4053 (interactive (list current-prefix-arg (gnus-group-group-name))) 4022 (interactive (list current-prefix-arg (gnus-group-group-name)))
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index 857c7d5cb61..f480d304d4b 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -1100,53 +1100,52 @@ for new groups, and subscribe the new groups as zombies."
1100 'gnus-subscribe-zombies) 1100 'gnus-subscribe-zombies)
1101 t) 1101 t)
1102 (t gnus-check-new-newsgroups)))) 1102 (t gnus-check-new-newsgroups))))
1103 (unless (gnus-check-first-time-used) 1103 (if (or (consp check)
1104 (if (or (consp check) 1104 (eq check 'ask-server))
1105 (eq check 'ask-server)) 1105 ;; Ask the server for new groups.
1106 ;; Ask the server for new groups. 1106 (gnus-ask-server-for-new-groups)
1107 (gnus-ask-server-for-new-groups) 1107 ;; Go through the active hashtb and look for new groups.
1108 ;; Go through the active hashtb and look for new groups. 1108 (let ((groups 0)
1109 (let ((groups 0) 1109 group new-newsgroups)
1110 group new-newsgroups) 1110 (gnus-message 5 "Looking for new newsgroups...")
1111 (gnus-message 5 "Looking for new newsgroups...") 1111 (unless gnus-have-read-active-file
1112 (unless gnus-have-read-active-file 1112 (gnus-read-active-file))
1113 (gnus-read-active-file)) 1113 (setq gnus-newsrc-last-checked-date (message-make-date))
1114 (setq gnus-newsrc-last-checked-date (message-make-date)) 1114 (unless gnus-killed-hashtb
1115 (unless gnus-killed-hashtb 1115 (gnus-make-hashtable-from-killed))
1116 (gnus-make-hashtable-from-killed)) 1116 ;; Go though every newsgroup in `gnus-active-hashtb' and compare
1117 ;; Go though every newsgroup in `gnus-active-hashtb' and compare 1117 ;; with `gnus-newsrc-hashtb' and `gnus-killed-hashtb'.
1118 ;; with `gnus-newsrc-hashtb' and `gnus-killed-hashtb'. 1118 (mapatoms
1119 (mapatoms 1119 (lambda (sym)
1120 (lambda (sym) 1120 (if (or (null (setq group (symbol-name sym)))
1121 (if (or (null (setq group (symbol-name sym))) 1121 (not (boundp sym))
1122 (not (boundp sym)) 1122 (null (symbol-value sym))
1123 (null (symbol-value sym)) 1123 (gnus-gethash group gnus-killed-hashtb)
1124 (gnus-gethash group gnus-killed-hashtb) 1124 (gnus-gethash group gnus-newsrc-hashtb))
1125 (gnus-gethash group gnus-newsrc-hashtb)) 1125 ()
1126 () 1126 (let ((do-sub (gnus-matches-options-n group)))
1127 (let ((do-sub (gnus-matches-options-n group))) 1127 (cond
1128 (cond 1128 ((eq do-sub 'subscribe)
1129 ((eq do-sub 'subscribe) 1129 (setq groups (1+ groups))
1130 (setq groups (1+ groups)) 1130 (gnus-sethash group group gnus-killed-hashtb)
1131 (gnus-sethash group group gnus-killed-hashtb) 1131 (gnus-call-subscribe-functions
1132 (gnus-call-subscribe-functions 1132 gnus-subscribe-options-newsgroup-method group))
1133 gnus-subscribe-options-newsgroup-method group)) 1133 ((eq do-sub 'ignore)
1134 ((eq do-sub 'ignore) 1134 nil)
1135 nil) 1135 (t
1136 (t 1136 (setq groups (1+ groups))
1137 (setq groups (1+ groups)) 1137 (gnus-sethash group group gnus-killed-hashtb)
1138 (gnus-sethash group group gnus-killed-hashtb) 1138 (if gnus-subscribe-hierarchical-interactive
1139 (if gnus-subscribe-hierarchical-interactive 1139 (push group new-newsgroups)
1140 (push group new-newsgroups) 1140 (gnus-call-subscribe-functions
1141 (gnus-call-subscribe-functions 1141 gnus-subscribe-newsgroup-method group)))))))
1142 gnus-subscribe-newsgroup-method group))))))) 1142 gnus-active-hashtb)
1143 gnus-active-hashtb) 1143 (when new-newsgroups
1144 (when new-newsgroups 1144 (gnus-subscribe-hierarchical-interactive new-newsgroups))
1145 (gnus-subscribe-hierarchical-interactive new-newsgroups)) 1145 (if (> groups 0)
1146 (if (> groups 0) 1146 (gnus-message 5 "%d new newsgroup%s arrived."
1147 (gnus-message 5 "%d new newsgroup%s arrived." 1147 groups (if (> groups 1) "s have" " has"))
1148 groups (if (> groups 1) "s have" " has")) 1148 (gnus-message 5 "No new newsgroups."))))))
1149 (gnus-message 5 "No new newsgroups.")))))))
1150 1149
1151(defun gnus-matches-options-n (group) 1150(defun gnus-matches-options-n (group)
1152 ;; Returns `subscribe' if the group is to be unconditionally 1151 ;; Returns `subscribe' if the group is to be unconditionally
@@ -1246,53 +1245,6 @@ for new groups, and subscribe the new groups as zombies."
1246 (setq gnus-newsrc-last-checked-date new-date)) 1245 (setq gnus-newsrc-last-checked-date new-date))
1247 got-new)) 1246 got-new))
1248 1247
1249(defun gnus-check-first-time-used ()
1250 (catch 'ended
1251 ;; First check if any of the following files exist. If they do,
1252 ;; it's not the first time the user has used Gnus.
1253 (dolist (file (list (concat gnus-current-startup-file ".el")
1254 (concat gnus-current-startup-file ".eld")
1255 (concat gnus-startup-file ".el")
1256 (concat gnus-startup-file ".eld")))
1257 (when (file-exists-p file)
1258 (throw 'ended nil)))
1259 (gnus-message 6 "First time user; subscribing you to default groups")
1260 (unless (gnus-read-active-file-p)
1261 (let ((gnus-read-active-file t))
1262 (gnus-read-active-file)))
1263 (setq gnus-newsrc-last-checked-date (message-make-date))
1264 ;; Subscribe to the default newsgroups.
1265 (let ((groups (or gnus-default-subscribed-newsgroups
1266 gnus-backup-default-subscribed-newsgroups))
1267 group)
1268 (if (eq groups t)
1269 ;; If t, we subscribe (or not) all groups as if they were new.
1270 (mapatoms
1271 (lambda (sym)
1272 (when (setq group (symbol-name sym))
1273 (let ((do-sub (gnus-matches-options-n group)))
1274 (cond
1275 ((eq do-sub 'subscribe)
1276 (gnus-sethash group group gnus-killed-hashtb)
1277 (gnus-call-subscribe-functions
1278 gnus-subscribe-options-newsgroup-method group))
1279 ((eq do-sub 'ignore)
1280 nil)
1281 (t
1282 (push group gnus-killed-list))))))
1283 gnus-active-hashtb)
1284 (dolist (group groups)
1285 ;; Only subscribe the default groups that are activated.
1286 (when (gnus-active group)
1287 (gnus-group-change-level
1288 group gnus-level-default-subscribed gnus-level-killed)))
1289 (with-current-buffer gnus-group-buffer
1290 ;; Don't error if the group already exists. This happens when a
1291 ;; first-time user types 'F'. -- didier
1292 (gnus-group-make-help-group t))
1293 (when gnus-novice-user
1294 (gnus-message 7 "`A k' to list killed groups"))))))
1295
1296(defun gnus-subscribe-group (group &optional previous method) 1248(defun gnus-subscribe-group (group &optional previous method)
1297 "Subscribe GROUP and put it after PREVIOUS." 1249 "Subscribe GROUP and put it after PREVIOUS."
1298 (gnus-group-change-level 1250 (gnus-group-change-level
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 85fe9f2538f..53645bfdb5e 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -2169,8 +2169,7 @@ increase the score of each group you read."
2169 "v" gnus-version 2169 "v" gnus-version
2170 "d" gnus-summary-describe-group 2170 "d" gnus-summary-describe-group
2171 "h" gnus-summary-describe-briefly 2171 "h" gnus-summary-describe-briefly
2172 "i" gnus-info-find-node 2172 "i" gnus-info-find-node)
2173 "C" gnus-group-fetch-control)
2174 2173
2175(gnus-define-keys (gnus-summary-backend-map "B" gnus-summary-mode-map) 2174(gnus-define-keys (gnus-summary-backend-map "B" gnus-summary-mode-map)
2176 "e" gnus-summary-expire-articles 2175 "e" gnus-summary-expire-articles
@@ -2747,9 +2746,6 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs))))
2747 ["Original sort" gnus-summary-sort-by-original t]) 2746 ["Original sort" gnus-summary-sort-by-original t])
2748 ("Help" 2747 ("Help"
2749 ["Describe group" gnus-summary-describe-group t] 2748 ["Describe group" gnus-summary-describe-group t]
2750 ["Fetch control message" gnus-group-fetch-control
2751 ,@(if (featurep 'xemacs) nil
2752 '(:help "Display the archived control message for the current group"))]
2753 ["Read manual" gnus-info-find-node t]) 2749 ["Read manual" gnus-info-find-node t])
2754 ("Modes" 2750 ("Modes"
2755 ["Pick and read" gnus-pick-mode t] 2751 ["Pick and read" gnus-pick-mode t]
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index ab0d3b3e59a..d2149016461 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -1389,11 +1389,6 @@ you could set this variable:
1389 :group 'gnus-server 1389 :group 'gnus-server
1390 :type '(repeat gnus-select-method)) 1390 :type '(repeat gnus-select-method))
1391 1391
1392(defvar gnus-backup-default-subscribed-newsgroups
1393 '("news.announce.newusers" "news.groups.questions" "gnu.emacs.gnus")
1394 "Default default new newsgroups the first time Gnus is run.
1395Should be set in paths.el, and shouldn't be touched by the user.")
1396
1397(defcustom gnus-local-domain nil 1392(defcustom gnus-local-domain nil
1398 "Local domain name without a host name. 1393 "Local domain name without a host name.
1399The DOMAINNAME environment variable is used instead if it is defined. 1394The DOMAINNAME environment variable is used instead if it is defined.
@@ -1437,14 +1432,6 @@ list, Gnus will try all the methods in the list until it finds a match."
1437 (nnweb "refer" (nnweb-type google))) 1432 (nnweb "refer" (nnweb-type google)))
1438 gnus-select-method)))) 1433 gnus-select-method))))
1439 1434
1440(defcustom gnus-group-fetch-control-use-browse-url nil
1441 "*Non-nil means that control messages are displayed using `browse-url'.
1442Otherwise they are fetched with ange-ftp and displayed in an ephemeral
1443group."
1444 :version "22.1"
1445 :group 'gnus-group-various
1446 :type 'boolean)
1447
1448(defcustom gnus-use-cross-reference t 1435(defcustom gnus-use-cross-reference t
1449 "*Non-nil means that cross referenced articles will be marked as read. 1436 "*Non-nil means that cross referenced articles will be marked as read.
1450If nil, ignore cross references. If t, mark articles as read in 1437If nil, ignore cross references. If t, mark articles as read in