Mercurial > emacs
annotate lisp/gnus/gnus-group.el @ 75024:6cf73d2a2aa9
Reorder
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Mon, 01 Jan 2007 19:03:59 +0000 |
parents | 6b69e86dc4cc |
children | e3694f1cb928 bc10a33dd40b |
rev | line source |
---|---|
17493 | 1 ;;; gnus-group.el --- group mode commands for Gnus |
64754
fafd692d1e40
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64085
diff
changeset
|
2 |
fafd692d1e40
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64085
diff
changeset
|
3 ;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
68230
6c7c654eb3c7
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-702
Miles Bader <miles@gnu.org>
parents:
68129
diff
changeset
|
4 ;; 2005, 2006 Free Software Foundation, Inc. |
17493 | 5 |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
6 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> |
17493 | 7 ;; Keywords: news |
8 | |
9 ;; This file is part of GNU Emacs. | |
10 | |
11 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
12 ;; it under the terms of the GNU General Public License as published by | |
13 ;; the Free Software Foundation; either version 2, or (at your option) | |
14 ;; any later version. | |
15 | |
16 ;; GNU Emacs is distributed in the hope that it will be useful, | |
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 ;; GNU General Public License for more details. | |
20 | |
21 ;; You should have received a copy of the GNU General Public License | |
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
64085 | 23 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
24 ;; Boston, MA 02110-1301, USA. | |
17493 | 25 |
26 ;;; Commentary: | |
27 | |
28 ;;; Code: | |
29 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
30 (eval-when-compile |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
31 (require 'cl) |
70146
2cd7cafcba54
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-238
Miles Bader <miles@gnu.org>
parents:
70063
diff
changeset
|
32 (defvar tool-bar-mode)) |
19521
6f6cf9184e93
Require cl at compile time.
Richard M. Stallman <rms@gnu.org>
parents:
18575
diff
changeset
|
33 |
17493 | 34 (require 'gnus) |
35 (require 'gnus-start) | |
36 (require 'nnmail) | |
37 (require 'gnus-spec) | |
38 (require 'gnus-int) | |
39 (require 'gnus-range) | |
40 (require 'gnus-win) | |
41 (require 'gnus-undo) | |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
42 (require 'gmm-utils) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
43 (require 'time-date) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
44 (require 'gnus-ems) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
45 |
62943
11d53dd5abd9
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-345
Miles Bader <miles@gnu.org>
parents:
62907
diff
changeset
|
46 (eval-when-compile |
11d53dd5abd9
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-345
Miles Bader <miles@gnu.org>
parents:
62907
diff
changeset
|
47 (require 'mm-url) |
11d53dd5abd9
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-345
Miles Bader <miles@gnu.org>
parents:
62907
diff
changeset
|
48 (let ((features (cons 'gnus-group features))) |
11d53dd5abd9
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-345
Miles Bader <miles@gnu.org>
parents:
62907
diff
changeset
|
49 (require 'gnus-sum)) |
11d53dd5abd9
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-345
Miles Bader <miles@gnu.org>
parents:
62907
diff
changeset
|
50 (defvar gnus-cache-active-hashtb)) |
17493 | 51 |
52 (defcustom gnus-group-archive-directory | |
57617
7fdc1df35f39
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-628
Miles Bader <miles@gnu.org>
parents:
57581
diff
changeset
|
53 "/ftp@ftp.hpc.uh.edu:/pub/emacs/ding-list/" |
17493 | 54 "*The address of the (ding) archives." |
55 :group 'gnus-group-foreign | |
56 :type 'directory) | |
57 | |
58 (defcustom gnus-group-recent-archive-directory | |
57617
7fdc1df35f39
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-628
Miles Bader <miles@gnu.org>
parents:
57581
diff
changeset
|
59 "/ftp@ftp.hpc.uh.edu:/pub/emacs/ding-list-recent/" |
17493 | 60 "*The address of the most recent (ding) articles." |
61 :group 'gnus-group-foreign | |
62 :type 'directory) | |
63 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
64 (defcustom gnus-no-groups-message "No gnus is bad news" |
17493 | 65 "*Message displayed by Gnus when no groups are available." |
66 :group 'gnus-start | |
67 :type 'string) | |
68 | |
69 (defcustom gnus-keep-same-level nil | |
70 "*Non-nil means that the next newsgroup after the current will be on the same level. | |
71 When you type, for instance, `n' after reading the last article in the | |
72 current newsgroup, you will go to the next newsgroup. If this variable | |
73 is nil, the next newsgroup will be the next from the group | |
74 buffer. | |
75 If this variable is non-nil, Gnus will either put you in the | |
76 next newsgroup with the same level, or, if no such newsgroup is | |
77 available, the next newsgroup with the lowest possible level higher | |
78 than the current level. | |
79 If this variable is `best', Gnus will make the next newsgroup the one | |
80 with the best level." | |
81 :group 'gnus-group-levels | |
82 :type '(choice (const nil) | |
83 (const best) | |
84 (sexp :tag "other" t))) | |
85 | |
86 (defcustom gnus-group-goto-unread t | |
87 "*If non-nil, movement commands will go to the next unread and subscribed group." | |
88 :link '(custom-manual "(gnus)Group Maneuvering") | |
89 :group 'gnus-group-various | |
90 :type 'boolean) | |
91 | |
92 (defcustom gnus-goto-next-group-when-activating t | |
93 "*If non-nil, the \\<gnus-group-mode-map>\\[gnus-group-get-new-news-this-group] command will advance point to the next group." | |
94 :link '(custom-manual "(gnus)Scanning New Messages") | |
95 :group 'gnus-group-various | |
96 :type 'boolean) | |
97 | |
98 (defcustom gnus-permanently-visible-groups nil | |
99 "*Regexp to match groups that should always be listed in the group buffer. | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
100 This means that they will still be listed even when there are no |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
101 unread articles in the groups. |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
102 |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
103 If nil, no groups are permanently visible." |
17493 | 104 :group 'gnus-group-listing |
24834
d0ccf995f1ae
(gnus-permanently-visible-groups): Fix custom type.
Karl Heuer <kwzh@gnu.org>
parents:
24357
diff
changeset
|
105 :type '(choice regexp (const nil))) |
17493 | 106 |
107 (defcustom gnus-list-groups-with-ticked-articles t | |
108 "*If non-nil, list groups that have only ticked articles. | |
109 If nil, only list groups that have unread articles." | |
110 :group 'gnus-group-listing | |
111 :type 'boolean) | |
112 | |
113 (defcustom gnus-group-default-list-level gnus-level-subscribed | |
114 "*Default listing level. | |
115 Ignored if `gnus-group-use-permanent-levels' is non-nil." | |
116 :group 'gnus-group-listing | |
117 :type 'integer) | |
118 | |
119 (defcustom gnus-group-list-inactive-groups t | |
120 "*If non-nil, inactive groups will be listed." | |
121 :group 'gnus-group-listing | |
122 :group 'gnus-group-levels | |
123 :type 'boolean) | |
124 | |
125 (defcustom gnus-group-sort-function 'gnus-group-sort-by-alphabet | |
126 "*Function used for sorting the group buffer. | |
127 This function will be called with group info entries as the arguments | |
128 for the groups to be sorted. Pre-made functions include | |
129 `gnus-group-sort-by-alphabet', `gnus-group-sort-by-real-name', | |
130 `gnus-group-sort-by-unread', `gnus-group-sort-by-level', | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
131 `gnus-group-sort-by-score', `gnus-group-sort-by-method', |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
132 `gnus-group-sort-by-server', and `gnus-group-sort-by-rank'. |
17493 | 133 |
74150
361d95731e62
(gnus-group-sort-function, gnus-group-line-format, gnus-group-mode,
Juanma Barranquero <lekktu@gmail.com>
parents:
73487
diff
changeset
|
134 This variable can also be a list of sorting functions. In that case, |
17493 | 135 the most significant sort function should be the last function in the |
136 list." | |
137 :group 'gnus-group-listing | |
138 :link '(custom-manual "(gnus)Sorting Groups") | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
139 :type '(repeat :value-to-internal (lambda (widget value) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
140 (if (listp value) value (list value))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
141 :match (lambda (widget value) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
142 (or (symbolp value) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
143 (widget-editable-list-match widget value))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
144 (choice (function-item gnus-group-sort-by-alphabet) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
145 (function-item gnus-group-sort-by-real-name) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
146 (function-item gnus-group-sort-by-unread) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
147 (function-item gnus-group-sort-by-level) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
148 (function-item gnus-group-sort-by-score) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
149 (function-item gnus-group-sort-by-method) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
150 (function-item gnus-group-sort-by-server) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
151 (function-item gnus-group-sort-by-rank) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
152 (function :tag "other" nil)))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
153 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
154 (defcustom gnus-group-line-format "%M\%S\%p\%P\%5y:%B%(%g%)%l %O\n" |
17493 | 155 "*Format of group lines. |
156 It works along the same lines as a normal formatting string, | |
157 with some simple extensions. | |
158 | |
159 %M Only marked articles (character, \"*\" or \" \") | |
160 %S Whether the group is subscribed (character, \"U\", \"K\", \"Z\" or \" \") | |
161 %L Level of subscribedness (integer) | |
162 %N Number of unread articles (integer) | |
163 %I Number of dormant articles (integer) | |
164 %i Number of ticked and dormant (integer) | |
165 %T Number of ticked articles (integer) | |
166 %R Number of read articles (integer) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
167 %U Number of unseen articles (integer) |
17493 | 168 %t Estimated total number of articles (integer) |
169 %y Number of unread, unticked articles (integer) | |
170 %G Group name (string) | |
171 %g Qualified group name (string) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
172 %c Short (collapsed) group name. See `gnus-group-uncollapsed-levels'. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
173 %C Group comment (string) |
17493 | 174 %D Group description (string) |
175 %s Select method (string) | |
176 %o Moderated group (char, \"m\") | |
177 %p Process mark (char) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
178 %B Whether a summary buffer for the group is open (char, \"*\") |
17493 | 179 %O Moderated group (string, \"(m)\" or \"\") |
180 %P Topic indentation (string) | |
181 %m Whether there is new(ish) mail in the group (char, \"%\") | |
182 %l Whether there are GroupLens predictions for this group (string) | |
183 %n Select from where (string) | |
184 %z A string that look like `<%s:%n>' if a foreign select method is used | |
185 %d The date the group was last entered. | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
186 %E Icon as defined by `gnus-group-icon-list'. |
17493 | 187 %u User defined specifier. The next character in the format string should |
188 be a letter. Gnus will call the function gnus-user-format-function-X, | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
189 where X is the letter following %u. The function will be passed a |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
190 single dummy parameter as argument. The function should return a |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
191 string, which will be inserted into the buffer just like information |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
192 from any other group specifier. |
17493 | 193 |
194 Note that this format specification is not always respected. For | |
195 reasons of efficiency, when listing killed groups, this specification | |
74150
361d95731e62
(gnus-group-sort-function, gnus-group-line-format, gnus-group-mode,
Juanma Barranquero <lekktu@gmail.com>
parents:
73487
diff
changeset
|
196 is ignored altogether. If the spec is changed considerably, your |
17493 | 197 output may end up looking strange when listing both alive and killed |
198 groups. | |
199 | |
200 If you use %o or %O, reading the active file will be slower and quite | |
201 a bit of extra memory will be used. %D will also worsen performance. | |
202 Also note that if you change the format specification to include any | |
203 of these specs, you must probably re-start Gnus to see them go into | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
204 effect. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
205 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
206 General format specifiers can also be used. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
207 See Info node `(gnus)Formatting Variables'." |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
208 :link '(custom-manual "(gnus)Formatting Variables") |
17493 | 209 :group 'gnus-group-visual |
210 :type 'string) | |
211 | |
212 (defcustom gnus-group-mode-line-format "Gnus: %%b {%M\%:%S}" | |
213 "*The format specification for the group mode line. | |
214 It works along the same lines as a normal formatting string, | |
215 with some simple extensions: | |
216 | |
217 %S The native news server. | |
218 %M The native select method. | |
219 %: \":\" if %S isn't \"\"." | |
220 :group 'gnus-group-visual | |
221 :type 'string) | |
222 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
223 ;; Extracted from gnus-xmas-redefine in order to preserve user settings |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
224 (when (featurep 'xemacs) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
225 (add-hook 'gnus-group-mode-hook 'gnus-xmas-group-menu-add) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
226 (add-hook 'gnus-group-mode-hook 'gnus-xmas-setup-group-toolbar)) |
17493 | 227 |
228 (defcustom gnus-group-menu-hook nil | |
229 "Hook run after the creation of the group mode menu." | |
230 :group 'gnus-group-various | |
231 :type 'hook) | |
232 | |
233 (defcustom gnus-group-catchup-group-hook nil | |
234 "Hook run when catching up a group from the group buffer." | |
235 :group 'gnus-group-various | |
236 :link '(custom-manual "(gnus)Group Data") | |
237 :type 'hook) | |
238 | |
239 (defcustom gnus-group-update-group-hook nil | |
240 "Hook called when updating group lines." | |
241 :group 'gnus-group-visual | |
242 :type 'hook) | |
243 | |
244 (defcustom gnus-group-prepare-function 'gnus-group-prepare-flat | |
245 "*A function that is called to generate the group buffer. | |
246 The function is called with three arguments: The first is a number; | |
247 all group with a level less or equal to that number should be listed, | |
248 if the second is non-nil, empty groups should also be displayed. If | |
249 the third is non-nil, it is a number. No groups with a level lower | |
250 than this number should be displayed. | |
251 | |
252 The only current function implemented is `gnus-group-prepare-flat'." | |
253 :group 'gnus-group-listing | |
254 :type 'function) | |
255 | |
256 (defcustom gnus-group-prepare-hook nil | |
257 "Hook called after the group buffer has been generated. | |
258 If you want to modify the group buffer, you can use this hook." | |
259 :group 'gnus-group-listing | |
260 :type 'hook) | |
261 | |
262 (defcustom gnus-suspend-gnus-hook nil | |
263 "Hook called when suspending (not exiting) Gnus." | |
264 :group 'gnus-exit | |
265 :type 'hook) | |
266 | |
267 (defcustom gnus-exit-gnus-hook nil | |
268 "Hook called when exiting Gnus." | |
269 :group 'gnus-exit | |
270 :type 'hook) | |
271 | |
272 (defcustom gnus-after-exiting-gnus-hook nil | |
273 "Hook called after exiting Gnus." | |
274 :group 'gnus-exit | |
275 :type 'hook) | |
276 | |
277 (defcustom gnus-group-update-hook '(gnus-group-highlight-line) | |
278 "Hook called when a group line is changed. | |
279 The hook will not be called if `gnus-visual' is nil. | |
280 | |
281 The default function `gnus-group-highlight-line' will | |
282 highlight the line according to the `gnus-group-highlight' | |
283 variable." | |
284 :group 'gnus-group-visual | |
285 :type 'hook) | |
286 | |
287 (defcustom gnus-useful-groups | |
68129
6f5da26b0df1
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-690
Miles Bader <miles@gnu.org>
parents:
64754
diff
changeset
|
288 '(("(ding) mailing list mirrored at gmane.org" |
6f5da26b0df1
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-690
Miles Bader <miles@gnu.org>
parents:
64754
diff
changeset
|
289 "gmane.emacs.gnus.general" |
6f5da26b0df1
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-690
Miles Bader <miles@gnu.org>
parents:
64754
diff
changeset
|
290 (nntp "Gmane" |
6f5da26b0df1
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-690
Miles Bader <miles@gnu.org>
parents:
64754
diff
changeset
|
291 (nntp-address "news.gmane.org"))) |
6f5da26b0df1
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-690
Miles Bader <miles@gnu.org>
parents:
64754
diff
changeset
|
292 ("Gnus bug archive" |
6f5da26b0df1
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-690
Miles Bader <miles@gnu.org>
parents:
64754
diff
changeset
|
293 "gnus.gnus-bug" |
6f5da26b0df1
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-690
Miles Bader <miles@gnu.org>
parents:
64754
diff
changeset
|
294 (nntp "news.gnus.org" |
6f5da26b0df1
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-690
Miles Bader <miles@gnu.org>
parents:
64754
diff
changeset
|
295 (nntp-address "news.gnus.org"))) |
6f5da26b0df1
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-690
Miles Bader <miles@gnu.org>
parents:
64754
diff
changeset
|
296 ("Local Gnus help group" |
17493 | 297 "gnus-help" |
298 (nndoc "gnus-help" | |
299 (nndoc-article-type mbox) | |
300 (eval `(nndoc-address | |
301 ,(let ((file (nnheader-find-etc-directory | |
302 "gnus-tut.txt" t))) | |
303 (unless file | |
304 (error "Couldn't find doc group")) | |
305 file)))))) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
306 "*Alist of useful group-server pairs." |
17493 | 307 :group 'gnus-group-listing |
308 :type '(repeat (list (string :tag "Description") | |
309 (string :tag "Name") | |
310 (sexp :tag "Method")))) | |
311 | |
312 (defcustom gnus-group-highlight | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
313 '(;; Mail. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
314 ((and mailp (= unread 0) (eq level 1)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
315 gnus-group-mail-1-empty) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
316 ((and mailp (eq level 1)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
317 gnus-group-mail-1) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
318 ((and mailp (= unread 0) (eq level 2)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
319 gnus-group-mail-2-empty) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
320 ((and mailp (eq level 2)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
321 gnus-group-mail-2) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
322 ((and mailp (= unread 0) (eq level 3)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
323 gnus-group-mail-3-empty) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
324 ((and mailp (eq level 3)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
325 gnus-group-mail-3) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
326 ((and mailp (= unread 0)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
327 gnus-group-mail-low-empty) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
328 ((and mailp) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
329 gnus-group-mail-low) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
330 ;; News. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
331 ((and (= unread 0) (eq level 1)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
332 gnus-group-news-1-empty) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
333 ((and (eq level 1)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
334 gnus-group-news-1) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
335 ((and (= unread 0) (eq level 2)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
336 gnus-group-news-2-empty) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
337 ((and (eq level 2)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
338 gnus-group-news-2) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
339 ((and (= unread 0) (eq level 3)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
340 gnus-group-news-3-empty) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
341 ((and (eq level 3)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
342 gnus-group-news-3) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
343 ((and (= unread 0) (eq level 4)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
344 gnus-group-news-4-empty) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
345 ((and (eq level 4)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
346 gnus-group-news-4) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
347 ((and (= unread 0) (eq level 5)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
348 gnus-group-news-5-empty) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
349 ((and (eq level 5)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
350 gnus-group-news-5) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
351 ((and (= unread 0) (eq level 6)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
352 gnus-group-news-6-empty) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
353 ((and (eq level 6)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
354 gnus-group-news-6) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
355 ((and (= unread 0)) . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
356 gnus-group-news-low-empty) |
17493 | 357 (t . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
358 gnus-group-news-low)) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
359 "*Controls the highlighting of group buffer lines. |
17493 | 360 |
361 Below is a list of `Form'/`Face' pairs. When deciding how a a | |
362 particular group line should be displayed, each form is | |
363 evaluated. The content of the face field after the first true form is | |
364 used. You can change how those group lines are displayed by | |
365 editing the face field. | |
366 | |
367 It is also possible to change and add form fields, but currently that | |
368 requires an understanding of Lisp expressions. Hopefully this will | |
369 change in a future release. For now, you can use the following | |
370 variables in the Lisp expression: | |
371 | |
372 group: The name of the group. | |
373 unread: The number of unread articles in the group. | |
374 method: The select method used. | |
375 mailp: Whether it's a mail group or not. | |
376 level: The level of the group. | |
377 score: The score of the group. | |
378 ticked: The number of ticked articles." | |
379 :group 'gnus-group-visual | |
380 :type '(repeat (cons (sexp :tag "Form") face))) | |
381 | |
382 (defcustom gnus-new-mail-mark ?% | |
383 "Mark used for groups with new mail." | |
384 :group 'gnus-group-visual | |
385 :type 'character) | |
386 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
387 (defgroup gnus-group-icons nil |
63975
90e4b76eb90b
(gnus-group-icons): Fix typo in docstring.
Juanma Barranquero <lekktu@gmail.com>
parents:
63480
diff
changeset
|
388 "Add Icons to your group buffer." |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
389 :group 'gnus-group-visual) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
390 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
391 (defcustom gnus-group-icon-list |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
392 nil |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
393 "*Controls the insertion of icons into group buffer lines. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
394 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
395 Below is a list of `Form'/`File' pairs. When deciding how a |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
396 particular group line should be displayed, each form is evaluated. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
397 The icon from the file field after the first true form is used. You |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
398 can change how those group lines are displayed by editing the file |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
399 field. The File will either be found in the |
49274
eb2699620e9c
* gnus-agent.el: Don't use `path'.
ShengHuo ZHU <zsh@cs.rochester.edu>
parents:
48588
diff
changeset
|
400 `gnus-group-glyph-directory' or by designating absolute name of the |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
401 file. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
402 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
403 It is also possible to change and add form fields, but currently that |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
404 requires an understanding of Lisp expressions. Hopefully this will |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
405 change in a future release. For now, you can use the following |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
406 variables in the Lisp expression: |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
407 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
408 group: The name of the group. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
409 unread: The number of unread articles in the group. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
410 method: The select method used. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
411 mailp: Whether it's a mail group or not. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
412 newsp: Whether it's a news group or not |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
413 level: The level of the group. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
414 score: The score of the group. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
415 ticked: The number of ticked articles." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
416 :group 'gnus-group-icons |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
417 :type '(repeat (cons (sexp :tag "Form") file))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
418 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
419 (defcustom gnus-group-name-charset-method-alist nil |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
420 "Alist of method and the charset for group names. |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
421 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
422 For example: |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
423 (((nntp \"news.com.cn\") . cn-gb-2312))" |
33395
83221012a4f7
(gnus-group-name-charset-method-alist): Add
Dave Love <fx@gnu.org>
parents:
33344
diff
changeset
|
424 :version "21.1" |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
425 :group 'gnus-charset |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
426 :type '(repeat (cons (sexp :tag "Method") (symbol :tag "Charset")))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
427 |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
428 (defcustom gnus-group-name-charset-group-alist |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
429 (if (or (and (fboundp 'find-coding-system) (find-coding-system 'utf-8)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
430 (mm-coding-system-p 'utf-8)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
431 '((".*" . utf-8)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
432 nil) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
433 "Alist of group regexp and the charset for group names. |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
434 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
435 For example: |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
436 ((\"\\.com\\.cn:\" . cn-gb-2312))" |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
437 :group 'gnus-charset |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
438 :type '(repeat (cons (regexp :tag "Group") (symbol :tag "Charset")))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
439 |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
440 (defcustom gnus-group-jump-to-group-prompt nil |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
441 "Default prompt for `gnus-group-jump-to-group'. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
442 If non-nil, the value should be a string, e.g. \"nnml:\", |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
443 in which case `gnus-group-jump-to-group' offers \"Group: nnml:\" |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
444 in the minibuffer prompt." |
59996
aac0a33f5772
Change release version from 21.4 to 22.1 throughout.
Kim F. Storm <storm@cua.dk>
parents:
59027
diff
changeset
|
445 :version "22.1" |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
446 :group 'gnus-group-various |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
447 :type '(choice (string :tag "Prompt string") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
448 (const :tag "Empty" nil))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
449 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
450 (defvar gnus-group-listing-limit 1000 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
451 "*A limit of the number of groups when listing. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
452 If the number of groups is larger than the limit, list them in a |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
453 simple manner.") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
454 |
17493 | 455 ;;; Internal variables |
456 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
457 (defvar gnus-group-is-exiting-p nil) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
458 (defvar gnus-group-is-exiting-without-update-p nil) |
17493 | 459 (defvar gnus-group-sort-alist-function 'gnus-group-sort-flat |
460 "Function for sorting the group buffer.") | |
461 | |
462 (defvar gnus-group-sort-selected-function 'gnus-group-sort-selected-flat | |
463 "Function for sorting the selected groups in the group buffer.") | |
464 | |
465 (defvar gnus-group-indentation-function nil) | |
466 (defvar gnus-goto-missing-group-function nil) | |
467 (defvar gnus-group-update-group-function nil) | |
468 (defvar gnus-group-goto-next-group-function nil | |
469 "Function to override finding the next group after listing groups.") | |
470 | |
471 (defvar gnus-group-edit-buffer nil) | |
472 | |
473 (defvar gnus-group-line-format-alist | |
474 `((?M gnus-tmp-marked-mark ?c) | |
475 (?S gnus-tmp-subscribed ?c) | |
476 (?L gnus-tmp-level ?d) | |
477 (?N (cond ((eq number t) "*" ) | |
478 ((numberp number) | |
479 (int-to-string | |
480 (+ number | |
481 (gnus-range-length (cdr (assq 'dormant gnus-tmp-marked))) | |
482 (gnus-range-length (cdr (assq 'tick gnus-tmp-marked)))))) | |
483 (t number)) ?s) | |
484 (?R gnus-tmp-number-of-read ?s) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
485 (?U (gnus-number-of-unseen-articles-in-group gnus-tmp-group) ?d) |
17493 | 486 (?t gnus-tmp-number-total ?d) |
487 (?y gnus-tmp-number-of-unread ?s) | |
488 (?I (gnus-range-length (cdr (assq 'dormant gnus-tmp-marked))) ?d) | |
489 (?T (gnus-range-length (cdr (assq 'tick gnus-tmp-marked))) ?d) | |
490 (?i (+ (gnus-range-length (cdr (assq 'dormant gnus-tmp-marked))) | |
491 (gnus-range-length (cdr (assq 'tick gnus-tmp-marked)))) ?d) | |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
492 (?g (if (boundp 'gnus-tmp-decoded-group) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
493 gnus-tmp-decoded-group |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
494 gnus-tmp-group) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
495 ?s) |
17493 | 496 (?G gnus-tmp-qualified-group ?s) |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
497 (?c (gnus-short-group-name (if (boundp 'gnus-tmp-decoded-group) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
498 gnus-tmp-decoded-group |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
499 gnus-tmp-group)) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
500 ?s) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
501 (?C gnus-tmp-comment ?s) |
17493 | 502 (?D gnus-tmp-newsgroup-description ?s) |
503 (?o gnus-tmp-moderated ?c) | |
504 (?O gnus-tmp-moderated-string ?s) | |
505 (?p gnus-tmp-process-marked ?c) | |
506 (?s gnus-tmp-news-server ?s) | |
57784
55829134ac17
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-650
Miles Bader <miles@gnu.org>
parents:
57617
diff
changeset
|
507 (?n ,(if (featurep 'xemacs) |
55829134ac17
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-650
Miles Bader <miles@gnu.org>
parents:
57617
diff
changeset
|
508 '(symbol-name gnus-tmp-news-method) |
55829134ac17
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-650
Miles Bader <miles@gnu.org>
parents:
57617
diff
changeset
|
509 'gnus-tmp-news-method) |
55829134ac17
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-650
Miles Bader <miles@gnu.org>
parents:
57617
diff
changeset
|
510 ?s) |
17493 | 511 (?P gnus-group-indentation ?s) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
512 (?E gnus-tmp-group-icon ?s) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
513 (?B gnus-tmp-summary-live ?c) |
17493 | 514 (?l gnus-tmp-grouplens ?s) |
515 (?z gnus-tmp-news-method-string ?s) | |
516 (?m (gnus-group-new-mail gnus-tmp-group) ?c) | |
517 (?d (gnus-group-timestamp-string gnus-tmp-group) ?s) | |
518 (?u gnus-tmp-user-defined ?s))) | |
519 | |
520 (defvar gnus-group-mode-line-format-alist | |
521 `((?S gnus-tmp-news-server ?s) | |
522 (?M gnus-tmp-news-method ?s) | |
523 (?u gnus-tmp-user-defined ?s) | |
524 (?: gnus-tmp-colon ?s))) | |
525 | |
526 (defvar gnus-topic-topology nil | |
527 "The complete topic hierarchy.") | |
528 | |
529 (defvar gnus-topic-alist nil | |
530 "The complete topic-group alist.") | |
531 | |
532 (defvar gnus-group-marked nil) | |
533 | |
534 (defvar gnus-group-list-mode nil) | |
535 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
536 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
537 (defvar gnus-group-icon-cache nil) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
538 |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
539 (defvar gnus-group-listed-groups nil) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
540 (defvar gnus-group-list-option nil) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
541 |
17493 | 542 ;;; |
543 ;;; Gnus group mode | |
544 ;;; | |
545 | |
546 (put 'gnus-group-mode 'mode-class 'special) | |
547 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
548 (gnus-define-keys gnus-group-mode-map |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
549 " " gnus-group-read-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
550 "=" gnus-group-select-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
551 "\r" gnus-group-select-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
552 "\M-\r" gnus-group-quick-select-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
553 "\M- " gnus-group-visible-select-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
554 [(meta control return)] gnus-group-select-group-ephemerally |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
555 "j" gnus-group-jump-to-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
556 "n" gnus-group-next-unread-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
557 "p" gnus-group-prev-unread-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
558 "\177" gnus-group-prev-unread-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
559 [delete] gnus-group-prev-unread-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
560 [backspace] gnus-group-prev-unread-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
561 "N" gnus-group-next-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
562 "P" gnus-group-prev-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
563 "\M-n" gnus-group-next-unread-group-same-level |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
564 "\M-p" gnus-group-prev-unread-group-same-level |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
565 "," gnus-group-best-unread-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
566 "." gnus-group-first-unread-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
567 "u" gnus-group-unsubscribe-current-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
568 "U" gnus-group-unsubscribe-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
569 "c" gnus-group-catchup-current |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
570 "C" gnus-group-catchup-current-all |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
571 "\M-c" gnus-group-clear-data |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
572 "l" gnus-group-list-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
573 "L" gnus-group-list-all-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
574 "m" gnus-group-mail |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
575 "i" gnus-group-news |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
576 "g" gnus-group-get-new-news |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
577 "\M-g" gnus-group-get-new-news-this-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
578 "R" gnus-group-restart |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
579 "r" gnus-group-read-init-file |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
580 "B" gnus-group-browse-foreign-server |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
581 "b" gnus-group-check-bogus-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
582 "F" gnus-group-find-new-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
583 "\C-c\C-d" gnus-group-describe-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
584 "\M-d" gnus-group-describe-all-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
585 "\C-c\C-a" gnus-group-apropos |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
586 "\C-c\M-\C-a" gnus-group-description-apropos |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
587 "a" gnus-group-post-news |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
588 "\ek" gnus-group-edit-local-kill |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
589 "\eK" gnus-group-edit-global-kill |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
590 "\C-k" gnus-group-kill-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
591 "\C-y" gnus-group-yank-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
592 "\C-w" gnus-group-kill-region |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
593 "\C-x\C-t" gnus-group-transpose-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
594 "\C-c\C-l" gnus-group-list-killed |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
595 "\C-c\C-x" gnus-group-expire-articles |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
596 "\C-c\M-\C-x" gnus-group-expire-all-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
597 "V" gnus-version |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
598 "s" gnus-group-save-newsrc |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
599 "z" gnus-group-suspend |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
600 "q" gnus-group-exit |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
601 "Q" gnus-group-quit |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
602 "?" gnus-group-describe-briefly |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
603 "\C-c\C-i" gnus-info-find-node |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
604 "\M-e" gnus-group-edit-group-method |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
605 "^" gnus-group-enter-server-mode |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
606 gnus-mouse-2 gnus-mouse-pick-group |
59027
4154f5d4733b
(gnus-group-mode-map): Map follow-link to mouse-face.
Kim F. Storm <storm@cua.dk>
parents:
58959
diff
changeset
|
607 [follow-link] mouse-face |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
608 "<" beginning-of-buffer |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
609 ">" end-of-buffer |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
610 "\C-c\C-b" gnus-bug |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
611 "\C-c\C-s" gnus-group-sort-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
612 "t" gnus-topic-mode |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
613 "\C-c\M-g" gnus-activate-all-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
614 "\M-&" gnus-group-universal-argument |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
615 "#" gnus-group-mark-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
616 "\M-#" gnus-group-unmark-group) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
617 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
618 (gnus-define-keys (gnus-group-mark-map "M" gnus-group-mode-map) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
619 "m" gnus-group-mark-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
620 "u" gnus-group-unmark-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
621 "w" gnus-group-mark-region |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
622 "b" gnus-group-mark-buffer |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
623 "r" gnus-group-mark-regexp |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
624 "U" gnus-group-unmark-all-groups) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
625 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
626 (gnus-define-keys (gnus-group-sieve-map "D" gnus-group-mode-map) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
627 "u" gnus-sieve-update |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
628 "g" gnus-sieve-generate) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
629 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
630 (gnus-define-keys (gnus-group-group-map "G" gnus-group-mode-map) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
631 "d" gnus-group-make-directory-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
632 "h" gnus-group-make-help-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
633 "u" gnus-group-make-useful-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
634 "a" gnus-group-make-archive-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
635 "k" gnus-group-make-kiboze-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
636 "l" gnus-group-nnimap-edit-acl |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
637 "m" gnus-group-make-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
638 "E" gnus-group-edit-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
639 "e" gnus-group-edit-group-method |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
640 "p" gnus-group-edit-group-parameters |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
641 "v" gnus-group-add-to-virtual |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
642 "V" gnus-group-make-empty-virtual |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
643 "D" gnus-group-enter-directory |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
644 "f" gnus-group-make-doc-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
645 "w" gnus-group-make-web-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
646 "M" gnus-group-read-ephemeral-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
647 "r" gnus-group-rename-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
648 "R" gnus-group-make-rss-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
649 "c" gnus-group-customize |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
650 "x" gnus-group-nnimap-expunge |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
651 "\177" gnus-group-delete-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
652 [delete] gnus-group-delete-group) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
653 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
654 (gnus-define-keys (gnus-group-soup-map "s" gnus-group-group-map) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
655 "b" gnus-group-brew-soup |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
656 "w" gnus-soup-save-areas |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
657 "s" gnus-soup-send-replies |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
658 "p" gnus-soup-pack-packet |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
659 "r" nnsoup-pack-replies) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
660 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
661 (gnus-define-keys (gnus-group-sort-map "S" gnus-group-group-map) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
662 "s" gnus-group-sort-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
663 "a" gnus-group-sort-groups-by-alphabet |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
664 "u" gnus-group-sort-groups-by-unread |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
665 "l" gnus-group-sort-groups-by-level |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
666 "v" gnus-group-sort-groups-by-score |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
667 "r" gnus-group-sort-groups-by-rank |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
668 "m" gnus-group-sort-groups-by-method |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
669 "n" gnus-group-sort-groups-by-real-name) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
670 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
671 (gnus-define-keys (gnus-group-sort-selected-map "P" gnus-group-group-map) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
672 "s" gnus-group-sort-selected-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
673 "a" gnus-group-sort-selected-groups-by-alphabet |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
674 "u" gnus-group-sort-selected-groups-by-unread |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
675 "l" gnus-group-sort-selected-groups-by-level |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
676 "v" gnus-group-sort-selected-groups-by-score |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
677 "r" gnus-group-sort-selected-groups-by-rank |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
678 "m" gnus-group-sort-selected-groups-by-method |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
679 "n" gnus-group-sort-selected-groups-by-real-name) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
680 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
681 (gnus-define-keys (gnus-group-list-map "A" gnus-group-mode-map) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
682 "k" gnus-group-list-killed |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
683 "z" gnus-group-list-zombies |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
684 "s" gnus-group-list-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
685 "u" gnus-group-list-all-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
686 "A" gnus-group-list-active |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
687 "a" gnus-group-apropos |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
688 "d" gnus-group-description-apropos |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
689 "m" gnus-group-list-matching |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
690 "M" gnus-group-list-all-matching |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
691 "l" gnus-group-list-level |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
692 "c" gnus-group-list-cached |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
693 "?" gnus-group-list-dormant) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
694 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
695 (gnus-define-keys (gnus-group-list-limit-map "/" gnus-group-list-map) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
696 "k" gnus-group-list-limit |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
697 "z" gnus-group-list-limit |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
698 "s" gnus-group-list-limit |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
699 "u" gnus-group-list-limit |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
700 "A" gnus-group-list-limit |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
701 "m" gnus-group-list-limit |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
702 "M" gnus-group-list-limit |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
703 "l" gnus-group-list-limit |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
704 "c" gnus-group-list-limit |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
705 "?" gnus-group-list-limit) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
706 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
707 (gnus-define-keys (gnus-group-list-flush-map "f" gnus-group-list-map) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
708 "k" gnus-group-list-flush |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
709 "z" gnus-group-list-flush |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
710 "s" gnus-group-list-flush |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
711 "u" gnus-group-list-flush |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
712 "A" gnus-group-list-flush |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
713 "m" gnus-group-list-flush |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
714 "M" gnus-group-list-flush |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
715 "l" gnus-group-list-flush |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
716 "c" gnus-group-list-flush |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
717 "?" gnus-group-list-flush) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
718 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
719 (gnus-define-keys (gnus-group-list-plus-map "p" gnus-group-list-map) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
720 "k" gnus-group-list-plus |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
721 "z" gnus-group-list-plus |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
722 "s" gnus-group-list-plus |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
723 "u" gnus-group-list-plus |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
724 "A" gnus-group-list-plus |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
725 "m" gnus-group-list-plus |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
726 "M" gnus-group-list-plus |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
727 "l" gnus-group-list-plus |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
728 "c" gnus-group-list-plus |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
729 "?" gnus-group-list-plus) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
730 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
731 (gnus-define-keys (gnus-group-score-map "W" gnus-group-mode-map) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
732 "f" gnus-score-flush-cache) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
733 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
734 (gnus-define-keys (gnus-group-help-map "H" gnus-group-mode-map) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
735 "c" gnus-group-fetch-charter |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
736 "C" gnus-group-fetch-control |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
737 "d" gnus-group-describe-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
738 "f" gnus-group-fetch-faq |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
739 "v" gnus-version) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
740 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
741 (gnus-define-keys (gnus-group-sub-map "S" gnus-group-mode-map) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
742 "l" gnus-group-set-current-level |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
743 "t" gnus-group-unsubscribe-current-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
744 "s" gnus-group-unsubscribe-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
745 "k" gnus-group-kill-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
746 "y" gnus-group-yank-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
747 "w" gnus-group-kill-region |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
748 "\C-k" gnus-group-kill-level |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
749 "z" gnus-group-kill-all-zombies) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
750 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
751 (defun gnus-topic-mode-p () |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
752 "Return non-nil in `gnus-topic-mode'." |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
753 (and (boundp 'gnus-topic-mode) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
754 (symbol-value 'gnus-topic-mode))) |
17493 | 755 |
756 (defun gnus-group-make-menu-bar () | |
757 (gnus-turn-off-edit-menu 'group) | |
758 (unless (boundp 'gnus-group-reading-menu) | |
759 | |
760 (easy-menu-define | |
761 gnus-group-reading-menu gnus-group-mode-map "" | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
762 `("Group" |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
763 ["Read" gnus-group-read-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
764 :included (not (gnus-topic-mode-p)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
765 :active (gnus-group-group-name)] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
766 ["Read " gnus-topic-read-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
767 :included (gnus-topic-mode-p)] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
768 ["Select" gnus-group-select-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
769 :included (not (gnus-topic-mode-p)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
770 :active (gnus-group-group-name)] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
771 ["Select " gnus-topic-select-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
772 :included (gnus-topic-mode-p)] |
17493 | 773 ["See old articles" (gnus-group-select-group 'all) |
774 :keys "C-u SPC" :active (gnus-group-group-name)] | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
775 ["Catch up" gnus-group-catchup-current |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
776 :included (not (gnus-topic-mode-p)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
777 :active (gnus-group-group-name) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
778 ,@(if (featurep 'xemacs) nil |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
779 '(:help "Mark unread articles in the current group as read"))] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
780 ["Catch up " gnus-topic-catchup-articles |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
781 :included (gnus-topic-mode-p) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
782 ,@(if (featurep 'xemacs) nil |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
783 '(:help "Mark unread articles in the current group or topic as read"))] |
17493 | 784 ["Catch up all articles" gnus-group-catchup-current-all |
785 (gnus-group-group-name)] | |
786 ["Check for new articles" gnus-group-get-new-news-this-group | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
787 :included (not (gnus-topic-mode-p)) |
32965
13cbb629e3ce
(gnus-group-make-menu-bar): Add some :help
Dave Love <fx@gnu.org>
parents:
31785
diff
changeset
|
788 :active (gnus-group-group-name) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
789 ,@(if (featurep 'xemacs) nil |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
790 '(:help "Check for new messages in current group"))] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
791 ["Check for new articles " gnus-topic-get-new-news-this-topic |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
792 :included (gnus-topic-mode-p) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
793 ,@(if (featurep 'xemacs) nil |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
794 '(:help "Check for new messages in current group or topic"))] |
17493 | 795 ["Toggle subscription" gnus-group-unsubscribe-current-group |
796 (gnus-group-group-name)] | |
32965
13cbb629e3ce
(gnus-group-make-menu-bar): Add some :help
Dave Love <fx@gnu.org>
parents:
31785
diff
changeset
|
797 ["Kill" gnus-group-kill-group :active (gnus-group-group-name) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
798 ,@(if (featurep 'xemacs) nil |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
799 '(:help "Kill (remove) current group"))] |
17493 | 800 ["Yank" gnus-group-yank-group gnus-list-of-killed-groups] |
32965
13cbb629e3ce
(gnus-group-make-menu-bar): Add some :help
Dave Love <fx@gnu.org>
parents:
31785
diff
changeset
|
801 ["Describe" gnus-group-describe-group :active (gnus-group-group-name) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
802 ,@(if (featurep 'xemacs) nil |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
803 '(:help "Display description of the current group"))] |
17493 | 804 ["Fetch FAQ" gnus-group-fetch-faq (gnus-group-group-name)] |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
805 ["Fetch charter" gnus-group-fetch-charter |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
806 :active (gnus-group-group-name) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
807 ,@(if (featurep 'xemacs) nil |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
808 '(:help "Display the charter of the current group"))] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
809 ["Fetch control message" gnus-group-fetch-control |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
810 :active (gnus-group-group-name) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
811 ,@(if (featurep 'xemacs) nil |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
812 '(:help "Display the archived control message for the current group"))] |
17493 | 813 ;; Actually one should check, if any of the marked groups gives t for |
814 ;; (gnus-check-backend-function 'request-expire-articles ...) | |
815 ["Expire articles" gnus-group-expire-articles | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
816 :included (not (gnus-topic-mode-p)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
817 :active (or (and (gnus-group-group-name) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
818 (gnus-check-backend-function |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
819 'request-expire-articles |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
820 (gnus-group-group-name))) gnus-group-marked)] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
821 ["Expire articles " gnus-topic-expire-articles |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
822 :included (gnus-topic-mode-p)] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
823 ["Set group level..." gnus-group-set-current-level |
17493 | 824 (gnus-group-group-name)] |
825 ["Select quick" gnus-group-quick-select-group (gnus-group-group-name)] | |
826 ["Customize" gnus-group-customize (gnus-group-group-name)] | |
827 ("Edit" | |
828 ["Parameters" gnus-group-edit-group-parameters | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
829 :included (not (gnus-topic-mode-p)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
830 :active (gnus-group-group-name)] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
831 ["Parameters " gnus-topic-edit-parameters |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
832 :included (gnus-topic-mode-p)] |
17493 | 833 ["Select method" gnus-group-edit-group-method |
834 (gnus-group-group-name)] | |
835 ["Info" gnus-group-edit-group (gnus-group-group-name)] | |
836 ["Local kill file" gnus-group-edit-local-kill (gnus-group-group-name)] | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
837 ["Global kill file" gnus-group-edit-global-kill t]))) |
17493 | 838 |
839 (easy-menu-define | |
840 gnus-group-group-menu gnus-group-mode-map "" | |
841 '("Groups" | |
842 ("Listing" | |
843 ["List unread subscribed groups" gnus-group-list-groups t] | |
844 ["List (un)subscribed groups" gnus-group-list-all-groups t] | |
845 ["List killed groups" gnus-group-list-killed gnus-killed-list] | |
846 ["List zombie groups" gnus-group-list-zombies gnus-zombie-list] | |
847 ["List level..." gnus-group-list-level t] | |
848 ["Describe all groups" gnus-group-describe-all-groups t] | |
849 ["Group apropos..." gnus-group-apropos t] | |
850 ["Group and description apropos..." gnus-group-description-apropos t] | |
851 ["List groups matching..." gnus-group-list-matching t] | |
852 ["List all groups matching..." gnus-group-list-all-matching t] | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
853 ["List active file" gnus-group-list-active t] |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
854 ["List groups with cached" gnus-group-list-cached t] |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
855 ["List groups with dormant" gnus-group-list-dormant t]) |
17493 | 856 ("Sort" |
857 ["Default sort" gnus-group-sort-groups t] | |
858 ["Sort by method" gnus-group-sort-groups-by-method t] | |
859 ["Sort by rank" gnus-group-sort-groups-by-rank t] | |
860 ["Sort by score" gnus-group-sort-groups-by-score t] | |
861 ["Sort by level" gnus-group-sort-groups-by-level t] | |
862 ["Sort by unread" gnus-group-sort-groups-by-unread t] | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
863 ["Sort by name" gnus-group-sort-groups-by-alphabet t] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
864 ["Sort by real name" gnus-group-sort-groups-by-real-name t]) |
17493 | 865 ("Sort process/prefixed" |
866 ["Default sort" gnus-group-sort-selected-groups | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
867 (not (gnus-topic-mode-p))] |
17493 | 868 ["Sort by method" gnus-group-sort-selected-groups-by-method |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
869 (not (gnus-topic-mode-p))] |
17493 | 870 ["Sort by rank" gnus-group-sort-selected-groups-by-rank |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
871 (not (gnus-topic-mode-p))] |
17493 | 872 ["Sort by score" gnus-group-sort-selected-groups-by-score |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
873 (not (gnus-topic-mode-p))] |
17493 | 874 ["Sort by level" gnus-group-sort-selected-groups-by-level |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
875 (not (gnus-topic-mode-p))] |
17493 | 876 ["Sort by unread" gnus-group-sort-selected-groups-by-unread |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
877 (not (gnus-topic-mode-p))] |
17493 | 878 ["Sort by name" gnus-group-sort-selected-groups-by-alphabet |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
879 (not (gnus-topic-mode-p))] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
880 ["Sort by real name" gnus-group-sort-selected-groups-by-real-name |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
881 (not (gnus-topic-mode-p))]) |
17493 | 882 ("Mark" |
883 ["Mark group" gnus-group-mark-group | |
884 (and (gnus-group-group-name) | |
885 (not (memq (gnus-group-group-name) gnus-group-marked)))] | |
886 ["Unmark group" gnus-group-unmark-group | |
887 (and (gnus-group-group-name) | |
888 (memq (gnus-group-group-name) gnus-group-marked))] | |
889 ["Unmark all" gnus-group-unmark-all-groups gnus-group-marked] | |
890 ["Mark regexp..." gnus-group-mark-regexp t] | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
891 ["Mark region" gnus-group-mark-region :active (gnus-mark-active-p)] |
17493 | 892 ["Mark buffer" gnus-group-mark-buffer t] |
893 ["Execute command" gnus-group-universal-argument | |
894 (or gnus-group-marked (gnus-group-group-name))]) | |
895 ("Subscribe" | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
896 ["Subscribe to a group..." gnus-group-unsubscribe-group t] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
897 ["Kill all newsgroups in region" gnus-group-kill-region |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
898 :active (gnus-mark-active-p)] |
17493 | 899 ["Kill all zombie groups" gnus-group-kill-all-zombies |
900 gnus-zombie-list] | |
901 ["Kill all groups on level..." gnus-group-kill-level t]) | |
902 ("Foreign groups" | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
903 ["Make a foreign group..." gnus-group-make-group t] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
904 ["Add a directory group..." gnus-group-make-directory-group t] |
17493 | 905 ["Add the help group" gnus-group-make-help-group t] |
906 ["Add the archive group" gnus-group-make-archive-group t] | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
907 ["Make a doc group..." gnus-group-make-doc-group t] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
908 ["Make a web group..." gnus-group-make-web-group t] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
909 ["Make a kiboze group..." gnus-group-make-kiboze-group t] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
910 ["Make a virtual group..." gnus-group-make-empty-virtual t] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
911 ["Add a group to a virtual..." gnus-group-add-to-virtual t] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
912 ["Make an ephemeral group..." gnus-group-read-ephemeral-group t] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
913 ["Make an RSS group..." gnus-group-make-rss-group t] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
914 ["Rename group..." gnus-group-rename-group |
17493 | 915 (gnus-check-backend-function |
916 'request-rename-group (gnus-group-group-name))] | |
917 ["Delete group" gnus-group-delete-group | |
918 (gnus-check-backend-function | |
919 'request-delete-group (gnus-group-group-name))]) | |
920 ("Move" | |
921 ["Next" gnus-group-next-group t] | |
922 ["Previous" gnus-group-prev-group t] | |
923 ["Next unread" gnus-group-next-unread-group t] | |
924 ["Previous unread" gnus-group-prev-unread-group t] | |
925 ["Next unread same level" gnus-group-next-unread-group-same-level t] | |
926 ["Previous unread same level" | |
927 gnus-group-prev-unread-group-same-level t] | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
928 ["Jump to group..." gnus-group-jump-to-group t] |
17493 | 929 ["First unread group" gnus-group-first-unread-group t] |
930 ["Best unread group" gnus-group-best-unread-group t]) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
931 ("Sieve" |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
932 ["Generate" gnus-sieve-generate t] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
933 ["Generate and update" gnus-sieve-update t]) |
17493 | 934 ["Delete bogus groups" gnus-group-check-bogus-groups t] |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
935 ["Find new newsgroups" gnus-group-find-new-groups t] |
17493 | 936 ["Transpose" gnus-group-transpose-groups |
937 (gnus-group-group-name)] | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
938 ["Read a directory as a group..." gnus-group-enter-directory t])) |
17493 | 939 |
940 (easy-menu-define | |
941 gnus-group-misc-menu gnus-group-mode-map "" | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
942 `("Gnus" |
17493 | 943 ("SOUP" |
944 ["Pack replies" nnsoup-pack-replies (fboundp 'nnsoup-request-group)] | |
945 ["Send replies" gnus-soup-send-replies | |
946 (fboundp 'gnus-soup-pack-packet)] | |
947 ["Pack packet" gnus-soup-pack-packet (fboundp 'gnus-soup-pack-packet)] | |
948 ["Save areas" gnus-soup-save-areas (fboundp 'gnus-soup-pack-packet)] | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
949 ["Brew SOUP" gnus-group-brew-soup (fboundp 'gnus-soup-pack-packet)]) |
17493 | 950 ["Send a mail" gnus-group-mail t] |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
951 ["Send a message (mail or news)" gnus-group-post-news t] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
952 ["Create a local message" gnus-group-news t] |
32965
13cbb629e3ce
(gnus-group-make-menu-bar): Add some :help
Dave Love <fx@gnu.org>
parents:
31785
diff
changeset
|
953 ["Check for new news" gnus-group-get-new-news |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
954 ,@(if (featurep 'xemacs) '(t) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
955 '(:help "Get newly arrived articles")) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
956 ] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
957 ["Send queued messages" gnus-delay-send-queue |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
958 ,@(if (featurep 'xemacs) '(t) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
959 '(:help "Send all messages that are scheduled to be sent now")) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
960 ] |
17493 | 961 ["Activate all groups" gnus-activate-all-groups t] |
962 ["Restart Gnus" gnus-group-restart t] | |
963 ["Read init file" gnus-group-read-init-file t] | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
964 ["Browse foreign server..." gnus-group-browse-foreign-server t] |
17493 | 965 ["Enter server buffer" gnus-group-enter-server-mode t] |
966 ["Expire all expirable articles" gnus-group-expire-all-groups t] | |
967 ["Generate any kiboze groups" nnkiboze-generate-groups t] | |
968 ["Gnus version" gnus-version t] | |
969 ["Save .newsrc files" gnus-group-save-newsrc t] | |
970 ["Suspend Gnus" gnus-group-suspend t] | |
971 ["Clear dribble buffer" gnus-group-clear-dribble t] | |
972 ["Read manual" gnus-info-find-node t] | |
973 ["Flush score cache" gnus-score-flush-cache t] | |
974 ["Toggle topics" gnus-topic-mode t] | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
975 ["Send a bug report" gnus-bug t] |
32965
13cbb629e3ce
(gnus-group-make-menu-bar): Add some :help
Dave Love <fx@gnu.org>
parents:
31785
diff
changeset
|
976 ["Exit from Gnus" gnus-group-exit |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
977 ,@(if (featurep 'xemacs) '(t) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
978 '(:help "Quit reading news"))] |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
979 ["Exit without saving" gnus-group-quit t])) |
17493 | 980 |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
981 (gnus-run-hooks 'gnus-group-menu-hook))) |
17493 | 982 |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
983 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
984 (defvar gnus-group-tool-bar-map nil) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
985 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
986 (defun gnus-group-tool-bar-update (&optional symbol value) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
987 "Update group buffer toolbar. |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
988 Setter function for custom variables." |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
989 (when symbol |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
990 (set-default symbol value)) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
991 ;; (setq-default gnus-group-tool-bar-map nil) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
992 ;; (use-local-map gnus-group-mode-map) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
993 (when (gnus-alive-p) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
994 (with-current-buffer gnus-group-buffer |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
995 (gnus-group-make-tool-bar t)))) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
996 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
997 (defcustom gnus-group-tool-bar (if (eq gmm-tool-bar-style 'gnome) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
998 'gnus-group-tool-bar-gnome |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
999 'gnus-group-tool-bar-retro) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1000 "Specifies the Gnus group tool bar. |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1001 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1002 It can be either a list or a symbol refering to a list. See |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1003 `gmm-tool-bar-from-list' for the format of the list. The |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1004 default key map is `gnus-group-mode-map'. |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1005 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1006 Pre-defined symbols include `gnus-group-tool-bar-gnome' and |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1007 `gnus-group-tool-bar-retro'." |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1008 :type '(choice (const :tag "GNOME style" gnus-group-tool-bar-gnome) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1009 (const :tag "Retro look" gnus-group-tool-bar-retro) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1010 (repeat :tag "User defined list" gmm-tool-bar-item) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1011 (symbol)) |
70063
be502e8c29ea
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-228
Miles Bader <miles@gnu.org>
parents:
70051
diff
changeset
|
1012 :version "22.1" ;; Gnus 5.10.9 |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1013 :initialize 'custom-initialize-default |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1014 :set 'gnus-group-tool-bar-update |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1015 :group 'gnus-group) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1016 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1017 (defcustom gnus-group-tool-bar-gnome |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1018 '((gnus-group-post-news "mail/compose") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1019 ;; Some useful agent icons? I don't use the agent so agent users should |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1020 ;; suggest useful commands: |
74791 | 1021 (gnus-agent-toggle-plugged "disconnect" t |
1022 :help "Gnus is currently unplugged. Click to work online." | |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1023 :visible (and gnus-agent (not gnus-plugged))) |
74791 | 1024 (gnus-agent-toggle-plugged "connect" t |
1025 :help "Gnus is currently plugged. Click to work offline." | |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1026 :visible (and gnus-agent gnus-plugged)) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1027 ;; FIXME: gnus-agent-toggle-plugged (in gnus-agent-group-make-menu-bar) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1028 ;; should have a better help text. |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1029 (gnus-group-send-queue "mail/outbox" t |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1030 :visible (and gnus-agent gnus-plugged) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1031 :help "Send articles from the queue group") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1032 (gnus-group-get-new-news "mail/inbox" nil |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1033 :visible (or (not gnus-agent) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1034 gnus-plugged)) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1035 ;; FIXME: gnus-*-read-group should have a better help text. |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1036 (gnus-topic-read-group "open" nil |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1037 :visible (and (boundp 'gnus-topic-mode) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1038 gnus-topic-mode)) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1039 (gnus-group-read-group "open" nil |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1040 :visible (not (and (boundp 'gnus-topic-mode) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1041 gnus-topic-mode))) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1042 ;; (gnus-group-find-new-groups "???" nil) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1043 (gnus-group-save-newsrc "save") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1044 (gnus-group-describe-group "describe") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1045 (gnus-group-unsubscribe-current-group "gnus/toggle-subscription") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1046 (gnus-group-prev-unread-group "left-arrow") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1047 (gnus-group-next-unread-group "right-arrow") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1048 (gnus-group-exit "exit") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1049 (gmm-customize-mode "preferences" t :help "Edit mode preferences") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1050 (gnus-info-find-node "help")) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1051 "List of functions for the group tool bar (GNOME style). |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1052 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1053 See `gmm-tool-bar-from-list' for the format of the list." |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1054 :type '(repeat gmm-tool-bar-item) |
70063
be502e8c29ea
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-228
Miles Bader <miles@gnu.org>
parents:
70051
diff
changeset
|
1055 :version "22.1" ;; Gnus 5.10.9 |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1056 :initialize 'custom-initialize-default |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1057 :set 'gnus-group-tool-bar-update |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1058 :group 'gnus-group) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1059 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1060 (defcustom gnus-group-tool-bar-retro |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1061 '((gnus-group-get-new-news "gnus/get-news") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1062 (gnus-group-get-new-news-this-group "gnus/gnntg") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1063 (gnus-group-catchup-current "gnus/catchup") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1064 (gnus-group-describe-group "gnus/describe-group") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1065 (gnus-group-subscribe "gnus/subscribe" t |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1066 :help "Subscribe to the current group") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1067 (gnus-group-unsubscribe "gnus/unsubscribe" t |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1068 :help "Unsubscribe from the current group") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1069 (gnus-group-exit "gnus/exit-gnus" gnus-group-mode-map)) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1070 "List of functions for the group tool bar (retro look). |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1071 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1072 See `gmm-tool-bar-from-list' for the format of the list." |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1073 :type '(repeat gmm-tool-bar-item) |
70063
be502e8c29ea
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-228
Miles Bader <miles@gnu.org>
parents:
70051
diff
changeset
|
1074 :version "22.1" ;; Gnus 5.10.9 |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1075 :initialize 'custom-initialize-default |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1076 :set 'gnus-group-tool-bar-update |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1077 :group 'gnus-group) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1078 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1079 (defcustom gnus-group-tool-bar-zap-list t |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1080 "List of icon items from the global tool bar. |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1081 These items are not displayed in the Gnus group mode tool bar. |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1082 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1083 See `gmm-tool-bar-from-list' for the format of the list." |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1084 :type 'gmm-tool-bar-zap-list |
70063
be502e8c29ea
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-228
Miles Bader <miles@gnu.org>
parents:
70051
diff
changeset
|
1085 :version "22.1" ;; Gnus 5.10.9 |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1086 :initialize 'custom-initialize-default |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1087 :set 'gnus-group-tool-bar-update |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1088 :group 'gnus-group) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1089 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1090 (defvar image-load-path) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1091 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1092 (defun gnus-group-make-tool-bar (&optional force) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1093 "Make a group mode tool bar from `gnus-group-tool-bar'. |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1094 When FORCE, rebuild the tool bar." |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1095 (when (and (not (featurep 'xemacs)) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1096 (boundp 'tool-bar-mode) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1097 tool-bar-mode |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1098 ;; The Gnus 5.10.6 code checked (default-value 'tool-bar-mode). |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1099 ;; Why? --rsteib |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1100 (or (not gnus-group-tool-bar-map) force)) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1101 (let* ((load-path |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1102 (gmm-image-load-path-for-library "gnus" |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1103 "gnus/toggle-subscription.xpm" |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1104 nil t)) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1105 (image-load-path (cons (car load-path) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1106 (when (boundp 'image-load-path) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1107 image-load-path))) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1108 (map (gmm-tool-bar-from-list gnus-group-tool-bar |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1109 gnus-group-tool-bar-zap-list |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1110 'gnus-group-mode-map))) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1111 (if map |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1112 (set (make-local-variable 'tool-bar-map) map)))) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1113 gnus-group-tool-bar-map) |
32965
13cbb629e3ce
(gnus-group-make-menu-bar): Add some :help
Dave Love <fx@gnu.org>
parents:
31785
diff
changeset
|
1114 |
17493 | 1115 (defun gnus-group-mode () |
1116 "Major mode for reading news. | |
1117 | |
1118 All normal editing commands are switched off. | |
1119 \\<gnus-group-mode-map> | |
74150
361d95731e62
(gnus-group-sort-function, gnus-group-line-format, gnus-group-mode,
Juanma Barranquero <lekktu@gmail.com>
parents:
73487
diff
changeset
|
1120 The group buffer lists (some of) the groups available. For instance, |
17493 | 1121 `\\[gnus-group-list-groups]' will list all subscribed groups with unread articles, while `\\[gnus-group-list-zombies]' |
1122 lists all zombie groups. | |
1123 | |
1124 Groups that are displayed can be entered with `\\[gnus-group-read-group]'. To subscribe | |
1125 to a group not displayed, type `\\[gnus-group-unsubscribe-group]'. | |
1126 | |
1127 For more in-depth information on this mode, read the manual (`\\[gnus-info-find-node]'). | |
1128 | |
1129 The following commands are available: | |
1130 | |
1131 \\{gnus-group-mode-map}" | |
1132 (interactive) | |
33311
fa5c3f22519c
(gnus-group-toolbar-map): New variable.
Dave Love <fx@gnu.org>
parents:
32969
diff
changeset
|
1133 (kill-all-local-variables) |
17493 | 1134 (when (gnus-visual-p 'group-menu 'menu) |
32965
13cbb629e3ce
(gnus-group-make-menu-bar): Add some :help
Dave Love <fx@gnu.org>
parents:
31785
diff
changeset
|
1135 (gnus-group-make-menu-bar) |
13cbb629e3ce
(gnus-group-make-menu-bar): Add some :help
Dave Love <fx@gnu.org>
parents:
31785
diff
changeset
|
1136 (gnus-group-make-tool-bar)) |
17493 | 1137 (gnus-simplify-mode-line) |
1138 (setq major-mode 'gnus-group-mode) | |
1139 (setq mode-name "Group") | |
1140 (gnus-group-set-mode-line) | |
1141 (setq mode-line-process nil) | |
1142 (use-local-map gnus-group-mode-map) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1143 (buffer-disable-undo) |
17493 | 1144 (setq truncate-lines t) |
1145 (setq buffer-read-only t) | |
1146 (gnus-set-default-directory) | |
1147 (gnus-update-format-specifications nil 'group 'group-mode) | |
1148 (gnus-update-group-mark-positions) | |
1149 (when gnus-use-undo | |
1150 (gnus-undo-mode 1)) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1151 (when gnus-slave |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1152 (gnus-slave-mode)) |
62890
4b7fa3ee8e9e
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-336
Miles Bader <miles@gnu.org>
parents:
61424
diff
changeset
|
1153 (gnus-run-mode-hooks 'gnus-group-mode-hook)) |
17493 | 1154 |
1155 (defun gnus-update-group-mark-positions () | |
1156 (save-excursion | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1157 (let ((gnus-process-mark ?\200) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1158 (gnus-group-update-hook nil) |
17493 | 1159 (gnus-group-marked '("dummy.group")) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1160 (gnus-active-hashtb (make-vector 10 0)) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1161 (topic "")) |
17493 | 1162 (gnus-set-active "dummy.group" '(0 . 0)) |
1163 (gnus-set-work-buffer) | |
1164 (gnus-group-insert-group-line "dummy.group" 0 nil 0 nil) | |
1165 (goto-char (point-min)) | |
1166 (setq gnus-group-mark-positions | |
57321
3381cb76bac3
* gnus-group.el (gnus-update-group-mark-positions):
Juri Linkov <juri@jurta.org>
parents:
57153
diff
changeset
|
1167 (list (cons 'process (and (search-forward |
57363
ef5d2ed6459e
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-603
Miles Bader <miles@gnu.org>
parents:
57321
diff
changeset
|
1168 (mm-string-as-multibyte "\200") nil t) |
17493 | 1169 (- (point) 2)))))))) |
1170 | |
1171 (defun gnus-mouse-pick-group (e) | |
1172 "Enter the group under the mouse pointer." | |
1173 (interactive "e") | |
1174 (mouse-set-point e) | |
1175 (gnus-group-read-group nil)) | |
1176 | |
1177 ;; Look at LEVEL and find out what the level is really supposed to be. | |
1178 ;; If LEVEL is non-nil, LEVEL will be returned, if not, what happens | |
1179 ;; will depend on whether `gnus-group-use-permanent-levels' is used. | |
1180 (defun gnus-group-default-level (&optional level number-or-nil) | |
1181 (cond | |
1182 (gnus-group-use-permanent-levels | |
1183 (or (setq gnus-group-use-permanent-levels | |
1184 (or level (if (numberp gnus-group-use-permanent-levels) | |
1185 gnus-group-use-permanent-levels | |
1186 (or gnus-group-default-list-level | |
1187 gnus-level-subscribed)))) | |
1188 gnus-group-default-list-level gnus-level-subscribed)) | |
1189 (number-or-nil | |
1190 level) | |
1191 (t | |
1192 (or level gnus-group-default-list-level gnus-level-subscribed)))) | |
1193 | |
1194 (defun gnus-group-setup-buffer () | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1195 (set-buffer (gnus-get-buffer-create gnus-group-buffer)) |
17493 | 1196 (unless (eq major-mode 'gnus-group-mode) |
1197 (gnus-group-mode) | |
1198 (when gnus-carpal | |
1199 (gnus-carpal-setup-buffer 'group)))) | |
1200 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1201 (defun gnus-group-name-charset (method group) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1202 (if (null method) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1203 (setq method (gnus-find-method-for-group group))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1204 (let ((item (assoc method gnus-group-name-charset-method-alist)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1205 (alist gnus-group-name-charset-group-alist) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1206 result) |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49274
diff
changeset
|
1207 (if item |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1208 (cdr item) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1209 (while (setq item (pop alist)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1210 (if (string-match (car item) group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1211 (setq alist nil |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1212 result (cdr item)))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1213 result))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1214 |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1215 (defun gnus-group-name-decode (string charset) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1216 ;; Fixme: Don't decode in unibyte mode. |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1217 (if (and string charset (featurep 'mule)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1218 (mm-decode-coding-string string charset) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1219 string)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1220 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1221 (defun gnus-group-decoded-name (string) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1222 (let ((charset (gnus-group-name-charset nil string))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1223 (gnus-group-name-decode string charset))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1224 |
17493 | 1225 (defun gnus-group-list-groups (&optional level unread lowest) |
1226 "List newsgroups with level LEVEL or lower that have unread articles. | |
1227 Default is all subscribed groups. | |
1228 If argument UNREAD is non-nil, groups with no unread articles are also | |
1229 listed. | |
1230 | |
1231 Also see the `gnus-group-use-permanent-levels' variable." | |
1232 (interactive | |
1233 (list (if current-prefix-arg | |
1234 (prefix-numeric-value current-prefix-arg) | |
1235 (or | |
1236 (gnus-group-default-level nil t) | |
1237 gnus-group-default-list-level | |
1238 gnus-level-subscribed)))) | |
1239 (unless level | |
1240 (setq level (car gnus-group-list-mode) | |
1241 unread (cdr gnus-group-list-mode))) | |
1242 (setq level (gnus-group-default-level level)) | |
1243 (gnus-group-setup-buffer) | |
1244 (gnus-update-format-specifications nil 'group 'group-mode) | |
1245 (let ((case-fold-search nil) | |
1246 (props (text-properties-at (gnus-point-at-bol))) | |
1247 (empty (= (point-min) (point-max))) | |
1248 (group (gnus-group-group-name)) | |
1249 number) | |
1250 (set-buffer gnus-group-buffer) | |
1251 (setq number (funcall gnus-group-prepare-function level unread lowest)) | |
1252 (when (or (and (numberp number) | |
1253 (zerop number)) | |
1254 (zerop (buffer-size))) | |
1255 ;; No groups in the buffer. | |
1256 (gnus-message 5 gnus-no-groups-message)) | |
1257 ;; We have some groups displayed. | |
1258 (goto-char (point-max)) | |
1259 (when (or (not gnus-group-goto-next-group-function) | |
1260 (not (funcall gnus-group-goto-next-group-function | |
1261 group props))) | |
1262 (cond | |
1263 (empty | |
1264 (goto-char (point-min))) | |
1265 ((not group) | |
1266 ;; Go to the first group with unread articles. | |
1267 (gnus-group-search-forward t)) | |
1268 (t | |
1269 ;; Find the right group to put point on. If the current group | |
1270 ;; has disappeared in the new listing, try to find the next | |
1271 ;; one. If no next one can be found, just leave point at the | |
1272 ;; first newsgroup in the buffer. | |
1273 (when (not (gnus-goto-char | |
1274 (text-property-any | |
1275 (point-min) (point-max) | |
1276 'gnus-group (gnus-intern-safe | |
1277 group gnus-active-hashtb)))) | |
1278 (let ((newsrc (cdddr (gnus-gethash group gnus-newsrc-hashtb)))) | |
1279 (while (and newsrc | |
1280 (not (gnus-goto-char | |
1281 (text-property-any | |
1282 (point-min) (point-max) 'gnus-group | |
1283 (gnus-intern-safe | |
1284 (caar newsrc) gnus-active-hashtb))))) | |
1285 (setq newsrc (cdr newsrc))) | |
1286 (unless newsrc | |
1287 (goto-char (point-max)) | |
1288 (forward-line -1))))))) | |
1289 ;; Adjust cursor point. | |
1290 (gnus-group-position-point))) | |
1291 | |
1292 (defun gnus-group-list-level (level &optional all) | |
1293 "List groups on LEVEL. | |
1294 If ALL (the prefix), also list groups that have no unread articles." | |
1295 (interactive "nList groups on level: \nP") | |
1296 (gnus-group-list-groups level all level)) | |
1297 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1298 (defun gnus-group-prepare-logic (group test) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1299 (or (and gnus-group-listed-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1300 (null gnus-group-list-option) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1301 (member group gnus-group-listed-groups)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1302 (cond |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1303 ((null gnus-group-listed-groups) test) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1304 ((null gnus-group-list-option) test) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1305 (t (and (member group gnus-group-listed-groups) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1306 (if (eq gnus-group-list-option 'flush) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1307 (not test) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1308 test)))))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1309 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1310 (defun gnus-group-prepare-flat (level &optional predicate lowest regexp) |
17493 | 1311 "List all newsgroups with unread articles of level LEVEL or lower. |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1312 If PREDICATE is a function, list groups that the function returns non-nil; |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1313 if it is t, list groups that have no unread articles. |
17493 | 1314 If LOWEST is non-nil, list all newsgroups of level LOWEST or higher. |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1315 If REGEXP is a function, list dead groups that the function returns non-nil; |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1316 if it is a string, only list groups matching REGEXP." |
17493 | 1317 (set-buffer gnus-group-buffer) |
1318 (let ((buffer-read-only nil) | |
1319 (newsrc (cdr gnus-newsrc-alist)) | |
1320 (lowest (or lowest 1)) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1321 (not-in-list (and gnus-group-listed-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1322 (copy-sequence gnus-group-listed-groups))) |
17493 | 1323 info clevel unread group params) |
1324 (erase-buffer) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1325 (when (or (< lowest gnus-level-zombie) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1326 gnus-group-listed-groups) |
17493 | 1327 ;; List living groups. |
1328 (while newsrc | |
1329 (setq info (car newsrc) | |
1330 group (gnus-info-group info) | |
1331 params (gnus-info-params info) | |
1332 newsrc (cdr newsrc) | |
1333 unread (car (gnus-gethash group gnus-newsrc-hashtb))) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1334 (when not-in-list |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1335 (setq not-in-list (delete group not-in-list))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1336 (when (gnus-group-prepare-logic |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1337 group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1338 (and unread ; This group might be unchecked |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1339 (or (not (stringp regexp)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1340 (string-match regexp group)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1341 (<= (setq clevel (gnus-info-level info)) level) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1342 (>= clevel lowest) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1343 (cond |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1344 ((functionp predicate) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1345 (funcall predicate info)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1346 (predicate t) ; We list all groups? |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1347 (t |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1348 (or |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1349 (if (eq unread t) ; Unactivated? |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1350 gnus-group-list-inactive-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1351 ; We list unactivated |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1352 (> unread 0)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1353 ; We list groups with unread articles |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1354 (and gnus-list-groups-with-ticked-articles |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1355 (cdr (assq 'tick (gnus-info-marks info)))) |
17493 | 1356 ; And groups with tickeds |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1357 ;; Check for permanent visibility. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1358 (and gnus-permanently-visible-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1359 (string-match gnus-permanently-visible-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1360 group)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1361 (memq 'visible params) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1362 (cdr (assq 'visible params))))))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1363 (gnus-group-insert-group-line |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1364 group (gnus-info-level info) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1365 (gnus-info-marks info) unread (gnus-info-method info))))) |
17493 | 1366 |
1367 ;; List dead groups. | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1368 (when (or gnus-group-listed-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1369 (and (>= level gnus-level-zombie) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1370 (<= lowest gnus-level-zombie))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1371 (gnus-group-prepare-flat-list-dead |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1372 (setq gnus-zombie-list (sort gnus-zombie-list 'string<)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1373 gnus-level-zombie ?Z |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1374 regexp)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1375 (when not-in-list |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1376 (dolist (group gnus-zombie-list) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1377 (setq not-in-list (delete group not-in-list)))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1378 (when (or gnus-group-listed-groups |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1379 (and (>= level gnus-level-killed) (<= lowest gnus-level-killed))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1380 (gnus-group-prepare-flat-list-dead |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1381 (gnus-union |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1382 not-in-list |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1383 (setq gnus-killed-list (sort gnus-killed-list 'string<))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1384 gnus-level-killed ?K regexp)) |
17493 | 1385 |
1386 (gnus-group-set-mode-line) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1387 (setq gnus-group-list-mode (cons level predicate)) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1388 (gnus-run-hooks 'gnus-group-prepare-hook) |
17493 | 1389 t)) |
1390 | |
1391 (defun gnus-group-prepare-flat-list-dead (groups level mark regexp) | |
1392 ;; List zombies and killed lists somewhat faster, which was | |
1393 ;; suggested by Jack Vinson <vinson@unagi.cis.upenn.edu>. It does | |
1394 ;; this by ignoring the group format specification altogether. | |
1395 (let (group) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1396 (if (> (length groups) gnus-group-listing-limit) |
17493 | 1397 (while groups |
1398 (setq group (pop groups)) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1399 (when (gnus-group-prepare-logic |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1400 group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1401 (or (not regexp) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1402 (and (stringp regexp) (string-match regexp group)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1403 (and (functionp regexp) (funcall regexp group)))) |
17493 | 1404 (gnus-add-text-properties |
1405 (point) (prog1 (1+ (point)) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1406 (insert " " mark " *: " |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1407 (gnus-group-decoded-name group) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1408 "\n")) |
17493 | 1409 (list 'gnus-group (gnus-intern-safe group gnus-active-hashtb) |
1410 'gnus-unread t | |
1411 'gnus-level level)))) | |
1412 (while groups | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1413 (setq group (pop groups)) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1414 (when (gnus-group-prepare-logic |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1415 group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1416 (or (not regexp) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1417 (and (stringp regexp) (string-match regexp group)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1418 (and (functionp regexp) (funcall regexp group)))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1419 (gnus-group-insert-group-line |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1420 group level nil |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1421 (let ((active (gnus-active group))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1422 (if active |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1423 (if (zerop (cdr active)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1424 0 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1425 (- (1+ (cdr active)) (car active))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1426 nil)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1427 (gnus-method-simplify (gnus-find-method-for-group group)))))))) |
17493 | 1428 |
1429 (defun gnus-group-update-group-line () | |
1430 "Update the current line in the group buffer." | |
1431 (let* ((buffer-read-only nil) | |
1432 (group (gnus-group-group-name)) | |
1433 (entry (and group (gnus-gethash group gnus-newsrc-hashtb))) | |
1434 gnus-group-indentation) | |
1435 (when group | |
1436 (and entry | |
1437 (not (gnus-ephemeral-group-p group)) | |
1438 (gnus-dribble-enter | |
1439 (concat "(gnus-group-set-info '" | |
1440 (gnus-prin1-to-string (nth 2 entry)) | |
1441 ")"))) | |
1442 (setq gnus-group-indentation (gnus-group-group-indentation)) | |
1443 (gnus-delete-line) | |
1444 (gnus-group-insert-group-line-info group) | |
1445 (forward-line -1) | |
1446 (gnus-group-position-point)))) | |
1447 | |
1448 (defun gnus-group-insert-group-line-info (group) | |
1449 "Insert GROUP on the current line." | |
1450 (let ((entry (gnus-gethash group gnus-newsrc-hashtb)) | |
1451 (gnus-group-indentation (gnus-group-group-indentation)) | |
1452 active info) | |
1453 (if entry | |
1454 (progn | |
1455 ;; (Un)subscribed group. | |
1456 (setq info (nth 2 entry)) | |
1457 (gnus-group-insert-group-line | |
1458 group (gnus-info-level info) (gnus-info-marks info) | |
1459 (or (car entry) t) (gnus-info-method info))) | |
1460 ;; This group is dead. | |
1461 (gnus-group-insert-group-line | |
1462 group | |
1463 (if (member group gnus-zombie-list) gnus-level-zombie gnus-level-killed) | |
1464 nil | |
1465 (if (setq active (gnus-active group)) | |
1466 (if (zerop (cdr active)) | |
1467 0 | |
1468 (- (1+ (cdr active)) (car active))) | |
1469 nil) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1470 (gnus-method-simplify (gnus-find-method-for-group group)))))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1471 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1472 (defun gnus-number-of-unseen-articles-in-group (group) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1473 (let* ((info (nth 2 (gnus-group-entry group))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1474 (marked (gnus-info-marks info)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1475 (seen (cdr (assq 'seen marked))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1476 (active (gnus-active group))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1477 (if (not active) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1478 0 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1479 (length (gnus-uncompress-range |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1480 (gnus-range-difference |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1481 (gnus-range-difference (list active) (gnus-info-read info)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1482 seen)))))) |
17493 | 1483 |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1484 ;; Moving through the Group buffer (in topic mode) e.g. with C-n doesn't |
70063
be502e8c29ea
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-228
Miles Bader <miles@gnu.org>
parents:
70051
diff
changeset
|
1485 ;; update the state (enabled/disabled) of the icon `gnus-group-describe-group' |
be502e8c29ea
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-228
Miles Bader <miles@gnu.org>
parents:
70051
diff
changeset
|
1486 ;; automatically. After `C-l' the state is correct. See the following report |
be502e8c29ea
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-228
Miles Bader <miles@gnu.org>
parents:
70051
diff
changeset
|
1487 ;; on emacs-devel |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1488 ;; <http://thread.gmane.org/v9acdmrcse.fsf@marauder.physik.uni-ulm.de>: |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1489 ;; From: Reiner Steib |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1490 ;; Subject: tool bar icons not updated according to :active condition |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1491 ;; Newsgroups: gmane.emacs.devel |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1492 ;; Date: Mon, 23 Jan 2006 19:59:13 +0100 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1493 ;; Message-ID: <v9acdmrcse.fsf@marauder.physik.uni-ulm.de> |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1494 |
69337
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1495 (defcustom gnus-group-update-tool-bar |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1496 (and (not (featurep 'xemacs)) |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1497 (boundp 'tool-bar-mode) |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1498 tool-bar-mode |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1499 ;; Using `redraw-frame' (see `gnus-tool-bar-update') in Emacs 21 might |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1500 ;; be confusing, so maybe we shouldn't call it by default. |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1501 (fboundp 'force-window-update)) |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1502 "Force updating the group buffer tool bar." |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1503 :group 'gnus-group |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1504 :version "22.1" |
69763
6c338e8bc3ff
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-189
Miles Bader <miles@gnu.org>
parents:
69362
diff
changeset
|
1505 :initialize 'custom-initialize-default |
6c338e8bc3ff
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-189
Miles Bader <miles@gnu.org>
parents:
69362
diff
changeset
|
1506 :set (lambda (symbol value) |
6c338e8bc3ff
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-189
Miles Bader <miles@gnu.org>
parents:
69362
diff
changeset
|
1507 (set-default symbol value) |
6c338e8bc3ff
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-189
Miles Bader <miles@gnu.org>
parents:
69362
diff
changeset
|
1508 (when (gnus-alive-p) |
6c338e8bc3ff
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-189
Miles Bader <miles@gnu.org>
parents:
69362
diff
changeset
|
1509 (with-current-buffer gnus-group-buffer |
6c338e8bc3ff
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-189
Miles Bader <miles@gnu.org>
parents:
69362
diff
changeset
|
1510 ;; FIXME: Is there a better way to redraw the group buffer? |
6c338e8bc3ff
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-189
Miles Bader <miles@gnu.org>
parents:
69362
diff
changeset
|
1511 (gnus-group-get-new-news 0)))) |
69337
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1512 :type 'boolean) |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1513 |
17493 | 1514 (defun gnus-group-insert-group-line (gnus-tmp-group gnus-tmp-level |
1515 gnus-tmp-marked number | |
1516 gnus-tmp-method) | |
1517 "Insert a group line in the group buffer." | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1518 (let* ((gnus-tmp-method |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49274
diff
changeset
|
1519 (gnus-server-get-method gnus-tmp-group gnus-tmp-method)) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1520 (group-name-charset (gnus-group-name-charset gnus-tmp-method |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1521 gnus-tmp-group)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1522 (gnus-tmp-active (gnus-active gnus-tmp-group)) |
17493 | 1523 (gnus-tmp-number-total |
1524 (if gnus-tmp-active | |
1525 (1+ (- (cdr gnus-tmp-active) (car gnus-tmp-active))) | |
1526 0)) | |
1527 (gnus-tmp-number-of-unread | |
1528 (if (numberp number) (int-to-string (max 0 number)) | |
1529 "*")) | |
1530 (gnus-tmp-number-of-read | |
1531 (if (numberp number) | |
1532 (int-to-string (max 0 (- gnus-tmp-number-total number))) | |
1533 "*")) | |
1534 (gnus-tmp-subscribed | |
1535 (cond ((<= gnus-tmp-level gnus-level-subscribed) ? ) | |
1536 ((<= gnus-tmp-level gnus-level-unsubscribed) ?U) | |
1537 ((= gnus-tmp-level gnus-level-zombie) ?Z) | |
1538 (t ?K))) | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49274
diff
changeset
|
1539 (gnus-tmp-qualified-group |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1540 (gnus-group-name-decode (gnus-group-real-name gnus-tmp-group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1541 group-name-charset)) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1542 (gnus-tmp-comment |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1543 (or (gnus-group-get-parameter gnus-tmp-group 'comment t) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1544 gnus-tmp-group)) |
17493 | 1545 (gnus-tmp-newsgroup-description |
1546 (if gnus-description-hashtb | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1547 (or (gnus-group-name-decode |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49274
diff
changeset
|
1548 (gnus-gethash gnus-tmp-group gnus-description-hashtb) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1549 group-name-charset) "") |
17493 | 1550 "")) |
1551 (gnus-tmp-moderated | |
1552 (if (and gnus-moderated-hashtb | |
1553 (gnus-gethash gnus-tmp-group gnus-moderated-hashtb)) | |
1554 ?m ? )) | |
1555 (gnus-tmp-moderated-string | |
1556 (if (eq gnus-tmp-moderated ?m) "(m)" "")) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1557 (gnus-tmp-group-icon "==&&==") |
17493 | 1558 (gnus-tmp-news-server (or (cadr gnus-tmp-method) "")) |
1559 (gnus-tmp-news-method (or (car gnus-tmp-method) "")) | |
1560 (gnus-tmp-news-method-string | |
1561 (if gnus-tmp-method | |
1562 (format "(%s:%s)" (car gnus-tmp-method) | |
1563 (cadr gnus-tmp-method)) "")) | |
1564 (gnus-tmp-marked-mark | |
1565 (if (and (numberp number) | |
1566 (zerop number) | |
1567 (cdr (assq 'tick gnus-tmp-marked))) | |
1568 ?* ? )) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1569 (gnus-tmp-summary-live |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1570 (if (and (not gnus-group-is-exiting-p) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1571 (gnus-buffer-live-p (gnus-summary-buffer-name |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1572 gnus-tmp-group))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1573 ?* ? )) |
17493 | 1574 (gnus-tmp-process-marked |
1575 (if (member gnus-tmp-group gnus-group-marked) | |
1576 gnus-process-mark ? )) | |
1577 (gnus-tmp-grouplens | |
1578 (or (and gnus-use-grouplens | |
1579 (bbb-grouplens-group-p gnus-tmp-group)) | |
1580 "")) | |
1581 (buffer-read-only nil) | |
69337
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1582 beg end |
17493 | 1583 header gnus-tmp-header) ; passed as parameter to user-funcs. |
1584 (beginning-of-line) | |
69337
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1585 (setq beg (point)) |
17493 | 1586 (gnus-add-text-properties |
1587 (point) | |
1588 (prog1 (1+ (point)) | |
1589 ;; Insert the text. | |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
1590 (let ((gnus-tmp-decoded-group (gnus-group-name-decode |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
1591 gnus-tmp-group group-name-charset))) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1592 (eval gnus-group-line-format-spec))) |
17493 | 1593 `(gnus-group ,(gnus-intern-safe gnus-tmp-group gnus-active-hashtb) |
1594 gnus-unread ,(if (numberp number) | |
62907
88db2adda4b7
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-339
Miles Bader <miles@gnu.org>
parents:
62890
diff
changeset
|
1595 (string-to-number gnus-tmp-number-of-unread) |
17493 | 1596 t) |
1597 gnus-marked ,gnus-tmp-marked-mark | |
1598 gnus-indentation ,gnus-group-indentation | |
1599 gnus-level ,gnus-tmp-level)) | |
69337
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1600 (setq end (point)) |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1601 (when gnus-group-update-tool-bar |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1602 (gnus-put-text-property beg end 'point-entered |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1603 'gnus-tool-bar-update) |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1604 (gnus-put-text-property beg end 'point-left |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1605 'gnus-tool-bar-update)) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1606 (forward-line -1) |
17493 | 1607 (when (inline (gnus-visual-p 'group-highlight 'highlight)) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1608 (gnus-run-hooks 'gnus-group-update-hook)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1609 (forward-line) |
17493 | 1610 ;; Allow XEmacs to remove front-sticky text properties. |
1611 (gnus-group-remove-excess-properties))) | |
1612 | |
1613 (defun gnus-group-highlight-line () | |
1614 "Highlight the current line according to `gnus-group-highlight'." | |
1615 (let* ((list gnus-group-highlight) | |
1616 (p (point)) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1617 (end (gnus-point-at-eol)) |
17493 | 1618 ;; now find out where the line starts and leave point there. |
1619 (beg (progn (beginning-of-line) (point))) | |
1620 (group (gnus-group-group-name)) | |
1621 (entry (gnus-group-entry group)) | |
1622 (unread (if (numberp (car entry)) (car entry) 0)) | |
1623 (active (gnus-active group)) | |
1624 (total (if active (1+ (- (cdr active) (car active))) 0)) | |
1625 (info (nth 2 entry)) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1626 (method (inline (gnus-server-get-method group (gnus-info-method info)))) |
17493 | 1627 (marked (gnus-info-marks info)) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1628 (mailp (apply 'append |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1629 (mapcar |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1630 (lambda (x) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1631 (memq x (assoc (symbol-name |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1632 (car (or method gnus-select-method))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1633 gnus-valid-select-methods))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1634 '(mail post-mail)))) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1635 (level (or (gnus-info-level info) gnus-level-killed)) |
17493 | 1636 (score (or (gnus-info-score info) 0)) |
1637 (ticked (gnus-range-length (cdr (assq 'tick marked)))) | |
1638 (group-age (gnus-group-timestamp-delta group)) | |
1639 (inhibit-read-only t)) | |
1640 ;; Eval the cars of the lists until we find a match. | |
1641 (while (and list | |
1642 (not (eval (caar list)))) | |
1643 (setq list (cdr list))) | |
1644 (let ((face (cdar list))) | |
1645 (unless (eq face (get-text-property beg 'face)) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1646 (gnus-put-text-property-excluding-characters-with-faces |
17493 | 1647 beg end 'face |
1648 (setq face (if (boundp face) (symbol-value face) face))) | |
1649 (gnus-extent-start-open beg))) | |
1650 (goto-char p))) | |
1651 | |
1652 (defun gnus-group-update-group (group &optional visible-only) | |
1653 "Update all lines where GROUP appear. | |
1654 If VISIBLE-ONLY is non-nil, the group won't be displayed if it isn't | |
1655 already." | |
1656 ;; Can't use `save-excursion' here, so we do it manually. | |
1657 (let ((buf (current-buffer)) | |
1658 mark) | |
1659 (set-buffer gnus-group-buffer) | |
1660 (setq mark (point-marker)) | |
1661 ;; The buffer may be narrowed. | |
1662 (save-restriction | |
1663 (widen) | |
1664 (let ((ident (gnus-intern-safe group gnus-active-hashtb)) | |
1665 (loc (point-min)) | |
1666 found buffer-read-only) | |
1667 ;; Enter the current status into the dribble buffer. | |
1668 (let ((entry (gnus-gethash group gnus-newsrc-hashtb))) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1669 (when (and entry |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1670 (not (gnus-ephemeral-group-p group))) |
17493 | 1671 (gnus-dribble-enter |
1672 (concat "(gnus-group-set-info '" | |
1673 (gnus-prin1-to-string (nth 2 entry)) | |
1674 ")")))) | |
1675 ;; Find all group instances. If topics are in use, each group | |
1676 ;; may be listed in more than once. | |
1677 (while (setq loc (text-property-any | |
1678 loc (point-max) 'gnus-group ident)) | |
1679 (setq found t) | |
1680 (goto-char loc) | |
1681 (let ((gnus-group-indentation (gnus-group-group-indentation))) | |
1682 (gnus-delete-line) | |
1683 (gnus-group-insert-group-line-info group) | |
1684 (save-excursion | |
1685 (forward-line -1) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1686 (gnus-run-hooks 'gnus-group-update-group-hook))) |
17493 | 1687 (setq loc (1+ loc))) |
1688 (unless (or found visible-only) | |
1689 ;; No such line in the buffer, find out where it's supposed to | |
1690 ;; go, and insert it there (or at the end of the buffer). | |
1691 (if gnus-goto-missing-group-function | |
1692 (funcall gnus-goto-missing-group-function group) | |
1693 (let ((entry (cddr (gnus-gethash group gnus-newsrc-hashtb)))) | |
1694 (while (and entry (car entry) | |
1695 (not | |
1696 (gnus-goto-char | |
1697 (text-property-any | |
1698 (point-min) (point-max) | |
1699 'gnus-group (gnus-intern-safe | |
1700 (caar entry) gnus-active-hashtb))))) | |
1701 (setq entry (cdr entry))) | |
1702 (or entry (goto-char (point-max))))) | |
1703 ;; Finally insert the line. | |
1704 (let ((gnus-group-indentation (gnus-group-group-indentation))) | |
1705 (gnus-group-insert-group-line-info group) | |
1706 (save-excursion | |
1707 (forward-line -1) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1708 (gnus-run-hooks 'gnus-group-update-group-hook)))) |
17493 | 1709 (when gnus-group-update-group-function |
1710 (funcall gnus-group-update-group-function group)) | |
1711 (gnus-group-set-mode-line))) | |
1712 (goto-char mark) | |
1713 (set-marker mark nil) | |
1714 (set-buffer buf))) | |
1715 | |
1716 (defun gnus-group-set-mode-line () | |
1717 "Update the mode line in the group buffer." | |
1718 (when (memq 'group gnus-updated-mode-lines) | |
1719 ;; Yes, we want to keep this mode line updated. | |
1720 (save-excursion | |
1721 (set-buffer gnus-group-buffer) | |
1722 (let* ((gformat (or gnus-group-mode-line-format-spec | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1723 (gnus-set-format 'group-mode))) |
17493 | 1724 (gnus-tmp-news-server (cadr gnus-select-method)) |
1725 (gnus-tmp-news-method (car gnus-select-method)) | |
1726 (gnus-tmp-colon (if (equal gnus-tmp-news-server "") "" ":")) | |
1727 (max-len 60) | |
1728 gnus-tmp-header ;Dummy binding for user-defined formats | |
1729 ;; Get the resulting string. | |
1730 (modified | |
1731 (and gnus-dribble-buffer | |
1732 (buffer-name gnus-dribble-buffer) | |
1733 (buffer-modified-p gnus-dribble-buffer) | |
1734 (save-excursion | |
1735 (set-buffer gnus-dribble-buffer) | |
1736 (not (zerop (buffer-size)))))) | |
1737 (mode-string (eval gformat))) | |
1738 ;; Say whether the dribble buffer has been modified. | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1739 (setq mode-line-modified |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1740 (if modified (car gnus-mode-line-modified) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1741 (cdr gnus-mode-line-modified))) |
17493 | 1742 ;; If the line is too long, we chop it off. |
1743 (when (> (length mode-string) max-len) | |
1744 (setq mode-string (substring mode-string 0 (- max-len 4)))) | |
1745 (prog1 | |
1746 (setq mode-line-buffer-identification | |
1747 (gnus-mode-line-buffer-identification | |
1748 (list mode-string))) | |
1749 (set-buffer-modified-p modified)))))) | |
1750 | |
1751 (defun gnus-group-group-name () | |
1752 "Get the name of the newsgroup on the current line." | |
1753 (let ((group (get-text-property (gnus-point-at-bol) 'gnus-group))) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1754 (when group |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1755 (symbol-name group)))) |
17493 | 1756 |
1757 (defun gnus-group-group-level () | |
1758 "Get the level of the newsgroup on the current line." | |
1759 (get-text-property (gnus-point-at-bol) 'gnus-level)) | |
1760 | |
1761 (defun gnus-group-group-indentation () | |
1762 "Get the indentation of the newsgroup on the current line." | |
1763 (or (get-text-property (gnus-point-at-bol) 'gnus-indentation) | |
1764 (and gnus-group-indentation-function | |
1765 (funcall gnus-group-indentation-function)) | |
1766 "")) | |
1767 | |
1768 (defun gnus-group-group-unread () | |
1769 "Get the number of unread articles of the newsgroup on the current line." | |
1770 (get-text-property (gnus-point-at-bol) 'gnus-unread)) | |
1771 | |
1772 (defun gnus-group-new-mail (group) | |
1773 (if (nnmail-new-mail-p (gnus-group-real-name group)) | |
1774 gnus-new-mail-mark | |
1775 ? )) | |
1776 | |
1777 (defun gnus-group-level (group) | |
1778 "Return the estimated level of GROUP." | |
1779 (or (gnus-info-level (gnus-get-info group)) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1780 (and (member group gnus-zombie-list) gnus-level-zombie) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1781 gnus-level-killed)) |
17493 | 1782 |
1783 (defun gnus-group-search-forward (&optional backward all level first-too) | |
1784 "Find the next newsgroup with unread articles. | |
1785 If BACKWARD is non-nil, find the previous newsgroup instead. | |
1786 If ALL is non-nil, just find any newsgroup. | |
1787 If LEVEL is non-nil, find group with level LEVEL, or higher if no such | |
1788 group exists. | |
1789 If FIRST-TOO, the current line is also eligible as a target." | |
1790 (let ((way (if backward -1 1)) | |
1791 (low gnus-level-killed) | |
1792 (beg (point)) | |
1793 pos found lev) | |
1794 (if (and backward (progn (beginning-of-line)) (bobp)) | |
1795 nil | |
1796 (unless first-too | |
1797 (forward-line way)) | |
1798 (while (and | |
1799 (not (eobp)) | |
1800 (not (setq | |
1801 found | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1802 (and |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1803 (get-text-property (point) 'gnus-group) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1804 (or all |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1805 (and |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1806 (let ((unread |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1807 (get-text-property (point) 'gnus-unread))) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1808 (and (numberp unread) (> unread 0))) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1809 (setq lev (get-text-property (point) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1810 'gnus-level)) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1811 (<= lev gnus-level-subscribed))) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1812 (or (not level) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1813 (and (setq lev (get-text-property (point) |
17493 | 1814 'gnus-level)) |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1815 (or (= lev level) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1816 (and (< lev low) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1817 (< level lev) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1818 (progn |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1819 (setq low lev) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1820 (setq pos (point)) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1821 nil)))))))) |
17493 | 1822 (zerop (forward-line way))))) |
1823 (if found | |
1824 (progn (gnus-group-position-point) t) | |
1825 (goto-char (or pos beg)) | |
1826 (and pos t)))) | |
1827 | |
1828 ;;; Gnus group mode commands | |
1829 | |
1830 ;; Group marking. | |
1831 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1832 (defun gnus-group-mark-line-p () |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1833 (save-excursion |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1834 (beginning-of-line) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1835 (forward-char (or (cdr (assq 'process gnus-group-mark-positions)) 2)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1836 (eq (char-after) gnus-process-mark))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1837 |
17493 | 1838 (defun gnus-group-mark-group (n &optional unmark no-advance) |
1839 "Mark the current group." | |
1840 (interactive "p") | |
1841 (let ((buffer-read-only nil) | |
1842 group) | |
1843 (while (and (> n 0) | |
1844 (not (eobp))) | |
1845 (when (setq group (gnus-group-group-name)) | |
1846 ;; Go to the mark position. | |
1847 (beginning-of-line) | |
1848 (forward-char (or (cdr (assq 'process gnus-group-mark-positions)) 2)) | |
1849 (subst-char-in-region | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1850 (point) (1+ (point)) (char-after) |
17493 | 1851 (if unmark |
1852 (progn | |
1853 (setq gnus-group-marked (delete group gnus-group-marked)) | |
1854 ? ) | |
1855 (setq gnus-group-marked | |
1856 (cons group (delete group gnus-group-marked))) | |
1857 gnus-process-mark))) | |
1858 (unless no-advance | |
1859 (gnus-group-next-group 1)) | |
1860 (decf n)) | |
1861 (gnus-summary-position-point) | |
1862 n)) | |
1863 | |
1864 (defun gnus-group-unmark-group (n) | |
1865 "Remove the mark from the current group." | |
1866 (interactive "p") | |
1867 (gnus-group-mark-group n 'unmark) | |
1868 (gnus-group-position-point)) | |
1869 | |
1870 (defun gnus-group-unmark-all-groups () | |
1871 "Unmark all groups." | |
1872 (interactive) | |
1873 (let ((groups gnus-group-marked)) | |
1874 (save-excursion | |
1875 (while groups | |
1876 (gnus-group-remove-mark (pop groups))))) | |
1877 (gnus-group-position-point)) | |
1878 | |
1879 (defun gnus-group-mark-region (unmark beg end) | |
1880 "Mark all groups between point and mark. | |
1881 If UNMARK, remove the mark instead." | |
1882 (interactive "P\nr") | |
1883 (let ((num (count-lines beg end))) | |
1884 (save-excursion | |
1885 (goto-char beg) | |
1886 (- num (gnus-group-mark-group num unmark))))) | |
1887 | |
1888 (defun gnus-group-mark-buffer (&optional unmark) | |
1889 "Mark all groups in the buffer. | |
1890 If UNMARK, remove the mark instead." | |
1891 (interactive "P") | |
1892 (gnus-group-mark-region unmark (point-min) (point-max))) | |
1893 | |
1894 (defun gnus-group-mark-regexp (regexp) | |
1895 "Mark all groups that match some regexp." | |
1896 (interactive "sMark (regexp): ") | |
1897 (let ((alist (cdr gnus-newsrc-alist)) | |
1898 group) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1899 (save-excursion |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1900 (while alist |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1901 (when (string-match regexp (setq group (gnus-info-group (pop alist)))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1902 (gnus-group-jump-to-group group) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1903 (gnus-group-set-mark group))))) |
17493 | 1904 (gnus-group-position-point)) |
1905 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1906 (defun gnus-group-remove-mark (group &optional test-marked) |
17493 | 1907 "Remove the process mark from GROUP and move point there. |
1908 Return nil if the group isn't displayed." | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1909 (if (gnus-group-goto-group group nil test-marked) |
17493 | 1910 (save-excursion |
1911 (gnus-group-mark-group 1 'unmark t) | |
1912 t) | |
1913 (setq gnus-group-marked | |
1914 (delete group gnus-group-marked)) | |
1915 nil)) | |
1916 | |
1917 (defun gnus-group-set-mark (group) | |
1918 "Set the process mark on GROUP." | |
1919 (if (gnus-group-goto-group group) | |
1920 (save-excursion | |
1921 (gnus-group-mark-group 1 nil t)) | |
1922 (setq gnus-group-marked (cons group (delete group gnus-group-marked))))) | |
1923 | |
1924 (defun gnus-group-universal-argument (arg &optional groups func) | |
1925 "Perform any command on all groups according to the process/prefix convention." | |
1926 (interactive "P") | |
1927 (if (eq (setq func (or func | |
1928 (key-binding | |
1929 (read-key-sequence | |
1930 (substitute-command-keys | |
1931 "\\<gnus-group-mode-map>\\[gnus-group-universal-argument]"))))) | |
1932 'undefined) | |
1933 (gnus-error 1 "Undefined key") | |
1934 (gnus-group-iterate arg | |
1935 (lambda (group) | |
1936 (command-execute func)))) | |
1937 (gnus-group-position-point)) | |
1938 | |
1939 (defun gnus-group-process-prefix (n) | |
1940 "Return a list of groups to work on. | |
1941 Take into consideration N (the prefix) and the list of marked groups." | |
1942 (cond | |
1943 (n | |
1944 (setq n (prefix-numeric-value n)) | |
1945 ;; There is a prefix, so we return a list of the N next | |
1946 ;; groups. | |
1947 (let ((way (if (< n 0) -1 1)) | |
1948 (n (abs n)) | |
1949 group groups) | |
1950 (save-excursion | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1951 (while (> n 0) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1952 (if (setq group (gnus-group-group-name)) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1953 (push group groups)) |
17493 | 1954 (setq n (1- n)) |
1955 (gnus-group-next-group way))) | |
1956 (nreverse groups))) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1957 ((and (gnus-region-active-p) (mark)) |
17493 | 1958 ;; Work on the region between point and mark. |
1959 (let ((max (max (point) (mark))) | |
1960 groups) | |
1961 (save-excursion | |
1962 (goto-char (min (point) (mark))) | |
1963 (while | |
1964 (and | |
1965 (push (gnus-group-group-name) groups) | |
1966 (zerop (gnus-group-next-group 1)) | |
1967 (< (point) max))) | |
1968 (nreverse groups)))) | |
1969 (gnus-group-marked | |
1970 ;; No prefix, but a list of marked articles. | |
1971 (reverse gnus-group-marked)) | |
1972 (t | |
1973 ;; Neither marked articles or a prefix, so we return the | |
1974 ;; current group. | |
1975 (let ((group (gnus-group-group-name))) | |
1976 (and group (list group)))))) | |
1977 | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1978 ;;; !!!Surely gnus-group-iterate should be a macro instead? I can't |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1979 ;;; imagine why I went through these contortions... |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1980 (eval-and-compile |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1981 (let ((function (make-symbol "gnus-group-iterate-function")) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1982 (window (make-symbol "gnus-group-iterate-window")) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1983 (groups (make-symbol "gnus-group-iterate-groups")) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1984 (group (make-symbol "gnus-group-iterate-group"))) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1985 (eval |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1986 `(defun gnus-group-iterate (arg ,function) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1987 "Iterate FUNCTION over all process/prefixed groups. |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1988 FUNCTION will be called with the group name as the parameter |
17493 | 1989 and with point over the group in question." |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1990 (let ((,groups (gnus-group-process-prefix arg)) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1991 (,window (selected-window)) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1992 ,group) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1993 (while ,groups |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1994 (setq ,group (car ,groups) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1995 ,groups (cdr ,groups)) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1996 (select-window ,window) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1997 (gnus-group-remove-mark ,group) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1998 (save-selected-window |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1999 (save-excursion |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2000 (funcall ,function ,group))))))))) |
17493 | 2001 |
2002 (put 'gnus-group-iterate 'lisp-indent-function 1) | |
2003 | |
2004 ;; Selecting groups. | |
2005 | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2006 (defun gnus-group-read-group (&optional all no-article group select-articles) |
17493 | 2007 "Read news in this newsgroup. |
2008 If the prefix argument ALL is non-nil, already read articles become | |
2009 readable. IF ALL is a number, fetch this number of articles. If the | |
2010 optional argument NO-ARTICLE is non-nil, no article will be | |
74150
361d95731e62
(gnus-group-sort-function, gnus-group-line-format, gnus-group-mode,
Juanma Barranquero <lekktu@gmail.com>
parents:
73487
diff
changeset
|
2011 auto-selected upon group entry. If GROUP is non-nil, fetch that |
17493 | 2012 group." |
2013 (interactive "P") | |
2014 (let ((no-display (eq all 0)) | |
2015 (group (or group (gnus-group-group-name))) | |
2016 number active marked entry) | |
2017 (when (eq all 0) | |
2018 (setq all nil)) | |
2019 (unless group | |
2020 (error "No group on current line")) | |
2021 (setq marked (gnus-info-marks | |
2022 (nth 2 (setq entry (gnus-gethash | |
2023 group gnus-newsrc-hashtb))))) | |
2024 ;; This group might be a dead group. In that case we have to get | |
2025 ;; the number of unread articles from `gnus-active-hashtb'. | |
2026 (setq number | |
2027 (cond ((numberp all) all) | |
2028 (entry (car entry)) | |
2029 ((setq active (gnus-active group)) | |
2030 (- (1+ (cdr active)) (car active))))) | |
2031 (gnus-summary-read-group | |
2032 group (or all (and (numberp number) | |
2033 (zerop (+ number (gnus-range-length | |
2034 (cdr (assq 'tick marked))) | |
2035 (gnus-range-length | |
2036 (cdr (assq 'dormant marked))))))) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2037 no-article nil no-display nil select-articles))) |
17493 | 2038 |
2039 (defun gnus-group-select-group (&optional all) | |
2040 "Select this newsgroup. | |
2041 No article is selected automatically. | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2042 If the group is opened, just switch the summary buffer. |
17493 | 2043 If ALL is non-nil, already read articles become readable. |
71531 | 2044 If ALL is a positive number, fetch this number of the latest |
2045 articles in the group. | |
2046 If ALL is a negative number, fetch this number of the earliest | |
2047 articles in the group." | |
17493 | 2048 (interactive "P") |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2049 (when (and (eobp) (not (gnus-group-group-name))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2050 (forward-line -1)) |
17493 | 2051 (gnus-group-read-group all t)) |
2052 | |
2053 (defun gnus-group-quick-select-group (&optional all) | |
2054 "Select the current group \"quickly\". | |
2055 This means that no highlighting or scoring will be performed. | |
2056 If ALL (the prefix argument) is 0, don't even generate the summary | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2057 buffer. |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2058 |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2059 This might be useful if you want to toggle threading |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2060 before entering the group." |
17493 | 2061 (interactive "P") |
2062 (require 'gnus-score) | |
2063 (let (gnus-visual | |
2064 gnus-score-find-score-files-function | |
2065 gnus-home-score-file | |
2066 gnus-apply-kill-hook | |
2067 gnus-summary-expunge-below) | |
2068 (gnus-group-read-group all t))) | |
2069 | |
2070 (defun gnus-group-visible-select-group (&optional all) | |
2071 "Select the current group without hiding any articles." | |
2072 (interactive "P") | |
2073 (let ((gnus-inhibit-limiting t)) | |
2074 (gnus-group-read-group all t))) | |
2075 | |
2076 (defun gnus-group-select-group-ephemerally () | |
2077 "Select the current group without doing any processing whatsoever. | |
2078 You will actually be entered into a group that's a copy of | |
2079 the current group; no changes you make while in this group will | |
2080 be permanent." | |
2081 (interactive) | |
2082 (require 'gnus-score) | |
2083 (let* (gnus-visual | |
2084 gnus-score-find-score-files-function gnus-apply-kill-hook | |
2085 gnus-summary-expunge-below gnus-show-threads gnus-suppress-duplicates | |
2086 gnus-summary-mode-hook gnus-select-group-hook | |
2087 (group (gnus-group-group-name)) | |
2088 (method (gnus-find-method-for-group group))) | |
2089 (gnus-group-read-ephemeral-group | |
2090 (gnus-group-prefixed-name group method) method))) | |
2091 | |
2092 ;;;###autoload | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2093 (defun gnus-fetch-group (group &optional articles) |
17493 | 2094 "Start Gnus if necessary and enter GROUP. |
2095 Returns whether the fetching was successful or not." | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2096 (interactive (list (completing-read "Group name: " gnus-active-hashtb))) |
17493 | 2097 (unless (get-buffer gnus-group-buffer) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2098 (gnus-no-server)) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2099 (gnus-group-read-group articles nil group)) |
17493 | 2100 |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2101 ;;;###autoload |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2102 (defun gnus-fetch-group-other-frame (group) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2103 "Pop up a frame and enter GROUP." |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2104 (interactive "P") |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2105 (let ((window (get-buffer-window gnus-group-buffer))) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2106 (cond (window |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2107 (select-frame (window-frame window))) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2108 ((= (length (frame-list)) 1) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2109 (select-frame (make-frame))) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2110 (t |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2111 (other-frame 1)))) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2112 (gnus-fetch-group group)) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2113 |
17493 | 2114 (defvar gnus-ephemeral-group-server 0) |
2115 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2116 (defcustom gnus-large-ephemeral-newsgroup 200 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2117 "The number of articles which indicates a large ephemeral newsgroup. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2118 Same as `gnus-large-newsgroup', but only used for ephemeral newsgroups. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2119 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2120 If the number of articles in a newsgroup is greater than this value, |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2121 confirmation is required for selecting the newsgroup. If it is nil, no |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2122 confirmation is required." |
59996
aac0a33f5772
Change release version from 21.4 to 22.1 throughout.
Kim F. Storm <storm@cua.dk>
parents:
59027
diff
changeset
|
2123 :version "22.1" |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2124 :group 'gnus-group-select |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2125 :type '(choice (const :tag "No limit" nil) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2126 integer)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2127 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2128 (defcustom gnus-fetch-old-ephemeral-headers nil |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2129 "Same as `gnus-fetch-old-headers', but only used for ephemeral newsgroups." |
59996
aac0a33f5772
Change release version from 21.4 to 22.1 throughout.
Kim F. Storm <storm@cua.dk>
parents:
59027
diff
changeset
|
2130 :version "22.1" |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2131 :group 'gnus-thread |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2132 :type '(choice (const :tag "off" nil) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2133 (const some) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2134 number |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2135 (sexp :menu-tag "other" t))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2136 |
17493 | 2137 ;; Enter a group that is not in the group buffer. Non-nil is returned |
2138 ;; if selection was successful. | |
2139 (defun gnus-group-read-ephemeral-group (group method &optional activate | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2140 quit-config request-only |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2141 select-articles |
61126
c0aa521e0ca7
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-220
Miles Bader <miles@gnu.org>
parents:
60239
diff
changeset
|
2142 parameters |
c0aa521e0ca7
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-220
Miles Bader <miles@gnu.org>
parents:
60239
diff
changeset
|
2143 number) |
17493 | 2144 "Read GROUP from METHOD as an ephemeral group. |
2145 If ACTIVATE, request the group first. | |
2146 If QUIT-CONFIG, use that window configuration when exiting from the | |
2147 ephemeral group. | |
2148 If REQUEST-ONLY, don't actually read the group; just request it. | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2149 If SELECT-ARTICLES, only select those articles. |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2150 If PARAMETERS, use those as the group parameters. |
61126
c0aa521e0ca7
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-220
Miles Bader <miles@gnu.org>
parents:
60239
diff
changeset
|
2151 If NUMBER, fetch this number of articles. |
17493 | 2152 |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2153 Return the name of the group if selection was successful." |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2154 (interactive |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2155 (list |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2156 ;; (gnus-read-group "Group name: ") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2157 (completing-read |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2158 "Group: " gnus-active-hashtb |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2159 nil nil nil |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2160 'gnus-group-history) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2161 (gnus-read-method "From method: "))) |
17493 | 2162 ;; Transform the select method into a unique server. |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2163 (when (stringp method) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2164 (setq method (gnus-server-to-method method))) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2165 (setq method |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2166 `(,(car method) ,(concat (cadr method) "-ephemeral") |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2167 (,(intern (format "%s-address" (car method))) ,(cadr method)) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2168 ,@(cddr method))) |
17493 | 2169 (let ((group (if (gnus-group-foreign-p group) group |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2170 (gnus-group-prefixed-name (gnus-group-real-name group) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2171 method)))) |
17493 | 2172 (gnus-sethash |
2173 group | |
2174 `(-1 nil (,group | |
2175 ,gnus-level-default-subscribed nil nil ,method | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2176 ,(cons |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2177 (if quit-config |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2178 (cons 'quit-config quit-config) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2179 (cons 'quit-config |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2180 (cons gnus-summary-buffer |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2181 gnus-current-window-configuration))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2182 parameters))) |
17493 | 2183 gnus-newsrc-hashtb) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2184 (push method gnus-ephemeral-servers) |
17493 | 2185 (set-buffer gnus-group-buffer) |
2186 (unless (gnus-check-server method) | |
2187 (error "Unable to contact server: %s" (gnus-status-message method))) | |
2188 (when activate | |
2189 (gnus-activate-group group 'scan) | |
2190 (unless (gnus-request-group group) | |
2191 (error "Couldn't request group: %s" | |
2192 (nnheader-get-report (car method))))) | |
2193 (if request-only | |
2194 group | |
2195 (condition-case () | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2196 (when (let ((gnus-large-newsgroup gnus-large-ephemeral-newsgroup) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2197 (gnus-fetch-old-headers |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2198 gnus-fetch-old-ephemeral-headers)) |
61126
c0aa521e0ca7
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-220
Miles Bader <miles@gnu.org>
parents:
60239
diff
changeset
|
2199 (gnus-group-read-group (or number t) t group select-articles)) |
17493 | 2200 group) |
2201 ;;(error nil) | |
32969
899478c14a26
2000-09-24 Simon Josefsson <simon@josefsson.org>
Dave Love <fx@gnu.org>
parents:
32965
diff
changeset
|
2202 (quit |
899478c14a26
2000-09-24 Simon Josefsson <simon@josefsson.org>
Dave Love <fx@gnu.org>
parents:
32965
diff
changeset
|
2203 (message "Quit reading the ephemeral group") |
899478c14a26
2000-09-24 Simon Josefsson <simon@josefsson.org>
Dave Love <fx@gnu.org>
parents:
32965
diff
changeset
|
2204 nil))))) |
17493 | 2205 |
2206 (defun gnus-group-jump-to-group (group) | |
2207 "Jump to newsgroup GROUP." | |
2208 (interactive | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2209 (list (mm-string-make-unibyte |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2210 (completing-read |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2211 "Group: " gnus-active-hashtb nil |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2212 (gnus-read-active-file-p) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2213 gnus-group-jump-to-group-prompt |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2214 'gnus-group-history)))) |
17493 | 2215 |
2216 (when (equal group "") | |
2217 (error "Empty group name")) | |
2218 | |
2219 (unless (gnus-ephemeral-group-p group) | |
2220 ;; Either go to the line in the group buffer... | |
2221 (unless (gnus-group-goto-group group) | |
2222 ;; ... or insert the line. | |
2223 (gnus-group-update-group group) | |
2224 (gnus-group-goto-group group))) | |
2225 ;; Adjust cursor point. | |
2226 (gnus-group-position-point)) | |
2227 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2228 (defun gnus-group-goto-group (group &optional far test-marked) |
17493 | 2229 "Goto to newsgroup GROUP. |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2230 If FAR, it is likely that the group is not on the current line. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2231 If TEST-MARKED, the line must be marked." |
17493 | 2232 (when group |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2233 (beginning-of-line) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2234 (cond |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2235 ;; It's quite likely that we are on the right line, so |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2236 ;; we check the current line first. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2237 ((and (not far) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2238 (eq (get-text-property (point) 'gnus-group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2239 (gnus-intern-safe group gnus-active-hashtb)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2240 (or (not test-marked) (gnus-group-mark-line-p))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2241 (point)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2242 ;; Previous and next line are also likely, so we check them as well. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2243 ((and (not far) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2244 (save-excursion |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2245 (forward-line -1) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2246 (and (eq (get-text-property (point) 'gnus-group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2247 (gnus-intern-safe group gnus-active-hashtb)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2248 (or (not test-marked) (gnus-group-mark-line-p))))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2249 (forward-line -1) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2250 (point)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2251 ((and (not far) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2252 (save-excursion |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2253 (forward-line 1) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2254 (and (eq (get-text-property (point) 'gnus-group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2255 (gnus-intern-safe group gnus-active-hashtb)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2256 (or (not test-marked) (gnus-group-mark-line-p))))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2257 (forward-line 1) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2258 (point)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2259 (test-marked |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2260 (goto-char (point-min)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2261 (let (found) |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49274
diff
changeset
|
2262 (while (and (not found) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2263 (gnus-goto-char |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2264 (text-property-any |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2265 (point) (point-max) |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49274
diff
changeset
|
2266 'gnus-group |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2267 (gnus-intern-safe group gnus-active-hashtb)))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2268 (if (gnus-group-mark-line-p) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2269 (setq found t) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2270 (forward-line 1))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2271 found)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2272 (t |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2273 ;; Search through the entire buffer. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2274 (gnus-goto-char |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2275 (text-property-any |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2276 (point-min) (point-max) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2277 'gnus-group (gnus-intern-safe group gnus-active-hashtb))))))) |
17493 | 2278 |
2279 (defun gnus-group-next-group (n &optional silent) | |
2280 "Go to next N'th newsgroup. | |
2281 If N is negative, search backward instead. | |
2282 Returns the difference between N and the number of skips actually | |
2283 done." | |
2284 (interactive "p") | |
2285 (gnus-group-next-unread-group n t nil silent)) | |
2286 | |
2287 (defun gnus-group-next-unread-group (n &optional all level silent) | |
2288 "Go to next N'th unread newsgroup. | |
2289 If N is negative, search backward instead. | |
2290 If ALL is non-nil, choose any newsgroup, unread or not. | |
2291 If LEVEL is non-nil, choose the next group with level LEVEL, or, if no | |
2292 such group can be found, the next group with a level higher than | |
2293 LEVEL. | |
2294 Returns the difference between N and the number of skips actually | |
2295 made." | |
2296 (interactive "p") | |
2297 (let ((backward (< n 0)) | |
2298 (n (abs n))) | |
2299 (while (and (> n 0) | |
2300 (gnus-group-search-forward | |
2301 backward (or (not gnus-group-goto-unread) all) level)) | |
2302 (setq n (1- n))) | |
2303 (when (and (/= 0 n) | |
2304 (not silent)) | |
2305 (gnus-message 7 "No more%s newsgroups%s" (if all "" " unread") | |
2306 (if level " on this level or higher" ""))) | |
2307 n)) | |
2308 | |
2309 (defun gnus-group-prev-group (n) | |
2310 "Go to previous N'th newsgroup. | |
2311 Returns the difference between N and the number of skips actually | |
2312 done." | |
2313 (interactive "p") | |
2314 (gnus-group-next-unread-group (- n) t)) | |
2315 | |
2316 (defun gnus-group-prev-unread-group (n) | |
2317 "Go to previous N'th unread newsgroup. | |
2318 Returns the difference between N and the number of skips actually | |
2319 done." | |
2320 (interactive "p") | |
2321 (gnus-group-next-unread-group (- n))) | |
2322 | |
2323 (defun gnus-group-next-unread-group-same-level (n) | |
2324 "Go to next N'th unread newsgroup on the same level. | |
2325 If N is negative, search backward instead. | |
2326 Returns the difference between N and the number of skips actually | |
2327 done." | |
2328 (interactive "p") | |
2329 (gnus-group-next-unread-group n t (gnus-group-group-level)) | |
2330 (gnus-group-position-point)) | |
2331 | |
2332 (defun gnus-group-prev-unread-group-same-level (n) | |
2333 "Go to next N'th unread newsgroup on the same level. | |
2334 Returns the difference between N and the number of skips actually | |
2335 done." | |
2336 (interactive "p") | |
2337 (gnus-group-next-unread-group (- n) t (gnus-group-group-level)) | |
2338 (gnus-group-position-point)) | |
2339 | |
2340 (defun gnus-group-best-unread-group (&optional exclude-group) | |
2341 "Go to the group with the highest level. | |
2342 If EXCLUDE-GROUP, do not go to that group." | |
2343 (interactive) | |
2344 (goto-char (point-min)) | |
2345 (let ((best 100000) | |
2346 unread best-point) | |
2347 (while (not (eobp)) | |
2348 (setq unread (get-text-property (point) 'gnus-unread)) | |
2349 (when (and (numberp unread) (> unread 0)) | |
2350 (when (and (get-text-property (point) 'gnus-level) | |
2351 (< (get-text-property (point) 'gnus-level) best) | |
2352 (or (not exclude-group) | |
2353 (not (equal exclude-group (gnus-group-group-name))))) | |
2354 (setq best (get-text-property (point) 'gnus-level)) | |
2355 (setq best-point (point)))) | |
2356 (forward-line 1)) | |
2357 (when best-point | |
2358 (goto-char best-point)) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2359 (gnus-group-position-point) |
17493 | 2360 (and best-point (gnus-group-group-name)))) |
2361 | |
2362 (defun gnus-group-first-unread-group () | |
2363 "Go to the first group with unread articles." | |
2364 (interactive) | |
2365 (prog1 | |
2366 (let ((opoint (point)) | |
2367 unread) | |
2368 (goto-char (point-min)) | |
2369 (if (or (eq (setq unread (gnus-group-group-unread)) t) ; Not active. | |
2370 (and (numberp unread) ; Not a topic. | |
2371 (not (zerop unread))) ; Has unread articles. | |
2372 (zerop (gnus-group-next-unread-group 1))) ; Next unread group. | |
2373 (point) ; Success. | |
2374 (goto-char opoint) | |
2375 nil)) ; Not success. | |
2376 (gnus-group-position-point))) | |
2377 | |
2378 (defun gnus-group-enter-server-mode () | |
2379 "Jump to the server buffer." | |
2380 (interactive) | |
2381 (gnus-enter-server-buffer)) | |
2382 | |
2383 (defun gnus-group-make-group (name &optional method address args) | |
2384 "Add a new newsgroup. | |
2385 The user will be prompted for a NAME, for a select METHOD, and an | |
2386 ADDRESS." | |
2387 (interactive | |
2388 (list | |
2389 (gnus-read-group "Group name: ") | |
2390 (gnus-read-method "From method: "))) | |
2391 | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2392 (when (stringp method) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2393 (setq method (or (gnus-server-to-method method) method))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2394 (let* ((meth (gnus-method-simplify |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2395 (when (and method |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2396 (not (gnus-server-equal method gnus-select-method))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2397 (if address (list (intern method) address) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2398 method)))) |
17493 | 2399 (nname (if method (gnus-group-prefixed-name name meth) name)) |
2400 backend info) | |
2401 (when (gnus-gethash nname gnus-newsrc-hashtb) | |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2402 (error "Group %s already exists" (gnus-group-decoded-name nname))) |
17493 | 2403 ;; Subscribe to the new group. |
2404 (gnus-group-change-level | |
2405 (setq info (list t nname gnus-level-default-subscribed nil nil meth)) | |
2406 gnus-level-default-subscribed gnus-level-killed | |
2407 (and (gnus-group-group-name) | |
2408 (gnus-gethash (gnus-group-group-name) | |
2409 gnus-newsrc-hashtb)) | |
2410 t) | |
2411 ;; Make it active. | |
2412 (gnus-set-active nname (cons 1 0)) | |
2413 (unless (gnus-ephemeral-group-p name) | |
2414 (gnus-dribble-enter | |
2415 (concat "(gnus-group-set-info '" | |
2416 (gnus-prin1-to-string (cdr info)) ")"))) | |
2417 ;; Insert the line. | |
2418 (gnus-group-insert-group-line-info nname) | |
2419 (forward-line -1) | |
2420 (gnus-group-position-point) | |
2421 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2422 ;; Load the back end and try to make the back end create |
17493 | 2423 ;; the group as well. |
2424 (when (assoc (symbol-name (setq backend (car (gnus-server-get-method | |
2425 nil meth)))) | |
2426 gnus-valid-select-methods) | |
2427 (require backend)) | |
2428 (gnus-check-server meth) | |
2429 (when (gnus-check-backend-function 'request-create-group nname) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2430 (unless (gnus-request-create-group nname nil args) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2431 (error "Could not create group on server: %s" |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2432 (nnheader-get-report backend)))) |
17493 | 2433 t)) |
2434 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2435 (defun gnus-group-delete-groups (&optional arg) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2436 "Delete the current group. Only meaningful with editable groups." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2437 (interactive "P") |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2438 (let ((n (length (gnus-group-process-prefix arg)))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2439 (when (gnus-yes-or-no-p |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2440 (if (= n 1) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2441 "Delete this 1 group? " |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2442 (format "Delete these %d groups? " n))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2443 (gnus-group-iterate arg |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2444 (lambda (group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2445 (gnus-group-delete-group group nil t)))))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2446 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2447 (defun gnus-group-delete-group (group &optional force no-prompt) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2448 "Delete the current group. Only meaningful with editable groups. |
17493 | 2449 If FORCE (the prefix) is non-nil, all the articles in the group will |
2450 be deleted. This is \"deleted\" as in \"removed forever from the face | |
74150
361d95731e62
(gnus-group-sort-function, gnus-group-line-format, gnus-group-mode,
Juanma Barranquero <lekktu@gmail.com>
parents:
73487
diff
changeset
|
2451 of the Earth\". There is no undo. The user will be prompted before |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2452 doing the deletion. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2453 Note that you also have to specify FORCE if you want the group to |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2454 be removed from the server, even when it's empty." |
17493 | 2455 (interactive |
2456 (list (gnus-group-group-name) | |
2457 current-prefix-arg)) | |
2458 (unless group | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2459 (error "No group to delete")) |
17493 | 2460 (unless (gnus-check-backend-function 'request-delete-group group) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2461 (error "This back end does not support group deletion")) |
17493 | 2462 (prog1 |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2463 (let ((group-decoded (gnus-group-decoded-name group))) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2464 (if (and (not no-prompt) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2465 (not (gnus-yes-or-no-p |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2466 (format |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2467 "Do you really want to delete %s%s? " |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2468 group-decoded (if force " and all its contents" ""))))) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2469 () ; Whew! |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2470 (gnus-message 6 "Deleting group %s..." group-decoded) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2471 (if (not (gnus-request-delete-group group force)) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2472 (gnus-error 3 "Couldn't delete group %s" group-decoded) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2473 (gnus-message 6 "Deleting group %s...done" group-decoded) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2474 (gnus-group-goto-group group) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2475 (gnus-group-kill-group 1 t) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2476 (gnus-sethash group nil gnus-active-hashtb) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2477 t))) |
17493 | 2478 (gnus-group-position-point))) |
2479 | |
2480 (defun gnus-group-rename-group (group new-name) | |
2481 "Rename group from GROUP to NEW-NAME. | |
2482 When used interactively, GROUP is the group under point | |
2483 and NEW-NAME will be prompted for." | |
2484 (interactive | |
2485 (list | |
2486 (gnus-group-group-name) | |
2487 (progn | |
2488 (unless (gnus-check-backend-function | |
2489 'request-rename-group (gnus-group-group-name)) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2490 (error "This back end does not support renaming groups")) |
17493 | 2491 (gnus-read-group "Rename group to: " |
2492 (gnus-group-real-name (gnus-group-group-name)))))) | |
2493 | |
2494 (unless (gnus-check-backend-function 'request-rename-group group) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2495 (error "This back end does not support renaming groups")) |
17493 | 2496 (unless group |
2497 (error "No group to rename")) | |
2498 (when (equal (gnus-group-real-name group) new-name) | |
2499 (error "Can't rename to the same name")) | |
2500 | |
2501 ;; We find the proper prefixed name. | |
2502 (setq new-name | |
2503 (if (gnus-group-native-p group) | |
2504 ;; Native group. | |
2505 new-name | |
2506 ;; Foreign group. | |
2507 (gnus-group-prefixed-name | |
2508 (gnus-group-real-name new-name) | |
2509 (gnus-info-method (gnus-get-info group))))) | |
2510 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2511 (when (gnus-active new-name) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2512 (error "The group %s already exists" new-name)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2513 |
17493 | 2514 (gnus-message 6 "Renaming group %s to %s..." group new-name) |
2515 (prog1 | |
31785 | 2516 (if (progn |
2517 (gnus-group-goto-group group) | |
2518 (not (when (< (gnus-group-group-level) gnus-level-zombie) | |
2519 (gnus-request-rename-group group new-name)))) | |
17493 | 2520 (gnus-error 3 "Couldn't rename group %s to %s" group new-name) |
2521 ;; We rename the group internally by killing it... | |
2522 (gnus-group-kill-group) | |
2523 ;; ... changing its name ... | |
2524 (setcar (cdar gnus-list-of-killed-groups) new-name) | |
2525 ;; ... and then yanking it. Magic! | |
2526 (gnus-group-yank-group) | |
2527 (gnus-set-active new-name (gnus-active group)) | |
2528 (gnus-message 6 "Renaming group %s to %s...done" group new-name) | |
2529 new-name) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2530 (setq gnus-killed-list (delete group gnus-killed-list)) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2531 (gnus-set-active group nil) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2532 (gnus-dribble-touch) |
17493 | 2533 (gnus-group-position-point))) |
2534 | |
2535 (defun gnus-group-edit-group (group &optional part) | |
2536 "Edit the group on the current line." | |
2537 (interactive (list (gnus-group-group-name))) | |
2538 (let ((part (or part 'info)) | |
2539 info) | |
2540 (unless group | |
2541 (error "No group on current line")) | |
2542 (unless (setq info (gnus-get-info group)) | |
2543 (error "Killed group; can't be edited")) | |
2544 (ignore-errors | |
2545 (gnus-close-group group)) | |
2546 (gnus-edit-form | |
2547 ;; Find the proper form to edit. | |
2548 (cond ((eq part 'method) | |
2549 (or (gnus-info-method info) "native")) | |
2550 ((eq part 'params) | |
2551 (gnus-info-params info)) | |
2552 (t info)) | |
2553 ;; The proper documentation. | |
2554 (format | |
2555 "Editing the %s for `%s'." | |
2556 (cond | |
2557 ((eq part 'method) "select method") | |
2558 ((eq part 'params) "group parameters") | |
2559 (t "group info")) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2560 (gnus-group-decoded-name group)) |
17493 | 2561 `(lambda (form) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2562 (gnus-group-edit-group-done ',part ,group form))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2563 (local-set-key |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2564 "\C-c\C-i" |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2565 (gnus-create-info-command |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2566 (cond |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2567 ((eq part 'method) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2568 "(gnus)Select Methods") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2569 ((eq part 'params) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2570 "(gnus)Group Parameters") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2571 (t |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2572 "(gnus)Group Info")))))) |
17493 | 2573 |
2574 (defun gnus-group-edit-group-method (group) | |
2575 "Edit the select method of GROUP." | |
2576 (interactive (list (gnus-group-group-name))) | |
2577 (gnus-group-edit-group group 'method)) | |
2578 | |
2579 (defun gnus-group-edit-group-parameters (group) | |
2580 "Edit the group parameters of GROUP." | |
2581 (interactive (list (gnus-group-group-name))) | |
2582 (gnus-group-edit-group group 'params)) | |
2583 | |
2584 (defun gnus-group-edit-group-done (part group form) | |
2585 "Update variables." | |
2586 (let* ((method (cond ((eq part 'info) (nth 4 form)) | |
2587 ((eq part 'method) form) | |
2588 (t nil))) | |
2589 (info (cond ((eq part 'info) form) | |
2590 ((eq part 'method) (gnus-get-info group)) | |
2591 (t nil))) | |
2592 (new-group (if info | |
2593 (if (or (not method) | |
2594 (gnus-server-equal | |
2595 gnus-select-method method)) | |
2596 (gnus-group-real-name (car info)) | |
2597 (gnus-group-prefixed-name | |
2598 (gnus-group-real-name (car info)) method)) | |
2599 nil))) | |
2600 (when (and new-group | |
2601 (not (equal new-group group))) | |
2602 (when (gnus-group-goto-group group) | |
2603 (gnus-group-kill-group 1)) | |
2604 (gnus-activate-group new-group)) | |
2605 ;; Set the info. | |
2606 (if (not (and info new-group)) | |
2607 (gnus-group-set-info form (or new-group group) part) | |
2608 (setq info (gnus-copy-sequence info)) | |
2609 (setcar info new-group) | |
2610 (unless (gnus-server-equal method "native") | |
2611 (unless (nthcdr 3 info) | |
2612 (nconc info (list nil nil))) | |
2613 (unless (nthcdr 4 info) | |
2614 (nconc info (list nil))) | |
2615 (gnus-info-set-method info method)) | |
2616 (gnus-group-set-info info)) | |
2617 (gnus-group-update-group (or new-group group)) | |
2618 (gnus-group-position-point))) | |
2619 | |
2620 (defun gnus-group-make-useful-group (group method) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2621 "Create one of the groups described in `gnus-useful-groups'." |
17493 | 2622 (interactive |
2623 (let ((entry (assoc (completing-read "Create group: " gnus-useful-groups | |
2624 nil t) | |
2625 gnus-useful-groups))) | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
2626 (list (cadr entry) (caddr entry)))) |
17493 | 2627 (setq method (gnus-copy-sequence method)) |
2628 (let (entry) | |
2629 (while (setq entry (memq (assq 'eval method) method)) | |
2630 (setcar entry (eval (cadar entry))))) | |
2631 (gnus-group-make-group group method)) | |
2632 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2633 (defun gnus-group-make-help-group (&optional noerror) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2634 "Create the Gnus documentation group. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2635 Optional argument NOERROR modifies the behavior of this function when the |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2636 group already exists: |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2637 - if not given, and error is signaled, |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2638 - if t, stay silent, |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2639 - if anything else, just print a message." |
17493 | 2640 (interactive) |
2641 (let ((name (gnus-group-prefixed-name "gnus-help" '(nndoc "gnus-help"))) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2642 (file (nnheader-find-etc-directory "gnus-tut.txt" t))) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2643 (if (gnus-gethash name gnus-newsrc-hashtb) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2644 (cond ((eq noerror nil) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2645 (error "Documentation group already exists")) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2646 ((eq noerror t) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2647 ;; stay silent |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2648 ) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2649 (t |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2650 (gnus-message 1 "Documentation group already exists"))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2651 ;; else: |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2652 (if (not file) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2653 (gnus-message 1 "Couldn't find doc group") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2654 (gnus-group-make-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2655 (gnus-group-real-name name) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2656 (list 'nndoc "gnus-help" |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2657 (list 'nndoc-address file) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2658 (list 'nndoc-article-type 'mbox)))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2659 )) |
17493 | 2660 (gnus-group-position-point)) |
2661 | |
2662 (defun gnus-group-make-doc-group (file type) | |
60161
b070535d2416
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-111
Miles Bader <miles@gnu.org>
parents:
59996
diff
changeset
|
2663 "Create a group that uses a single file as the source. |
b070535d2416
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-111
Miles Bader <miles@gnu.org>
parents:
59996
diff
changeset
|
2664 |
b070535d2416
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-111
Miles Bader <miles@gnu.org>
parents:
59996
diff
changeset
|
2665 If called with a prefix argument, ask for the file type." |
17493 | 2666 (interactive |
2667 (list (read-file-name "File name: ") | |
2668 (and current-prefix-arg 'ask))) | |
2669 (when (eq type 'ask) | |
2670 (let ((err "") | |
2671 char found) | |
2672 (while (not found) | |
2673 (message | |
60161
b070535d2416
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-111
Miles Bader <miles@gnu.org>
parents:
59996
diff
changeset
|
2674 "%sFile type (mbox, babyl, digest, forward, mmdf, guess) [m, b, d, f, a, g]: " |
17493 | 2675 err) |
2676 (setq found (cond ((= (setq char (read-char)) ?m) 'mbox) | |
2677 ((= char ?b) 'babyl) | |
2678 ((= char ?d) 'digest) | |
2679 ((= char ?f) 'forward) | |
2680 ((= char ?a) 'mmfd) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2681 ((= char ?g) 'guess) |
17493 | 2682 (t (setq err (format "%c unknown. " char)) |
2683 nil)))) | |
2684 (setq type found))) | |
73487 | 2685 (setq file (expand-file-name file)) |
2686 (let ((name (gnus-generate-new-group-name | |
2687 (gnus-group-prefixed-name | |
2688 (file-name-nondirectory file) '(nndoc "")))) | |
2689 (encodable (mm-coding-system-p 'utf-8))) | |
17493 | 2690 (gnus-group-make-group |
73487 | 2691 (if encodable |
2692 (mm-encode-coding-string (gnus-group-real-name name) 'utf-8) | |
2693 (gnus-group-real-name name)) | |
2694 (list 'nndoc (if encodable | |
2695 (mm-encode-coding-string file 'utf-8) | |
2696 file) | |
17493 | 2697 (list 'nndoc-address file) |
2698 (list 'nndoc-article-type (or type 'guess)))))) | |
2699 | |
2700 (defvar nnweb-type-definition) | |
2701 (defvar gnus-group-web-type-history nil) | |
2702 (defvar gnus-group-web-search-history nil) | |
2703 (defun gnus-group-make-web-group (&optional solid) | |
2704 "Create an ephemeral nnweb group. | |
2705 If SOLID (the prefix), create a solid group." | |
2706 (interactive "P") | |
2707 (require 'nnweb) | |
2708 (let* ((group | |
2709 (if solid (gnus-read-group "Group name: ") | |
2710 (message-unique-id))) | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
2711 (default-type (or (car gnus-group-web-type-history) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
2712 (symbol-name (caar nnweb-type-definition)))) |
17493 | 2713 (type |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
2714 (gnus-string-or |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
2715 (completing-read |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
2716 (format "Search engine type (default %s): " default-type) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
2717 (mapcar (lambda (elem) (list (symbol-name (car elem)))) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
2718 nnweb-type-definition) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
2719 nil t nil 'gnus-group-web-type-history) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
2720 default-type)) |
17493 | 2721 (search |
2722 (read-string | |
2723 "Search string: " | |
2724 (cons (or (car gnus-group-web-search-history) "") 0) | |
2725 'gnus-group-web-search-history)) | |
2726 (method | |
2727 `(nnweb ,group (nnweb-search ,search) | |
2728 (nnweb-type ,(intern type)) | |
2729 (nnweb-ephemeral-p t)))) | |
2730 (if solid | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2731 (progn |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2732 (gnus-pull 'nnweb-ephemeral-p method) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2733 (gnus-group-make-group group method)) |
17493 | 2734 (gnus-group-read-ephemeral-group |
2735 group method t | |
2736 (cons (current-buffer) | |
2737 (if (eq major-mode 'gnus-summary-mode) 'summary 'group)))))) | |
2738 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2739 (eval-when-compile |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2740 (defvar nnrss-group-alist) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2741 (defun nnrss-discover-feed (arg)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2742 (defun nnrss-save-server-data (arg))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2743 (defun gnus-group-make-rss-group (&optional url) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2744 "Given a URL, discover if there is an RSS feed. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2745 If there is, use Gnus to create an nnrss group" |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2746 (interactive) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2747 (require 'nnrss) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2748 (if (not url) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2749 (setq url (read-from-minibuffer "URL to Search for RSS: "))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2750 (let ((feedinfo (nnrss-discover-feed url))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2751 (if feedinfo |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2752 (let ((title (gnus-newsgroup-savable-name |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2753 (read-from-minibuffer "Title: " |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2754 (gnus-newsgroup-savable-name |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2755 (or (cdr (assoc 'title |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2756 feedinfo)) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2757 ""))))) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2758 (desc (read-from-minibuffer "Description: " |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2759 (cdr (assoc 'description |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2760 feedinfo)))) |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2761 (href (cdr (assoc 'href feedinfo))) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2762 (encodable (mm-coding-system-p 'utf-8))) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2763 (when encodable |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2764 ;; Unify non-ASCII text. |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2765 (setq title (mm-decode-coding-string |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2766 (mm-encode-coding-string title 'utf-8) 'utf-8))) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2767 (gnus-group-make-group (if encodable |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2768 (mm-encode-coding-string title 'utf-8) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2769 title) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2770 '(nnrss "")) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2771 (push (list title href desc) nnrss-group-alist) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2772 (nnrss-save-server-data nil)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2773 (error "No feeds found for %s" url)))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2774 |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2775 (defvar nnwarchive-type-definition) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2776 (defvar gnus-group-warchive-type-history nil) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2777 (defvar gnus-group-warchive-login-history nil) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2778 (defvar gnus-group-warchive-address-history nil) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2779 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2780 (defun gnus-group-make-warchive-group () |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2781 "Create a nnwarchive group." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2782 (interactive) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2783 (require 'nnwarchive) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2784 (let* ((group (gnus-read-group "Group name: ")) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2785 (default-type (or (car gnus-group-warchive-type-history) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2786 (symbol-name (caar nnwarchive-type-definition)))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2787 (type |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2788 (gnus-string-or |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2789 (completing-read |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2790 (format "Warchive type (default %s): " default-type) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2791 (mapcar (lambda (elem) (list (symbol-name (car elem)))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2792 nnwarchive-type-definition) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2793 nil t nil 'gnus-group-warchive-type-history) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2794 default-type)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2795 (address (read-string "Warchive address: " |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2796 nil 'gnus-group-warchive-address-history)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2797 (default-login (or (car gnus-group-warchive-login-history) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2798 user-mail-address)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2799 (login |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2800 (gnus-string-or |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2801 (read-string |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2802 (format "Warchive login (default %s): " user-mail-address) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2803 default-login 'gnus-group-warchive-login-history) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2804 user-mail-address)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2805 (method |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49274
diff
changeset
|
2806 `(nnwarchive ,address |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2807 (nnwarchive-type ,(intern type)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2808 (nnwarchive-login ,login)))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2809 (gnus-group-make-group group method))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2810 |
17493 | 2811 (defun gnus-group-make-archive-group (&optional all) |
2812 "Create the (ding) Gnus archive group of the most recent articles. | |
2813 Given a prefix, create a full group." | |
2814 (interactive "P") | |
2815 (let ((group (gnus-group-prefixed-name | |
2816 (if all "ding.archives" "ding.recent") '(nndir "")))) | |
2817 (when (gnus-gethash group gnus-newsrc-hashtb) | |
2818 (error "Archive group already exists")) | |
2819 (gnus-group-make-group | |
2820 (gnus-group-real-name group) | |
2821 (list 'nndir (if all "hpc" "edu") | |
2822 (list 'nndir-directory | |
2823 (if all gnus-group-archive-directory | |
2824 gnus-group-recent-archive-directory)))) | |
2825 (gnus-group-add-parameter group (cons 'to-address "ding@gnus.org")))) | |
2826 | |
2827 (defun gnus-group-make-directory-group (dir) | |
2828 "Create an nndir group. | |
2829 The user will be prompted for a directory. The contents of this | |
74150
361d95731e62
(gnus-group-sort-function, gnus-group-line-format, gnus-group-mode,
Juanma Barranquero <lekktu@gmail.com>
parents:
73487
diff
changeset
|
2830 directory will be used as a newsgroup. The directory should contain |
17493 | 2831 mail messages or news articles in files that have numeric names." |
2832 (interactive | |
2833 (list (read-file-name "Create group from directory: "))) | |
2834 (unless (file-exists-p dir) | |
2835 (error "No such directory")) | |
2836 (unless (file-directory-p dir) | |
2837 (error "Not a directory")) | |
2838 (let ((ext "") | |
2839 (i 0) | |
2840 group) | |
2841 (while (or (not group) (gnus-gethash group gnus-newsrc-hashtb)) | |
2842 (setq group | |
2843 (gnus-group-prefixed-name | |
33344 | 2844 (expand-file-name ext dir) |
17493 | 2845 '(nndir ""))) |
2846 (setq ext (format "<%d>" (setq i (1+ i))))) | |
2847 (gnus-group-make-group | |
2848 (gnus-group-real-name group) | |
2849 (list 'nndir (gnus-group-real-name group) (list 'nndir-directory dir))))) | |
2850 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2851 (defvar nnkiboze-score-file) |
17493 | 2852 (defun gnus-group-make-kiboze-group (group address scores) |
2853 "Create an nnkiboze group. | |
2854 The user will be prompted for a name, a regexp to match groups, and | |
2855 score file entries for articles to include in the group." | |
2856 (interactive | |
2857 (list | |
2858 (read-string "nnkiboze group name: ") | |
2859 (read-string "Source groups (regexp): ") | |
2860 (let ((headers (mapcar (lambda (group) (list group)) | |
2861 '("subject" "from" "number" "date" "message-id" | |
2862 "references" "chars" "lines" "xref" | |
2863 "followup" "all" "body" "head"))) | |
2864 scores header regexp regexps) | |
2865 (while (not (equal "" (setq header (completing-read | |
2866 "Match on header: " headers nil t)))) | |
2867 (setq regexps nil) | |
2868 (while (not (equal "" (setq regexp (read-string | |
32969
899478c14a26
2000-09-24 Simon Josefsson <simon@josefsson.org>
Dave Love <fx@gnu.org>
parents:
32965
diff
changeset
|
2869 (format "Match on %s (regexp): " |
17493 | 2870 header))))) |
2871 (push (list regexp nil nil 'r) regexps)) | |
2872 (push (cons header regexps) scores)) | |
2873 scores))) | |
2874 (gnus-group-make-group group "nnkiboze" address) | |
32969
899478c14a26
2000-09-24 Simon Josefsson <simon@josefsson.org>
Dave Love <fx@gnu.org>
parents:
32965
diff
changeset
|
2875 (let* ((nnkiboze-current-group group) |
899478c14a26
2000-09-24 Simon Josefsson <simon@josefsson.org>
Dave Love <fx@gnu.org>
parents:
32965
diff
changeset
|
2876 (score-file (car (nnkiboze-score-file ""))) |
31785 | 2877 (score-dir (file-name-directory score-file))) |
2878 (unless (file-exists-p score-dir) | |
2879 (make-directory score-dir)) | |
2880 (with-temp-file score-file | |
2881 (let (emacs-lisp-mode-hook) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2882 (gnus-pp scores))))) |
17493 | 2883 |
2884 (defun gnus-group-add-to-virtual (n vgroup) | |
2885 "Add the current group to a virtual group." | |
2886 (interactive | |
2887 (list current-prefix-arg | |
2888 (completing-read "Add to virtual group: " gnus-newsrc-hashtb nil t | |
2889 "nnvirtual:"))) | |
2890 (unless (eq (car (gnus-find-method-for-group vgroup)) 'nnvirtual) | |
2891 (error "%s is not an nnvirtual group" vgroup)) | |
2892 (gnus-close-group vgroup) | |
2893 (let* ((groups (gnus-group-process-prefix n)) | |
2894 (method (gnus-info-method (gnus-get-info vgroup)))) | |
2895 (setcar (cdr method) | |
2896 (concat | |
2897 (nth 1 method) "\\|" | |
2898 (mapconcat | |
2899 (lambda (s) | |
2900 (gnus-group-remove-mark s) | |
2901 (concat "\\(^" (regexp-quote s) "$\\)")) | |
2902 groups "\\|")))) | |
2903 (gnus-group-position-point)) | |
2904 | |
2905 (defun gnus-group-make-empty-virtual (group) | |
2906 "Create a new, fresh, empty virtual group." | |
2907 (interactive "sCreate new, empty virtual group: ") | |
2908 (let* ((method (list 'nnvirtual "^$")) | |
2909 (pgroup (gnus-group-prefixed-name group method))) | |
2910 ;; Check whether it exists already. | |
2911 (when (gnus-gethash pgroup gnus-newsrc-hashtb) | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
2912 (error "Group %s already exists" pgroup)) |
17493 | 2913 ;; Subscribe the new group after the group on the current line. |
2914 (gnus-subscribe-group pgroup (gnus-group-group-name) method) | |
2915 (gnus-group-update-group pgroup) | |
2916 (forward-line -1) | |
2917 (gnus-group-position-point))) | |
2918 | |
2919 (defun gnus-group-enter-directory (dir) | |
2920 "Enter an ephemeral nneething group." | |
2921 (interactive "DDirectory to read: ") | |
2922 (let* ((method (list 'nneething dir '(nneething-read-only t))) | |
2923 (leaf (gnus-group-prefixed-name | |
2924 (file-name-nondirectory (directory-file-name dir)) | |
2925 method)) | |
2926 (name (gnus-generate-new-group-name leaf))) | |
2927 (unless (gnus-group-read-ephemeral-group | |
2928 name method t | |
2929 (cons (current-buffer) | |
2930 (if (eq major-mode 'gnus-summary-mode) | |
2931 'summary 'group))) | |
2932 (error "Couldn't enter %s" dir)))) | |
2933 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2934 (eval-and-compile |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2935 (autoload 'nnimap-expunge "nnimap") |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2936 (autoload 'nnimap-acl-get "nnimap") |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2937 (autoload 'nnimap-acl-edit "nnimap")) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2938 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2939 (defun gnus-group-nnimap-expunge (group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2940 "Expunge deleted articles in current nnimap GROUP." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2941 (interactive (list (gnus-group-group-name))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2942 (let ((mailbox (gnus-group-real-name group)) method) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2943 (unless group |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2944 (error "No group on current line")) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2945 (unless (gnus-get-info group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2946 (error "Killed group; can't be edited")) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2947 (unless (eq 'nnimap (car (setq method (gnus-find-method-for-group group)))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2948 (error "%s is not an nnimap group" group)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2949 (nnimap-expunge mailbox (cadr method)))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2950 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2951 (defun gnus-group-nnimap-edit-acl (group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2952 "Edit the Access Control List of current nnimap GROUP." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2953 (interactive (list (gnus-group-group-name))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2954 (let ((mailbox (gnus-group-real-name group)) method acl) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2955 (unless group |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2956 (error "No group on current line")) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2957 (unless (gnus-get-info group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2958 (error "Killed group; can't be edited")) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2959 (unless (eq (car (setq method (gnus-find-method-for-group group))) 'nnimap) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2960 (error "%s is not an nnimap group" group)) |
32969
899478c14a26
2000-09-24 Simon Josefsson <simon@josefsson.org>
Dave Love <fx@gnu.org>
parents:
32965
diff
changeset
|
2961 (unless (setq acl (nnimap-acl-get mailbox (cadr method))) |
899478c14a26
2000-09-24 Simon Josefsson <simon@josefsson.org>
Dave Love <fx@gnu.org>
parents:
32965
diff
changeset
|
2962 (error "Server does not support ACL's")) |
899478c14a26
2000-09-24 Simon Josefsson <simon@josefsson.org>
Dave Love <fx@gnu.org>
parents:
32965
diff
changeset
|
2963 (gnus-edit-form acl (format "Editing the access control list for `%s'. |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2964 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2965 An access control list is a list of (identifier . rights) elements. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2966 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2967 The identifier string specifies the corresponding user. The |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2968 identifier \"anyone\" is reserved to refer to the universal identity. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2969 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2970 Rights is a string listing a (possibly empty) set of alphanumeric |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2971 characters, each character listing a set of operations which is being |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2972 controlled. Letters are reserved for ``standard'' rights, listed |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2973 below. Digits are reserved for implementation or site defined rights. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2974 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2975 l - lookup (mailbox is visible to LIST/LSUB commands) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2976 r - read (SELECT the mailbox, perform CHECK, FETCH, PARTIAL, |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2977 SEARCH, COPY from mailbox) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2978 s - keep seen/unseen information across sessions (STORE \\SEEN flag) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2979 w - write (STORE flags other than \\SEEN and \\DELETED) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2980 i - insert (perform APPEND, COPY into mailbox) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2981 p - post (send mail to submission address for mailbox, |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2982 not enforced by IMAP4 itself) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2983 c - create and delete mailbox (CREATE new sub-mailboxes in any |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2984 implementation-defined hierarchy, RENAME or DELETE mailbox) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2985 d - delete messages (STORE \\DELETED flag, perform EXPUNGE) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2986 a - administer (perform SETACL)" group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2987 `(lambda (form) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2988 (nnimap-acl-edit |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2989 ,mailbox ',method ',acl form))))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2990 |
17493 | 2991 ;; Group sorting commands |
2992 ;; Suggested by Joe Hildebrand <hildjj@idaho.fuentez.com>. | |
2993 | |
2994 (defun gnus-group-sort-groups (func &optional reverse) | |
2995 "Sort the group buffer according to FUNC. | |
2996 When used interactively, the sorting function used will be | |
2997 determined by the `gnus-group-sort-function' variable. | |
2998 If REVERSE (the prefix), reverse the sorting order." | |
2999 (interactive (list gnus-group-sort-function current-prefix-arg)) | |
3000 (funcall gnus-group-sort-alist-function | |
3001 (gnus-make-sort-function func) reverse) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3002 (gnus-group-unmark-all-groups) |
17493 | 3003 (gnus-group-list-groups) |
3004 (gnus-dribble-touch)) | |
3005 | |
3006 (defun gnus-group-sort-flat (func reverse) | |
3007 ;; We peel off the dummy group from the alist. | |
3008 (when func | |
3009 (when (equal (gnus-info-group (car gnus-newsrc-alist)) "dummy.group") | |
3010 (pop gnus-newsrc-alist)) | |
3011 ;; Do the sorting. | |
3012 (setq gnus-newsrc-alist | |
3013 (sort gnus-newsrc-alist func)) | |
3014 (when reverse | |
3015 (setq gnus-newsrc-alist (nreverse gnus-newsrc-alist))) | |
3016 ;; Regenerate the hash table. | |
3017 (gnus-make-hashtable-from-newsrc-alist))) | |
3018 | |
3019 (defun gnus-group-sort-groups-by-alphabet (&optional reverse) | |
3020 "Sort the group buffer alphabetically by group name. | |
3021 If REVERSE, sort in reverse order." | |
3022 (interactive "P") | |
3023 (gnus-group-sort-groups 'gnus-group-sort-by-alphabet reverse)) | |
3024 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3025 (defun gnus-group-sort-groups-by-real-name (&optional reverse) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3026 "Sort the group buffer alphabetically by real (unprefixed) group name. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3027 If REVERSE, sort in reverse order." |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3028 (interactive "P") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3029 (gnus-group-sort-groups 'gnus-group-sort-by-real-name reverse)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3030 |
17493 | 3031 (defun gnus-group-sort-groups-by-unread (&optional reverse) |
3032 "Sort the group buffer by number of unread articles. | |
3033 If REVERSE, sort in reverse order." | |
3034 (interactive "P") | |
3035 (gnus-group-sort-groups 'gnus-group-sort-by-unread reverse)) | |
3036 | |
3037 (defun gnus-group-sort-groups-by-level (&optional reverse) | |
3038 "Sort the group buffer by group level. | |
3039 If REVERSE, sort in reverse order." | |
3040 (interactive "P") | |
3041 (gnus-group-sort-groups 'gnus-group-sort-by-level reverse)) | |
3042 | |
3043 (defun gnus-group-sort-groups-by-score (&optional reverse) | |
3044 "Sort the group buffer by group score. | |
3045 If REVERSE, sort in reverse order." | |
3046 (interactive "P") | |
3047 (gnus-group-sort-groups 'gnus-group-sort-by-score reverse)) | |
3048 | |
3049 (defun gnus-group-sort-groups-by-rank (&optional reverse) | |
3050 "Sort the group buffer by group rank. | |
3051 If REVERSE, sort in reverse order." | |
3052 (interactive "P") | |
3053 (gnus-group-sort-groups 'gnus-group-sort-by-rank reverse)) | |
3054 | |
3055 (defun gnus-group-sort-groups-by-method (&optional reverse) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3056 "Sort the group buffer alphabetically by back end name. |
17493 | 3057 If REVERSE, sort in reverse order." |
3058 (interactive "P") | |
3059 (gnus-group-sort-groups 'gnus-group-sort-by-method reverse)) | |
3060 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3061 (defun gnus-group-sort-groups-by-server (&optional reverse) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3062 "Sort the group buffer alphabetically by server name. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3063 If REVERSE, sort in reverse order." |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3064 (interactive "P") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3065 (gnus-group-sort-groups 'gnus-group-sort-by-server reverse)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3066 |
17493 | 3067 ;;; Selected group sorting. |
3068 | |
3069 (defun gnus-group-sort-selected-groups (n func &optional reverse) | |
3070 "Sort the process/prefixed groups." | |
3071 (interactive (list current-prefix-arg gnus-group-sort-function)) | |
3072 (let ((groups (gnus-group-process-prefix n))) | |
3073 (funcall gnus-group-sort-selected-function | |
3074 groups (gnus-make-sort-function func) reverse) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3075 (gnus-group-unmark-all-groups) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3076 (gnus-group-list-groups) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3077 (gnus-dribble-touch))) |
17493 | 3078 |
3079 (defun gnus-group-sort-selected-flat (groups func reverse) | |
3080 (let (entries infos) | |
3081 ;; First find all the group entries for these groups. | |
3082 (while groups | |
3083 (push (nthcdr 2 (gnus-gethash (pop groups) gnus-newsrc-hashtb)) | |
3084 entries)) | |
3085 ;; Then sort the infos. | |
3086 (setq infos | |
3087 (sort | |
3088 (mapcar | |
3089 (lambda (entry) (car entry)) | |
3090 (setq entries (nreverse entries))) | |
3091 func)) | |
3092 (when reverse | |
3093 (setq infos (nreverse infos))) | |
3094 ;; Go through all the infos and replace the old entries | |
3095 ;; with the new infos. | |
3096 (while infos | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3097 (setcar (car entries) (pop infos)) |
17493 | 3098 (pop entries)) |
3099 ;; Update the hashtable. | |
3100 (gnus-make-hashtable-from-newsrc-alist))) | |
3101 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3102 (defun gnus-group-sort-selected-groups-by-alphabet (&optional n reverse) |
17493 | 3103 "Sort the group buffer alphabetically by group name. |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3104 Obeys the process/prefix convention. If REVERSE (the symbolic prefix), |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3105 sort in reverse order." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3106 (interactive (gnus-interactive "P\ny")) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3107 (gnus-group-sort-selected-groups n 'gnus-group-sort-by-alphabet reverse)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3108 |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3109 (defun gnus-group-sort-selected-groups-by-real-name (&optional n reverse) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3110 "Sort the group buffer alphabetically by real group name. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3111 Obeys the process/prefix convention. If REVERSE (the symbolic prefix), |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3112 sort in reverse order." |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3113 (interactive (gnus-interactive "P\ny")) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3114 (gnus-group-sort-selected-groups n 'gnus-group-sort-by-real-name reverse)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3115 |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3116 (defun gnus-group-sort-selected-groups-by-unread (&optional n reverse) |
17493 | 3117 "Sort the group buffer by number of unread articles. |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3118 Obeys the process/prefix convention. If REVERSE (the symbolic prefix), |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3119 sort in reverse order." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3120 (interactive (gnus-interactive "P\ny")) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3121 (gnus-group-sort-selected-groups n 'gnus-group-sort-by-unread reverse)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3122 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3123 (defun gnus-group-sort-selected-groups-by-level (&optional n reverse) |
17493 | 3124 "Sort the group buffer by group level. |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3125 Obeys the process/prefix convention. If REVERSE (the symbolic prefix), |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3126 sort in reverse order." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3127 (interactive (gnus-interactive "P\ny")) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3128 (gnus-group-sort-selected-groups n 'gnus-group-sort-by-level reverse)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3129 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3130 (defun gnus-group-sort-selected-groups-by-score (&optional n reverse) |
17493 | 3131 "Sort the group buffer by group score. |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3132 Obeys the process/prefix convention. If REVERSE (the symbolic prefix), |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3133 sort in reverse order." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3134 (interactive (gnus-interactive "P\ny")) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3135 (gnus-group-sort-selected-groups n 'gnus-group-sort-by-score reverse)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3136 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3137 (defun gnus-group-sort-selected-groups-by-rank (&optional n reverse) |
17493 | 3138 "Sort the group buffer by group rank. |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3139 Obeys the process/prefix convention. If REVERSE (the symbolic prefix), |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3140 sort in reverse order." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3141 (interactive (gnus-interactive "P\ny")) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3142 (gnus-group-sort-selected-groups n 'gnus-group-sort-by-rank reverse)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3143 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3144 (defun gnus-group-sort-selected-groups-by-method (&optional n reverse) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3145 "Sort the group buffer alphabetically by back end name. |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3146 Obeys the process/prefix convention. If REVERSE (the symbolic prefix), |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3147 sort in reverse order." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3148 (interactive (gnus-interactive "P\ny")) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3149 (gnus-group-sort-selected-groups n 'gnus-group-sort-by-method reverse)) |
17493 | 3150 |
3151 ;;; Sorting predicates. | |
3152 | |
3153 (defun gnus-group-sort-by-alphabet (info1 info2) | |
3154 "Sort alphabetically." | |
3155 (string< (gnus-info-group info1) (gnus-info-group info2))) | |
3156 | |
3157 (defun gnus-group-sort-by-real-name (info1 info2) | |
3158 "Sort alphabetically on real (unprefixed) names." | |
3159 (string< (gnus-group-real-name (gnus-info-group info1)) | |
3160 (gnus-group-real-name (gnus-info-group info2)))) | |
3161 | |
3162 (defun gnus-group-sort-by-unread (info1 info2) | |
3163 "Sort by number of unread articles." | |
3164 (let ((n1 (car (gnus-gethash (gnus-info-group info1) gnus-newsrc-hashtb))) | |
3165 (n2 (car (gnus-gethash (gnus-info-group info2) gnus-newsrc-hashtb)))) | |
3166 (< (or (and (numberp n1) n1) 0) | |
3167 (or (and (numberp n2) n2) 0)))) | |
3168 | |
3169 (defun gnus-group-sort-by-level (info1 info2) | |
3170 "Sort by level." | |
3171 (< (gnus-info-level info1) (gnus-info-level info2))) | |
3172 | |
3173 (defun gnus-group-sort-by-method (info1 info2) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3174 "Sort alphabetically by back end name." |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3175 (string< (car (gnus-find-method-for-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3176 (gnus-info-group info1) info1)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3177 (car (gnus-find-method-for-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3178 (gnus-info-group info2) info2)))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3179 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3180 (defun gnus-group-sort-by-server (info1 info2) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3181 "Sort alphabetically by server name." |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3182 (string< (gnus-method-to-full-server-name |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3183 (gnus-find-method-for-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3184 (gnus-info-group info1) info1)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3185 (gnus-method-to-full-server-name |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3186 (gnus-find-method-for-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3187 (gnus-info-group info2) info2)))) |
17493 | 3188 |
3189 (defun gnus-group-sort-by-score (info1 info2) | |
3190 "Sort by group score." | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3191 (> (gnus-info-score info1) (gnus-info-score info2))) |
17493 | 3192 |
3193 (defun gnus-group-sort-by-rank (info1 info2) | |
3194 "Sort by level and score." | |
3195 (let ((level1 (gnus-info-level info1)) | |
3196 (level2 (gnus-info-level info2))) | |
3197 (or (< level1 level2) | |
3198 (and (= level1 level2) | |
3199 (> (gnus-info-score info1) (gnus-info-score info2)))))) | |
3200 | |
3201 ;;; Clearing data | |
3202 | |
3203 (defun gnus-group-clear-data (&optional arg) | |
60239
bbe4bd573f0c
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-128
Miles Bader <miles@gnu.org>
parents:
60161
diff
changeset
|
3204 "Clear all marks and read ranges from the current group. |
bbe4bd573f0c
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-128
Miles Bader <miles@gnu.org>
parents:
60161
diff
changeset
|
3205 Obeys the process/prefix convention." |
17493 | 3206 (interactive "P") |
3207 (gnus-group-iterate arg | |
3208 (lambda (group) | |
3209 (let (info) | |
3210 (gnus-info-clear-data (setq info (gnus-get-info group))) | |
3211 (gnus-get-unread-articles-in-group info (gnus-active group) t) | |
3212 (when (gnus-group-goto-group group) | |
3213 (gnus-group-update-group-line)))))) | |
3214 | |
3215 (defun gnus-group-clear-data-on-native-groups () | |
3216 "Clear all marks and read ranges from all native groups." | |
3217 (interactive) | |
3218 (when (gnus-yes-or-no-p "Really clear all data from almost all groups? ") | |
3219 (let ((alist (cdr gnus-newsrc-alist)) | |
3220 info) | |
3221 (while (setq info (pop alist)) | |
3222 (when (gnus-group-native-p (gnus-info-group info)) | |
3223 (gnus-info-clear-data info))) | |
3224 (gnus-get-unread-articles) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3225 (gnus-dribble-touch) |
17493 | 3226 (when (gnus-y-or-n-p |
3227 "Move the cache away to avoid problems in the future? ") | |
3228 (call-interactively 'gnus-cache-move-cache))))) | |
3229 | |
3230 (defun gnus-info-clear-data (info) | |
3231 "Clear all marks and read ranges from INFO." | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3232 (let ((group (gnus-info-group info)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3233 action) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3234 (dolist (el (gnus-info-marks info)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3235 (push `(,(cdr el) add (,(car el))) action)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3236 (push `(,(gnus-info-read info) add (read)) action) |
17493 | 3237 (gnus-undo-register |
3238 `(progn | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3239 (gnus-request-set-mark ,group ',action) |
17493 | 3240 (gnus-info-set-marks ',info ',(gnus-info-marks info) t) |
3241 (gnus-info-set-read ',info ',(gnus-info-read info)) | |
3242 (when (gnus-group-goto-group ,group) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3243 (gnus-get-unread-articles-in-group ',info ',(gnus-active group) t) |
17493 | 3244 (gnus-group-update-group-line)))) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3245 (setq action (mapcar (lambda (el) (list (nth 0 el) 'del (nth 2 el))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3246 action)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3247 (gnus-request-set-mark group action) |
17493 | 3248 (gnus-info-set-read info nil) |
3249 (when (gnus-info-marks info) | |
3250 (gnus-info-set-marks info nil)))) | |
3251 | |
3252 ;; Group catching up. | |
3253 | |
3254 (defun gnus-group-catchup-current (&optional n all) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3255 "Mark all unread articles in the current newsgroup as read. |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3256 If prefix argument N is numeric, the next N newsgroups will be |
17493 | 3257 caught up. If ALL is non-nil, marked articles will also be marked as |
3258 read. Cross references (Xref: header) of articles are ignored. | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3259 The number of newsgroups that this function was unable to catch |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3260 up is returned." |
17493 | 3261 (interactive "P") |
3262 (let ((groups (gnus-group-process-prefix n)) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3263 (ret 0) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3264 group) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3265 (unless groups (error "No groups selected")) |
17493 | 3266 (if (not |
3267 (or (not gnus-interactive-catchup) ;Without confirmation? | |
3268 gnus-expert-user | |
3269 (gnus-y-or-n-p | |
3270 (format | |
3271 (if all | |
3272 "Do you really want to mark all articles in %s as read? " | |
3273 "Mark all unread articles in %s as read? ") | |
3274 (if (= (length groups) 1) | |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
3275 (gnus-group-decoded-name (car groups)) |
17493 | 3276 (format "these %d groups" (length groups))))))) |
3277 n | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3278 (while (setq group (pop groups)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3279 (gnus-group-remove-mark group) |
17493 | 3280 ;; Virtual groups have to be given special treatment. |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3281 (let ((method (gnus-find-method-for-group group))) |
17493 | 3282 (when (eq 'nnvirtual (car method)) |
3283 (nnvirtual-catchup-group | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3284 (gnus-group-real-name group) (nth 1 method) all))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3285 (if (>= (gnus-group-level group) gnus-level-zombie) |
17493 | 3286 (gnus-message 2 "Dead groups can't be caught up") |
3287 (if (prog1 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3288 (gnus-group-goto-group group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3289 (gnus-group-catchup group all)) |
17493 | 3290 (gnus-group-update-group-line) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3291 (setq ret (1+ ret))))) |
17493 | 3292 (gnus-group-next-unread-group 1) |
3293 ret))) | |
3294 | |
3295 (defun gnus-group-catchup-current-all (&optional n) | |
3296 "Mark all articles in current newsgroup as read. | |
3297 Cross references (Xref: header) of articles are ignored." | |
3298 (interactive "P") | |
3299 (gnus-group-catchup-current n 'all)) | |
3300 | |
3301 (defun gnus-group-catchup (group &optional all) | |
3302 "Mark all articles in GROUP as read. | |
3303 If ALL is non-nil, all articles are marked as read. | |
3304 The return value is the number of articles that were marked as read, | |
3305 or nil if no action could be taken." | |
3306 (let* ((entry (gnus-gethash group gnus-newsrc-hashtb)) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3307 (num (car entry)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3308 (marks (nth 3 (nth 2 entry))) |
57617
7fdc1df35f39
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-628
Miles Bader <miles@gnu.org>
parents:
57581
diff
changeset
|
3309 (unread (gnus-sequence-of-unread-articles group))) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3310 ;; Remove entries for this group. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3311 (nnmail-purge-split-history (gnus-group-real-name group)) |
17493 | 3312 ;; Do the updating only if the newsgroup isn't killed. |
3313 (if (not (numberp (car entry))) | |
3314 (gnus-message 1 "Can't catch up %s; non-active group" group) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3315 (gnus-update-read-articles group nil) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3316 (when all |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3317 ;; Nix out the lists of marks and dormants. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3318 (gnus-request-set-mark group (list (list (cdr (assq 'tick marks)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3319 'del '(tick)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3320 (list (cdr (assq 'dormant marks)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3321 'del '(dormant)))) |
57617
7fdc1df35f39
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-628
Miles Bader <miles@gnu.org>
parents:
57581
diff
changeset
|
3322 (setq unread (gnus-range-add (gnus-range-add |
7fdc1df35f39
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-628
Miles Bader <miles@gnu.org>
parents:
57581
diff
changeset
|
3323 unread (cdr (assq 'dormant marks))) |
7fdc1df35f39
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-628
Miles Bader <miles@gnu.org>
parents:
57581
diff
changeset
|
3324 (cdr (assq 'tick marks)))) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3325 (gnus-add-marked-articles group 'tick nil nil 'force) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3326 (gnus-add-marked-articles group 'dormant nil nil 'force)) |
17493 | 3327 ;; Do auto-expirable marks if that's required. |
3328 (when (gnus-group-auto-expirable-p group) | |
57617
7fdc1df35f39
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-628
Miles Bader <miles@gnu.org>
parents:
57581
diff
changeset
|
3329 (gnus-range-map (lambda (article) |
7fdc1df35f39
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-628
Miles Bader <miles@gnu.org>
parents:
57581
diff
changeset
|
3330 (gnus-add-marked-articles group 'expire (list article)) |
7fdc1df35f39
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-628
Miles Bader <miles@gnu.org>
parents:
57581
diff
changeset
|
3331 (gnus-request-set-mark group (list (list (list article) 'add '(expire))))) |
7fdc1df35f39
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-628
Miles Bader <miles@gnu.org>
parents:
57581
diff
changeset
|
3332 unread)) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3333 (let ((gnus-newsgroup-name group)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3334 (gnus-run-hooks 'gnus-group-catchup-group-hook)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3335 num))) |
17493 | 3336 |
3337 (defun gnus-group-expire-articles (&optional n) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3338 "Expire all expirable articles in the current newsgroup. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3339 Uses the process/prefix convention." |
17493 | 3340 (interactive "P") |
3341 (let ((groups (gnus-group-process-prefix n)) | |
3342 group) | |
3343 (unless groups | |
3344 (error "No groups to expire")) | |
3345 (while (setq group (pop groups)) | |
3346 (gnus-group-remove-mark group) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3347 (gnus-group-expire-articles-1 group) |
17493 | 3348 (gnus-dribble-touch) |
3349 (gnus-group-position-point)))) | |
3350 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3351 (defun gnus-group-expire-articles-1 (group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3352 (when (gnus-check-backend-function 'request-expire-articles group) |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
3353 (gnus-message 6 "Expiring articles in %s..." |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
3354 (gnus-group-decoded-name group)) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3355 (let* ((info (gnus-get-info group)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3356 (expirable (if (gnus-group-total-expirable-p group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3357 (cons nil (gnus-list-of-read-articles group)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3358 (assq 'expire (gnus-info-marks info)))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3359 (expiry-wait (gnus-group-find-parameter group 'expiry-wait)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3360 (nnmail-expiry-target |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3361 (or (gnus-group-find-parameter group 'expiry-target) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3362 nnmail-expiry-target))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3363 (when expirable |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3364 (gnus-check-group group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3365 (setcdr |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3366 expirable |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3367 (gnus-compress-sequence |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3368 (if expiry-wait |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3369 ;; We set the expiry variables to the group |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3370 ;; parameter. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3371 (let ((nnmail-expiry-wait-function nil) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3372 (nnmail-expiry-wait expiry-wait)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3373 (gnus-request-expire-articles |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3374 (gnus-uncompress-sequence (cdr expirable)) group)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3375 ;; Just expire using the normal expiry values. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3376 (gnus-request-expire-articles |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3377 (gnus-uncompress-sequence (cdr expirable)) group)))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3378 (gnus-close-group group)) |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
3379 (gnus-message 6 "Expiring articles in %s...done" |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
3380 (gnus-group-decoded-name group)) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3381 ;; Return the list of un-expired articles. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3382 (cdr expirable)))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3383 |
17493 | 3384 (defun gnus-group-expire-all-groups () |
3385 "Expire all expirable articles in all newsgroups." | |
3386 (interactive) | |
3387 (save-excursion | |
3388 (gnus-message 5 "Expiring...") | |
3389 (let ((gnus-group-marked (mapcar (lambda (info) (gnus-info-group info)) | |
3390 (cdr gnus-newsrc-alist)))) | |
3391 (gnus-group-expire-articles nil))) | |
3392 (gnus-group-position-point) | |
3393 (gnus-message 5 "Expiring...done")) | |
3394 | |
3395 (defun gnus-group-set-current-level (n level) | |
3396 "Set the level of the next N groups to LEVEL." | |
3397 (interactive | |
3398 (list | |
3399 current-prefix-arg | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3400 (progn |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3401 (unless (gnus-group-process-prefix current-prefix-arg) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3402 (error "No group on the current line")) |
62907
88db2adda4b7
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-339
Miles Bader <miles@gnu.org>
parents:
62890
diff
changeset
|
3403 (string-to-number |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3404 (let ((s (read-string |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3405 (format "Level (default %s): " |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3406 (or (gnus-group-group-level) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3407 gnus-level-default-subscribed))))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3408 (if (string-match "^\\s-*$" s) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3409 (int-to-string (or (gnus-group-group-level) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3410 gnus-level-default-subscribed)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3411 s)))))) |
17493 | 3412 (unless (and (>= level 1) (<= level gnus-level-killed)) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3413 (error "Invalid level: %d" level)) |
17493 | 3414 (let ((groups (gnus-group-process-prefix n)) |
3415 group) | |
3416 (while (setq group (pop groups)) | |
3417 (gnus-group-remove-mark group) | |
3418 (gnus-message 6 "Changed level of %s from %d to %d" | |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
3419 (gnus-group-decoded-name group) |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
3420 (or (gnus-group-group-level) gnus-level-killed) |
17493 | 3421 level) |
3422 (gnus-group-change-level | |
3423 group level (or (gnus-group-group-level) gnus-level-killed)) | |
3424 (gnus-group-update-group-line))) | |
3425 (gnus-group-position-point)) | |
3426 | |
3427 (defun gnus-group-unsubscribe (&optional n) | |
3428 "Unsubscribe the current group." | |
3429 (interactive "P") | |
3430 (gnus-group-unsubscribe-current-group n 'unsubscribe)) | |
3431 | |
3432 (defun gnus-group-subscribe (&optional n) | |
3433 "Subscribe the current group." | |
3434 (interactive "P") | |
3435 (gnus-group-unsubscribe-current-group n 'subscribe)) | |
3436 | |
3437 (defun gnus-group-unsubscribe-current-group (&optional n do-sub) | |
3438 "Toggle subscription of the current group. | |
3439 If given numerical prefix, toggle the N next groups." | |
3440 (interactive "P") | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3441 (dolist (group (gnus-group-process-prefix n)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3442 (gnus-group-remove-mark group) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3443 (gnus-group-unsubscribe-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3444 group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3445 (cond |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3446 ((eq do-sub 'unsubscribe) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3447 gnus-level-default-unsubscribed) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3448 ((eq do-sub 'subscribe) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3449 gnus-level-default-subscribed) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3450 ((<= (gnus-group-group-level) gnus-level-subscribed) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3451 gnus-level-default-unsubscribed) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3452 (t |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3453 gnus-level-default-subscribed)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3454 t) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3455 (gnus-group-update-group-line)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3456 (gnus-group-next-group 1)) |
17493 | 3457 |
3458 (defun gnus-group-unsubscribe-group (group &optional level silent) | |
3459 "Toggle subscription to GROUP. | |
3460 Killed newsgroups are subscribed. If SILENT, don't try to update the | |
3461 group line." | |
3462 (interactive | |
3463 (list (completing-read | |
3464 "Group: " gnus-active-hashtb nil | |
3465 (gnus-read-active-file-p) | |
3466 nil | |
3467 'gnus-group-history))) | |
3468 (let ((newsrc (gnus-gethash group gnus-newsrc-hashtb))) | |
3469 (cond | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3470 ((string-match "^[ \t]*$" group) |
17493 | 3471 (error "Empty group name")) |
3472 (newsrc | |
3473 ;; Toggle subscription flag. | |
3474 (gnus-group-change-level | |
3475 newsrc (if level level (if (<= (gnus-info-level (nth 2 newsrc)) | |
3476 gnus-level-subscribed) | |
3477 (1+ gnus-level-subscribed) | |
3478 gnus-level-default-subscribed))) | |
3479 (unless silent | |
3480 (gnus-group-update-group group))) | |
3481 ((and (stringp group) | |
3482 (or (not (gnus-read-active-file-p)) | |
3483 (gnus-active group))) | |
3484 ;; Add new newsgroup. | |
3485 (gnus-group-change-level | |
3486 group | |
3487 (if level level gnus-level-default-subscribed) | |
3488 (or (and (member group gnus-zombie-list) | |
3489 gnus-level-zombie) | |
3490 gnus-level-killed) | |
3491 (when (gnus-group-group-name) | |
3492 (gnus-gethash (gnus-group-group-name) gnus-newsrc-hashtb))) | |
3493 (unless silent | |
3494 (gnus-group-update-group group))) | |
3495 (t (error "No such newsgroup: %s" group))) | |
3496 (gnus-group-position-point))) | |
3497 | |
3498 (defun gnus-group-transpose-groups (n) | |
3499 "Move the current newsgroup up N places. | |
74150
361d95731e62
(gnus-group-sort-function, gnus-group-line-format, gnus-group-mode,
Juanma Barranquero <lekktu@gmail.com>
parents:
73487
diff
changeset
|
3500 If given a negative prefix, move down instead. The difference between |
17493 | 3501 N and the number of steps taken is returned." |
3502 (interactive "p") | |
3503 (unless (gnus-group-group-name) | |
3504 (error "No group on current line")) | |
3505 (gnus-group-kill-group 1) | |
3506 (prog1 | |
3507 (forward-line (- n)) | |
3508 (gnus-group-yank-group) | |
3509 (gnus-group-position-point))) | |
3510 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3511 (defun gnus-group-kill-all-zombies (&optional dummy) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3512 "Kill all zombie newsgroups. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3513 The optional DUMMY should always be nil." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3514 (interactive (list (not (gnus-yes-or-no-p "Really kill all zombies? ")))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3515 (unless dummy |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3516 (setq gnus-killed-list (nconc gnus-zombie-list gnus-killed-list)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3517 (setq gnus-zombie-list nil) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3518 (gnus-dribble-touch) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3519 (gnus-group-list-groups))) |
17493 | 3520 |
3521 (defun gnus-group-kill-region (begin end) | |
3522 "Kill newsgroups in current region (excluding current point). | |
3523 The killed newsgroups can be yanked by using \\[gnus-group-yank-group]." | |
3524 (interactive "r") | |
3525 (let ((lines | |
3526 ;; Count lines. | |
3527 (save-excursion | |
3528 (count-lines | |
3529 (progn | |
3530 (goto-char begin) | |
3531 (beginning-of-line) | |
3532 (point)) | |
3533 (progn | |
3534 (goto-char end) | |
3535 (beginning-of-line) | |
3536 (point)))))) | |
3537 (goto-char begin) | |
3538 (beginning-of-line) ;Important when LINES < 1 | |
3539 (gnus-group-kill-group lines))) | |
3540 | |
3541 (defun gnus-group-kill-group (&optional n discard) | |
3542 "Kill the next N groups. | |
3543 The killed newsgroups can be yanked by using \\[gnus-group-yank-group]. | |
3544 However, only groups that were alive can be yanked; already killed | |
3545 groups or zombie groups can't be yanked. | |
3546 The return value is the name of the group that was killed, or a list | |
3547 of groups killed." | |
3548 (interactive "P") | |
3549 (let ((buffer-read-only nil) | |
3550 (groups (gnus-group-process-prefix n)) | |
3551 group entry level out) | |
3552 (if (< (length groups) 10) | |
3553 ;; This is faster when there are few groups. | |
3554 (while groups | |
3555 (push (setq group (pop groups)) out) | |
3556 (gnus-group-remove-mark group) | |
3557 (setq level (gnus-group-group-level)) | |
3558 (gnus-delete-line) | |
3559 (when (and (not discard) | |
3560 (setq entry (gnus-gethash group gnus-newsrc-hashtb))) | |
3561 (gnus-undo-register | |
3562 `(progn | |
3563 (gnus-group-goto-group ,(gnus-group-group-name)) | |
3564 (gnus-group-yank-group))) | |
3565 (push (cons (car entry) (nth 2 entry)) | |
3566 gnus-list-of-killed-groups)) | |
3567 (gnus-group-change-level | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3568 (if entry entry group) gnus-level-killed (if entry nil level)) |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
3569 (message "Killed group %s" (gnus-group-decoded-name group))) |
17493 | 3570 ;; If there are lots and lots of groups to be killed, we use |
3571 ;; this thing instead. | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3572 (dolist (group (nreverse groups)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3573 (gnus-group-remove-mark group) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3574 (gnus-delete-line) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3575 (push group gnus-killed-list) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3576 (setq gnus-newsrc-alist |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3577 (delq (assoc group gnus-newsrc-alist) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3578 gnus-newsrc-alist)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3579 (when gnus-group-change-level-function |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3580 (funcall gnus-group-change-level-function |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3581 group gnus-level-killed 3)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3582 (cond |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3583 ((setq entry (gnus-gethash group gnus-newsrc-hashtb)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3584 (push (cons (car entry) (nth 2 entry)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3585 gnus-list-of-killed-groups) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3586 (setcdr (cdr entry) (cdddr entry))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3587 ((member group gnus-zombie-list) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3588 (setq gnus-zombie-list (delete group gnus-zombie-list)))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3589 ;; There may be more than one instance displayed. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3590 (while (gnus-group-goto-group group) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3591 (gnus-delete-line))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3592 (gnus-make-hashtable-from-newsrc-alist)) |
17493 | 3593 |
3594 (gnus-group-position-point) | |
3595 (if (< (length out) 2) (car out) (nreverse out)))) | |
3596 | |
3597 (defun gnus-group-yank-group (&optional arg) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3598 "Yank the last newsgroups killed with \\[gnus-group-kill-group], inserting it before the current newsgroup. |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3599 The numeric ARG specifies how many newsgroups are to be yanked. The |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3600 name of the newsgroup yanked is returned, or (if several groups are |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3601 yanked) a list of yanked groups is returned." |
17493 | 3602 (interactive "p") |
3603 (setq arg (or arg 1)) | |
3604 (let (info group prev out) | |
3605 (while (>= (decf arg) 0) | |
3606 (when (not (setq info (pop gnus-list-of-killed-groups))) | |
3607 (error "No more newsgroups to yank")) | |
3608 (push (setq group (nth 1 info)) out) | |
3609 ;; Find which newsgroup to insert this one before - search | |
3610 ;; backward until something suitable is found. If there are no | |
3611 ;; other newsgroups in this buffer, just make this newsgroup the | |
3612 ;; first newsgroup. | |
3613 (setq prev (gnus-group-group-name)) | |
3614 (gnus-group-change-level | |
3615 info (gnus-info-level (cdr info)) gnus-level-killed | |
3616 (and prev (gnus-gethash prev gnus-newsrc-hashtb)) | |
3617 t) | |
3618 (gnus-group-insert-group-line-info group) | |
3619 (gnus-undo-register | |
3620 `(when (gnus-group-goto-group ,group) | |
3621 (gnus-group-kill-group 1)))) | |
3622 (forward-line -1) | |
3623 (gnus-group-position-point) | |
3624 (if (< (length out) 2) (car out) (nreverse out)))) | |
3625 | |
3626 (defun gnus-group-kill-level (level) | |
3627 "Kill all groups that is on a certain LEVEL." | |
3628 (interactive "nKill all groups on level: ") | |
3629 (cond | |
3630 ((= level gnus-level-zombie) | |
3631 (setq gnus-killed-list | |
3632 (nconc gnus-zombie-list gnus-killed-list)) | |
3633 (setq gnus-zombie-list nil)) | |
3634 ((and (< level gnus-level-zombie) | |
3635 (> level 0) | |
3636 (or gnus-expert-user | |
3637 (gnus-yes-or-no-p | |
3638 (format | |
3639 "Do you really want to kill all groups on level %d? " | |
3640 level)))) | |
3641 (let* ((prev gnus-newsrc-alist) | |
3642 (alist (cdr prev))) | |
3643 (while alist | |
3644 (if (= (gnus-info-level (car alist)) level) | |
3645 (progn | |
3646 (push (gnus-info-group (car alist)) gnus-killed-list) | |
3647 (setcdr prev (cdr alist))) | |
3648 (setq prev alist)) | |
3649 (setq alist (cdr alist))) | |
3650 (gnus-make-hashtable-from-newsrc-alist) | |
3651 (gnus-group-list-groups))) | |
3652 (t | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3653 (error "Can't kill; invalid level: %d" level)))) |
17493 | 3654 |
3655 (defun gnus-group-list-all-groups (&optional arg) | |
3656 "List all newsgroups with level ARG or lower. | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3657 Default is `gnus-level-unsubscribed', which lists all subscribed and most |
17493 | 3658 unsubscribed groups." |
3659 (interactive "P") | |
3660 (gnus-group-list-groups (or arg gnus-level-unsubscribed) t)) | |
3661 | |
3662 ;; Redefine this to list ALL killed groups if prefix arg used. | |
3663 ;; Rewritten by engstrom@src.honeywell.com (Eric Engstrom). | |
3664 (defun gnus-group-list-killed (&optional arg) | |
3665 "List all killed newsgroups in the group buffer. | |
3666 If ARG is non-nil, list ALL killed groups known to Gnus. This may | |
3667 entail asking the server for the groups." | |
3668 (interactive "P") | |
3669 ;; Find all possible killed newsgroups if arg. | |
3670 (when arg | |
3671 (gnus-get-killed-groups)) | |
3672 (if (not gnus-killed-list) | |
3673 (gnus-message 6 "No killed groups") | |
3674 (let (gnus-group-list-mode) | |
3675 (funcall gnus-group-prepare-function | |
3676 gnus-level-killed t gnus-level-killed)) | |
3677 (goto-char (point-min))) | |
3678 (gnus-group-position-point)) | |
3679 | |
3680 (defun gnus-group-list-zombies () | |
3681 "List all zombie newsgroups in the group buffer." | |
3682 (interactive) | |
3683 (if (not gnus-zombie-list) | |
3684 (gnus-message 6 "No zombie groups") | |
3685 (let (gnus-group-list-mode) | |
3686 (funcall gnus-group-prepare-function | |
3687 gnus-level-zombie t gnus-level-zombie)) | |
3688 (goto-char (point-min))) | |
3689 (gnus-group-position-point)) | |
3690 | |
3691 (defun gnus-group-list-active () | |
3692 "List all groups that are available from the server(s)." | |
3693 (interactive) | |
3694 ;; First we make sure that we have really read the active file. | |
3695 (unless (gnus-read-active-file-p) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3696 (let ((gnus-read-active-file t) |
57617
7fdc1df35f39
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-628
Miles Bader <miles@gnu.org>
parents:
57581
diff
changeset
|
3697 (gnus-agent gnus-plugged)); If we're actually plugged, store the active file in the agent. |
17493 | 3698 (gnus-read-active-file))) |
3699 ;; Find all groups and sort them. | |
3700 (let ((groups | |
3701 (sort | |
3702 (let (list) | |
3703 (mapatoms | |
3704 (lambda (sym) | |
3705 (and (boundp sym) | |
3706 (symbol-value sym) | |
3707 (push (symbol-name sym) list))) | |
3708 gnus-active-hashtb) | |
3709 list) | |
3710 'string<)) | |
3711 (buffer-read-only nil) | |
3712 group) | |
3713 (erase-buffer) | |
3714 (while groups | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3715 (setq group (pop groups)) |
17493 | 3716 (gnus-add-text-properties |
3717 (point) (prog1 (1+ (point)) | |
3718 (insert " *: " | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3719 (gnus-group-decoded-name group) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3720 "\n")) |
17493 | 3721 (list 'gnus-group (gnus-intern-safe group gnus-active-hashtb) |
3722 'gnus-unread t | |
3723 'gnus-level (inline (gnus-group-level group))))) | |
3724 (goto-char (point-min)))) | |
3725 | |
3726 (defun gnus-activate-all-groups (level) | |
3727 "Activate absolutely all groups." | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3728 (interactive (list gnus-level-unsubscribed)) |
17493 | 3729 (let ((gnus-activate-level level) |
3730 (gnus-activate-foreign-newsgroups level)) | |
3731 (gnus-group-get-new-news))) | |
3732 | |
3733 (defun gnus-group-get-new-news (&optional arg) | |
3734 "Get newly arrived articles. | |
3735 If ARG is a number, it specifies which levels you are interested in | |
3736 re-scanning. If ARG is non-nil and not a number, this will force | |
3737 \"hard\" re-reading of the active files from all servers." | |
3738 (interactive "P") | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3739 (require 'nnmail) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3740 (let ((gnus-inhibit-demon t) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3741 ;; Binding this variable will inhibit multiple fetchings |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3742 ;; of the same mail source. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3743 (nnmail-fetched-sources (list t))) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3744 (gnus-run-hooks 'gnus-get-top-new-news-hook) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3745 (gnus-run-hooks 'gnus-get-new-news-hook) |
17493 | 3746 |
3747 ;; Read any slave files. | |
3748 (unless gnus-slave | |
3749 (gnus-master-read-slave-newsrc)) | |
3750 | |
3751 ;; We might read in new NoCeM messages here. | |
3752 (when (and gnus-use-nocem | |
69362
29fe34ec2296
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-147
Miles Bader <miles@gnu.org>
parents:
69337
diff
changeset
|
3753 (or (and (numberp gnus-use-nocem) |
29fe34ec2296
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-147
Miles Bader <miles@gnu.org>
parents:
69337
diff
changeset
|
3754 (numberp arg) |
29fe34ec2296
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-147
Miles Bader <miles@gnu.org>
parents:
69337
diff
changeset
|
3755 (>= arg gnus-use-nocem)) |
29fe34ec2296
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-147
Miles Bader <miles@gnu.org>
parents:
69337
diff
changeset
|
3756 (not arg))) |
17493 | 3757 (gnus-nocem-scan-groups)) |
3758 ;; If ARG is not a number, then we read the active file. | |
3759 (when (and arg (not (numberp arg))) | |
3760 (let ((gnus-read-active-file t)) | |
3761 (gnus-read-active-file)) | |
3762 (setq arg nil) | |
3763 | |
3764 ;; If the user wants it, we scan for new groups. | |
3765 (when (eq gnus-check-new-newsgroups 'always) | |
3766 (gnus-find-new-newsgroups))) | |
3767 | |
3768 (setq arg (gnus-group-default-level arg t)) | |
3769 (if (and gnus-read-active-file (not arg)) | |
3770 (progn | |
3771 (gnus-read-active-file) | |
3772 (gnus-get-unread-articles arg)) | |
3773 (let ((gnus-read-active-file (if arg nil gnus-read-active-file))) | |
3774 (gnus-get-unread-articles arg))) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3775 (gnus-run-hooks 'gnus-after-getting-new-news-hook) |
17493 | 3776 (gnus-group-list-groups (and (numberp arg) |
3777 (max (car gnus-group-list-mode) arg))))) | |
3778 | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
3779 (defun gnus-group-get-new-news-this-group (&optional n dont-scan) |
17493 | 3780 "Check for newly arrived news in the current group (and the N-1 next groups). |
3781 The difference between N and the number of newsgroup checked is returned. | |
57581
645f020dcc8a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-626
Miles Bader <miles@gnu.org>
parents:
57363
diff
changeset
|
3782 If N is negative, this group and the N-1 previous groups will be checked. |
645f020dcc8a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-626
Miles Bader <miles@gnu.org>
parents:
57363
diff
changeset
|
3783 If DONT-SCAN is non-nil, scan non-activated groups as well." |
17493 | 3784 (interactive "P") |
3785 (let* ((groups (gnus-group-process-prefix n)) | |
3786 (ret (if (numberp n) (- n (length groups)) 0)) | |
3787 (beg (unless n | |
3788 (point))) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3789 group method |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3790 (gnus-inhibit-demon t) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3791 ;; Binding this variable will inhibit multiple fetchings |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3792 ;; of the same mail source. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3793 (nnmail-fetched-sources (list t))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3794 (gnus-run-hooks 'gnus-get-new-news-hook) |
17493 | 3795 (while (setq group (pop groups)) |
3796 (gnus-group-remove-mark group) | |
3797 ;; Bypass any previous denials from the server. | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3798 (gnus-remove-denial (setq method (gnus-find-method-for-group group))) |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
3799 (if (gnus-activate-group group (if dont-scan nil 'scan)) |
17493 | 3800 (progn |
3801 (gnus-get-unread-articles-in-group | |
3802 (gnus-get-info group) (gnus-active group) t) | |
3803 (unless (gnus-virtual-group-p group) | |
3804 (gnus-close-group group)) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3805 (when gnus-agent |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3806 (gnus-agent-save-group-info |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3807 method (gnus-group-real-name group) (gnus-active group))) |
17493 | 3808 (gnus-group-update-group group)) |
3809 (if (eq (gnus-server-status (gnus-find-method-for-group group)) | |
3810 'denied) | |
3811 (gnus-error 3 "Server denied access") | |
3812 (gnus-error 3 "%s error: %s" group (gnus-status-message group))))) | |
3813 (when beg | |
3814 (goto-char beg)) | |
3815 (when gnus-goto-next-group-when-activating | |
3816 (gnus-group-next-unread-group 1 t)) | |
3817 (gnus-summary-position-point) | |
3818 ret)) | |
3819 | |
3820 (defun gnus-group-fetch-faq (group &optional faq-dir) | |
3821 "Fetch the FAQ for the current group. | |
3822 If given a prefix argument, prompt for the FAQ dir | |
3823 to use." | |
3824 (interactive | |
3825 (list | |
3826 (gnus-group-group-name) | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
3827 (when current-prefix-arg |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
3828 (completing-read |
48588 | 3829 "FAQ dir: " (and (listp gnus-group-faq-directory) |
33344 | 3830 (mapcar #'list |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
3831 gnus-group-faq-directory)))))) |
17493 | 3832 (unless group |
3833 (error "No group name given")) | |
3834 (let ((dirs (or faq-dir gnus-group-faq-directory)) | |
3835 dir found file) | |
3836 (unless (listp dirs) | |
3837 (setq dirs (list dirs))) | |
3838 (while (and (not found) | |
3839 (setq dir (pop dirs))) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3840 (let ((name (gnus-group-real-name group))) |
33344 | 3841 (setq file (expand-file-name name dir))) |
17493 | 3842 (if (not (file-exists-p file)) |
3843 (gnus-message 1 "No such file: %s" file) | |
3844 (let ((enable-local-variables nil)) | |
3845 (find-file file) | |
3846 (setq found t)))))) | |
3847 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3848 (defun gnus-group-fetch-charter (group) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3849 "Fetch the charter for the current group. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3850 If given a prefix argument, prompt for a group." |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3851 (interactive |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3852 (list (or (when current-prefix-arg |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3853 (completing-read "Group: " gnus-active-hashtb)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3854 (gnus-group-group-name) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3855 gnus-newsgroup-name))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3856 (unless group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3857 (error "No group name given")) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3858 (require 'mm-url) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3859 (condition-case nil (require 'url-http) (error nil)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3860 (let ((name (mm-url-form-encode-xwfu (gnus-group-real-name group))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3861 url hierarchy) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3862 (when (string-match "\\(^[^\\.]+\\)\\..*" name) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3863 (setq hierarchy (match-string 1 name)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3864 (if (and (setq url (cdr (assoc hierarchy gnus-group-charter-alist))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3865 (if (fboundp 'url-http-file-exists-p) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3866 (url-http-file-exists-p (eval url)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3867 t)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3868 (browse-url (eval url)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3869 (setq url (concat "http://" hierarchy |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3870 ".news-admin.org/charters/" name)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3871 (if (and (fboundp 'url-http-file-exists-p) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3872 (url-http-file-exists-p url)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3873 (browse-url url) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3874 (gnus-group-fetch-control group)))))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3875 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3876 (defun gnus-group-fetch-control (group) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3877 "Fetch the archived control messages for the current group. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3878 If given a prefix argument, prompt for a group." |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3879 (interactive |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3880 (list (or (when current-prefix-arg |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3881 (completing-read "Group: " gnus-active-hashtb)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3882 (gnus-group-group-name) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3883 gnus-newsgroup-name))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3884 (unless group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3885 (error "No group name given")) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3886 (let ((name (gnus-group-real-name group)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3887 hierarchy) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3888 (when (string-match "\\(^[^\\.]+\\)\\..*" name) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3889 (setq hierarchy (match-string 1 name)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3890 (if gnus-group-fetch-control-use-browse-url |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3891 (browse-url (concat "ftp://ftp.isc.org/usenet/control/" |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3892 hierarchy "/" name ".gz")) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3893 (let ((enable-local-variables nil)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3894 (gnus-group-read-ephemeral-group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3895 group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3896 `(nndoc ,group (nndoc-address |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3897 ,(find-file-noselect |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3898 (concat "/ftp@ftp.isc.org:/usenet/control/" |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3899 hierarchy "/" name ".gz"))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3900 (nndoc-article-type mbox)) t nil nil)))))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3901 |
17493 | 3902 (defun gnus-group-describe-group (force &optional group) |
3903 "Display a description of the current newsgroup." | |
3904 (interactive (list current-prefix-arg (gnus-group-group-name))) | |
3905 (let* ((method (gnus-find-method-for-group group)) | |
3906 (mname (gnus-group-prefixed-name "" method)) | |
3907 desc) | |
3908 (when (and force | |
3909 gnus-description-hashtb) | |
3910 (gnus-sethash mname nil gnus-description-hashtb)) | |
3911 (unless group | |
3912 (error "No group name given")) | |
3913 (when (or (and gnus-description-hashtb | |
3914 ;; We check whether this group's method has been | |
3915 ;; queried for a description file. | |
3916 (gnus-gethash mname gnus-description-hashtb)) | |
3917 (setq desc (gnus-group-get-description group)) | |
3918 (gnus-read-descriptions-file method)) | |
3919 (gnus-message 1 | |
3920 (or desc (gnus-gethash group gnus-description-hashtb) | |
3921 "No description available"))))) | |
3922 | |
3923 ;; Suggested by Per Abrahamsen <amanda@iesd.auc.dk>. | |
3924 (defun gnus-group-describe-all-groups (&optional force) | |
3925 "Pop up a buffer with descriptions of all newsgroups." | |
3926 (interactive "P") | |
3927 (when force | |
3928 (setq gnus-description-hashtb nil)) | |
3929 (when (not (or gnus-description-hashtb | |
3930 (gnus-read-all-descriptions-files))) | |
3931 (error "Couldn't request descriptions file")) | |
3932 (let ((buffer-read-only nil) | |
3933 b) | |
3934 (erase-buffer) | |
3935 (mapatoms | |
3936 (lambda (group) | |
3937 (setq b (point)) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3938 (let ((charset (gnus-group-name-charset nil (symbol-name group)))) |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49274
diff
changeset
|
3939 (insert (format " *: %-20s %s\n" |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3940 (gnus-group-name-decode |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3941 (symbol-name group) charset) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3942 (gnus-group-name-decode |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3943 (symbol-value group) charset)))) |
17493 | 3944 (gnus-add-text-properties |
3945 b (1+ b) (list 'gnus-group group | |
3946 'gnus-unread t 'gnus-marked nil | |
3947 'gnus-level (1+ gnus-level-subscribed)))) | |
3948 gnus-description-hashtb) | |
3949 (goto-char (point-min)) | |
3950 (gnus-group-position-point))) | |
3951 | |
3952 ;; Suggested by Daniel Quinlan <quinlan@best.com>. | |
3953 (defun gnus-group-apropos (regexp &optional search-description) | |
3954 "List all newsgroups that have names that match a regexp." | |
3955 (interactive "sGnus apropos (regexp): ") | |
3956 (let ((prev "") | |
3957 (obuf (current-buffer)) | |
3958 groups des) | |
3959 ;; Go through all newsgroups that are known to Gnus. | |
3960 (mapatoms | |
3961 (lambda (group) | |
3962 (and (symbol-name group) | |
3963 (string-match regexp (symbol-name group)) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3964 (symbol-value group) |
17493 | 3965 (push (symbol-name group) groups))) |
3966 gnus-active-hashtb) | |
3967 ;; Also go through all descriptions that are known to Gnus. | |
3968 (when search-description | |
3969 (mapatoms | |
3970 (lambda (group) | |
3971 (and (string-match regexp (symbol-value group)) | |
3972 (push (symbol-name group) groups))) | |
3973 gnus-description-hashtb)) | |
3974 (if (not groups) | |
3975 (gnus-message 3 "No groups matched \"%s\"." regexp) | |
3976 ;; Print out all the groups. | |
3977 (save-excursion | |
3978 (pop-to-buffer "*Gnus Help*") | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3979 (buffer-disable-undo) |
17493 | 3980 (erase-buffer) |
3981 (setq groups (sort groups 'string<)) | |
3982 (while groups | |
3983 ;; Groups may be entered twice into the list of groups. | |
3984 (when (not (string= (car groups) prev)) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3985 (setq prev (car groups)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3986 (let ((charset (gnus-group-name-charset nil prev))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3987 (insert (gnus-group-name-decode prev charset) "\n") |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3988 (when (and gnus-description-hashtb |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3989 (setq des (gnus-gethash (car groups) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3990 gnus-description-hashtb))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3991 (insert " " (gnus-group-name-decode des charset) "\n")))) |
17493 | 3992 (setq groups (cdr groups))) |
3993 (goto-char (point-min)))) | |
3994 (pop-to-buffer obuf))) | |
3995 | |
3996 (defun gnus-group-description-apropos (regexp) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3997 "List all newsgroups that have names or descriptions that match REGEXP." |
17493 | 3998 (interactive "sGnus description apropos (regexp): ") |
3999 (when (not (or gnus-description-hashtb | |
4000 (gnus-read-all-descriptions-files))) | |
4001 (error "Couldn't request descriptions file")) | |
4002 (gnus-group-apropos regexp t)) | |
4003 | |
4004 ;; Suggested by Per Abrahamsen <amanda@iesd.auc.dk>. | |
4005 (defun gnus-group-list-matching (level regexp &optional all lowest) | |
4006 "List all groups with unread articles that match REGEXP. | |
4007 If the prefix LEVEL is non-nil, it should be a number that says which | |
4008 level to cut off listing groups. | |
4009 If ALL, also list groups with no unread articles. | |
4010 If LOWEST, don't list groups with level lower than LOWEST. | |
4011 | |
4012 This command may read the active file." | |
4013 (interactive "P\nsList newsgroups matching: ") | |
4014 ;; First make sure active file has been read. | |
4015 (when (and level | |
4016 (> (prefix-numeric-value level) gnus-level-killed)) | |
4017 (gnus-get-killed-groups)) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4018 (funcall gnus-group-prepare-function |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4019 (or level gnus-level-subscribed) (and all t) (or lowest 1) regexp) |
17493 | 4020 (goto-char (point-min)) |
4021 (gnus-group-position-point)) | |
4022 | |
4023 (defun gnus-group-list-all-matching (level regexp &optional lowest) | |
4024 "List all groups that match REGEXP. | |
4025 If the prefix LEVEL is non-nil, it should be a number that says which | |
4026 level to cut off listing groups. | |
4027 If LOWEST, don't list groups with level lower than LOWEST." | |
4028 (interactive "P\nsList newsgroups matching: ") | |
4029 (when level | |
4030 (setq level (prefix-numeric-value level))) | |
4031 (gnus-group-list-matching (or level gnus-level-killed) regexp t lowest)) | |
4032 | |
4033 ;; Suggested by Jack Vinson <vinson@unagi.cis.upenn.edu>. | |
4034 (defun gnus-group-save-newsrc (&optional force) | |
4035 "Save the Gnus startup files. | |
4036 If FORCE, force saving whether it is necessary or not." | |
4037 (interactive "P") | |
4038 (gnus-save-newsrc-file force)) | |
4039 | |
4040 (defun gnus-group-restart (&optional arg) | |
4041 "Force Gnus to read the .newsrc file." | |
4042 (interactive "P") | |
4043 (when (gnus-yes-or-no-p | |
4044 (format "Are you sure you want to restart Gnus? ")) | |
4045 (gnus-save-newsrc-file) | |
4046 (gnus-clear-system) | |
4047 (gnus))) | |
4048 | |
4049 (defun gnus-group-read-init-file () | |
4050 "Read the Gnus elisp init file." | |
4051 (interactive) | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
4052 (gnus-read-init-file) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
4053 (gnus-message 5 "Read %s" gnus-init-file)) |
17493 | 4054 |
4055 (defun gnus-group-check-bogus-groups (&optional silent) | |
4056 "Check bogus newsgroups. | |
4057 If given a prefix, don't ask for confirmation before removing a bogus | |
4058 group." | |
4059 (interactive "P") | |
4060 (gnus-check-bogus-newsgroups (and (not silent) (not gnus-expert-user))) | |
4061 (gnus-group-list-groups)) | |
4062 | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
4063 (defun gnus-group-find-new-groups (&optional arg) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
4064 "Search for new groups and add them. |
41819 | 4065 Each new group will be treated with `gnus-subscribe-newsgroup-method'. |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4066 With 1 C-u, use the `ask-server' method to query the server for new |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4067 groups. |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4068 With 2 C-u's, use most complete method possible to query the server |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4069 for new groups, and subscribe the new groups as zombies." |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4070 (interactive "p") |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4071 (gnus-find-new-newsgroups (or arg 1)) |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
4072 (gnus-group-list-groups)) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4073 |
17493 | 4074 (defun gnus-group-edit-global-kill (&optional article group) |
4075 "Edit the global kill file. | |
4076 If GROUP, edit that local kill file instead." | |
4077 (interactive "P") | |
4078 (setq gnus-current-kill-article article) | |
4079 (gnus-kill-file-edit-file group) | |
4080 (gnus-message | |
4081 6 | |
4082 (substitute-command-keys | |
4083 (format "Editing a %s kill file (Type \\[gnus-kill-file-exit] to exit)" | |
4084 (if group "local" "global"))))) | |
4085 | |
4086 (defun gnus-group-edit-local-kill (article group) | |
4087 "Edit a local kill file." | |
4088 (interactive (list nil (gnus-group-group-name))) | |
4089 (gnus-group-edit-global-kill article group)) | |
4090 | |
4091 (defun gnus-group-force-update () | |
4092 "Update `.newsrc' file." | |
4093 (interactive) | |
4094 (gnus-save-newsrc-file)) | |
4095 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4096 (defvar gnus-backlog-articles) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4097 |
17493 | 4098 (defun gnus-group-suspend () |
4099 "Suspend the current Gnus session. | |
4100 In fact, cleanup buffers except for group mode buffer. | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4101 The hook `gnus-suspend-gnus-hook' is called before actually suspending." |
17493 | 4102 (interactive) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4103 (gnus-run-hooks 'gnus-suspend-gnus-hook) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4104 (gnus-offer-save-summaries) |
17493 | 4105 ;; Kill Gnus buffers except for group mode buffer. |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4106 (let ((group-buf (get-buffer gnus-group-buffer))) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4107 (mapcar (lambda (buf) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4108 (unless (or (member buf (list group-buf gnus-dribble-buffer)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4109 (progn |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4110 (save-excursion |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4111 (set-buffer buf) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4112 (eq major-mode 'message-mode)))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4113 (gnus-kill-buffer buf))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4114 (gnus-buffers)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4115 (setq gnus-backlog-articles nil) |
17493 | 4116 (gnus-kill-gnus-frames) |
4117 (when group-buf | |
4118 (bury-buffer group-buf) | |
4119 (delete-windows-on group-buf t)))) | |
4120 | |
4121 (defun gnus-group-clear-dribble () | |
4122 "Clear all information from the dribble buffer." | |
4123 (interactive) | |
4124 (gnus-dribble-clear) | |
4125 (gnus-message 7 "Cleared dribble buffer")) | |
4126 | |
4127 (defun gnus-group-exit () | |
4128 "Quit reading news after updating .newsrc.eld and .newsrc. | |
4129 The hook `gnus-exit-gnus-hook' is called before actually exiting." | |
4130 (interactive) | |
4131 (when | |
4132 (or noninteractive ;For gnus-batch-kill | |
4133 (not gnus-interactive-exit) ;Without confirmation | |
4134 gnus-expert-user | |
4135 (gnus-y-or-n-p "Are you sure you want to quit reading news? ")) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4136 (gnus-run-hooks 'gnus-exit-gnus-hook) |
17493 | 4137 ;; Offer to save data from non-quitted summary buffers. |
4138 (gnus-offer-save-summaries) | |
4139 ;; Save the newsrc file(s). | |
4140 (gnus-save-newsrc-file) | |
4141 ;; Kill-em-all. | |
4142 (gnus-close-backends) | |
4143 ;; Reset everything. | |
4144 (gnus-clear-system) | |
4145 ;; Allow the user to do things after cleaning up. | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4146 (gnus-run-hooks 'gnus-after-exiting-gnus-hook))) |
17493 | 4147 |
4148 (defun gnus-group-quit () | |
4149 "Quit reading news without updating .newsrc.eld or .newsrc. | |
4150 The hook `gnus-exit-gnus-hook' is called before actually exiting." | |
4151 (interactive) | |
4152 (when (or noninteractive ;For gnus-batch-kill | |
4153 (zerop (buffer-size)) | |
4154 (not (gnus-server-opened gnus-select-method)) | |
4155 gnus-expert-user | |
4156 (not gnus-current-startup-file) | |
4157 (gnus-yes-or-no-p | |
4158 (format "Quit reading news without saving %s? " | |
4159 (file-name-nondirectory gnus-current-startup-file)))) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4160 (gnus-run-hooks 'gnus-exit-gnus-hook) |
17493 | 4161 (gnus-configure-windows 'group t) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4162 (when (and (gnus-buffer-live-p gnus-dribble-buffer) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4163 (not (zerop (save-excursion |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4164 (set-buffer gnus-dribble-buffer) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4165 (buffer-size))))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4166 (gnus-dribble-enter |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4167 ";;; Gnus was exited on purpose without saving the .newsrc files.")) |
17493 | 4168 (gnus-dribble-save) |
4169 (gnus-close-backends) | |
4170 (gnus-clear-system) | |
4171 (gnus-kill-buffer gnus-group-buffer) | |
4172 ;; Allow the user to do things after cleaning up. | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4173 (gnus-run-hooks 'gnus-after-exiting-gnus-hook))) |
17493 | 4174 |
4175 (defun gnus-group-describe-briefly () | |
4176 "Give a one line description of the group mode commands." | |
4177 (interactive) | |
4178 (gnus-message 7 (substitute-command-keys "\\<gnus-group-mode-map>\\[gnus-group-read-group]:Select \\[gnus-group-next-unread-group]:Forward \\[gnus-group-prev-unread-group]:Backward \\[gnus-group-exit]:Exit \\[gnus-info-find-node]:Run Info \\[gnus-group-describe-briefly]:This help"))) | |
4179 | |
4180 (defun gnus-group-browse-foreign-server (method) | |
4181 "Browse a foreign news server. | |
4182 If called interactively, this function will ask for a select method | |
4183 (nntp, nnspool, etc.) and a server address (eg. nntp.some.where). | |
4184 If not, METHOD should be a list where the first element is the method | |
4185 and the second element is the address." | |
4186 (interactive | |
4187 (list (let ((how (completing-read | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4188 "Which back end: " |
17493 | 4189 (append gnus-valid-select-methods gnus-server-alist) |
4190 nil t (cons "nntp" 0) 'gnus-method-history))) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4191 ;; We either got a back end name or a virtual server name. |
17493 | 4192 ;; If the first, we also need an address. |
4193 (if (assoc how gnus-valid-select-methods) | |
4194 (list (intern how) | |
4195 ;; Suggested by mapjph@bath.ac.uk. | |
4196 (completing-read | |
4197 "Address: " | |
4198 (mapcar (lambda (server) (list server)) | |
4199 gnus-secondary-servers))) | |
4200 ;; We got a server name. | |
4201 how)))) | |
4202 (gnus-browse-foreign-server method)) | |
4203 | |
4204 (defun gnus-group-set-info (info &optional method-only-group part) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4205 (when (or info part) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4206 (let* ((entry (gnus-gethash |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4207 (or method-only-group (gnus-info-group info)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4208 gnus-newsrc-hashtb)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4209 (part-info info) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4210 (info (if method-only-group (nth 2 entry) info)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4211 method) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4212 (when method-only-group |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4213 (unless entry |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4214 (error "Trying to change non-existent group %s" method-only-group)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4215 ;; We have received parts of the actual group info - either the |
74150
361d95731e62
(gnus-group-sort-function, gnus-group-line-format, gnus-group-mode,
Juanma Barranquero <lekktu@gmail.com>
parents:
73487
diff
changeset
|
4216 ;; select method or the group parameters. We first check |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4217 ;; whether we have to extend the info, and if so, do that. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4218 (let ((len (length info)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4219 (total (if (eq part 'method) 5 6))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4220 (when (< len total) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4221 (setcdr (nthcdr (1- len) info) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4222 (make-list (- total len) nil))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4223 ;; Then we enter the new info. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4224 (setcar (nthcdr (1- total) info) part-info))) |
17493 | 4225 (unless entry |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4226 ;; This is a new group, so we just create it. |
17493 | 4227 (save-excursion |
4228 (set-buffer gnus-group-buffer) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4229 (setq method (gnus-info-method info)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4230 (when (gnus-server-equal method "native") |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4231 (setq method nil)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4232 (save-excursion |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4233 (set-buffer gnus-group-buffer) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4234 (if method |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4235 ;; It's a foreign group... |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4236 (gnus-group-make-group |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4237 (gnus-group-real-name (gnus-info-group info)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4238 (if (stringp method) method |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4239 (prin1-to-string (car method))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4240 (and (consp method) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4241 (nth 1 (gnus-info-method info)))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4242 ;; It's a native group. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4243 (gnus-group-make-group (gnus-info-group info)))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4244 (gnus-message 6 "Note: New group created") |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4245 (setq entry |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4246 (gnus-gethash (gnus-group-prefixed-name |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4247 (gnus-group-real-name (gnus-info-group info)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4248 (or (gnus-info-method info) gnus-select-method)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4249 gnus-newsrc-hashtb)))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4250 ;; Whether it was a new group or not, we now have the entry, so we |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4251 ;; can do the update. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4252 (if entry |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4253 (progn |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4254 (setcar (nthcdr 2 entry) info) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4255 (when (and (not (eq (car entry) t)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4256 (gnus-active (gnus-info-group info))) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4257 (setcar entry (length |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4258 (gnus-list-of-unread-articles (car info)))))) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4259 (error "No such group: %s" (gnus-info-group info)))))) |
17493 | 4260 |
4261 (defun gnus-group-set-method-info (group select-method) | |
4262 (gnus-group-set-info select-method group 'method)) | |
4263 | |
4264 (defun gnus-group-set-params-info (group params) | |
4265 (gnus-group-set-info params group 'params)) | |
4266 | |
4267 (defun gnus-add-marked-articles (group type articles &optional info force) | |
4268 ;; Add ARTICLES of TYPE to the info of GROUP. | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4269 ;; If INFO is non-nil, use that info. If FORCE is non-nil, don't |
17493 | 4270 ;; add, but replace marked articles of TYPE with ARTICLES. |
4271 (let ((info (or info (gnus-get-info group))) | |
4272 marked m) | |
4273 (or (not info) | |
4274 (and (not (setq marked (nthcdr 3 info))) | |
4275 (or (null articles) | |
4276 (setcdr (nthcdr 2 info) | |
4277 (list (list (cons type (gnus-compress-sequence | |
4278 articles t))))))) | |
4279 (and (not (setq m (assq type (car marked)))) | |
4280 (or (null articles) | |
4281 (setcar marked | |
4282 (cons (cons type (gnus-compress-sequence articles t) ) | |
4283 (car marked))))) | |
4284 (if force | |
4285 (if (null articles) | |
4286 (setcar (nthcdr 3 info) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4287 (gnus-delete-alist type (car marked))) |
17493 | 4288 (setcdr m (gnus-compress-sequence articles t))) |
4289 (setcdr m (gnus-compress-sequence | |
4290 (sort (nconc (gnus-uncompress-range (cdr m)) | |
4291 (copy-sequence articles)) '<) t)))))) | |
4292 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4293 (defun gnus-add-mark (group mark article) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4294 "Mark ARTICLE in GROUP with MARK, whether the group is displayed or not." |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4295 (let ((buffer (gnus-summary-buffer-name group))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4296 (if (gnus-buffer-live-p buffer) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4297 (save-excursion |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4298 (set-buffer (get-buffer buffer)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4299 (gnus-summary-add-mark article mark)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4300 (gnus-add-marked-articles group (cdr (assq mark gnus-article-mark-lists)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4301 (list article))))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4302 |
17493 | 4303 ;;; |
4304 ;;; Group timestamps | |
4305 ;;; | |
4306 | |
4307 (defun gnus-group-set-timestamp () | |
4308 "Change the timestamp of the current group to the current time. | |
4309 This function can be used in hooks like `gnus-select-group-hook' | |
4310 or `gnus-group-catchup-group-hook'." | |
4311 (when gnus-newsgroup-name | |
4312 (let ((time (current-time))) | |
4313 (setcdr (cdr time) nil) | |
4314 (gnus-group-set-parameter gnus-newsgroup-name 'timestamp time)))) | |
4315 | |
4316 (defsubst gnus-group-timestamp (group) | |
4317 "Return the timestamp for GROUP." | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4318 (gnus-group-get-parameter group 'timestamp t)) |
17493 | 4319 |
4320 (defun gnus-group-timestamp-delta (group) | |
4321 "Return the offset in seconds from the timestamp for GROUP to the current time, as a floating point number." | |
4322 (let* ((time (or (gnus-group-timestamp group) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4323 (list 0 0))) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4324 (delta (subtract-time (current-time) time))) |
17493 | 4325 (+ (* (nth 0 delta) 65536.0) |
4326 (nth 1 delta)))) | |
4327 | |
4328 (defun gnus-group-timestamp-string (group) | |
4329 "Return a string of the timestamp for GROUP." | |
4330 (let ((time (gnus-group-timestamp group))) | |
4331 (if (not time) | |
4332 "" | |
4333 (gnus-time-iso8601 time)))) | |
4334 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4335 (defun gnus-group-list-cached (level &optional lowest) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4336 "List all groups with cached articles. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4337 If the prefix LEVEL is non-nil, it should be a number that says which |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4338 level to cut off listing groups. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4339 If LOWEST, don't list groups with level lower than LOWEST. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4340 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4341 This command may read the active file." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4342 (interactive "P") |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4343 (when level |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4344 (setq level (prefix-numeric-value level))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4345 (when (or (not level) (>= level gnus-level-zombie)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4346 (gnus-cache-open)) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4347 (funcall gnus-group-prepare-function |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4348 (or level gnus-level-subscribed) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4349 #'(lambda (info) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4350 (let ((marks (gnus-info-marks info))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4351 (assq 'cache marks))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4352 lowest |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4353 #'(lambda (group) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4354 (or (gnus-gethash group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4355 gnus-cache-active-hashtb) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4356 ;; Cache active file might use "." |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4357 ;; instead of ":". |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4358 (gnus-gethash |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4359 (mapconcat 'identity |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4360 (split-string group ":") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4361 ".") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4362 gnus-cache-active-hashtb)))) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4363 (goto-char (point-min)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4364 (gnus-group-position-point)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4365 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4366 (defun gnus-group-list-dormant (level &optional lowest) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4367 "List all groups with dormant articles. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4368 If the prefix LEVEL is non-nil, it should be a number that says which |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4369 level to cut off listing groups. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4370 If LOWEST, don't list groups with level lower than LOWEST. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4371 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4372 This command may read the active file." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4373 (interactive "P") |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4374 (when level |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4375 (setq level (prefix-numeric-value level))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4376 (when (or (not level) (>= level gnus-level-zombie)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4377 (gnus-cache-open)) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4378 (funcall gnus-group-prepare-function |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4379 (or level gnus-level-subscribed) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4380 #'(lambda (info) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4381 (let ((marks (gnus-info-marks info))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4382 (assq 'dormant marks))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4383 lowest |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4384 'ignore) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4385 (goto-char (point-min)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4386 (gnus-group-position-point)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4387 |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4388 (defun gnus-group-listed-groups () |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4389 "Return a list of listed groups." |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4390 (let (point groups) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4391 (goto-char (point-min)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4392 (while (setq point (text-property-not-all (point) (point-max) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4393 'gnus-group nil)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4394 (goto-char point) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4395 (push (symbol-name (get-text-property point 'gnus-group)) groups) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4396 (forward-char 1)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4397 groups)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4398 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4399 (defun gnus-group-list-plus (&optional args) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4400 "List groups plus the current selection." |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4401 (interactive "P") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4402 (let ((gnus-group-listed-groups (gnus-group-listed-groups)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4403 (gnus-group-list-mode gnus-group-list-mode) ;; Save it. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4404 func) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4405 (push last-command-event unread-command-events) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4406 (if (featurep 'xemacs) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4407 (push (make-event 'key-press '(key ?A)) unread-command-events) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4408 (push ?A unread-command-events)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4409 (let (gnus-pick-mode keys) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4410 (setq keys (if (featurep 'xemacs) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4411 (events-to-keys (read-key-sequence nil)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4412 (read-key-sequence nil))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4413 (setq func (lookup-key (current-local-map) keys))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4414 (if (or (not func) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4415 (numberp func)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4416 (ding) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4417 (call-interactively func)))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4418 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4419 (defun gnus-group-list-flush (&optional args) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4420 "Flush groups from the current selection." |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4421 (interactive "P") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4422 (let ((gnus-group-list-option 'flush)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4423 (gnus-group-list-plus args))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4424 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4425 (defun gnus-group-list-limit (&optional args) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4426 "List groups limited within the current selection." |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4427 (interactive "P") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4428 (let ((gnus-group-list-option 'limit)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4429 (gnus-group-list-plus args))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4430 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4431 (defun gnus-group-mark-article-read (group article) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4432 "Mark ARTICLE read." |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4433 (let ((buffer (gnus-summary-buffer-name group)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4434 (mark gnus-read-mark) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4435 active n) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4436 (if (get-buffer buffer) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4437 (with-current-buffer buffer |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4438 (setq active gnus-newsgroup-active) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4439 (gnus-activate-group group) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4440 (when gnus-newsgroup-prepared |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4441 (when (and gnus-newsgroup-auto-expire |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4442 (memq mark gnus-auto-expirable-marks)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4443 (setq mark gnus-expirable-mark)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4444 (setq mark (gnus-request-update-mark |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4445 group article mark)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4446 (gnus-mark-article-as-read article mark) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4447 (setq gnus-newsgroup-active (gnus-active group)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4448 (when active |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4449 (setq n (1+ (cdr active))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4450 (while (<= n (cdr gnus-newsgroup-active)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4451 (unless (eq n article) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4452 (push n gnus-newsgroup-unselected)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4453 (setq n (1+ n))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4454 (setq gnus-newsgroup-unselected |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4455 (nreverse gnus-newsgroup-unselected))))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4456 (gnus-activate-group group) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4457 (gnus-group-make-articles-read group (list article)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4458 (when (gnus-group-auto-expirable-p group) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4459 (gnus-add-marked-articles |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4460 group 'expire (list article)))))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4461 |
17493 | 4462 (provide 'gnus-group) |
4463 | |
52401 | 4464 ;;; arch-tag: 2eb5440f-0bca-4091-814c-e37817536af6 |
17493 | 4465 ;;; gnus-group.el ends here |