Mercurial > emacs
annotate lisp/gnus/gnus-group.el @ 111722:c0bbb7dd9600
nnimap.el (nnimap-request-set-mark): Add is "+", not "-".
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Fri, 26 Nov 2010 02:17:55 +0000 |
parents | b527d5f89f7f |
children | faa4a1c986c6 |
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, |
106815 | 4 ;; 2005, 2006, 2007, 2008, 2009, 2010 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 | |
94662
f42ef85caf91
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94646
diff
changeset
|
11 ;; GNU Emacs is free software: you can redistribute it and/or modify |
17493 | 12 ;; it under the terms of the GNU General Public License as published by |
94662
f42ef85caf91
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94646
diff
changeset
|
13 ;; the Free Software Foundation, either version 3 of the License, or |
f42ef85caf91
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94646
diff
changeset
|
14 ;; (at your option) any later version. |
17493 | 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 | |
94662
f42ef85caf91
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94646
diff
changeset
|
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17493 | 19 ;; GNU General Public License for more details. |
20 | |
21 ;; You should have received a copy of the GNU General Public License | |
94662
f42ef85caf91
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94646
diff
changeset
|
22 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
17493 | 23 |
24 ;;; Commentary: | |
25 | |
26 ;;; Code: | |
27 | |
110918
236342431786
nnimap.el (gnutls-negotiate): Silence the byte compiler.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110859
diff
changeset
|
28 ;; For Emacs <22.2 and XEmacs. |
87250
cdbb1d6ce433
Add declare-function compatibility definition.
Glenn Morris <rgm@gnu.org>
parents:
87097
diff
changeset
|
29 (eval-and-compile |
cdbb1d6ce433
Add declare-function compatibility definition.
Glenn Morris <rgm@gnu.org>
parents:
87097
diff
changeset
|
30 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) |
cdbb1d6ce433
Add declare-function compatibility definition.
Glenn Morris <rgm@gnu.org>
parents:
87097
diff
changeset
|
31 |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
32 (eval-when-compile |
86154 | 33 (require 'cl)) |
34 (defvar tool-bar-mode) | |
19521
6f6cf9184e93
Require cl at compile time.
Richard M. Stallman <rms@gnu.org>
parents:
18575
diff
changeset
|
35 |
17493 | 36 (require 'gnus) |
37 (require 'gnus-start) | |
38 (require 'nnmail) | |
39 (require 'gnus-spec) | |
40 (require 'gnus-int) | |
41 (require 'gnus-range) | |
42 (require 'gnus-win) | |
43 (require 'gnus-undo) | |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
44 (require 'gmm-utils) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
45 (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
|
46 (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
|
47 |
62943
11d53dd5abd9
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-345
Miles Bader <miles@gnu.org>
parents:
62907
diff
changeset
|
48 (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
|
49 (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
|
50 (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
|
51 (require 'gnus-sum)) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
52 (unless (boundp 'gnus-cache-active-hashtb) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
53 (defvar gnus-cache-active-hashtb nil))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
54 |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
55 (autoload 'gnus-agent-total-fetched-for "gnus-agent") |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
56 (autoload 'gnus-cache-total-fetched-for "gnus-cache") |
17493 | 57 |
111138
11259a64bfc0
gnus-sum.el (gnus-summary-select-article): Make sure we have the original article buffer live.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111129
diff
changeset
|
58 (autoload 'gnus-group-make-nnir-group "nnir") |
11259a64bfc0
gnus-sum.el (gnus-summary-select-article): Make sure we have the original article buffer live.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111129
diff
changeset
|
59 |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
60 (defcustom gnus-no-groups-message "No Gnus is good news" |
17493 | 61 "*Message displayed by Gnus when no groups are available." |
62 :group 'gnus-start | |
63 :type 'string) | |
64 | |
65 (defcustom gnus-keep-same-level nil | |
66 "*Non-nil means that the next newsgroup after the current will be on the same level. | |
67 When you type, for instance, `n' after reading the last article in the | |
68 current newsgroup, you will go to the next newsgroup. If this variable | |
69 is nil, the next newsgroup will be the next from the group | |
70 buffer. | |
71 If this variable is non-nil, Gnus will either put you in the | |
72 next newsgroup with the same level, or, if no such newsgroup is | |
73 available, the next newsgroup with the lowest possible level higher | |
74 than the current level. | |
75 If this variable is `best', Gnus will make the next newsgroup the one | |
76 with the best level." | |
77 :group 'gnus-group-levels | |
78 :type '(choice (const nil) | |
79 (const best) | |
80 (sexp :tag "other" t))) | |
81 | |
82 (defcustom gnus-group-goto-unread t | |
83 "*If non-nil, movement commands will go to the next unread and subscribed group." | |
84 :link '(custom-manual "(gnus)Group Maneuvering") | |
85 :group 'gnus-group-various | |
86 :type 'boolean) | |
87 | |
88 (defcustom gnus-goto-next-group-when-activating t | |
89 "*If non-nil, the \\<gnus-group-mode-map>\\[gnus-group-get-new-news-this-group] command will advance point to the next group." | |
90 :link '(custom-manual "(gnus)Scanning New Messages") | |
91 :group 'gnus-group-various | |
92 :type 'boolean) | |
93 | |
94 (defcustom gnus-permanently-visible-groups nil | |
95 "*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
|
96 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
|
97 unread articles in the groups. |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
98 |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
99 If nil, no groups are permanently visible." |
17493 | 100 :group 'gnus-group-listing |
24834
d0ccf995f1ae
(gnus-permanently-visible-groups): Fix custom type.
Karl Heuer <kwzh@gnu.org>
parents:
24357
diff
changeset
|
101 :type '(choice regexp (const nil))) |
17493 | 102 |
104692 | 103 (defcustom gnus-safe-html-newsgroups "\\`nnrss[+:]" |
104 "Groups in which links in html articles are considered all safe. | |
105 The value may be a regexp matching those groups, a list of group names, | |
106 or nil. This overrides `mm-w3m-safe-url-regexp' (which see). This is | |
107 effective only when emacs-w3m renders html articles, i.e., in the case | |
108 `mm-text-html-renderer' is set to `w3m'." | |
109 :version "23.2" | |
110 :group 'gnus-group-various | |
111 :type '(choice regexp | |
112 (repeat :tag "List of group names" (string :tag "Group")) | |
113 (const nil))) | |
114 | |
17493 | 115 (defcustom gnus-list-groups-with-ticked-articles t |
116 "*If non-nil, list groups that have only ticked articles. | |
117 If nil, only list groups that have unread articles." | |
118 :group 'gnus-group-listing | |
119 :type 'boolean) | |
120 | |
121 (defcustom gnus-group-default-list-level gnus-level-subscribed | |
111209
c1bfed865afd
gnus-group.el: Make gnus-group-default-list-level possibly a function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111197
diff
changeset
|
122 "Default listing level. |
17493 | 123 Ignored if `gnus-group-use-permanent-levels' is non-nil." |
124 :group 'gnus-group-listing | |
111209
c1bfed865afd
gnus-group.el: Make gnus-group-default-list-level possibly a function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111197
diff
changeset
|
125 :type '(choice (integer :tag "Level") |
c1bfed865afd
gnus-group.el: Make gnus-group-default-list-level possibly a function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111197
diff
changeset
|
126 (function :tag "Function returning level"))) |
17493 | 127 |
128 (defcustom gnus-group-list-inactive-groups t | |
129 "*If non-nil, inactive groups will be listed." | |
130 :group 'gnus-group-listing | |
131 :group 'gnus-group-levels | |
132 :type 'boolean) | |
133 | |
134 (defcustom gnus-group-sort-function 'gnus-group-sort-by-alphabet | |
135 "*Function used for sorting the group buffer. | |
136 This function will be called with group info entries as the arguments | |
137 for the groups to be sorted. Pre-made functions include | |
138 `gnus-group-sort-by-alphabet', `gnus-group-sort-by-real-name', | |
139 `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
|
140 `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
|
141 `gnus-group-sort-by-server', and `gnus-group-sort-by-rank'. |
17493 | 142 |
74150
361d95731e62
(gnus-group-sort-function, gnus-group-line-format, gnus-group-mode,
Juanma Barranquero <lekktu@gmail.com>
parents:
73487
diff
changeset
|
143 This variable can also be a list of sorting functions. In that case, |
17493 | 144 the most significant sort function should be the last function in the |
145 list." | |
146 :group 'gnus-group-listing | |
147 :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
|
148 :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
|
149 (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
|
150 :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
|
151 (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
|
152 (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
|
153 (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
|
154 (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
|
155 (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
|
156 (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
|
157 (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
|
158 (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
|
159 (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
|
160 (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
|
161 (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
|
162 |
110142
1206368c6f20
gnus-group.el (gnus-group-line-format): Remove %O (moderated) from group line format, since it isn't very interesting.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110102
diff
changeset
|
163 (defcustom gnus-group-line-format "%M\%S\%p\%P\%5y:%B%(%g%)\n" |
17493 | 164 "*Format of group lines. |
165 It works along the same lines as a normal formatting string, | |
166 with some simple extensions. | |
167 | |
168 %M Only marked articles (character, \"*\" or \" \") | |
169 %S Whether the group is subscribed (character, \"U\", \"K\", \"Z\" or \" \") | |
170 %L Level of subscribedness (integer) | |
171 %N Number of unread articles (integer) | |
172 %I Number of dormant articles (integer) | |
173 %i Number of ticked and dormant (integer) | |
174 %T Number of ticked articles (integer) | |
175 %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
|
176 %U Number of unseen articles (integer) |
17493 | 177 %t Estimated total number of articles (integer) |
178 %y Number of unread, unticked articles (integer) | |
179 %G Group name (string) | |
180 %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
|
181 %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
|
182 %C Group comment (string) |
17493 | 183 %D Group description (string) |
184 %s Select method (string) | |
185 %o Moderated group (char, \"m\") | |
186 %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
|
187 %B Whether a summary buffer for the group is open (char, \"*\") |
17493 | 188 %O Moderated group (string, \"(m)\" or \"\") |
189 %P Topic indentation (string) | |
190 %m Whether there is new(ish) mail in the group (char, \"%\") | |
191 %n Select from where (string) | |
192 %z A string that look like `<%s:%n>' if a foreign select method is used | |
193 %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
|
194 %E Icon as defined by `gnus-group-icon-list'. |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
195 %F The disk space used by the articles fetched by both the cache and agent. |
17493 | 196 %u User defined specifier. The next character in the format string should |
197 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
|
198 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
|
199 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
|
200 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
|
201 from any other group specifier. |
17493 | 202 |
203 Note that this format specification is not always respected. For | |
204 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
|
205 is ignored altogether. If the spec is changed considerably, your |
17493 | 206 output may end up looking strange when listing both alive and killed |
207 groups. | |
208 | |
209 If you use %o or %O, reading the active file will be slower and quite | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
210 a bit of extra memory will be used. %D and %F will also worsen |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
211 performance. Also note that if you change the format specification to |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
212 include any of these specs, you must probably re-start Gnus to see |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
213 them go into effect. |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
214 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
215 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
|
216 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
|
217 :link '(custom-manual "(gnus)Formatting Variables") |
17493 | 218 :group 'gnus-group-visual |
219 :type 'string) | |
220 | |
221 (defcustom gnus-group-mode-line-format "Gnus: %%b {%M\%:%S}" | |
222 "*The format specification for the group mode line. | |
223 It works along the same lines as a normal formatting string, | |
224 with some simple extensions: | |
225 | |
226 %S The native news server. | |
227 %M The native select method. | |
228 %: \":\" if %S isn't \"\"." | |
229 :group 'gnus-group-visual | |
230 :type 'string) | |
231 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
232 ;; 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
|
233 (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
|
234 (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
|
235 (add-hook 'gnus-group-mode-hook 'gnus-xmas-setup-group-toolbar)) |
17493 | 236 |
237 (defcustom gnus-group-menu-hook nil | |
238 "Hook run after the creation of the group mode menu." | |
239 :group 'gnus-group-various | |
240 :type 'hook) | |
241 | |
242 (defcustom gnus-group-catchup-group-hook nil | |
243 "Hook run when catching up a group from the group buffer." | |
244 :group 'gnus-group-various | |
245 :link '(custom-manual "(gnus)Group Data") | |
246 :type 'hook) | |
247 | |
248 (defcustom gnus-group-update-group-hook nil | |
249 "Hook called when updating group lines." | |
250 :group 'gnus-group-visual | |
251 :type 'hook) | |
252 | |
253 (defcustom gnus-group-prepare-function 'gnus-group-prepare-flat | |
254 "*A function that is called to generate the group buffer. | |
255 The function is called with three arguments: The first is a number; | |
256 all group with a level less or equal to that number should be listed, | |
257 if the second is non-nil, empty groups should also be displayed. If | |
258 the third is non-nil, it is a number. No groups with a level lower | |
259 than this number should be displayed. | |
260 | |
261 The only current function implemented is `gnus-group-prepare-flat'." | |
262 :group 'gnus-group-listing | |
263 :type 'function) | |
264 | |
265 (defcustom gnus-group-prepare-hook nil | |
266 "Hook called after the group buffer has been generated. | |
267 If you want to modify the group buffer, you can use this hook." | |
268 :group 'gnus-group-listing | |
269 :type 'hook) | |
270 | |
271 (defcustom gnus-suspend-gnus-hook nil | |
272 "Hook called when suspending (not exiting) Gnus." | |
273 :group 'gnus-exit | |
274 :type 'hook) | |
275 | |
276 (defcustom gnus-exit-gnus-hook nil | |
277 "Hook called when exiting Gnus." | |
278 :group 'gnus-exit | |
279 :type 'hook) | |
280 | |
281 (defcustom gnus-after-exiting-gnus-hook nil | |
282 "Hook called after exiting Gnus." | |
283 :group 'gnus-exit | |
284 :type 'hook) | |
285 | |
110486
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
286 (defcustom gnus-group-update-hook nil |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
287 "Hook called when a group line is changed." |
17493 | 288 :group 'gnus-group-visual |
110502
10e44274dbb4
gnus-group.el (gnus-group-update-hook): Add missing version.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110486
diff
changeset
|
289 :version "24.1" |
17493 | 290 :type 'hook) |
291 | |
292 (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
|
293 '(("(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
|
294 "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
|
295 (nntp "Gmane" |
6f5da26b0df1
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-690
Miles Bader <miles@gnu.org>
parents:
64754
diff
changeset
|
296 (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
|
297 ("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
|
298 "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
|
299 (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
|
300 (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
|
301 ("Local Gnus help group" |
17493 | 302 "gnus-help" |
303 (nndoc "gnus-help" | |
304 (nndoc-article-type mbox) | |
305 (eval `(nndoc-address | |
306 ,(let ((file (nnheader-find-etc-directory | |
307 "gnus-tut.txt" t))) | |
308 (unless file | |
309 (error "Couldn't find doc group")) | |
310 file)))))) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
311 "*Alist of useful group-server pairs." |
17493 | 312 :group 'gnus-group-listing |
313 :type '(repeat (list (string :tag "Description") | |
314 (string :tag "Name") | |
315 (sexp :tag "Method")))) | |
316 | |
317 (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
|
318 '(;; Mail. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
319 ((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
|
320 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
|
321 ((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
|
322 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
|
323 ((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
|
324 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
|
325 ((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
|
326 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
|
327 ((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
|
328 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
|
329 ((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
|
330 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
|
331 ((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
|
332 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
|
333 ((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
|
334 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
|
335 ;; News. |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
336 ((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
|
337 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
|
338 ((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
|
339 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
|
340 ((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
|
341 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
|
342 ((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
|
343 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
|
344 ((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
|
345 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
|
346 ((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
|
347 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
|
348 ((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
|
349 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
|
350 ((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
|
351 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
|
352 ((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
|
353 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
|
354 ((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
|
355 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
|
356 ((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
|
357 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
|
358 ((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
|
359 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
|
360 ((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
|
361 gnus-group-news-low-empty) |
17493 | 362 (t . |
63480
53e7abe8917f
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Miles Bader <miles@gnu.org>
parents:
62943
diff
changeset
|
363 gnus-group-news-low)) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
364 "*Controls the highlighting of group buffer lines. |
17493 | 365 |
366 Below is a list of `Form'/`Face' pairs. When deciding how a a | |
367 particular group line should be displayed, each form is | |
368 evaluated. The content of the face field after the first true form is | |
369 used. You can change how those group lines are displayed by | |
370 editing the face field. | |
371 | |
372 It is also possible to change and add form fields, but currently that | |
373 requires an understanding of Lisp expressions. Hopefully this will | |
374 change in a future release. For now, you can use the following | |
375 variables in the Lisp expression: | |
376 | |
377 group: The name of the group. | |
378 unread: The number of unread articles in the group. | |
379 method: The select method used. | |
380 mailp: Whether it's a mail group or not. | |
381 level: The level of the group. | |
382 score: The score of the group. | |
383 ticked: The number of ticked articles." | |
384 :group 'gnus-group-visual | |
385 :type '(repeat (cons (sexp :tag "Form") face))) | |
79180
2de3ac5bebfe
(gnus-group-highlight): Mark as risky.
Richard M. Stallman <rms@gnu.org>
parents:
78224
diff
changeset
|
386 (put 'gnus-group-highlight 'risky-local-variable t) |
17493 | 387 |
388 (defcustom gnus-new-mail-mark ?% | |
389 "Mark used for groups with new mail." | |
390 :group 'gnus-group-visual | |
391 :type 'character) | |
392 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
393 (defgroup gnus-group-icons nil |
63975
90e4b76eb90b
(gnus-group-icons): Fix typo in docstring.
Juanma Barranquero <lekktu@gmail.com>
parents:
63480
diff
changeset
|
394 "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
|
395 :group 'gnus-group-visual) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
396 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
397 (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
|
398 nil |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
399 "*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
|
400 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
401 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
|
402 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
|
403 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
|
404 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
|
405 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
|
406 `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
|
407 file. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
408 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
409 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
|
410 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
|
411 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
|
412 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
|
413 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
414 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
|
415 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
|
416 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
|
417 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
|
418 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
|
419 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
|
420 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
|
421 :group 'gnus-group-icons |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
422 :type '(repeat (cons (sexp :tag "Form") file))) |
85888 | 423 (put 'gnus-group-icon-list 'risky-local-variable t) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
424 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
425 (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
|
426 "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
|
427 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
428 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
|
429 (((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
|
430 :version "21.1" |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
431 :group 'gnus-charset |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
432 :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
|
433 |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
434 (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
|
435 (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
|
436 (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
|
437 '((".*" . utf-8)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
438 nil) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
439 "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
|
440 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
441 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
|
442 ((\"\\.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
|
443 :group 'gnus-charset |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
444 :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
|
445 |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
446 (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
|
447 "Default prompt for `gnus-group-jump-to-group'. |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
448 |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
449 If non-nil, the value should be a string or an alist. If it is a string, |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
450 e.g. \"nnml:\", in which case `gnus-group-jump-to-group' offers \"Group: |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
451 nnml:\" in the minibuffer prompt. |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
452 |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
453 If it is an alist, it must consist of \(NUMBER . PROMPT\) pairs, for example: |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
454 \((1 . \"\") (2 . \"nnfolder+archive:\")). The element with number 0 is |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
455 used when no prefix argument is given to `gnus-group-jump-to-group'." |
59996
aac0a33f5772
Change release version from 21.4 to 22.1 throughout.
Kim F. Storm <storm@cua.dk>
parents:
59027
diff
changeset
|
456 :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
|
457 :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
|
458 :type '(choice (string :tag "Prompt string") |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
459 (const :tag "Empty" nil) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
460 (repeat (cons (integer :tag "Argument") |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
461 (string :tag "Prompt string"))))) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
462 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
463 (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
|
464 "*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
|
465 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
|
466 simple manner.") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
467 |
17493 | 468 ;;; Internal variables |
469 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
470 (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
|
471 (defvar gnus-group-is-exiting-without-update-p nil) |
17493 | 472 (defvar gnus-group-sort-alist-function 'gnus-group-sort-flat |
473 "Function for sorting the group buffer.") | |
474 | |
475 (defvar gnus-group-sort-selected-function 'gnus-group-sort-selected-flat | |
476 "Function for sorting the selected groups in the group buffer.") | |
477 | |
478 (defvar gnus-group-indentation-function nil) | |
479 (defvar gnus-goto-missing-group-function nil) | |
480 (defvar gnus-group-update-group-function nil) | |
481 (defvar gnus-group-goto-next-group-function nil | |
482 "Function to override finding the next group after listing groups.") | |
483 | |
484 (defvar gnus-group-edit-buffer nil) | |
485 | |
486 (defvar gnus-group-line-format-alist | |
487 `((?M gnus-tmp-marked-mark ?c) | |
488 (?S gnus-tmp-subscribed ?c) | |
489 (?L gnus-tmp-level ?d) | |
490 (?N (cond ((eq number t) "*" ) | |
491 ((numberp number) | |
492 (int-to-string | |
493 (+ number | |
494 (gnus-range-length (cdr (assq 'dormant gnus-tmp-marked))) | |
495 (gnus-range-length (cdr (assq 'tick gnus-tmp-marked)))))) | |
496 (t number)) ?s) | |
497 (?R gnus-tmp-number-of-read ?s) | |
110465
b7b7e970d807
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110433
diff
changeset
|
498 (?U (if (gnus-active gnus-tmp-group) |
b7b7e970d807
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110433
diff
changeset
|
499 (gnus-number-of-unseen-articles-in-group gnus-tmp-group) |
b7b7e970d807
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110433
diff
changeset
|
500 "*") |
b7b7e970d807
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110433
diff
changeset
|
501 ?s) |
17493 | 502 (?t gnus-tmp-number-total ?d) |
503 (?y gnus-tmp-number-of-unread ?s) | |
504 (?I (gnus-range-length (cdr (assq 'dormant gnus-tmp-marked))) ?d) | |
505 (?T (gnus-range-length (cdr (assq 'tick gnus-tmp-marked))) ?d) | |
506 (?i (+ (gnus-range-length (cdr (assq 'dormant gnus-tmp-marked))) | |
507 (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
|
508 (?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
|
509 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
|
510 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
|
511 ?s) |
17493 | 512 (?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
|
513 (?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
|
514 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
|
515 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
|
516 ?s) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
517 (?C gnus-tmp-comment ?s) |
17493 | 518 (?D gnus-tmp-newsgroup-description ?s) |
519 (?o gnus-tmp-moderated ?c) | |
520 (?O gnus-tmp-moderated-string ?s) | |
521 (?p gnus-tmp-process-marked ?c) | |
522 (?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
|
523 (?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
|
524 '(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
|
525 '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
|
526 ?s) |
17493 | 527 (?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
|
528 (?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
|
529 (?B gnus-tmp-summary-live ?c) |
17493 | 530 (?z gnus-tmp-news-method-string ?s) |
531 (?m (gnus-group-new-mail gnus-tmp-group) ?c) | |
532 (?d (gnus-group-timestamp-string gnus-tmp-group) ?s) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
533 (?u gnus-tmp-user-defined ?s) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
534 (?F (gnus-total-fetched-for gnus-tmp-group) ?s) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
535 )) |
17493 | 536 |
537 (defvar gnus-group-mode-line-format-alist | |
538 `((?S gnus-tmp-news-server ?s) | |
539 (?M gnus-tmp-news-method ?s) | |
540 (?u gnus-tmp-user-defined ?s) | |
541 (?: gnus-tmp-colon ?s))) | |
542 | |
543 (defvar gnus-topic-topology nil | |
544 "The complete topic hierarchy.") | |
545 | |
546 (defvar gnus-topic-alist nil | |
547 "The complete topic-group alist.") | |
548 | |
549 (defvar gnus-group-marked nil) | |
550 | |
551 (defvar gnus-group-list-mode nil) | |
552 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
553 |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
554 (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
|
555 (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
|
556 |
17493 | 557 ;;; |
558 ;;; Gnus group mode | |
559 ;;; | |
560 | |
561 (put 'gnus-group-mode 'mode-class 'special) | |
562 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
563 (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
|
564 " " 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
|
565 "=" 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
|
566 "\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
|
567 "\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
|
568 "\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
|
569 [(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
|
570 "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
|
571 "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
|
572 "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
|
573 "\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
|
574 [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
|
575 [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
|
576 "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
|
577 "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
|
578 "\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
|
579 "\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
|
580 "," 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
|
581 "." 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
|
582 "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
|
583 "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
|
584 "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
|
585 "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
|
586 "\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
|
587 "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
|
588 "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
|
589 "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
|
590 "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
|
591 "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
|
592 "\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
|
593 "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
|
594 "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
|
595 "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
|
596 "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
|
597 "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
|
598 "\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
|
599 "\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
|
600 "\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
|
601 "\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
|
602 "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
|
603 "\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
|
604 "\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
|
605 "\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
|
606 "\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
|
607 "\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
|
608 "\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
|
609 "\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
|
610 "\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
|
611 "\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
|
612 "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
|
613 "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
|
614 "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
|
615 "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
|
616 "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
|
617 "?" 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
|
618 "\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
|
619 "\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
|
620 "^" 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
|
621 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
|
622 [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
|
623 "<" 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
|
624 ">" 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
|
625 "\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
|
626 "\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
|
627 "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
|
628 "\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
|
629 "\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
|
630 "#" 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
|
631 "\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
|
632 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
633 (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
|
634 "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
|
635 "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
|
636 "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
|
637 "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
|
638 "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
|
639 "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
|
640 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
641 (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
|
642 "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
|
643 "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
|
644 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
645 (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
|
646 "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
|
647 "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
|
648 "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
|
649 "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
|
650 "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
|
651 "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
|
652 "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
|
653 "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
|
654 "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
|
655 "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
|
656 "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
|
657 "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
|
658 "w" gnus-group-make-web-group |
111138
11259a64bfc0
gnus-sum.el (gnus-summary-select-article): Make sure we have the original article buffer live.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111129
diff
changeset
|
659 "G" gnus-group-make-nnir-group |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
660 "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
|
661 "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
|
662 "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
|
663 "c" gnus-group-customize |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
664 "z" gnus-group-compact-group |
110465
b7b7e970d807
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110433
diff
changeset
|
665 "x" gnus-group-expunge-group |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
666 "\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
|
667 [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
|
668 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
669 (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
|
670 "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
|
671 "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
|
672 "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
|
673 "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
|
674 "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
|
675 "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
|
676 "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
|
677 "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
|
678 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
679 (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
|
680 "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
|
681 "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
|
682 "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
|
683 "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
|
684 "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
|
685 "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
|
686 "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
|
687 "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
|
688 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
689 (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
|
690 "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
|
691 "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
|
692 "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
|
693 "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
|
694 "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
|
695 "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
|
696 "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
|
697 "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
|
698 "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
|
699 "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
|
700 "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
|
701 "?" 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
|
702 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
703 (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
|
704 "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
|
705 "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
|
706 "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
|
707 "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
|
708 "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
|
709 "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
|
710 "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
|
711 "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
|
712 "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
|
713 "?" 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
|
714 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
715 (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
|
716 "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
|
717 "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
|
718 "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
|
719 "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
|
720 "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
|
721 "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
|
722 "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
|
723 "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
|
724 "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
|
725 "?" 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
|
726 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
727 (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
|
728 "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
|
729 "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
|
730 "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
|
731 "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
|
732 "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
|
733 "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
|
734 "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
|
735 "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
|
736 "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
|
737 "?" 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
|
738 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
739 (gnus-define-keys (gnus-group-score-map "W" gnus-group-mode-map) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
740 "f" gnus-score-flush-cache |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
741 "e" gnus-score-edit-all-score) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
742 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
743 (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
|
744 "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
|
745 "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
|
746 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
747 (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
|
748 "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
|
749 "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
|
750 "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
|
751 "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
|
752 "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
|
753 "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
|
754 "\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
|
755 "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
|
756 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
757 (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
|
758 "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
|
759 (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
|
760 (symbol-value 'gnus-topic-mode))) |
17493 | 761 |
762 (defun gnus-group-make-menu-bar () | |
763 (unless (boundp 'gnus-group-reading-menu) | |
764 | |
765 (easy-menu-define | |
766 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
|
767 `("Group" |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
768 ["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
|
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 ["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
|
772 :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
|
773 ["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
|
774 :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
|
775 :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
|
776 ["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
|
777 :included (gnus-topic-mode-p)] |
17493 | 778 ["See old articles" (gnus-group-select-group 'all) |
779 :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
|
780 ["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
|
781 :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
|
782 :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
|
783 ,@(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
|
784 '(: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
|
785 ["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
|
786 :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
|
787 ,@(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
|
788 '(:help "Mark unread articles in the current group or topic as read"))] |
17493 | 789 ["Catch up all articles" gnus-group-catchup-current-all |
790 (gnus-group-group-name)] | |
791 ["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
|
792 :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
|
793 :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
|
794 ,@(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
|
795 '(: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
|
796 ["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
|
797 :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
|
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 "Check for new messages in current group or topic"))] |
17493 | 800 ["Toggle subscription" gnus-group-unsubscribe-current-group |
801 (gnus-group-group-name)] | |
32965
13cbb629e3ce
(gnus-group-make-menu-bar): Add some :help
Dave Love <fx@gnu.org>
parents:
31785
diff
changeset
|
802 ["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
|
803 ,@(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
|
804 '(:help "Kill (remove) current group"))] |
17493 | 805 ["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
|
806 ["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
|
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 description of the current group"))] |
17493 | 809 ;; Actually one should check, if any of the marked groups gives t for |
810 ;; (gnus-check-backend-function 'request-expire-articles ...) | |
811 ["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
|
812 :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
|
813 :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
|
814 (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
|
815 '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
|
816 (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
|
817 ["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
|
818 :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
|
819 ["Set group level..." gnus-group-set-current-level |
17493 | 820 (gnus-group-group-name)] |
821 ["Select quick" gnus-group-quick-select-group (gnus-group-group-name)] | |
822 ["Customize" gnus-group-customize (gnus-group-group-name)] | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
823 ["Compact" gnus-group-compact-group |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
824 :active (gnus-group-group-name)] |
17493 | 825 ("Edit" |
826 ["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
|
827 :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
|
828 :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
|
829 ["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
|
830 :included (gnus-topic-mode-p)] |
17493 | 831 ["Select method" gnus-group-edit-group-method |
832 (gnus-group-group-name)] | |
833 ["Info" gnus-group-edit-group (gnus-group-group-name)] | |
834 ["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
|
835 ["Global kill file" gnus-group-edit-global-kill t]))) |
17493 | 836 |
837 (easy-menu-define | |
838 gnus-group-group-menu gnus-group-mode-map "" | |
839 '("Groups" | |
840 ("Listing" | |
841 ["List unread subscribed groups" gnus-group-list-groups t] | |
842 ["List (un)subscribed groups" gnus-group-list-all-groups t] | |
843 ["List killed groups" gnus-group-list-killed gnus-killed-list] | |
844 ["List zombie groups" gnus-group-list-zombies gnus-zombie-list] | |
845 ["List level..." gnus-group-list-level t] | |
846 ["Describe all groups" gnus-group-describe-all-groups t] | |
847 ["Group apropos..." gnus-group-apropos t] | |
848 ["Group and description apropos..." gnus-group-description-apropos t] | |
849 ["List groups matching..." gnus-group-list-matching t] | |
850 ["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
|
851 ["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
|
852 ["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
|
853 ["List groups with dormant" gnus-group-list-dormant t]) |
17493 | 854 ("Sort" |
855 ["Default sort" gnus-group-sort-groups t] | |
856 ["Sort by method" gnus-group-sort-groups-by-method t] | |
857 ["Sort by rank" gnus-group-sort-groups-by-rank t] | |
858 ["Sort by score" gnus-group-sort-groups-by-score t] | |
859 ["Sort by level" gnus-group-sort-groups-by-level t] | |
860 ["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
|
861 ["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
|
862 ["Sort by real name" gnus-group-sort-groups-by-real-name t]) |
17493 | 863 ("Sort process/prefixed" |
864 ["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
|
865 (not (gnus-topic-mode-p))] |
17493 | 866 ["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
|
867 (not (gnus-topic-mode-p))] |
17493 | 868 ["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
|
869 (not (gnus-topic-mode-p))] |
17493 | 870 ["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
|
871 (not (gnus-topic-mode-p))] |
17493 | 872 ["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
|
873 (not (gnus-topic-mode-p))] |
17493 | 874 ["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
|
875 (not (gnus-topic-mode-p))] |
17493 | 876 ["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
|
877 (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
|
878 ["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
|
879 (not (gnus-topic-mode-p))]) |
17493 | 880 ("Mark" |
881 ["Mark group" gnus-group-mark-group | |
882 (and (gnus-group-group-name) | |
883 (not (memq (gnus-group-group-name) gnus-group-marked)))] | |
884 ["Unmark group" gnus-group-unmark-group | |
885 (and (gnus-group-group-name) | |
886 (memq (gnus-group-group-name) gnus-group-marked))] | |
887 ["Unmark all" gnus-group-unmark-all-groups gnus-group-marked] | |
888 ["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
|
889 ["Mark region" gnus-group-mark-region :active (gnus-mark-active-p)] |
17493 | 890 ["Mark buffer" gnus-group-mark-buffer t] |
891 ["Execute command" gnus-group-universal-argument | |
892 (or gnus-group-marked (gnus-group-group-name))]) | |
893 ("Subscribe" | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
894 ["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
|
895 ["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
|
896 :active (gnus-mark-active-p)] |
17493 | 897 ["Kill all zombie groups" gnus-group-kill-all-zombies |
898 gnus-zombie-list] | |
899 ["Kill all groups on level..." gnus-group-kill-level t]) | |
900 ("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
|
901 ["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
|
902 ["Add a directory group..." gnus-group-make-directory-group t] |
17493 | 903 ["Add the help group" gnus-group-make-help-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
|
904 ["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
|
905 ["Make a web group..." gnus-group-make-web-group t] |
111138
11259a64bfc0
gnus-sum.el (gnus-summary-select-article): Make sure we have the original article buffer live.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111129
diff
changeset
|
906 ["Make a search group..." gnus-group-make-nnir-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 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
|
908 ["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
|
909 ["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
|
910 ["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
|
911 ["Rename group..." gnus-group-rename-group |
17493 | 912 (gnus-check-backend-function |
913 'request-rename-group (gnus-group-group-name))] | |
914 ["Delete group" gnus-group-delete-group | |
915 (gnus-check-backend-function | |
916 'request-delete-group (gnus-group-group-name))]) | |
917 ("Move" | |
918 ["Next" gnus-group-next-group t] | |
919 ["Previous" gnus-group-prev-group t] | |
920 ["Next unread" gnus-group-next-unread-group t] | |
921 ["Previous unread" gnus-group-prev-unread-group t] | |
922 ["Next unread same level" gnus-group-next-unread-group-same-level t] | |
923 ["Previous unread same level" | |
924 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
|
925 ["Jump to group..." gnus-group-jump-to-group t] |
17493 | 926 ["First unread group" gnus-group-first-unread-group t] |
927 ["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
|
928 ("Sieve" |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
929 ["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
|
930 ["Generate and update" gnus-sieve-update t]) |
17493 | 931 ["Delete bogus groups" gnus-group-check-bogus-groups t] |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
932 ["Find new newsgroups" gnus-group-find-new-groups t] |
17493 | 933 ["Transpose" gnus-group-transpose-groups |
934 (gnus-group-group-name)] | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
935 ["Read a directory as a group..." gnus-group-enter-directory t])) |
17493 | 936 |
937 (easy-menu-define | |
938 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
|
939 `("Gnus" |
17493 | 940 ["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
|
941 ["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
|
942 ["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
|
943 ["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
|
944 ,@(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
|
945 '(: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
|
946 ] |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
947 ["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
|
948 ,@(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
|
949 '(: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
|
950 ] |
17493 | 951 ["Activate all groups" gnus-activate-all-groups t] |
952 ["Restart Gnus" gnus-group-restart t] | |
953 ["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
|
954 ["Browse foreign server..." gnus-group-browse-foreign-server t] |
17493 | 955 ["Enter server buffer" gnus-group-enter-server-mode t] |
956 ["Expire all expirable articles" gnus-group-expire-all-groups t] | |
957 ["Gnus version" gnus-version t] | |
958 ["Save .newsrc files" gnus-group-save-newsrc t] | |
959 ["Suspend Gnus" gnus-group-suspend t] | |
960 ["Clear dribble buffer" gnus-group-clear-dribble t] | |
961 ["Read manual" gnus-info-find-node t] | |
962 ["Flush score cache" gnus-score-flush-cache t] | |
963 ["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
|
964 ["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
|
965 ["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
|
966 ,@(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
|
967 '(:help "Quit reading news"))] |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
968 ["Exit without saving" gnus-group-quit t])) |
17493 | 969 |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
970 (gnus-run-hooks 'gnus-group-menu-hook))) |
17493 | 971 |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
972 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
973 (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
|
974 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
975 (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
|
976 "Update group buffer toolbar. |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
977 Setter function for custom variables." |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
978 (when symbol |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
979 (set-default symbol value)) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
980 ;; (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
|
981 ;; (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
|
982 (when (gnus-alive-p) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
983 (with-current-buffer gnus-group-buffer |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
984 (gnus-group-make-tool-bar t)))) |
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 (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
|
987 'gnus-group-tool-bar-gnome |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
988 'gnus-group-tool-bar-retro) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
989 "Specifies the Gnus group tool bar. |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
990 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
991 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
|
992 `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
|
993 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
|
994 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
995 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
|
996 `gnus-group-tool-bar-retro'." |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
997 :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
|
998 (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
|
999 (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
|
1000 (symbol)) |
92336
5f827896103e
Change defcustom :version from 23.0 to 23.1.
Glenn Morris <rgm@gnu.org>
parents:
92147
diff
changeset
|
1001 :version "23.1" ;; No Gnus |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1002 :initialize 'custom-initialize-default |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1003 :set 'gnus-group-tool-bar-update |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1004 :group 'gnus-group) |
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 (defcustom gnus-group-tool-bar-gnome |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1007 '((gnus-group-post-news "mail/compose") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1008 ;; 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
|
1009 ;; suggest useful commands: |
74791 | 1010 (gnus-agent-toggle-plugged "disconnect" t |
1011 :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
|
1012 :visible (and gnus-agent (not gnus-plugged))) |
74791 | 1013 (gnus-agent-toggle-plugged "connect" t |
1014 :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
|
1015 :visible (and gnus-agent gnus-plugged)) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1016 ;; 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
|
1017 ;; should have a better help text. |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1018 (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
|
1019 :visible (and gnus-agent gnus-plugged) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1020 :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
|
1021 (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
|
1022 :visible (or (not gnus-agent) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1023 gnus-plugged)) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1024 ;; 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
|
1025 (gnus-topic-read-group "open" nil |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1026 :visible (and (boundp 'gnus-topic-mode) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1027 gnus-topic-mode)) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1028 (gnus-group-read-group "open" nil |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1029 :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
|
1030 gnus-topic-mode))) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1031 ;; (gnus-group-find-new-groups "???" nil) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1032 (gnus-group-save-newsrc "save") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1033 (gnus-group-describe-group "describe") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1034 (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
|
1035 (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
|
1036 (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
|
1037 (gnus-group-exit "exit") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1038 (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
|
1039 (gnus-info-find-node "help")) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1040 "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
|
1041 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1042 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
|
1043 :type '(repeat gmm-tool-bar-item) |
92336
5f827896103e
Change defcustom :version from 23.0 to 23.1.
Glenn Morris <rgm@gnu.org>
parents:
92147
diff
changeset
|
1044 :version "23.1" ;; No Gnus |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1045 :initialize 'custom-initialize-default |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1046 :set 'gnus-group-tool-bar-update |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1047 :group 'gnus-group) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1048 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1049 (defcustom gnus-group-tool-bar-retro |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1050 '((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
|
1051 (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
|
1052 (gnus-group-catchup-current "gnus/catchup") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1053 (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
|
1054 (gnus-group-subscribe "gnus/subscribe" t |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1055 :help "Subscribe to the current group") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1056 (gnus-group-unsubscribe "gnus/unsubscribe" t |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1057 :help "Unsubscribe from the current group") |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1058 (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
|
1059 "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
|
1060 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1061 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
|
1062 :type '(repeat gmm-tool-bar-item) |
92336
5f827896103e
Change defcustom :version from 23.0 to 23.1.
Glenn Morris <rgm@gnu.org>
parents:
92147
diff
changeset
|
1063 :version "23.1" ;; No Gnus |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1064 :initialize 'custom-initialize-default |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1065 :set 'gnus-group-tool-bar-update |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1066 :group 'gnus-group) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1067 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1068 (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
|
1069 "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
|
1070 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
|
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 'gmm-tool-bar-zap-list |
92336
5f827896103e
Change defcustom :version from 23.0 to 23.1.
Glenn Morris <rgm@gnu.org>
parents:
92147
diff
changeset
|
1074 :version "23.1" ;; No Gnus |
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 (defvar image-load-path) |
95816
23d8c6097dcd
(tool-bar-map): Define for compiler.
Glenn Morris <rgm@gnu.org>
parents:
94662
diff
changeset
|
1080 (defvar tool-bar-map) |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1081 |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1082 (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
|
1083 "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
|
1084 When FORCE, rebuild the tool bar." |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1085 (when (and (not (featurep 'xemacs)) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1086 (boundp 'tool-bar-mode) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1087 tool-bar-mode |
111230
bf96ffd54855
gnus-group.el (gnus-group-make-tool-bar): Check for display graphic capability before doing anything.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111209
diff
changeset
|
1088 (display-graphic-p) |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1089 (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
|
1090 (let* ((load-path |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1091 (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
|
1092 "gnus/toggle-subscription.xpm" |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1093 nil t)) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1094 (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
|
1095 (when (boundp 'image-load-path) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1096 image-load-path))) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1097 (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
|
1098 gnus-group-tool-bar-zap-list |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1099 'gnus-group-mode-map))) |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1100 (if map |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1101 (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
|
1102 gnus-group-tool-bar-map) |
32965
13cbb629e3ce
(gnus-group-make-menu-bar): Add some :help
Dave Love <fx@gnu.org>
parents:
31785
diff
changeset
|
1103 |
17493 | 1104 (defun gnus-group-mode () |
1105 "Major mode for reading news. | |
1106 | |
1107 All normal editing commands are switched off. | |
1108 \\<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
|
1109 The group buffer lists (some of) the groups available. For instance, |
17493 | 1110 `\\[gnus-group-list-groups]' will list all subscribed groups with unread articles, while `\\[gnus-group-list-zombies]' |
1111 lists all zombie groups. | |
1112 | |
1113 Groups that are displayed can be entered with `\\[gnus-group-read-group]'. To subscribe | |
1114 to a group not displayed, type `\\[gnus-group-unsubscribe-group]'. | |
1115 | |
1116 For more in-depth information on this mode, read the manual (`\\[gnus-info-find-node]'). | |
1117 | |
1118 The following commands are available: | |
1119 | |
1120 \\{gnus-group-mode-map}" | |
1121 (interactive) | |
33311
fa5c3f22519c
(gnus-group-toolbar-map): New variable.
Dave Love <fx@gnu.org>
parents:
32969
diff
changeset
|
1122 (kill-all-local-variables) |
17493 | 1123 (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
|
1124 (gnus-group-make-menu-bar) |
13cbb629e3ce
(gnus-group-make-menu-bar): Add some :help
Dave Love <fx@gnu.org>
parents:
31785
diff
changeset
|
1125 (gnus-group-make-tool-bar)) |
17493 | 1126 (gnus-simplify-mode-line) |
1127 (setq major-mode 'gnus-group-mode) | |
1128 (setq mode-name "Group") | |
1129 (gnus-group-set-mode-line) | |
1130 (setq mode-line-process nil) | |
1131 (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
|
1132 (buffer-disable-undo) |
17493 | 1133 (setq truncate-lines t) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1134 (setq buffer-read-only t |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1135 show-trailing-whitespace nil) |
17493 | 1136 (gnus-set-default-directory) |
1137 (gnus-update-format-specifications nil 'group 'group-mode) | |
1138 (gnus-update-group-mark-positions) | |
1139 (when gnus-use-undo | |
1140 (gnus-undo-mode 1)) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1141 (when gnus-slave |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1142 (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
|
1143 (gnus-run-mode-hooks 'gnus-group-mode-hook)) |
17493 | 1144 |
1145 (defun gnus-update-group-mark-positions () | |
1146 (save-excursion | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1147 (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
|
1148 (gnus-group-update-hook nil) |
17493 | 1149 (gnus-group-marked '("dummy.group")) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1150 (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
|
1151 (topic "")) |
17493 | 1152 (gnus-set-active "dummy.group" '(0 . 0)) |
1153 (gnus-set-work-buffer) | |
1154 (gnus-group-insert-group-line "dummy.group" 0 nil 0 nil) | |
1155 (goto-char (point-min)) | |
1156 (setq gnus-group-mark-positions | |
57321
3381cb76bac3
* gnus-group.el (gnus-update-group-mark-positions):
Juri Linkov <juri@jurta.org>
parents:
57153
diff
changeset
|
1157 (list (cons 'process (and (search-forward |
92428
0e803f4d8cd5
(gnus-update-group-mark-positions): Use mm-string-to-multibyte.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
92336
diff
changeset
|
1158 (mm-string-to-multibyte "\200") nil t) |
0e803f4d8cd5
(gnus-update-group-mark-positions): Use mm-string-to-multibyte.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
92336
diff
changeset
|
1159 (- (point) (point-min) 1)))))))) |
17493 | 1160 |
1161 (defun gnus-mouse-pick-group (e) | |
1162 "Enter the group under the mouse pointer." | |
1163 (interactive "e") | |
1164 (mouse-set-point e) | |
1165 (gnus-group-read-group nil)) | |
1166 | |
111209
c1bfed865afd
gnus-group.el: Make gnus-group-default-list-level possibly a function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111197
diff
changeset
|
1167 (defun gnus-group-default-list-level () |
c1bfed865afd
gnus-group.el: Make gnus-group-default-list-level possibly a function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111197
diff
changeset
|
1168 "Return the real value for `gnus-group-default-list-level'." |
c1bfed865afd
gnus-group.el: Make gnus-group-default-list-level possibly a function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111197
diff
changeset
|
1169 (if (functionp gnus-group-default-list-level) |
c1bfed865afd
gnus-group.el: Make gnus-group-default-list-level possibly a function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111197
diff
changeset
|
1170 (funcall gnus-group-default-list-level) |
c1bfed865afd
gnus-group.el: Make gnus-group-default-list-level possibly a function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111197
diff
changeset
|
1171 gnus-group-default-list-level)) |
c1bfed865afd
gnus-group.el: Make gnus-group-default-list-level possibly a function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111197
diff
changeset
|
1172 |
17493 | 1173 ;; Look at LEVEL and find out what the level is really supposed to be. |
1174 ;; If LEVEL is non-nil, LEVEL will be returned, if not, what happens | |
1175 ;; will depend on whether `gnus-group-use-permanent-levels' is used. | |
1176 (defun gnus-group-default-level (&optional level number-or-nil) | |
1177 (cond | |
1178 (gnus-group-use-permanent-levels | |
1179 (or (setq gnus-group-use-permanent-levels | |
1180 (or level (if (numberp gnus-group-use-permanent-levels) | |
1181 gnus-group-use-permanent-levels | |
111209
c1bfed865afd
gnus-group.el: Make gnus-group-default-list-level possibly a function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111197
diff
changeset
|
1182 (or (gnus-group-default-list-level) |
17493 | 1183 gnus-level-subscribed)))) |
111209
c1bfed865afd
gnus-group.el: Make gnus-group-default-list-level possibly a function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111197
diff
changeset
|
1184 (gnus-group-default-list-level) gnus-level-subscribed)) |
17493 | 1185 (number-or-nil |
1186 level) | |
1187 (t | |
111209
c1bfed865afd
gnus-group.el: Make gnus-group-default-list-level possibly a function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111197
diff
changeset
|
1188 (or level (gnus-group-default-list-level) gnus-level-subscribed)))) |
17493 | 1189 |
1190 (defun gnus-group-setup-buffer () | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1191 (set-buffer (gnus-get-buffer-create gnus-group-buffer)) |
17493 | 1192 (unless (eq major-mode 'gnus-group-mode) |
110763
0fe64d68a522
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110689
diff
changeset
|
1193 (gnus-group-mode))) |
17493 | 1194 |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1195 (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
|
1196 (if (null method) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1197 (setq method (gnus-find-method-for-group group))) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1198 (let ((item (or (assoc method gnus-group-name-charset-method-alist) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1199 (and (consp method) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1200 (assoc (list (car method) (cadr method)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1201 gnus-group-name-charset-method-alist)))) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1202 (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
|
1203 result) |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49274
diff
changeset
|
1204 (if item |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1205 (cdr item) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1206 (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
|
1207 (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
|
1208 (setq alist nil |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1209 result (cdr item)))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1210 result))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1211 |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1212 (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
|
1213 ;; 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
|
1214 (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
|
1215 (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
|
1216 string)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1217 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1218 (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
|
1219 (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
|
1220 (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
|
1221 |
17493 | 1222 (defun gnus-group-list-groups (&optional level unread lowest) |
1223 "List newsgroups with level LEVEL or lower that have unread articles. | |
1224 Default is all subscribed groups. | |
1225 If argument UNREAD is non-nil, groups with no unread articles are also | |
1226 listed. | |
1227 | |
1228 Also see the `gnus-group-use-permanent-levels' variable." | |
1229 (interactive | |
1230 (list (if current-prefix-arg | |
1231 (prefix-numeric-value current-prefix-arg) | |
1232 (or | |
1233 (gnus-group-default-level nil t) | |
111209
c1bfed865afd
gnus-group.el: Make gnus-group-default-list-level possibly a function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111197
diff
changeset
|
1234 (gnus-group-default-list-level) |
17493 | 1235 gnus-level-subscribed)))) |
1236 (unless level | |
1237 (setq level (car gnus-group-list-mode) | |
1238 unread (cdr gnus-group-list-mode))) | |
1239 (setq level (gnus-group-default-level level)) | |
1240 (gnus-group-setup-buffer) | |
1241 (gnus-update-format-specifications nil 'group 'group-mode) | |
1242 (let ((case-fold-search nil) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1243 (props (text-properties-at (point-at-bol))) |
17493 | 1244 (empty (= (point-min) (point-max))) |
1245 (group (gnus-group-group-name)) | |
1246 number) | |
1247 (set-buffer gnus-group-buffer) | |
1248 (setq number (funcall gnus-group-prepare-function level unread lowest)) | |
1249 (when (or (and (numberp number) | |
1250 (zerop number)) | |
1251 (zerop (buffer-size))) | |
1252 ;; No groups in the buffer. | |
110433
33cf78a271ef
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110189
diff
changeset
|
1253 (gnus-message 5 "%s" gnus-no-groups-message)) |
17493 | 1254 ;; We have some groups displayed. |
1255 (goto-char (point-max)) | |
1256 (when (or (not gnus-group-goto-next-group-function) | |
1257 (not (funcall gnus-group-goto-next-group-function | |
1258 group props))) | |
1259 (cond | |
1260 (empty | |
1261 (goto-char (point-min))) | |
1262 ((not group) | |
1263 ;; Go to the first group with unread articles. | |
1264 (gnus-group-search-forward t)) | |
1265 (t | |
1266 ;; Find the right group to put point on. If the current group | |
1267 ;; has disappeared in the new listing, try to find the next | |
1268 ;; one. If no next one can be found, just leave point at the | |
1269 ;; first newsgroup in the buffer. | |
1270 (when (not (gnus-goto-char | |
1271 (text-property-any | |
1272 (point-min) (point-max) | |
1273 'gnus-group (gnus-intern-safe | |
1274 group gnus-active-hashtb)))) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1275 (let ((newsrc (cdddr (gnus-group-entry group)))) |
17493 | 1276 (while (and newsrc |
1277 (not (gnus-goto-char | |
1278 (text-property-any | |
1279 (point-min) (point-max) 'gnus-group | |
1280 (gnus-intern-safe | |
1281 (caar newsrc) gnus-active-hashtb))))) | |
1282 (setq newsrc (cdr newsrc))) | |
1283 (unless newsrc | |
1284 (goto-char (point-max)) | |
1285 (forward-line -1))))))) | |
1286 ;; Adjust cursor point. | |
1287 (gnus-group-position-point))) | |
1288 | |
1289 (defun gnus-group-list-level (level &optional all) | |
1290 "List groups on LEVEL. | |
1291 If ALL (the prefix), also list groups that have no unread articles." | |
1292 (interactive "nList groups on level: \nP") | |
1293 (gnus-group-list-groups level all level)) | |
1294 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1295 (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
|
1296 (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
|
1297 (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
|
1298 (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
|
1299 (cond |
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-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
|
1301 ((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
|
1302 (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
|
1303 (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
|
1304 (not test) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1305 test)))))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1306 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1307 (defun gnus-group-prepare-flat (level &optional predicate lowest regexp) |
17493 | 1308 "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
|
1309 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
|
1310 if it is t, list groups that have no unread articles. |
17493 | 1311 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
|
1312 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
|
1313 if it is a string, only list groups matching REGEXP." |
17493 | 1314 (set-buffer gnus-group-buffer) |
1315 (let ((buffer-read-only nil) | |
1316 (newsrc (cdr gnus-newsrc-alist)) | |
1317 (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
|
1318 (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
|
1319 (copy-sequence gnus-group-listed-groups))) |
17493 | 1320 info clevel unread group params) |
1321 (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
|
1322 (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
|
1323 gnus-group-listed-groups) |
17493 | 1324 ;; List living groups. |
1325 (while newsrc | |
1326 (setq info (car newsrc) | |
1327 group (gnus-info-group info) | |
1328 params (gnus-info-params info) | |
1329 newsrc (cdr newsrc) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1330 unread (gnus-group-unread group)) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1331 (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
|
1332 (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
|
1333 (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
|
1334 group |
106364
2f2ce7005c10
(gnus-group-prepare-flat): Check also whether groups with no unread article
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
104692
diff
changeset
|
1335 (and (or unread ; This group might be unchecked |
2f2ce7005c10
(gnus-group-prepare-flat): Check also whether groups with no unread article
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
104692
diff
changeset
|
1336 predicate) ; Check if this group should be listed |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1337 (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
|
1338 (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
|
1339 (<= (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
|
1340 (>= clevel lowest) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1341 (cond |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1342 ((functionp predicate) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1343 (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
|
1344 (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
|
1345 (t |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1346 (or |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1347 (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
|
1348 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
|
1349 ; We list unactivated |
106364
2f2ce7005c10
(gnus-group-prepare-flat): Check also whether groups with no unread article
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
104692
diff
changeset
|
1350 (and (numberp unread) (> unread 0))) |
56927
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 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
|
1352 (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
|
1353 (cdr (assq 'tick (gnus-info-marks info)))) |
17493 | 1354 ; 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
|
1355 ;; 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
|
1356 (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
|
1357 (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
|
1358 group)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1359 (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
|
1360 (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
|
1361 (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
|
1362 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
|
1363 (gnus-info-marks info) unread (gnus-info-method info))))) |
17493 | 1364 |
1365 ;; 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
|
1366 (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
|
1367 (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
|
1368 (<= 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
|
1369 (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
|
1370 (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
|
1371 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
|
1372 regexp)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1373 (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
|
1374 (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
|
1375 (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
|
1376 (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
|
1377 (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
|
1378 (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
|
1379 (gnus-union |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1380 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
|
1381 (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
|
1382 gnus-level-killed ?K regexp)) |
17493 | 1383 |
1384 (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
|
1385 (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
|
1386 (gnus-run-hooks 'gnus-group-prepare-hook) |
17493 | 1387 t)) |
1388 | |
1389 (defun gnus-group-prepare-flat-list-dead (groups level mark regexp) | |
1390 ;; List zombies and killed lists somewhat faster, which was | |
1391 ;; suggested by Jack Vinson <vinson@unagi.cis.upenn.edu>. It does | |
1392 ;; this by ignoring the group format specification altogether. | |
1393 (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
|
1394 (if (> (length groups) gnus-group-listing-limit) |
17493 | 1395 (while groups |
1396 (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
|
1397 (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
|
1398 group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1399 (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
|
1400 (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
|
1401 (and (functionp regexp) (funcall regexp group)))) |
17493 | 1402 (gnus-add-text-properties |
1403 (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
|
1404 (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
|
1405 (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
|
1406 "\n")) |
17493 | 1407 (list 'gnus-group (gnus-intern-safe group gnus-active-hashtb) |
1408 'gnus-unread t | |
1409 'gnus-level level)))) | |
1410 (while groups | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1411 (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
|
1412 (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
|
1413 group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1414 (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
|
1415 (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
|
1416 (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
|
1417 (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
|
1418 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
|
1419 (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
|
1420 (if active |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1421 (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
|
1422 0 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1423 (- (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
|
1424 nil)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1425 (gnus-method-simplify (gnus-find-method-for-group group)))))))) |
17493 | 1426 |
1427 (defun gnus-group-update-group-line () | |
1428 "Update the current line in the group buffer." | |
1429 (let* ((buffer-read-only nil) | |
1430 (group (gnus-group-group-name)) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1431 (entry (and group (gnus-group-entry group))) |
17493 | 1432 gnus-group-indentation) |
1433 (when group | |
1434 (and entry | |
1435 (not (gnus-ephemeral-group-p group)) | |
1436 (gnus-dribble-enter | |
1437 (concat "(gnus-group-set-info '" | |
1438 (gnus-prin1-to-string (nth 2 entry)) | |
1439 ")"))) | |
1440 (setq gnus-group-indentation (gnus-group-group-indentation)) | |
1441 (gnus-delete-line) | |
1442 (gnus-group-insert-group-line-info group) | |
1443 (forward-line -1) | |
1444 (gnus-group-position-point)))) | |
1445 | |
1446 (defun gnus-group-insert-group-line-info (group) | |
1447 "Insert GROUP on the current line." | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1448 (let ((entry (gnus-group-entry group)) |
17493 | 1449 (gnus-group-indentation (gnus-group-group-indentation)) |
1450 active info) | |
1451 (if entry | |
1452 (progn | |
1453 ;; (Un)subscribed group. | |
1454 (setq info (nth 2 entry)) | |
1455 (gnus-group-insert-group-line | |
1456 group (gnus-info-level info) (gnus-info-marks info) | |
1457 (or (car entry) t) (gnus-info-method info))) | |
1458 ;; This group is dead. | |
1459 (gnus-group-insert-group-line | |
1460 group | |
1461 (if (member group gnus-zombie-list) gnus-level-zombie gnus-level-killed) | |
1462 nil | |
1463 (if (setq active (gnus-active group)) | |
1464 (if (zerop (cdr active)) | |
1465 0 | |
1466 (- (1+ (cdr active)) (car active))) | |
1467 nil) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1468 (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
|
1469 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1470 (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
|
1471 (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
|
1472 (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
|
1473 (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
|
1474 (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
|
1475 (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
|
1476 0 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1477 (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
|
1478 (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
|
1479 (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
|
1480 seen)))))) |
17493 | 1481 |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1482 ;; 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
|
1483 ;; 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
|
1484 ;; 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
|
1485 ;; on emacs-devel |
70051
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1486 ;; <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
|
1487 ;; From: Reiner Steib |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1488 ;; 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
|
1489 ;; Newsgroups: gmane.emacs.devel |
700b1f9b81e2
[ Merge Gnome tool bars from Gnus trunk ]
Reiner Steib <Reiner.Steib@gmx.de>
parents:
69763
diff
changeset
|
1490 ;; 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
|
1491 ;; 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
|
1492 |
69337
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1493 (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
|
1494 (and (not (featurep 'xemacs)) |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1495 (boundp 'tool-bar-mode) |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1496 tool-bar-mode |
110542
93f2c2c37f24
Remove Emacs 21 stuff.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110502
diff
changeset
|
1497 ;; Using `redraw-frame' (see `gnus-tool-bar-update') in Emacs might |
69337
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1498 ;; 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
|
1499 (fboundp 'force-window-update)) |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1500 "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
|
1501 :group 'gnus-group |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1502 :version "22.1" |
69763
6c338e8bc3ff
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-189
Miles Bader <miles@gnu.org>
parents:
69362
diff
changeset
|
1503 :initialize 'custom-initialize-default |
6c338e8bc3ff
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-189
Miles Bader <miles@gnu.org>
parents:
69362
diff
changeset
|
1504 :set (lambda (symbol value) |
6c338e8bc3ff
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-189
Miles Bader <miles@gnu.org>
parents:
69362
diff
changeset
|
1505 (set-default symbol value) |
6c338e8bc3ff
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-189
Miles Bader <miles@gnu.org>
parents:
69362
diff
changeset
|
1506 (when (gnus-alive-p) |
6c338e8bc3ff
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-189
Miles Bader <miles@gnu.org>
parents:
69362
diff
changeset
|
1507 (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
|
1508 ;; 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
|
1509 (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
|
1510 :type 'boolean) |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1511 |
17493 | 1512 (defun gnus-group-insert-group-line (gnus-tmp-group gnus-tmp-level |
1513 gnus-tmp-marked number | |
1514 gnus-tmp-method) | |
1515 "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
|
1516 (let* ((gnus-tmp-method |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49274
diff
changeset
|
1517 (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
|
1518 (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
|
1519 gnus-tmp-group)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1520 (gnus-tmp-active (gnus-active gnus-tmp-group)) |
17493 | 1521 (gnus-tmp-number-total |
1522 (if gnus-tmp-active | |
1523 (1+ (- (cdr gnus-tmp-active) (car gnus-tmp-active))) | |
1524 0)) | |
1525 (gnus-tmp-number-of-unread | |
1526 (if (numberp number) (int-to-string (max 0 number)) | |
1527 "*")) | |
1528 (gnus-tmp-number-of-read | |
1529 (if (numberp number) | |
1530 (int-to-string (max 0 (- gnus-tmp-number-total number))) | |
1531 "*")) | |
1532 (gnus-tmp-subscribed | |
1533 (cond ((<= gnus-tmp-level gnus-level-subscribed) ? ) | |
1534 ((<= gnus-tmp-level gnus-level-unsubscribed) ?U) | |
1535 ((= gnus-tmp-level gnus-level-zombie) ?Z) | |
1536 (t ?K))) | |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49274
diff
changeset
|
1537 (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
|
1538 (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
|
1539 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
|
1540 (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
|
1541 (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
|
1542 gnus-tmp-group)) |
17493 | 1543 (gnus-tmp-newsgroup-description |
1544 (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
|
1545 (or (gnus-group-name-decode |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49274
diff
changeset
|
1546 (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
|
1547 group-name-charset) "") |
17493 | 1548 "")) |
1549 (gnus-tmp-moderated | |
1550 (if (and gnus-moderated-hashtb | |
1551 (gnus-gethash gnus-tmp-group gnus-moderated-hashtb)) | |
1552 ?m ? )) | |
1553 (gnus-tmp-moderated-string | |
1554 (if (eq gnus-tmp-moderated ?m) "(m)" "")) | |
110995
29c951d93e6d
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110918
diff
changeset
|
1555 (gnus-tmp-group-icon (gnus-group-get-icon gnus-tmp-group)) |
17493 | 1556 (gnus-tmp-news-server (or (cadr gnus-tmp-method) "")) |
1557 (gnus-tmp-news-method (or (car gnus-tmp-method) "")) | |
1558 (gnus-tmp-news-method-string | |
1559 (if gnus-tmp-method | |
1560 (format "(%s:%s)" (car gnus-tmp-method) | |
1561 (cadr gnus-tmp-method)) "")) | |
1562 (gnus-tmp-marked-mark | |
1563 (if (and (numberp number) | |
1564 (zerop number) | |
1565 (cdr (assq 'tick gnus-tmp-marked))) | |
1566 ?* ? )) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1567 (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
|
1568 (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
|
1569 (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
|
1570 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
|
1571 ?* ? )) |
17493 | 1572 (gnus-tmp-process-marked |
1573 (if (member gnus-tmp-group gnus-group-marked) | |
1574 gnus-process-mark ? )) | |
1575 (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
|
1576 beg end |
17493 | 1577 header gnus-tmp-header) ; passed as parameter to user-funcs. |
1578 (beginning-of-line) | |
69337
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1579 (setq beg (point)) |
17493 | 1580 (gnus-add-text-properties |
1581 (point) | |
1582 (prog1 (1+ (point)) | |
1583 ;; 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
|
1584 (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
|
1585 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
|
1586 (eval gnus-group-line-format-spec))) |
17493 | 1587 `(gnus-group ,(gnus-intern-safe gnus-tmp-group gnus-active-hashtb) |
1588 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
|
1589 (string-to-number gnus-tmp-number-of-unread) |
17493 | 1590 t) |
1591 gnus-marked ,gnus-tmp-marked-mark | |
1592 gnus-indentation ,gnus-group-indentation | |
1593 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
|
1594 (setq end (point)) |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1595 (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
|
1596 (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
|
1597 'gnus-tool-bar-update) |
55665aaac72b
* gnus-util.el (gnus-tool-bar-update): New function.
Reiner Steib <Reiner.Steib@gmx.de>
parents:
68230
diff
changeset
|
1598 (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
|
1599 '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
|
1600 (forward-line -1) |
17493 | 1601 (when (inline (gnus-visual-p 'group-highlight 'highlight)) |
110486
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1602 (gnus-group-highlight-line gnus-tmp-group beg end)) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1603 (gnus-run-hooks 'gnus-group-update-hook) |
111230
bf96ffd54855
gnus-group.el (gnus-group-make-tool-bar): Check for display graphic capability before doing anything.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111209
diff
changeset
|
1604 (forward-line))) |
17493 | 1605 |
110486
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1606 (defun gnus-group-update-eval-form (group list) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1607 "Eval `car' of each element of LIST, and return the first that return t. |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1608 Some value are bound so the form can use them." |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1609 (when list |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1610 (let* ((entry (gnus-group-entry group)) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1611 (unread (if (numberp (car entry)) (car entry) 0)) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1612 (active (gnus-active group)) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1613 (total (if active (1+ (- (cdr active) (car active))) 0)) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1614 (info (nth 2 entry)) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1615 (method (inline (gnus-server-get-method group (gnus-info-method info)))) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1616 (marked (gnus-info-marks info)) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1617 (mailp (apply 'append |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1618 (mapcar |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1619 (lambda (x) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1620 (memq x (assoc (symbol-name |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1621 (car (or method gnus-select-method))) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1622 gnus-valid-select-methods))) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1623 '(mail post-mail)))) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1624 (level (or (gnus-info-level info) gnus-level-killed)) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1625 (score (or (gnus-info-score info) 0)) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1626 (ticked (gnus-range-length (cdr (assq 'tick marked)))) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1627 (group-age (gnus-group-timestamp-delta group))) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1628 ;; FIXME: http://thread.gmane.org/gmane.emacs.gnus.general/65451/focus=65465 |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1629 ;; ====================================================================== |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1630 ;; From: Richard Stallman |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1631 ;; Subject: Re: Rewriting gnus-group-highlight-line (was: [...]) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1632 ;; Cc: ding@gnus.org |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1633 ;; Date: Sat, 27 Oct 2007 19:41:20 -0400 |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1634 ;; Message-ID: <E1IlvHM-0006TS-7t@fencepost.gnu.org> |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1635 ;; |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1636 ;; [...] |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1637 ;; The kludge is that the alist elements contain expressions that refer |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1638 ;; to local variables with short names. Perhaps write your own tiny |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1639 ;; evaluator that handles just `and', `or', and numeric comparisons |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1640 ;; and just a few specific variables. |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1641 ;; ====================================================================== |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1642 ;; |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1643 ;; Similar for other evaluated variables. Grep for risky-local-variable |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1644 ;; to find them! -- rsteib |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1645 ;; |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1646 ;; Eval the cars of the lists until we find a match. |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1647 (while (and list |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1648 (not (eval (caar list)))) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1649 (setq list (cdr list))) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1650 list))) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1651 |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1652 (defun gnus-group-highlight-line (group beg end) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1653 "Highlight the current line according to `gnus-group-highlight'. |
110502
10e44274dbb4
gnus-group.el (gnus-group-update-hook): Add missing version.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110486
diff
changeset
|
1654 GROUP is current group, and the line to highlight starts at BEG |
110486
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1655 and ends at END." |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1656 (let ((face (cdar (gnus-group-update-eval-form |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1657 group |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1658 gnus-group-highlight)))) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1659 (unless (eq face (get-text-property beg 'face)) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1660 (let ((inhibit-read-only t)) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1661 (gnus-put-text-property-excluding-characters-with-faces |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1662 beg end 'face |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1663 (if (boundp face) (symbol-value face) face))) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1664 (gnus-extent-start-open beg)))) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1665 |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1666 (defun gnus-group-get-icon (group) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1667 "Return an icon for GROUP according to `gnus-group-icon-list'." |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1668 (if gnus-group-icon-list |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1669 (let ((image-path |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1670 (cdar (gnus-group-update-eval-form group gnus-group-icon-list)))) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1671 (if image-path |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1672 (propertize " " |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1673 'display |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1674 (append |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1675 (gnus-create-image (expand-file-name image-path)) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1676 '(:ascent center))) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1677 " ")) |
1ad1adb298a3
Merge Changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110478
diff
changeset
|
1678 " ")) |
110478
1167c781dfa2
Make gnus-group-add-icon work.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110465
diff
changeset
|
1679 |
17493 | 1680 (defun gnus-group-update-group (group &optional visible-only) |
1681 "Update all lines where GROUP appear. | |
1682 If VISIBLE-ONLY is non-nil, the group won't be displayed if it isn't | |
1683 already." | |
110089
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1684 (with-current-buffer gnus-group-buffer |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1685 (save-excursion |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1686 ;; The buffer may be narrowed. |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1687 (save-restriction |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1688 (widen) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1689 (let ((ident (gnus-intern-safe group gnus-active-hashtb)) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1690 (loc (point-min)) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1691 found buffer-read-only) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1692 ;; Enter the current status into the dribble buffer. |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1693 (let ((entry (gnus-group-entry group))) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1694 (when (and entry |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1695 (not (gnus-ephemeral-group-p group))) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1696 (gnus-dribble-enter |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1697 (concat "(gnus-group-set-info '" |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1698 (gnus-prin1-to-string (nth 2 entry)) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1699 ")")))) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1700 ;; Find all group instances. If topics are in use, each group |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1701 ;; may be listed in more than once. |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1702 (while (setq loc (text-property-any |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1703 loc (point-max) 'gnus-group ident)) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1704 (setq found t) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1705 (goto-char loc) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1706 (let ((gnus-group-indentation (gnus-group-group-indentation))) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1707 (gnus-delete-line) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1708 (gnus-group-insert-group-line-info group) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1709 (save-excursion |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1710 (forward-line -1) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1711 (gnus-run-hooks 'gnus-group-update-group-hook))) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1712 (setq loc (1+ loc))) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1713 (unless (or found visible-only) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1714 ;; No such line in the buffer, find out where it's supposed to |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1715 ;; go, and insert it there (or at the end of the buffer). |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1716 (if gnus-goto-missing-group-function |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1717 (funcall gnus-goto-missing-group-function group) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1718 (let ((entry (cddr (gnus-group-entry group)))) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1719 (while (and entry (car entry) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1720 (not |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1721 (gnus-goto-char |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1722 (text-property-any |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1723 (point-min) (point-max) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1724 'gnus-group (gnus-intern-safe |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1725 (caar entry) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1726 gnus-active-hashtb))))) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1727 (setq entry (cdr entry))) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1728 (or entry (goto-char (point-max))))) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1729 ;; Finally insert the line. |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1730 (let ((gnus-group-indentation (gnus-group-group-indentation))) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1731 (gnus-group-insert-group-line-info group) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1732 (save-excursion |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1733 (forward-line -1) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1734 (gnus-run-hooks 'gnus-group-update-group-hook)))) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1735 (when gnus-group-update-group-function |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1736 (funcall gnus-group-update-group-function group)) |
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1737 (gnus-group-set-mode-line)))))) |
17493 | 1738 |
1739 (defun gnus-group-set-mode-line () | |
1740 "Update the mode line in the group buffer." | |
1741 (when (memq 'group gnus-updated-mode-lines) | |
1742 ;; Yes, we want to keep this mode line updated. | |
110089
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1743 (with-current-buffer gnus-group-buffer |
17493 | 1744 (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
|
1745 (gnus-set-format 'group-mode))) |
17493 | 1746 (gnus-tmp-news-server (cadr gnus-select-method)) |
1747 (gnus-tmp-news-method (car gnus-select-method)) | |
1748 (gnus-tmp-colon (if (equal gnus-tmp-news-server "") "" ":")) | |
1749 (max-len 60) | |
1750 gnus-tmp-header ;Dummy binding for user-defined formats | |
1751 ;; Get the resulting string. | |
1752 (modified | |
1753 (and gnus-dribble-buffer | |
1754 (buffer-name gnus-dribble-buffer) | |
1755 (buffer-modified-p gnus-dribble-buffer) | |
110089
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
1756 (with-current-buffer gnus-dribble-buffer |
17493 | 1757 (not (zerop (buffer-size)))))) |
1758 (mode-string (eval gformat))) | |
1759 ;; Say whether the dribble buffer has been modified. | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1760 (setq mode-line-modified |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1761 (if modified (car gnus-mode-line-modified) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1762 (cdr gnus-mode-line-modified))) |
17493 | 1763 ;; If the line is too long, we chop it off. |
1764 (when (> (length mode-string) max-len) | |
1765 (setq mode-string (substring mode-string 0 (- max-len 4)))) | |
1766 (prog1 | |
1767 (setq mode-line-buffer-identification | |
1768 (gnus-mode-line-buffer-identification | |
1769 (list mode-string))) | |
1770 (set-buffer-modified-p modified)))))) | |
1771 | |
1772 (defun gnus-group-group-name () | |
1773 "Get the name of the newsgroup on the current line." | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1774 (let ((group (get-text-property (point-at-bol) 'gnus-group))) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1775 (when group |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1776 (symbol-name group)))) |
17493 | 1777 |
1778 (defun gnus-group-group-level () | |
1779 "Get the level of the newsgroup on the current line." | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1780 (get-text-property (point-at-bol) 'gnus-level)) |
17493 | 1781 |
1782 (defun gnus-group-group-indentation () | |
1783 "Get the indentation of the newsgroup on the current line." | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1784 (or (get-text-property (point-at-bol) 'gnus-indentation) |
17493 | 1785 (and gnus-group-indentation-function |
1786 (funcall gnus-group-indentation-function)) | |
1787 "")) | |
1788 | |
1789 (defun gnus-group-group-unread () | |
1790 "Get the number of unread articles of the newsgroup on the current line." | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1791 (get-text-property (point-at-bol) 'gnus-unread)) |
17493 | 1792 |
1793 (defun gnus-group-new-mail (group) | |
1794 (if (nnmail-new-mail-p (gnus-group-real-name group)) | |
1795 gnus-new-mail-mark | |
1796 ? )) | |
1797 | |
1798 (defun gnus-group-level (group) | |
1799 "Return the estimated level of GROUP." | |
1800 (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
|
1801 (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
|
1802 gnus-level-killed)) |
17493 | 1803 |
1804 (defun gnus-group-search-forward (&optional backward all level first-too) | |
1805 "Find the next newsgroup with unread articles. | |
1806 If BACKWARD is non-nil, find the previous newsgroup instead. | |
1807 If ALL is non-nil, just find any newsgroup. | |
1808 If LEVEL is non-nil, find group with level LEVEL, or higher if no such | |
1809 group exists. | |
1810 If FIRST-TOO, the current line is also eligible as a target." | |
1811 (let ((way (if backward -1 1)) | |
1812 (low gnus-level-killed) | |
1813 (beg (point)) | |
1814 pos found lev) | |
1815 (if (and backward (progn (beginning-of-line)) (bobp)) | |
1816 nil | |
1817 (unless first-too | |
1818 (forward-line way)) | |
1819 (while (and | |
1820 (not (eobp)) | |
1821 (not (setq | |
1822 found | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1823 (and |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1824 (get-text-property (point) 'gnus-group) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1825 (or all |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1826 (and |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1827 (let ((unread |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1828 (get-text-property (point) 'gnus-unread))) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1829 (and (numberp unread) (> unread 0))) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1830 (setq lev (get-text-property (point) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1831 'gnus-level)) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1832 (<= lev gnus-level-subscribed))) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1833 (or (not level) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1834 (and (setq lev (get-text-property (point) |
17493 | 1835 'gnus-level)) |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1836 (or (= lev level) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1837 (and (< lev low) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1838 (< level lev) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1839 (progn |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1840 (setq low lev) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1841 (setq pos (point)) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
1842 nil)))))))) |
17493 | 1843 (zerop (forward-line way))))) |
1844 (if found | |
1845 (progn (gnus-group-position-point) t) | |
1846 (goto-char (or pos beg)) | |
1847 (and pos t)))) | |
1848 | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1849 (defun gnus-total-fetched-for (group) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1850 (let* ((size-in-cache (or (gnus-cache-total-fetched-for group) 0)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1851 (size-in-agent (or (gnus-agent-total-fetched-for group) 0)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1852 (size (+ size-in-cache size-in-agent)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1853 (suffix '("B" "K" "M" "G")) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1854 (scale 1024.0) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1855 (cutoff scale)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1856 (while (> size cutoff) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1857 (setq size (/ size scale) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1858 suffix (cdr suffix))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1859 (format "%5.1f%s" size (car suffix)))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1860 |
17493 | 1861 ;;; Gnus group mode commands |
1862 | |
1863 ;; Group marking. | |
1864 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1865 (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
|
1866 (save-excursion |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1867 (beginning-of-line) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1868 (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
|
1869 (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
|
1870 |
17493 | 1871 (defun gnus-group-mark-group (n &optional unmark no-advance) |
1872 "Mark the current group." | |
1873 (interactive "p") | |
1874 (let ((buffer-read-only nil) | |
1875 group) | |
1876 (while (and (> n 0) | |
1877 (not (eobp))) | |
1878 (when (setq group (gnus-group-group-name)) | |
1879 ;; Go to the mark position. | |
1880 (beginning-of-line) | |
1881 (forward-char (or (cdr (assq 'process gnus-group-mark-positions)) 2)) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1882 (delete-char 1) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1883 (if unmark |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1884 (progn |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1885 (setq gnus-group-marked (delete group gnus-group-marked)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1886 (insert-char ? 1 t)) |
17493 | 1887 (setq gnus-group-marked |
1888 (cons group (delete group gnus-group-marked))) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1889 (insert-char gnus-process-mark 1 t))) |
17493 | 1890 (unless no-advance |
1891 (gnus-group-next-group 1)) | |
1892 (decf n)) | |
111096
d7e691f6ffc0
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111083
diff
changeset
|
1893 (gnus-group-position-point) |
17493 | 1894 n)) |
1895 | |
1896 (defun gnus-group-unmark-group (n) | |
1897 "Remove the mark from the current group." | |
1898 (interactive "p") | |
1899 (gnus-group-mark-group n 'unmark) | |
1900 (gnus-group-position-point)) | |
1901 | |
1902 (defun gnus-group-unmark-all-groups () | |
1903 "Unmark all groups." | |
1904 (interactive) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1905 (save-excursion |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
1906 (mapc 'gnus-group-remove-mark gnus-group-marked)) |
17493 | 1907 (gnus-group-position-point)) |
1908 | |
1909 (defun gnus-group-mark-region (unmark beg end) | |
1910 "Mark all groups between point and mark. | |
1911 If UNMARK, remove the mark instead." | |
1912 (interactive "P\nr") | |
1913 (let ((num (count-lines beg end))) | |
1914 (save-excursion | |
1915 (goto-char beg) | |
1916 (- num (gnus-group-mark-group num unmark))))) | |
1917 | |
1918 (defun gnus-group-mark-buffer (&optional unmark) | |
1919 "Mark all groups in the buffer. | |
1920 If UNMARK, remove the mark instead." | |
1921 (interactive "P") | |
1922 (gnus-group-mark-region unmark (point-min) (point-max))) | |
1923 | |
1924 (defun gnus-group-mark-regexp (regexp) | |
1925 "Mark all groups that match some regexp." | |
1926 (interactive "sMark (regexp): ") | |
1927 (let ((alist (cdr gnus-newsrc-alist)) | |
1928 group) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1929 (save-excursion |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1930 (while alist |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1931 (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
|
1932 (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
|
1933 (gnus-group-set-mark group))))) |
17493 | 1934 (gnus-group-position-point)) |
1935 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
1936 (defun gnus-group-remove-mark (group &optional test-marked) |
17493 | 1937 "Remove the process mark from GROUP and move point there. |
1938 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
|
1939 (if (gnus-group-goto-group group nil test-marked) |
17493 | 1940 (save-excursion |
1941 (gnus-group-mark-group 1 'unmark t) | |
1942 t) | |
1943 (setq gnus-group-marked | |
1944 (delete group gnus-group-marked)) | |
1945 nil)) | |
1946 | |
1947 (defun gnus-group-set-mark (group) | |
1948 "Set the process mark on GROUP." | |
1949 (if (gnus-group-goto-group group) | |
1950 (save-excursion | |
1951 (gnus-group-mark-group 1 nil t)) | |
1952 (setq gnus-group-marked (cons group (delete group gnus-group-marked))))) | |
1953 | |
1954 (defun gnus-group-universal-argument (arg &optional groups func) | |
1955 "Perform any command on all groups according to the process/prefix convention." | |
1956 (interactive "P") | |
1957 (if (eq (setq func (or func | |
1958 (key-binding | |
1959 (read-key-sequence | |
1960 (substitute-command-keys | |
1961 "\\<gnus-group-mode-map>\\[gnus-group-universal-argument]"))))) | |
1962 'undefined) | |
1963 (gnus-error 1 "Undefined key") | |
1964 (gnus-group-iterate arg | |
1965 (lambda (group) | |
1966 (command-execute func)))) | |
1967 (gnus-group-position-point)) | |
1968 | |
1969 (defun gnus-group-process-prefix (n) | |
1970 "Return a list of groups to work on. | |
1971 Take into consideration N (the prefix) and the list of marked groups." | |
1972 (cond | |
1973 (n | |
1974 (setq n (prefix-numeric-value n)) | |
1975 ;; There is a prefix, so we return a list of the N next | |
1976 ;; groups. | |
1977 (let ((way (if (< n 0) -1 1)) | |
1978 (n (abs n)) | |
1979 group groups) | |
1980 (save-excursion | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1981 (while (> n 0) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
1982 (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
|
1983 (push group groups)) |
17493 | 1984 (setq n (1- n)) |
1985 (gnus-group-next-group way))) | |
1986 (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
|
1987 ((and (gnus-region-active-p) (mark)) |
17493 | 1988 ;; Work on the region between point and mark. |
1989 (let ((max (max (point) (mark))) | |
1990 groups) | |
1991 (save-excursion | |
1992 (goto-char (min (point) (mark))) | |
1993 (while | |
1994 (and | |
1995 (push (gnus-group-group-name) groups) | |
1996 (zerop (gnus-group-next-group 1)) | |
1997 (< (point) max))) | |
1998 (nreverse groups)))) | |
1999 (gnus-group-marked | |
2000 ;; No prefix, but a list of marked articles. | |
2001 (reverse gnus-group-marked)) | |
2002 (t | |
2003 ;; Neither marked articles or a prefix, so we return the | |
2004 ;; current group. | |
2005 (let ((group (gnus-group-group-name))) | |
2006 (and group (list group)))))) | |
2007 | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2008 ;;; !!!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
|
2009 ;;; 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
|
2010 (eval-and-compile |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2011 (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
|
2012 (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
|
2013 (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
|
2014 (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
|
2015 (eval |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2016 `(defun gnus-group-iterate (arg ,function) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2017 "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
|
2018 FUNCTION will be called with the group name as the parameter |
17493 | 2019 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
|
2020 (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
|
2021 (,window (selected-window)) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2022 ,group) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2023 (while ,groups |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2024 (setq ,group (car ,groups) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2025 ,groups (cdr ,groups)) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2026 (select-window ,window) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2027 (gnus-group-remove-mark ,group) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2028 (save-selected-window |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2029 (save-excursion |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2030 (funcall ,function ,group))))))))) |
17493 | 2031 |
2032 (put 'gnus-group-iterate 'lisp-indent-function 1) | |
2033 | |
2034 ;; Selecting groups. | |
2035 | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2036 (defun gnus-group-read-group (&optional all no-article group select-articles) |
17493 | 2037 "Read news in this newsgroup. |
2038 If the prefix argument ALL is non-nil, already read articles become | |
92147 | 2039 readable. |
2040 | |
2041 If ALL is a positive number, fetch this number of the latest | |
2042 articles in the group. If ALL is a negative number, fetch this | |
2043 number of the earliest articles in the group. | |
2044 | |
2045 If the optional argument NO-ARTICLE is non-nil, no article will | |
2046 be auto-selected upon group entry. If GROUP is non-nil, fetch | |
2047 that group." | |
17493 | 2048 (interactive "P") |
2049 (let ((no-display (eq all 0)) | |
2050 (group (or group (gnus-group-group-name))) | |
2051 number active marked entry) | |
2052 (when (eq all 0) | |
2053 (setq all nil)) | |
2054 (unless group | |
2055 (error "No group on current line")) | |
2056 (setq marked (gnus-info-marks | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2057 (nth 2 (setq entry (gnus-group-entry group))))) |
17493 | 2058 ;; This group might be a dead group. In that case we have to get |
2059 ;; the number of unread articles from `gnus-active-hashtb'. | |
2060 (setq number | |
2061 (cond ((numberp all) all) | |
2062 (entry (car entry)) | |
2063 ((setq active (gnus-active group)) | |
2064 (- (1+ (cdr active)) (car active))))) | |
2065 (gnus-summary-read-group | |
2066 group (or all (and (numberp number) | |
2067 (zerop (+ number (gnus-range-length | |
2068 (cdr (assq 'tick marked))) | |
2069 (gnus-range-length | |
2070 (cdr (assq 'dormant marked))))))) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2071 no-article nil no-display nil select-articles))) |
17493 | 2072 |
2073 (defun gnus-group-select-group (&optional all) | |
2074 "Select this newsgroup. | |
2075 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
|
2076 If the group is opened, just switch the summary buffer. |
17493 | 2077 If ALL is non-nil, already read articles become readable. |
71531 | 2078 If ALL is a positive number, fetch this number of the latest |
2079 articles in the group. | |
2080 If ALL is a negative number, fetch this number of the earliest | |
2081 articles in the group." | |
17493 | 2082 (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
|
2083 (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
|
2084 (forward-line -1)) |
17493 | 2085 (gnus-group-read-group all t)) |
2086 | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2087 (defun gnus-group-quick-select-group (&optional all group) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2088 "Select the GROUP \"quickly\". |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2089 This means that no highlighting or scoring will be performed. If |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2090 ALL (the prefix argument) is 0, don't even generate the summary |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2091 buffer. If GROUP is nil, use current group. |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2092 |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2093 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
|
2094 before entering the group." |
17493 | 2095 (interactive "P") |
2096 (require 'gnus-score) | |
2097 (let (gnus-visual | |
2098 gnus-score-find-score-files-function | |
2099 gnus-home-score-file | |
2100 gnus-apply-kill-hook | |
2101 gnus-summary-expunge-below) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2102 (gnus-group-read-group all t group))) |
17493 | 2103 |
2104 (defun gnus-group-visible-select-group (&optional all) | |
2105 "Select the current group without hiding any articles." | |
2106 (interactive "P") | |
2107 (let ((gnus-inhibit-limiting t)) | |
2108 (gnus-group-read-group all t))) | |
2109 | |
2110 (defun gnus-group-select-group-ephemerally () | |
2111 "Select the current group without doing any processing whatsoever. | |
2112 You will actually be entered into a group that's a copy of | |
2113 the current group; no changes you make while in this group will | |
2114 be permanent." | |
2115 (interactive) | |
2116 (require 'gnus-score) | |
2117 (let* (gnus-visual | |
2118 gnus-score-find-score-files-function gnus-apply-kill-hook | |
2119 gnus-summary-expunge-below gnus-show-threads gnus-suppress-duplicates | |
2120 gnus-summary-mode-hook gnus-select-group-hook | |
2121 (group (gnus-group-group-name)) | |
2122 (method (gnus-find-method-for-group group))) | |
2123 (gnus-group-read-ephemeral-group | |
2124 (gnus-group-prefixed-name group method) method))) | |
2125 | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2126 (defun gnus-group-name-at-point () |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2127 "Return a group name from around point if it exists, or nil." |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2128 (if (eq major-mode 'gnus-group-mode) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2129 (let ((group (gnus-group-group-name))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2130 (when group |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2131 (gnus-group-decoded-name group))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2132 (let ((regexp "[][\C-@-\t\v-*,/:-@\\^`{-\C-?]*\ |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2133 \\(nn[a-z]+\\(?:\\+[^][\C-@-*,/:-@\\^`{-\C-?]+\\)?:\ |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2134 \[^][\C-@-*,./:-@\\^`{-\C-?]+\\(?:\\.[^][\C-@-*,./:-@\\^`{-\C-?]+\\)*\ |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2135 \\|[^][\C-@-*,./:-@\\^`{-\C-?]+\\(?:\\.[^][\C-@-*,./:-@\\^`{-\C-?]+\\)+\\)") |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2136 (start (point)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2137 (case-fold-search nil)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2138 (prog1 |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2139 (if (or (and (not (or (eobp) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2140 (looking-at "[][\C-@-*,/;-@\\^`{-\C-?]"))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2141 (prog1 t |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2142 (skip-chars-backward "^][\C-@-\t\v-*,/;-@\\^`{-\C-?" |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2143 (point-at-bol)))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2144 (and (looking-at "[][\C-@-\t\v-*,/;-@\\^`{-\C-?]*$") |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2145 (prog1 t |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2146 (skip-chars-backward "][\C-@-\t\v-*,/;-@\\^`{-\C-?") |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2147 (skip-chars-backward "^][\C-@-\t\v-*,/;-@\\^`{-\C-?" |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2148 (point-at-bol)))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2149 (string-match "\\`[][\C-@-\t\v-*,/;-@\\^`{-\C-?]*\\'" |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2150 (buffer-substring (point-at-bol) (point)))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2151 (when (looking-at regexp) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2152 (match-string 1)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2153 (let (group distance) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2154 (when (looking-at regexp) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2155 (setq group (match-string 1) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2156 distance (- (match-beginning 1) (match-beginning 0)))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2157 (skip-chars-backward "][\C-@-\t\v-*,/;-@\\^`{-\C-?") |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2158 (skip-chars-backward "^][\C-@-\t\v-*,/;-@\\^`{-\C-?" |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2159 (point-at-bol)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2160 (if (looking-at regexp) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2161 (if (and group (<= distance (- start (match-end 0)))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2162 group |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2163 (match-string 1)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2164 group))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2165 (goto-char start))))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2166 |
110661
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2167 (defun gnus-group-completing-read (&optional prompt collection |
110779
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2168 require-match initial-input hist |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2169 def) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2170 "Read a group name with completion. Non-ASCII group names are allowed. |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2171 The arguments are the same as `completing-read' except that COLLECTION |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2172 and HIST default to `gnus-active-hashtb' and `gnus-group-history' |
110779
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2173 respectively if they are omitted. Regards COLLECTION as a hash table |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2174 if it is not a list." |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2175 (or collection (setq collection gnus-active-hashtb)) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2176 (let (choices group) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2177 (if (listp collection) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2178 (dolist (symbol collection) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2179 (setq group (symbol-name symbol)) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2180 (push (if (string-match "[^\000-\177]" group) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2181 (gnus-group-decoded-name group) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2182 group) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2183 choices)) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2184 (mapatoms (lambda (symbol) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2185 (setq group (symbol-name symbol)) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2186 (push (if (string-match "[^\000-\177]" group) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2187 (gnus-group-decoded-name group) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2188 group) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2189 choices)) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2190 collection)) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2191 (setq group (gnus-completing-read (or prompt "Group") (nreverse choices) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2192 require-match initial-input |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2193 (or hist 'gnus-group-history) |
9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110777
diff
changeset
|
2194 def)) |
111129
2d713b285a70
gnus-group.el (gnus-group-completing-read): Remove all newlines from group names. They mess up the group buffer badly.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111096
diff
changeset
|
2195 (unless (if (listp collection) |
2d713b285a70
gnus-group.el (gnus-group-completing-read): Remove all newlines from group names. They mess up the group buffer badly.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111096
diff
changeset
|
2196 (member group (mapcar 'symbol-name collection)) |
2d713b285a70
gnus-group.el (gnus-group-completing-read): Remove all newlines from group names. They mess up the group buffer badly.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111096
diff
changeset
|
2197 (symbol-value (intern-soft group collection))) |
2d713b285a70
gnus-group.el (gnus-group-completing-read): Remove all newlines from group names. They mess up the group buffer badly.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111096
diff
changeset
|
2198 (setq group |
2d713b285a70
gnus-group.el (gnus-group-completing-read): Remove all newlines from group names. They mess up the group buffer badly.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111096
diff
changeset
|
2199 (mm-encode-coding-string |
2d713b285a70
gnus-group.el (gnus-group-completing-read): Remove all newlines from group names. They mess up the group buffer badly.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111096
diff
changeset
|
2200 group (gnus-group-name-charset nil group)))) |
111197
d4d3d19301c2
gnus-group.el: Replace replace-regexp-in-string with gnus-replace-in-string.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111138
diff
changeset
|
2201 (gnus-replace-in-string group "\n" ""))) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2202 |
17493 | 2203 ;;;###autoload |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2204 (defun gnus-fetch-group (group &optional articles) |
17493 | 2205 "Start Gnus if necessary and enter GROUP. |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2206 If ARTICLES, display those articles. |
17493 | 2207 Returns whether the fetching was successful or not." |
110661
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2208 (interactive (list (gnus-group-completing-read nil |
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2209 nil nil |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2210 (gnus-group-name-at-point)))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2211 (unless (gnus-alive-p) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2212 (gnus-no-server)) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2213 (gnus-group-read-group (if articles nil t) nil group articles)) |
17493 | 2214 |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2215 ;;;###autoload |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2216 (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
|
2217 "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
|
2218 (interactive "P") |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2219 (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
|
2220 (cond (window |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2221 (select-frame (window-frame window))) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2222 ((= (length (frame-list)) 1) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2223 (select-frame (make-frame))) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2224 (t |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2225 (other-frame 1)))) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2226 (gnus-fetch-group group)) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2227 |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2228 (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
|
2229 "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
|
2230 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
|
2231 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2232 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
|
2233 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
|
2234 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
|
2235 :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
|
2236 :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
|
2237 :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
|
2238 integer)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2239 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2240 (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
|
2241 "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
|
2242 :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
|
2243 :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
|
2244 :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
|
2245 (const some) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2246 number |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2247 (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
|
2248 |
17493 | 2249 ;; Enter a group that is not in the group buffer. Non-nil is returned |
2250 ;; if selection was successful. | |
2251 (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
|
2252 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
|
2253 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
|
2254 parameters |
c0aa521e0ca7
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-220
Miles Bader <miles@gnu.org>
parents:
60239
diff
changeset
|
2255 number) |
17493 | 2256 "Read GROUP from METHOD as an ephemeral group. |
2257 If ACTIVATE, request the group first. | |
2258 If QUIT-CONFIG, use that window configuration when exiting from the | |
2259 ephemeral group. | |
2260 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
|
2261 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
|
2262 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
|
2263 If NUMBER, fetch this number of articles. |
17493 | 2264 |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2265 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
|
2266 (interactive |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2267 (list |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2268 ;; (gnus-read-group "Group name: ") |
110661
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2269 (gnus-group-completing-read) |
111441
b527d5f89f7f
gnus-group.el (gnus-group-read-ephemeral-group, gnus-group-make-group): Remove superfluous ": " from the prompt.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111312
diff
changeset
|
2270 (gnus-read-method "From method"))) |
17493 | 2271 ;; 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
|
2272 (when (stringp method) |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2273 (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
|
2274 (setq method |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2275 `(,(car method) ,(concat (cadr method) "-ephemeral") |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2276 (,(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
|
2277 ,@(cddr method))) |
17493 | 2278 (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
|
2279 (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
|
2280 method)))) |
17493 | 2281 (gnus-sethash |
2282 group | |
2283 `(-1 nil (,group | |
2284 ,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
|
2285 ,(cons |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2286 (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
|
2287 (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
|
2288 (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
|
2289 (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
|
2290 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
|
2291 parameters))) |
17493 | 2292 gnus-newsrc-hashtb) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2293 (push method gnus-ephemeral-servers) |
17493 | 2294 (set-buffer gnus-group-buffer) |
2295 (unless (gnus-check-server method) | |
2296 (error "Unable to contact server: %s" (gnus-status-message method))) | |
2297 (when activate | |
2298 (gnus-activate-group group 'scan) | |
2299 (unless (gnus-request-group group) | |
2300 (error "Couldn't request group: %s" | |
2301 (nnheader-get-report (car method))))) | |
2302 (if request-only | |
2303 group | |
2304 (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
|
2305 (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
|
2306 (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
|
2307 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
|
2308 (gnus-group-read-group (or number t) t group select-articles)) |
17493 | 2309 group) |
2310 ;;(error nil) | |
32969
899478c14a26
2000-09-24 Simon Josefsson <simon@josefsson.org>
Dave Love <fx@gnu.org>
parents:
32965
diff
changeset
|
2311 (quit |
899478c14a26
2000-09-24 Simon Josefsson <simon@josefsson.org>
Dave Love <fx@gnu.org>
parents:
32965
diff
changeset
|
2312 (message "Quit reading the ephemeral group") |
899478c14a26
2000-09-24 Simon Josefsson <simon@josefsson.org>
Dave Love <fx@gnu.org>
parents:
32965
diff
changeset
|
2313 nil))))) |
17493 | 2314 |
93386 | 2315 (defcustom gnus-gmane-group-download-format |
87696 | 2316 "http://download.gmane.org/%s/%s/%s" |
2317 "URL for downloading mbox files. | |
2318 It must contain three \"%s\". They correspond to the group, the | |
2319 minimal and maximal article numbers, respectively." | |
2320 :group 'gnus-group-foreign | |
92336
5f827896103e
Change defcustom :version from 23.0 to 23.1.
Glenn Morris <rgm@gnu.org>
parents:
92147
diff
changeset
|
2321 :version "23.1" ;; No Gnus |
87696 | 2322 :type 'string) |
2323 | |
87647 | 2324 (autoload 'url-insert-file-contents "url-handlers") |
87696 | 2325 ;; FIXME: |
2326 ;; - Add documentation, menu, key bindings, ... | |
2327 | |
93386 | 2328 (defun gnus-read-ephemeral-gmane-group (group start &optional range) |
87647 | 2329 "Read articles from Gmane group GROUP as an ephemeral group. |
87696 | 2330 START is the first article. RANGE specifies how many articles |
2331 are fetched. The articles are downloaded via HTTP using the URL | |
93386 | 2332 specified by `gnus-gmane-group-download-format'." |
87647 | 2333 ;; See <http://gmane.org/export.php> for more information. |
2334 (interactive | |
2335 (list | |
110661
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2336 (gnus-group-completing-read "Gmane group") |
87647 | 2337 (read-number "Start article number: ") |
87696 | 2338 (read-number "How many articles: "))) |
2339 (unless range (setq range 500)) | |
2340 (when (< range 1) | |
2341 (error "Invalid range: %s" range)) | |
108287
c0d13767677a
Synch with Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
106815
diff
changeset
|
2342 (let ((tmpfile (mm-make-temp-file |
87696 | 2343 (format "%s.start-%s.range-%s." group start range))) |
2344 (gnus-thread-sort-functions '(gnus-thread-sort-by-number))) | |
87647 | 2345 (with-temp-file tmpfile |
2346 (url-insert-file-contents | |
93386 | 2347 (format gnus-gmane-group-download-format |
87696 | 2348 group start (+ start range))) |
87647 | 2349 (write-region (point-min) (point-max) tmpfile) |
2350 (gnus-group-read-ephemeral-group | |
87696 | 2351 (format "%s.start-%s.range-%s" group start range) |
87647 | 2352 `(nndoc ,tmpfile |
92694 | 2353 (nndoc-article-type mbox)))) |
87647 | 2354 (delete-file tmpfile))) |
2355 | |
93386 | 2356 (defun gnus-read-ephemeral-gmane-group-url (url) |
87696 | 2357 "Create an ephemeral Gmane group from URL. |
2358 | |
2359 Valid input formats include: | |
2360 \"http://thread.gmane.org/gmane.foo.bar/12300/focus=12399\", | |
2361 \"http://thread.gmane.org/gmane.foo.bar/12345/\", | |
2362 \"http://article.gmane.org/gmane.foo.bar/12345/\", | |
2363 \"http://news.gmane.org/group/gmane.foo.bar/thread=12345\"" | |
2364 ;; - Feel free to add other useful Gmane URLs here! Maybe the URLs should | |
2365 ;; be customizable? | |
2366 ;; - The URLs should be added to `gnus-button-alist'. Probably we should | |
2367 ;; prompt the user to decide: "View via `browse-url' or in Gnus? " | |
93386 | 2368 ;; (`gnus-read-ephemeral-gmane-group-url') |
87696 | 2369 (interactive |
110661
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2370 (list (gnus-group-completing-read "Gmane URL"))) |
87696 | 2371 (let (group start range) |
2372 (cond | |
2373 ;; URLs providing `group', `start' and `range': | |
2374 ((string-match | |
2375 ;; http://thread.gmane.org/gmane.emacs.devel/86326/focus=86525 | |
2376 "^http://thread\.gmane\.org/\\([^/]+\\)/\\([0-9]+\\)/focus=\\([0-9]+\\)$" | |
2377 url) | |
2378 (setq group (match-string 1 url) | |
2379 start (string-to-number (match-string 2 url)) | |
2380 ;; Ensure that `range' is large enough to ensure focus article is | |
2381 ;; included. | |
2382 range (- (string-to-number (match-string 3 url)) | |
2383 start -1))) | |
2384 ;; URLs providing `group' and `start': | |
2385 ((or (string-match | |
2386 ;; http://article.gmane.org/gmane.comp.gnu.make.bugs/3584 | |
92694 | 2387 "^http://\\(?:thread\\|article\\|permalink\\)\.gmane\.org/\\([^/]+\\)/\\([0-9]+\\)" |
87696 | 2388 url) |
2389 (string-match | |
94646
2234170de09e
Fix typo in comment.
Juanma Barranquero <lekktu@gmail.com>
parents:
93386
diff
changeset
|
2390 ;; Don't advertise these in the doc string yet: |
87696 | 2391 "^\\(?:nntp\\|news\\)://news\.gmane\.org/\\([^/]+\\)/\\([0-9]+\\)" |
2392 url) | |
2393 (string-match | |
2394 ;; http://news.gmane.org/group/gmane.emacs.gnus.general/thread=65099/force_load=t | |
2395 "^http://news\.gmane\.org/group/\\([^/]+\\)/thread=\\([0-9]+\\)" | |
2396 url)) | |
2397 (setq group (match-string 1 url) | |
2398 start (string-to-number (match-string 2 url)))) | |
2399 (t | |
2400 (error "Can't parse URL %s" url))) | |
93386 | 2401 (gnus-read-ephemeral-gmane-group group start range))) |
2402 | |
2403 (defcustom gnus-bug-group-download-format-alist | |
106608
db036e468681
(gnus-bug-group-download-format-alist): Change emacs entry to
Glenn Morris <rgm@gnu.org>
parents:
106364
diff
changeset
|
2404 '((emacs . "http://debbugs.gnu.org/%s;mbox=yes") |
93386 | 2405 (debian |
2406 . "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%s&mbox=yes")) | |
2407 "Alist of symbols for bug trackers and the corresponding URL format string. | |
2408 The URL format string must contain a single \"%s\", specifying | |
2409 the bug number, and browsing the URL must return mbox output." | |
2410 :group 'gnus-group-foreign | |
106608
db036e468681
(gnus-bug-group-download-format-alist): Change emacs entry to
Glenn Morris <rgm@gnu.org>
parents:
106364
diff
changeset
|
2411 :version "23.2" ;; No Gnus |
93386 | 2412 :type '(repeat (cons (symbol) (string :tag "URL format string")))) |
2413 | |
2414 (defun gnus-read-ephemeral-bug-group (number mbox-url) | |
2415 "Browse bug NUMBER as ephemeral group." | |
2416 (interactive (list (read-string "Enter bug number: " | |
2417 (thing-at-point 'word) nil) | |
2418 ;; FIXME: Add completing-read from | |
2419 ;; `gnus-emacs-bug-group-download-format' ... | |
2420 (cdr (assoc 'emacs gnus-bug-group-download-format-alist)))) | |
2421 (when (stringp number) | |
2422 (setq number (string-to-number number))) | |
108287
c0d13767677a
Synch with Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
106815
diff
changeset
|
2423 (let ((tmpfile (mm-make-temp-file "gnus-temp-group-"))) |
93386 | 2424 (with-temp-file tmpfile |
2425 (url-insert-file-contents (format mbox-url number)) | |
110583
b6d2a63ad993
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110565
diff
changeset
|
2426 (goto-char (point-min)) |
b6d2a63ad993
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110565
diff
changeset
|
2427 ;; Add the debbugs address so that we can respond to reports easily. |
b6d2a63ad993
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110565
diff
changeset
|
2428 (while (re-search-forward "^To: " nil t) |
b6d2a63ad993
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110565
diff
changeset
|
2429 (end-of-line) |
b6d2a63ad993
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110565
diff
changeset
|
2430 (insert (format ", %s@%s" number |
111197
d4d3d19301c2
gnus-group.el: Replace replace-regexp-in-string with gnus-replace-in-string.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111138
diff
changeset
|
2431 (gnus-replace-in-string |
d4d3d19301c2
gnus-group.el: Replace replace-regexp-in-string with gnus-replace-in-string.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111138
diff
changeset
|
2432 (gnus-replace-in-string mbox-url "^http://" "") |
d4d3d19301c2
gnus-group.el: Replace replace-regexp-in-string with gnus-replace-in-string.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111138
diff
changeset
|
2433 "/.*$" "")))) |
93386 | 2434 (write-region (point-min) (point-max) tmpfile) |
2435 (gnus-group-read-ephemeral-group | |
2436 "gnus-read-ephemeral-bug" | |
2437 `(nndoc ,tmpfile | |
2438 (nndoc-article-type mbox)))) | |
2439 (delete-file tmpfile))) | |
2440 | |
2441 (defun gnus-read-ephemeral-debian-bug-group (number) | |
2442 "Browse Debian bug NUMBER as ephemeral group." | |
2443 (interactive (list (read-string "Enter bug number: " | |
2444 (thing-at-point 'word) nil))) | |
2445 (gnus-read-ephemeral-bug-group | |
2446 number | |
2447 (cdr (assoc 'debian gnus-bug-group-download-format-alist)))) | |
2448 | |
2449 (defun gnus-read-ephemeral-emacs-bug-group (number) | |
2450 "Browse Emacs bug NUMBER as ephemeral group." | |
2451 (interactive (list (read-string "Enter bug number: " | |
2452 (thing-at-point 'word) nil))) | |
2453 (gnus-read-ephemeral-bug-group | |
2454 number | |
2455 (cdr (assoc 'emacs gnus-bug-group-download-format-alist)))) | |
87696 | 2456 |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2457 (defun gnus-group-jump-to-group (group &optional prompt) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2458 "Jump to newsgroup GROUP. |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2459 |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2460 If PROMPT (the prefix) is a number, use the prompt specified in |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2461 `gnus-group-jump-to-group-prompt'." |
17493 | 2462 (interactive |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2463 (list (gnus-group-completing-read |
110661
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2464 nil nil (gnus-read-active-file-p) |
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2465 (if current-prefix-arg |
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2466 (cdr (assq current-prefix-arg gnus-group-jump-to-group-prompt)) |
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2467 (or (and (stringp gnus-group-jump-to-group-prompt) |
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2468 gnus-group-jump-to-group-prompt) |
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2469 (let ((p (cdr (assq 0 gnus-group-jump-to-group-prompt)))) |
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2470 (and (stringp p) p))))))) |
17493 | 2471 |
2472 (when (equal group "") | |
2473 (error "Empty group name")) | |
2474 | |
2475 (unless (gnus-ephemeral-group-p group) | |
2476 ;; Either go to the line in the group buffer... | |
2477 (unless (gnus-group-goto-group group) | |
2478 ;; ... or insert the line. | |
2479 (gnus-group-update-group group) | |
2480 (gnus-group-goto-group group))) | |
2481 ;; Adjust cursor point. | |
2482 (gnus-group-position-point)) | |
2483 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2484 (defun gnus-group-goto-group (group &optional far test-marked) |
17493 | 2485 "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
|
2486 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
|
2487 If TEST-MARKED, the line must be marked." |
17493 | 2488 (when group |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2489 (beginning-of-line) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2490 (cond |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2491 ;; 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
|
2492 ;; 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
|
2493 ((and (not far) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2494 (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
|
2495 (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
|
2496 (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
|
2497 (point)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2498 ;; 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
|
2499 ((and (not far) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2500 (save-excursion |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2501 (forward-line -1) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2502 (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
|
2503 (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
|
2504 (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
|
2505 (forward-line -1) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2506 (point)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2507 ((and (not far) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2508 (save-excursion |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2509 (forward-line 1) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2510 (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
|
2511 (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
|
2512 (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
|
2513 (forward-line 1) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2514 (point)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2515 (test-marked |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2516 (goto-char (point-min)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2517 (let (found) |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49274
diff
changeset
|
2518 (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
|
2519 (gnus-goto-char |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2520 (text-property-any |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2521 (point) (point-max) |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49274
diff
changeset
|
2522 'gnus-group |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2523 (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
|
2524 (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
|
2525 (setq found t) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2526 (forward-line 1))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2527 found)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2528 (t |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2529 ;; 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
|
2530 (gnus-goto-char |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2531 (text-property-any |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2532 (point-min) (point-max) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2533 'gnus-group (gnus-intern-safe group gnus-active-hashtb))))))) |
17493 | 2534 |
2535 (defun gnus-group-next-group (n &optional silent) | |
2536 "Go to next N'th newsgroup. | |
2537 If N is negative, search backward instead. | |
2538 Returns the difference between N and the number of skips actually | |
2539 done." | |
2540 (interactive "p") | |
2541 (gnus-group-next-unread-group n t nil silent)) | |
2542 | |
2543 (defun gnus-group-next-unread-group (n &optional all level silent) | |
2544 "Go to next N'th unread newsgroup. | |
2545 If N is negative, search backward instead. | |
2546 If ALL is non-nil, choose any newsgroup, unread or not. | |
2547 If LEVEL is non-nil, choose the next group with level LEVEL, or, if no | |
2548 such group can be found, the next group with a level higher than | |
2549 LEVEL. | |
2550 Returns the difference between N and the number of skips actually | |
2551 made." | |
2552 (interactive "p") | |
2553 (let ((backward (< n 0)) | |
2554 (n (abs n))) | |
2555 (while (and (> n 0) | |
2556 (gnus-group-search-forward | |
2557 backward (or (not gnus-group-goto-unread) all) level)) | |
2558 (setq n (1- n))) | |
2559 (when (and (/= 0 n) | |
2560 (not silent)) | |
2561 (gnus-message 7 "No more%s newsgroups%s" (if all "" " unread") | |
2562 (if level " on this level or higher" ""))) | |
2563 n)) | |
2564 | |
2565 (defun gnus-group-prev-group (n) | |
2566 "Go to previous N'th newsgroup. | |
2567 Returns the difference between N and the number of skips actually | |
2568 done." | |
2569 (interactive "p") | |
2570 (gnus-group-next-unread-group (- n) t)) | |
2571 | |
2572 (defun gnus-group-prev-unread-group (n) | |
2573 "Go to previous N'th unread newsgroup. | |
2574 Returns the difference between N and the number of skips actually | |
2575 done." | |
2576 (interactive "p") | |
2577 (gnus-group-next-unread-group (- n))) | |
2578 | |
2579 (defun gnus-group-next-unread-group-same-level (n) | |
2580 "Go to next N'th unread newsgroup on the same level. | |
2581 If N is negative, search backward instead. | |
2582 Returns the difference between N and the number of skips actually | |
2583 done." | |
2584 (interactive "p") | |
2585 (gnus-group-next-unread-group n t (gnus-group-group-level)) | |
2586 (gnus-group-position-point)) | |
2587 | |
2588 (defun gnus-group-prev-unread-group-same-level (n) | |
2589 "Go to next N'th unread newsgroup on the same level. | |
2590 Returns the difference between N and the number of skips actually | |
2591 done." | |
2592 (interactive "p") | |
2593 (gnus-group-next-unread-group (- n) t (gnus-group-group-level)) | |
2594 (gnus-group-position-point)) | |
2595 | |
2596 (defun gnus-group-best-unread-group (&optional exclude-group) | |
2597 "Go to the group with the highest level. | |
2598 If EXCLUDE-GROUP, do not go to that group." | |
2599 (interactive) | |
2600 (goto-char (point-min)) | |
2601 (let ((best 100000) | |
2602 unread best-point) | |
2603 (while (not (eobp)) | |
2604 (setq unread (get-text-property (point) 'gnus-unread)) | |
2605 (when (and (numberp unread) (> unread 0)) | |
2606 (when (and (get-text-property (point) 'gnus-level) | |
2607 (< (get-text-property (point) 'gnus-level) best) | |
2608 (or (not exclude-group) | |
2609 (not (equal exclude-group (gnus-group-group-name))))) | |
2610 (setq best (get-text-property (point) 'gnus-level)) | |
2611 (setq best-point (point)))) | |
2612 (forward-line 1)) | |
2613 (when best-point | |
2614 (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
|
2615 (gnus-group-position-point) |
17493 | 2616 (and best-point (gnus-group-group-name)))) |
2617 | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2618 ;; Is there something like an after-point-motion-hook? |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2619 ;; (inhibit-point-motion-hooks?). Is there a tool-bar-update function? |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2620 |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2621 ;; (defun gnus-group-menu-bar-update () |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2622 ;; (let* ((buf (list (with-current-buffer gnus-group-buffer |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2623 ;; (current-buffer)))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2624 ;; (name (buffer-name (car buf)))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2625 ;; (setcdr buf |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2626 ;; (if (> (length name) 27) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2627 ;; (concat (substring name 0 12) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2628 ;; "..." |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2629 ;; (substring name -12)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2630 ;; name)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2631 ;; (menu-bar-update-buffers-1 buf))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2632 |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2633 ;; (defun gnus-group-position-point () |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2634 ;; (gnus-goto-colon) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2635 ;; (gnus-group-menu-bar-update)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2636 |
17493 | 2637 (defun gnus-group-first-unread-group () |
2638 "Go to the first group with unread articles." | |
2639 (interactive) | |
2640 (prog1 | |
2641 (let ((opoint (point)) | |
2642 unread) | |
2643 (goto-char (point-min)) | |
2644 (if (or (eq (setq unread (gnus-group-group-unread)) t) ; Not active. | |
2645 (and (numberp unread) ; Not a topic. | |
2646 (not (zerop unread))) ; Has unread articles. | |
2647 (zerop (gnus-group-next-unread-group 1))) ; Next unread group. | |
2648 (point) ; Success. | |
2649 (goto-char opoint) | |
2650 nil)) ; Not success. | |
2651 (gnus-group-position-point))) | |
2652 | |
2653 (defun gnus-group-enter-server-mode () | |
2654 "Jump to the server buffer." | |
2655 (interactive) | |
2656 (gnus-enter-server-buffer)) | |
2657 | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2658 (defun gnus-group-make-group-simple (&optional group) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2659 "Add a new newsgroup. |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2660 The user will be prompted for GROUP." |
110661
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2661 (interactive (list (gnus-group-completing-read))) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2662 (gnus-group-make-group (gnus-group-real-name group) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2663 (gnus-group-server group) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2664 nil nil t)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2665 |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2666 (defun gnus-group-make-group (name &optional method address args encoded) |
17493 | 2667 "Add a new newsgroup. |
2668 The user will be prompted for a NAME, for a select METHOD, and an | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2669 ADDRESS. NAME should be a human-readable string (i.e., not be encoded |
110777
895607aec71e
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110763
diff
changeset
|
2670 even if it contains non-ASCII characters) unless ENCODED is non-nil. |
895607aec71e
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110763
diff
changeset
|
2671 |
895607aec71e
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110763
diff
changeset
|
2672 If the backend supports it, the group will also be created on the |
895607aec71e
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110763
diff
changeset
|
2673 server." |
17493 | 2674 (interactive |
2675 (list | |
2676 (gnus-read-group "Group name: ") | |
111441
b527d5f89f7f
gnus-group.el (gnus-group-read-ephemeral-group, gnus-group-make-group): Remove superfluous ": " from the prompt.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111312
diff
changeset
|
2677 (gnus-read-method "From method"))) |
17493 | 2678 |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
2679 (when (stringp method) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2680 (setq method (or (gnus-server-to-method method) method))) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2681 (unless encoded |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2682 (setq name (mm-encode-coding-string |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2683 name |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2684 (gnus-group-name-charset method name)))) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2685 (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
|
2686 (when (and method |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2687 (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
|
2688 (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
|
2689 method)))) |
17493 | 2690 (nname (if method (gnus-group-prefixed-name name meth) name)) |
2691 backend info) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2692 (when (gnus-group-entry nname) |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2693 (error "Group %s already exists" (gnus-group-decoded-name nname))) |
17493 | 2694 ;; Subscribe to the new group. |
2695 (gnus-group-change-level | |
2696 (setq info (list t nname gnus-level-default-subscribed nil nil meth)) | |
2697 gnus-level-default-subscribed gnus-level-killed | |
2698 (and (gnus-group-group-name) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2699 (gnus-group-entry (gnus-group-group-name))) |
17493 | 2700 t) |
2701 ;; Make it active. | |
2702 (gnus-set-active nname (cons 1 0)) | |
2703 (unless (gnus-ephemeral-group-p name) | |
2704 (gnus-dribble-enter | |
2705 (concat "(gnus-group-set-info '" | |
2706 (gnus-prin1-to-string (cdr info)) ")"))) | |
2707 ;; Insert the line. | |
2708 (gnus-group-insert-group-line-info nname) | |
2709 (forward-line -1) | |
2710 (gnus-group-position-point) | |
2711 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2712 ;; Load the back end and try to make the back end create |
17493 | 2713 ;; the group as well. |
2714 (when (assoc (symbol-name (setq backend (car (gnus-server-get-method | |
2715 nil meth)))) | |
2716 gnus-valid-select-methods) | |
2717 (require backend)) | |
2718 (gnus-check-server meth) | |
2719 (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
|
2720 (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
|
2721 (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
|
2722 (nnheader-get-report backend)))) |
17493 | 2723 t)) |
2724 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2725 (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
|
2726 "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
|
2727 (interactive "P") |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2728 (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
|
2729 (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
|
2730 (if (= n 1) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2731 "Delete this 1 group? " |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2732 (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
|
2733 (gnus-group-iterate arg |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2734 (lambda (group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2735 (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
|
2736 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2737 (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
|
2738 "Delete the current group. Only meaningful with editable groups. |
17493 | 2739 If FORCE (the prefix) is non-nil, all the articles in the group will |
2740 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
|
2741 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
|
2742 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
|
2743 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
|
2744 be removed from the server, even when it's empty." |
17493 | 2745 (interactive |
2746 (list (gnus-group-group-name) | |
2747 current-prefix-arg)) | |
2748 (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
|
2749 (error "No group to delete")) |
17493 | 2750 (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
|
2751 (error "This back end does not support group deletion")) |
17493 | 2752 (prog1 |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2753 (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
|
2754 (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
|
2755 (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
|
2756 (format |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2757 "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
|
2758 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
|
2759 () ; Whew! |
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2760 (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
|
2761 (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
|
2762 (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
|
2763 (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
|
2764 (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
|
2765 (gnus-group-kill-group 1 t) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2766 (gnus-set-active group nil) |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
2767 t))) |
17493 | 2768 (gnus-group-position-point))) |
2769 | |
2770 (defun gnus-group-rename-group (group new-name) | |
2771 "Rename group from GROUP to NEW-NAME. | |
2772 When used interactively, GROUP is the group under point | |
2773 and NEW-NAME will be prompted for." | |
2774 (interactive | |
85974 | 2775 (let ((group (gnus-group-group-name)) |
2776 method new-name) | |
2777 (unless (gnus-check-backend-function 'request-rename-group group) | |
2778 (error "This back end does not support renaming groups")) | |
2779 (setq new-name (gnus-read-group | |
2780 "Rename group to: " | |
2781 (gnus-group-real-name (gnus-group-decoded-name group))) | |
2782 method (gnus-info-method (gnus-get-info group))) | |
2783 (list group (mm-encode-coding-string | |
2784 new-name | |
2785 (gnus-group-name-charset | |
2786 method | |
2787 (gnus-group-prefixed-name new-name method)))))) | |
17493 | 2788 |
2789 (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
|
2790 (error "This back end does not support renaming groups")) |
17493 | 2791 (unless group |
2792 (error "No group to rename")) | |
2793 (when (equal (gnus-group-real-name group) new-name) | |
2794 (error "Can't rename to the same name")) | |
2795 | |
2796 ;; We find the proper prefixed name. | |
2797 (setq new-name | |
2798 (if (gnus-group-native-p group) | |
2799 ;; Native group. | |
2800 new-name | |
2801 ;; Foreign group. | |
2802 (gnus-group-prefixed-name | |
2803 (gnus-group-real-name new-name) | |
2804 (gnus-info-method (gnus-get-info group))))) | |
2805 | |
85974 | 2806 (let ((decoded-group (gnus-group-decoded-name group)) |
2807 (decoded-new-name (gnus-group-decoded-name new-name))) | |
2808 (when (gnus-active new-name) | |
2809 (error "The group %s already exists" decoded-new-name)) | |
2810 | |
2811 (gnus-message 6 "Renaming group %s to %s..." | |
2812 decoded-group decoded-new-name) | |
2813 (prog1 | |
2814 (if (progn | |
2815 (gnus-group-goto-group group) | |
2816 (not (when (< (gnus-group-group-level) gnus-level-zombie) | |
2817 (gnus-request-rename-group group new-name)))) | |
2818 (gnus-error 3 "Couldn't rename group %s to %s" | |
2819 decoded-group decoded-new-name) | |
2820 ;; We rename the group internally by killing it... | |
2821 (gnus-group-kill-group) | |
2822 ;; ... changing its name ... | |
2823 (setcar (cdar gnus-list-of-killed-groups) new-name) | |
2824 ;; ... and then yanking it. Magic! | |
2825 (gnus-group-yank-group) | |
2826 (gnus-set-active new-name (gnus-active group)) | |
2827 (gnus-message 6 "Renaming group %s to %s...done" | |
2828 decoded-group decoded-new-name) | |
2829 new-name) | |
2830 (setq gnus-killed-list (delete group gnus-killed-list)) | |
2831 (gnus-set-active group nil) | |
2832 (gnus-dribble-touch) | |
2833 (gnus-group-position-point)))) | |
17493 | 2834 |
2835 (defun gnus-group-edit-group (group &optional part) | |
2836 "Edit the group on the current line." | |
2837 (interactive (list (gnus-group-group-name))) | |
2838 (let ((part (or part 'info)) | |
2839 info) | |
2840 (unless group | |
2841 (error "No group on current line")) | |
2842 (unless (setq info (gnus-get-info group)) | |
2843 (error "Killed group; can't be edited")) | |
2844 (ignore-errors | |
2845 (gnus-close-group group)) | |
2846 (gnus-edit-form | |
2847 ;; Find the proper form to edit. | |
2848 (cond ((eq part 'method) | |
2849 (or (gnus-info-method info) "native")) | |
2850 ((eq part 'params) | |
2851 (gnus-info-params info)) | |
2852 (t info)) | |
2853 ;; The proper documentation. | |
2854 (format | |
2855 "Editing the %s for `%s'." | |
2856 (cond | |
2857 ((eq part 'method) "select method") | |
2858 ((eq part 'params) "group parameters") | |
2859 (t "group info")) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2860 (gnus-group-decoded-name group)) |
17493 | 2861 `(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
|
2862 (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
|
2863 (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
|
2864 "\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
|
2865 (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
|
2866 (cond |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2867 ((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
|
2868 "(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
|
2869 ((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
|
2870 "(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
|
2871 (t |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2872 "(gnus)Group Info")))))) |
17493 | 2873 |
2874 (defun gnus-group-edit-group-method (group) | |
2875 "Edit the select method of GROUP." | |
2876 (interactive (list (gnus-group-group-name))) | |
2877 (gnus-group-edit-group group 'method)) | |
2878 | |
2879 (defun gnus-group-edit-group-parameters (group) | |
2880 "Edit the group parameters of GROUP." | |
2881 (interactive (list (gnus-group-group-name))) | |
2882 (gnus-group-edit-group group 'params)) | |
2883 | |
2884 (defun gnus-group-edit-group-done (part group form) | |
2885 "Update variables." | |
2886 (let* ((method (cond ((eq part 'info) (nth 4 form)) | |
2887 ((eq part 'method) form) | |
2888 (t nil))) | |
2889 (info (cond ((eq part 'info) form) | |
2890 ((eq part 'method) (gnus-get-info group)) | |
2891 (t nil))) | |
2892 (new-group (if info | |
2893 (if (or (not method) | |
2894 (gnus-server-equal | |
2895 gnus-select-method method)) | |
2896 (gnus-group-real-name (car info)) | |
2897 (gnus-group-prefixed-name | |
2898 (gnus-group-real-name (car info)) method)) | |
2899 nil))) | |
2900 (when (and new-group | |
2901 (not (equal new-group group))) | |
2902 (when (gnus-group-goto-group group) | |
2903 (gnus-group-kill-group 1)) | |
2904 (gnus-activate-group new-group)) | |
2905 ;; Set the info. | |
2906 (if (not (and info new-group)) | |
2907 (gnus-group-set-info form (or new-group group) part) | |
2908 (setq info (gnus-copy-sequence info)) | |
2909 (setcar info new-group) | |
2910 (unless (gnus-server-equal method "native") | |
2911 (unless (nthcdr 3 info) | |
2912 (nconc info (list nil nil))) | |
2913 (unless (nthcdr 4 info) | |
2914 (nconc info (list nil))) | |
2915 (gnus-info-set-method info method)) | |
2916 (gnus-group-set-info info)) | |
2917 (gnus-group-update-group (or new-group group)) | |
2918 (gnus-group-position-point))) | |
2919 | |
2920 (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
|
2921 "Create one of the groups described in `gnus-useful-groups'." |
17493 | 2922 (interactive |
110661
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2923 (let ((entry (assoc (gnus-completing-read "Create group" |
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2924 (mapcar 'car gnus-useful-groups) |
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
2925 t) |
17493 | 2926 gnus-useful-groups))) |
98114
a5e4178becee
* gnus-group.el (gnus-group-make-useful-group): Don't use the compiler
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
95816
diff
changeset
|
2927 (list (cadr entry) |
a5e4178becee
* gnus-group.el (gnus-group-make-useful-group): Don't use the compiler
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
95816
diff
changeset
|
2928 ;; Don't use `caddr' here since macros within the `interactive' |
a5e4178becee
* gnus-group.el (gnus-group-make-useful-group): Don't use the compiler
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
95816
diff
changeset
|
2929 ;; form won't be expanded. |
a5e4178becee
* gnus-group.el (gnus-group-make-useful-group): Don't use the compiler
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
95816
diff
changeset
|
2930 (car (cddr entry))))) |
17493 | 2931 (setq method (gnus-copy-sequence method)) |
2932 (let (entry) | |
2933 (while (setq entry (memq (assq 'eval method) method)) | |
2934 (setcar entry (eval (cadar entry))))) | |
2935 (gnus-group-make-group group method)) | |
2936 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2937 (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
|
2938 "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
|
2939 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
|
2940 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
|
2941 - 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
|
2942 - 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
|
2943 - if anything else, just print a message." |
17493 | 2944 (interactive) |
2945 (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
|
2946 (file (nnheader-find-etc-directory "gnus-tut.txt" t))) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2947 (if (gnus-group-entry name) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2948 (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
|
2949 (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
|
2950 ((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
|
2951 ;; stay silent |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2952 ) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2953 (t |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2954 (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
|
2955 ;; else: |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
2956 (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
|
2957 (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
|
2958 (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
|
2959 (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
|
2960 (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
|
2961 (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
|
2962 (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
|
2963 )) |
17493 | 2964 (gnus-group-position-point)) |
2965 | |
2966 (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
|
2967 "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
|
2968 |
b070535d2416
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-111
Miles Bader <miles@gnu.org>
parents:
59996
diff
changeset
|
2969 If called with a prefix argument, ask for the file type." |
17493 | 2970 (interactive |
2971 (list (read-file-name "File name: ") | |
2972 (and current-prefix-arg 'ask))) | |
2973 (when (eq type 'ask) | |
2974 (let ((err "") | |
2975 char found) | |
2976 (while (not found) | |
2977 (message | |
60161
b070535d2416
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-111
Miles Bader <miles@gnu.org>
parents:
59996
diff
changeset
|
2978 "%sFile type (mbox, babyl, digest, forward, mmdf, guess) [m, b, d, f, a, g]: " |
17493 | 2979 err) |
2980 (setq found (cond ((= (setq char (read-char)) ?m) 'mbox) | |
2981 ((= char ?b) 'babyl) | |
2982 ((= char ?d) 'digest) | |
2983 ((= char ?f) 'forward) | |
2984 ((= char ?a) 'mmfd) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
2985 ((= char ?g) 'guess) |
17493 | 2986 (t (setq err (format "%c unknown. " char)) |
2987 nil)))) | |
2988 (setq type found))) | |
73487 | 2989 (setq file (expand-file-name file)) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2990 (let* ((name (gnus-generate-new-group-name |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2991 (gnus-group-prefixed-name |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2992 (file-name-nondirectory file) '(nndoc "")))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2993 (method (list 'nndoc file |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2994 (list 'nndoc-address file) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2995 (list 'nndoc-article-type (or type 'guess)))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2996 (coding (gnus-group-name-charset method name))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2997 (setcar (cdr method) (mm-encode-coding-string file coding)) |
17493 | 2998 (gnus-group-make-group |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
2999 (mm-encode-coding-string (gnus-group-real-name name) coding) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3000 method nil nil t))) |
17493 | 3001 |
3002 (defvar nnweb-type-definition) | |
3003 (defvar gnus-group-web-type-history nil) | |
3004 (defvar gnus-group-web-search-history nil) | |
3005 (defun gnus-group-make-web-group (&optional solid) | |
3006 "Create an ephemeral nnweb group. | |
3007 If SOLID (the prefix), create a solid group." | |
3008 (interactive "P") | |
3009 (require 'nnweb) | |
3010 (let* ((group | |
3011 (if solid (gnus-read-group "Group name: ") | |
3012 (message-unique-id))) | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
3013 (default-type (or (car gnus-group-web-type-history) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
3014 (symbol-name (caar nnweb-type-definition)))) |
17493 | 3015 (type |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
3016 (gnus-string-or |
110661
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
3017 (gnus-completing-read |
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
3018 "Search engine type" |
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
3019 (mapcar (lambda (elem) (symbol-name (car elem))) |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
3020 nnweb-type-definition) |
110661
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
3021 t nil 'gnus-group-web-type-history) |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
3022 default-type)) |
17493 | 3023 (search |
3024 (read-string | |
3025 "Search string: " | |
3026 (cons (or (car gnus-group-web-search-history) "") 0) | |
3027 'gnus-group-web-search-history)) | |
3028 (method | |
3029 `(nnweb ,group (nnweb-search ,search) | |
3030 (nnweb-type ,(intern type)) | |
3031 (nnweb-ephemeral-p t)))) | |
3032 (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
|
3033 (progn |
110859
7aa4fdb60d57
shr.el (shr-insert): Don't insert double spaces.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110810
diff
changeset
|
3034 (gnus-alist-pull 'nnweb-ephemeral-p method) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3035 (gnus-group-make-group group method)) |
17493 | 3036 (gnus-group-read-ephemeral-group |
3037 group method t | |
3038 (cons (current-buffer) | |
3039 (if (eq major-mode 'gnus-summary-mode) 'summary 'group)))))) | |
3040 | |
86154 | 3041 (defvar 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
|
3042 (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
|
3043 (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
|
3044 (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
|
3045 (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
|
3046 "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
|
3047 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
|
3048 (interactive) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3049 (require 'nnrss) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3050 (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
|
3051 (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
|
3052 (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
|
3053 (if feedinfo |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3054 (let* ((title (gnus-newsgroup-savable-name |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3055 (read-from-minibuffer "Title: " |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3056 (gnus-newsgroup-savable-name |
103839
65b0cbb5b077
(gnus-group-make-rss-group): Strip newlines and excessive whitespace
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
100908
diff
changeset
|
3057 (mapconcat |
65b0cbb5b077
(gnus-group-make-rss-group): Strip newlines and excessive whitespace
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
100908
diff
changeset
|
3058 'identity |
65b0cbb5b077
(gnus-group-make-rss-group): Strip newlines and excessive whitespace
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
100908
diff
changeset
|
3059 (split-string |
65b0cbb5b077
(gnus-group-make-rss-group): Strip newlines and excessive whitespace
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
100908
diff
changeset
|
3060 (or (cdr (assoc 'title |
65b0cbb5b077
(gnus-group-make-rss-group): Strip newlines and excessive whitespace
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
100908
diff
changeset
|
3061 feedinfo)) |
65b0cbb5b077
(gnus-group-make-rss-group): Strip newlines and excessive whitespace
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
100908
diff
changeset
|
3062 "")) |
65b0cbb5b077
(gnus-group-make-rss-group): Strip newlines and excessive whitespace
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
100908
diff
changeset
|
3063 " "))))) |
65b0cbb5b077
(gnus-group-make-rss-group): Strip newlines and excessive whitespace
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
100908
diff
changeset
|
3064 (desc (read-from-minibuffer "Description: " |
65b0cbb5b077
(gnus-group-make-rss-group): Strip newlines and excessive whitespace
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
100908
diff
changeset
|
3065 (mapconcat |
65b0cbb5b077
(gnus-group-make-rss-group): Strip newlines and excessive whitespace
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
100908
diff
changeset
|
3066 'identity |
65b0cbb5b077
(gnus-group-make-rss-group): Strip newlines and excessive whitespace
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
100908
diff
changeset
|
3067 (split-string |
65b0cbb5b077
(gnus-group-make-rss-group): Strip newlines and excessive whitespace
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
100908
diff
changeset
|
3068 (or (cdr (assoc 'description |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3069 feedinfo)) |
103839
65b0cbb5b077
(gnus-group-make-rss-group): Strip newlines and excessive whitespace
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
100908
diff
changeset
|
3070 "")) |
65b0cbb5b077
(gnus-group-make-rss-group): Strip newlines and excessive whitespace
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
100908
diff
changeset
|
3071 " "))) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3072 (href (cdr (assoc 'href feedinfo))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3073 (coding (gnus-group-name-charset '(nnrss "") title))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3074 (when coding |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
3075 ;; 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
|
3076 (setq title (mm-decode-coding-string |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3077 (mm-encode-coding-string title coding) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3078 coding))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3079 (gnus-group-make-group title '(nnrss "")) |
61424
ad05d91d3598
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-243
Miles Bader <miles@gnu.org>
parents:
61126
diff
changeset
|
3080 (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
|
3081 (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
|
3082 (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
|
3083 |
17493 | 3084 (defun gnus-group-make-directory-group (dir) |
3085 "Create an nndir group. | |
3086 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
|
3087 directory will be used as a newsgroup. The directory should contain |
17493 | 3088 mail messages or news articles in files that have numeric names." |
3089 (interactive | |
3090 (list (read-file-name "Create group from directory: "))) | |
3091 (unless (file-exists-p dir) | |
3092 (error "No such directory")) | |
3093 (unless (file-directory-p dir) | |
3094 (error "Not a directory")) | |
3095 (let ((ext "") | |
3096 (i 0) | |
3097 group) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3098 (while (or (not group) (gnus-group-entry group)) |
17493 | 3099 (setq group |
3100 (gnus-group-prefixed-name | |
33344 | 3101 (expand-file-name ext dir) |
17493 | 3102 '(nndir ""))) |
3103 (setq ext (format "<%d>" (setq i (1+ i))))) | |
3104 (gnus-group-make-group | |
3105 (gnus-group-real-name group) | |
3106 (list 'nndir (gnus-group-real-name group) (list 'nndir-directory dir))))) | |
3107 | |
3108 (defun gnus-group-add-to-virtual (n vgroup) | |
3109 "Add the current group to a virtual group." | |
3110 (interactive | |
3111 (list current-prefix-arg | |
110661
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
3112 (gnus-group-completing-read "Add to virtual group" |
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
3113 nil t "nnvirtual:"))) |
17493 | 3114 (unless (eq (car (gnus-find-method-for-group vgroup)) 'nnvirtual) |
3115 (error "%s is not an nnvirtual group" vgroup)) | |
3116 (gnus-close-group vgroup) | |
3117 (let* ((groups (gnus-group-process-prefix n)) | |
3118 (method (gnus-info-method (gnus-get-info vgroup)))) | |
3119 (setcar (cdr method) | |
3120 (concat | |
3121 (nth 1 method) "\\|" | |
3122 (mapconcat | |
3123 (lambda (s) | |
3124 (gnus-group-remove-mark s) | |
3125 (concat "\\(^" (regexp-quote s) "$\\)")) | |
3126 groups "\\|")))) | |
3127 (gnus-group-position-point)) | |
3128 | |
3129 (defun gnus-group-make-empty-virtual (group) | |
3130 "Create a new, fresh, empty virtual group." | |
3131 (interactive "sCreate new, empty virtual group: ") | |
3132 (let* ((method (list 'nnvirtual "^$")) | |
3133 (pgroup (gnus-group-prefixed-name group method))) | |
3134 ;; Check whether it exists already. | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3135 (when (gnus-group-entry pgroup) |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
3136 (error "Group %s already exists" pgroup)) |
17493 | 3137 ;; Subscribe the new group after the group on the current line. |
3138 (gnus-subscribe-group pgroup (gnus-group-group-name) method) | |
3139 (gnus-group-update-group pgroup) | |
3140 (forward-line -1) | |
3141 (gnus-group-position-point))) | |
3142 | |
3143 (defun gnus-group-enter-directory (dir) | |
3144 "Enter an ephemeral nneething group." | |
3145 (interactive "DDirectory to read: ") | |
3146 (let* ((method (list 'nneething dir '(nneething-read-only t))) | |
3147 (leaf (gnus-group-prefixed-name | |
3148 (file-name-nondirectory (directory-file-name dir)) | |
3149 method)) | |
3150 (name (gnus-generate-new-group-name leaf))) | |
3151 (unless (gnus-group-read-ephemeral-group | |
3152 name method t | |
3153 (cons (current-buffer) | |
3154 (if (eq major-mode 'gnus-summary-mode) | |
3155 'summary 'group))) | |
3156 (error "Couldn't enter %s" dir)))) | |
3157 | |
110465
b7b7e970d807
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110433
diff
changeset
|
3158 (defun gnus-group-expunge-group (group) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3159 "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
|
3160 (interactive (list (gnus-group-group-name))) |
110465
b7b7e970d807
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110433
diff
changeset
|
3161 (let ((method (gnus-find-method-for-group group))) |
b7b7e970d807
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110433
diff
changeset
|
3162 (if (not (gnus-check-backend-function |
b7b7e970d807
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110433
diff
changeset
|
3163 'request-expunge-group (car method))) |
b7b7e970d807
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110433
diff
changeset
|
3164 (error "%s does not support expunging" (car method)) |
b7b7e970d807
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110433
diff
changeset
|
3165 (gnus-request-expunge-group group method)))) |
b7b7e970d807
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110433
diff
changeset
|
3166 |
b7b7e970d807
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110433
diff
changeset
|
3167 (autoload 'nnimap-acl-get "nnimap") |
b7b7e970d807
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110433
diff
changeset
|
3168 (autoload 'nnimap-acl-edit "nnimap") |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3169 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3170 (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
|
3171 "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
|
3172 (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
|
3173 (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
|
3174 (unless group |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3175 (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
|
3176 (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
|
3177 (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
|
3178 (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
|
3179 (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
|
3180 (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
|
3181 (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
|
3182 (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
|
3183 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3184 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
|
3185 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3186 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
|
3187 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
|
3188 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3189 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
|
3190 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
|
3191 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
|
3192 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
|
3193 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3194 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
|
3195 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
|
3196 SEARCH, COPY from mailbox) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3197 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
|
3198 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
|
3199 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
|
3200 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
|
3201 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
|
3202 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
|
3203 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
|
3204 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
|
3205 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
|
3206 `(lambda (form) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3207 (nnimap-acl-edit |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3208 ,mailbox ',method ',acl form))))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3209 |
17493 | 3210 ;; Group sorting commands |
3211 ;; Suggested by Joe Hildebrand <hildjj@idaho.fuentez.com>. | |
3212 | |
3213 (defun gnus-group-sort-groups (func &optional reverse) | |
3214 "Sort the group buffer according to FUNC. | |
3215 When used interactively, the sorting function used will be | |
3216 determined by the `gnus-group-sort-function' variable. | |
3217 If REVERSE (the prefix), reverse the sorting order." | |
3218 (interactive (list gnus-group-sort-function current-prefix-arg)) | |
3219 (funcall gnus-group-sort-alist-function | |
3220 (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
|
3221 (gnus-group-unmark-all-groups) |
17493 | 3222 (gnus-group-list-groups) |
3223 (gnus-dribble-touch)) | |
3224 | |
3225 (defun gnus-group-sort-flat (func reverse) | |
3226 ;; We peel off the dummy group from the alist. | |
3227 (when func | |
3228 (when (equal (gnus-info-group (car gnus-newsrc-alist)) "dummy.group") | |
3229 (pop gnus-newsrc-alist)) | |
3230 ;; Do the sorting. | |
3231 (setq gnus-newsrc-alist | |
3232 (sort gnus-newsrc-alist func)) | |
3233 (when reverse | |
3234 (setq gnus-newsrc-alist (nreverse gnus-newsrc-alist))) | |
3235 ;; Regenerate the hash table. | |
3236 (gnus-make-hashtable-from-newsrc-alist))) | |
3237 | |
3238 (defun gnus-group-sort-groups-by-alphabet (&optional reverse) | |
3239 "Sort the group buffer alphabetically by group name. | |
3240 If REVERSE, sort in reverse order." | |
3241 (interactive "P") | |
3242 (gnus-group-sort-groups 'gnus-group-sort-by-alphabet reverse)) | |
3243 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3244 (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
|
3245 "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
|
3246 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
|
3247 (interactive "P") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3248 (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
|
3249 |
17493 | 3250 (defun gnus-group-sort-groups-by-unread (&optional reverse) |
3251 "Sort the group buffer by number of unread articles. | |
3252 If REVERSE, sort in reverse order." | |
3253 (interactive "P") | |
3254 (gnus-group-sort-groups 'gnus-group-sort-by-unread reverse)) | |
3255 | |
3256 (defun gnus-group-sort-groups-by-level (&optional reverse) | |
3257 "Sort the group buffer by group level. | |
3258 If REVERSE, sort in reverse order." | |
3259 (interactive "P") | |
3260 (gnus-group-sort-groups 'gnus-group-sort-by-level reverse)) | |
3261 | |
3262 (defun gnus-group-sort-groups-by-score (&optional reverse) | |
3263 "Sort the group buffer by group score. | |
3264 If REVERSE, sort in reverse order." | |
3265 (interactive "P") | |
3266 (gnus-group-sort-groups 'gnus-group-sort-by-score reverse)) | |
3267 | |
3268 (defun gnus-group-sort-groups-by-rank (&optional reverse) | |
3269 "Sort the group buffer by group rank. | |
3270 If REVERSE, sort in reverse order." | |
3271 (interactive "P") | |
3272 (gnus-group-sort-groups 'gnus-group-sort-by-rank reverse)) | |
3273 | |
3274 (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
|
3275 "Sort the group buffer alphabetically by back end name. |
17493 | 3276 If REVERSE, sort in reverse order." |
3277 (interactive "P") | |
3278 (gnus-group-sort-groups 'gnus-group-sort-by-method reverse)) | |
3279 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3280 (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
|
3281 "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
|
3282 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
|
3283 (interactive "P") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3284 (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
|
3285 |
17493 | 3286 ;;; Selected group sorting. |
3287 | |
3288 (defun gnus-group-sort-selected-groups (n func &optional reverse) | |
3289 "Sort the process/prefixed groups." | |
3290 (interactive (list current-prefix-arg gnus-group-sort-function)) | |
3291 (let ((groups (gnus-group-process-prefix n))) | |
3292 (funcall gnus-group-sort-selected-function | |
3293 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
|
3294 (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
|
3295 (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
|
3296 (gnus-dribble-touch))) |
17493 | 3297 |
3298 (defun gnus-group-sort-selected-flat (groups func reverse) | |
3299 (let (entries infos) | |
3300 ;; First find all the group entries for these groups. | |
3301 (while groups | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3302 (push (nthcdr 2 (gnus-group-entry (pop groups))) |
17493 | 3303 entries)) |
3304 ;; Then sort the infos. | |
3305 (setq infos | |
3306 (sort | |
3307 (mapcar | |
3308 (lambda (entry) (car entry)) | |
3309 (setq entries (nreverse entries))) | |
3310 func)) | |
3311 (when reverse | |
3312 (setq infos (nreverse infos))) | |
3313 ;; Go through all the infos and replace the old entries | |
3314 ;; with the new infos. | |
3315 (while infos | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3316 (setcar (car entries) (pop infos)) |
17493 | 3317 (pop entries)) |
3318 ;; Update the hashtable. | |
3319 (gnus-make-hashtable-from-newsrc-alist))) | |
3320 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3321 (defun gnus-group-sort-selected-groups-by-alphabet (&optional n reverse) |
17493 | 3322 "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
|
3323 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
|
3324 sort in reverse order." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3325 (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
|
3326 (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
|
3327 |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3328 (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
|
3329 "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
|
3330 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
|
3331 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
|
3332 (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
|
3333 (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
|
3334 |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3335 (defun gnus-group-sort-selected-groups-by-unread (&optional n reverse) |
17493 | 3336 "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
|
3337 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
|
3338 sort in reverse order." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3339 (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
|
3340 (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
|
3341 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3342 (defun gnus-group-sort-selected-groups-by-level (&optional n reverse) |
17493 | 3343 "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
|
3344 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
|
3345 sort in reverse order." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3346 (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
|
3347 (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
|
3348 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3349 (defun gnus-group-sort-selected-groups-by-score (&optional n reverse) |
17493 | 3350 "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
|
3351 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
|
3352 sort in reverse order." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3353 (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
|
3354 (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
|
3355 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3356 (defun gnus-group-sort-selected-groups-by-rank (&optional n reverse) |
17493 | 3357 "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
|
3358 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
|
3359 sort in reverse order." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3360 (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
|
3361 (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
|
3362 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3363 (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
|
3364 "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
|
3365 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
|
3366 sort in reverse order." |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3367 (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
|
3368 (gnus-group-sort-selected-groups n 'gnus-group-sort-by-method reverse)) |
17493 | 3369 |
3370 ;;; Sorting predicates. | |
3371 | |
3372 (defun gnus-group-sort-by-alphabet (info1 info2) | |
3373 "Sort alphabetically." | |
3374 (string< (gnus-info-group info1) (gnus-info-group info2))) | |
3375 | |
3376 (defun gnus-group-sort-by-real-name (info1 info2) | |
3377 "Sort alphabetically on real (unprefixed) names." | |
3378 (string< (gnus-group-real-name (gnus-info-group info1)) | |
3379 (gnus-group-real-name (gnus-info-group info2)))) | |
3380 | |
3381 (defun gnus-group-sort-by-unread (info1 info2) | |
3382 "Sort by number of unread articles." | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3383 (let ((n1 (gnus-group-unread (gnus-info-group info1))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3384 (n2 (gnus-group-unread (gnus-info-group info2)))) |
17493 | 3385 (< (or (and (numberp n1) n1) 0) |
3386 (or (and (numberp n2) n2) 0)))) | |
3387 | |
3388 (defun gnus-group-sort-by-level (info1 info2) | |
3389 "Sort by level." | |
3390 (< (gnus-info-level info1) (gnus-info-level info2))) | |
3391 | |
3392 (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
|
3393 "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
|
3394 (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
|
3395 (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
|
3396 (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
|
3397 (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
|
3398 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3399 (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
|
3400 "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
|
3401 (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
|
3402 (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
|
3403 (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
|
3404 (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
|
3405 (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
|
3406 (gnus-info-group info2) info2)))) |
17493 | 3407 |
3408 (defun gnus-group-sort-by-score (info1 info2) | |
3409 "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
|
3410 (> (gnus-info-score info1) (gnus-info-score info2))) |
17493 | 3411 |
3412 (defun gnus-group-sort-by-rank (info1 info2) | |
3413 "Sort by level and score." | |
3414 (let ((level1 (gnus-info-level info1)) | |
3415 (level2 (gnus-info-level info2))) | |
3416 (or (< level1 level2) | |
3417 (and (= level1 level2) | |
3418 (> (gnus-info-score info1) (gnus-info-score info2)))))) | |
3419 | |
3420 ;;; Clearing data | |
3421 | |
3422 (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
|
3423 "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
|
3424 Obeys the process/prefix convention." |
17493 | 3425 (interactive "P") |
3426 (gnus-group-iterate arg | |
3427 (lambda (group) | |
3428 (let (info) | |
3429 (gnus-info-clear-data (setq info (gnus-get-info group))) | |
3430 (gnus-get-unread-articles-in-group info (gnus-active group) t) | |
3431 (when (gnus-group-goto-group group) | |
3432 (gnus-group-update-group-line)))))) | |
3433 | |
3434 (defun gnus-group-clear-data-on-native-groups () | |
3435 "Clear all marks and read ranges from all native groups." | |
3436 (interactive) | |
3437 (when (gnus-yes-or-no-p "Really clear all data from almost all groups? ") | |
3438 (let ((alist (cdr gnus-newsrc-alist)) | |
3439 info) | |
3440 (while (setq info (pop alist)) | |
3441 (when (gnus-group-native-p (gnus-info-group info)) | |
3442 (gnus-info-clear-data info))) | |
3443 (gnus-get-unread-articles) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3444 (gnus-dribble-touch) |
17493 | 3445 (when (gnus-y-or-n-p |
3446 "Move the cache away to avoid problems in the future? ") | |
3447 (call-interactively 'gnus-cache-move-cache))))) | |
3448 | |
3449 (defun gnus-info-clear-data (info) | |
3450 "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
|
3451 (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
|
3452 action) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3453 (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
|
3454 (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
|
3455 (push `(,(gnus-info-read info) add (read)) action) |
17493 | 3456 (gnus-undo-register |
3457 `(progn | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3458 (gnus-request-set-mark ,group ',action) |
17493 | 3459 (gnus-info-set-marks ',info ',(gnus-info-marks info) t) |
3460 (gnus-info-set-read ',info ',(gnus-info-read info)) | |
3461 (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
|
3462 (gnus-get-unread-articles-in-group ',info ',(gnus-active group) t) |
17493 | 3463 (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
|
3464 (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
|
3465 action)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3466 (gnus-request-set-mark group action) |
17493 | 3467 (gnus-info-set-read info nil) |
3468 (when (gnus-info-marks info) | |
3469 (gnus-info-set-marks info nil)))) | |
3470 | |
3471 ;; Group catching up. | |
3472 | |
3473 (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
|
3474 "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
|
3475 If prefix argument N is numeric, the next N newsgroups will be |
17493 | 3476 caught up. If ALL is non-nil, marked articles will also be marked as |
3477 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
|
3478 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
|
3479 up is returned." |
17493 | 3480 (interactive "P") |
3481 (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
|
3482 (ret 0) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3483 group) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3484 (unless groups (error "No groups selected")) |
17493 | 3485 (if (not |
3486 (or (not gnus-interactive-catchup) ;Without confirmation? | |
3487 gnus-expert-user | |
3488 (gnus-y-or-n-p | |
3489 (format | |
3490 (if all | |
3491 "Do you really want to mark all articles in %s as read? " | |
3492 "Mark all unread articles in %s as read? ") | |
3493 (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
|
3494 (gnus-group-decoded-name (car groups)) |
17493 | 3495 (format "these %d groups" (length groups))))))) |
3496 n | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3497 (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
|
3498 (gnus-group-remove-mark group) |
17493 | 3499 ;; 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
|
3500 (let ((method (gnus-find-method-for-group group))) |
17493 | 3501 (when (eq 'nnvirtual (car method)) |
3502 (nnvirtual-catchup-group | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3503 (gnus-group-real-name group) (nth 1 method) all))) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3504 (cond |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3505 ((>= (gnus-group-level group) gnus-level-zombie) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3506 (gnus-message 2 "Dead groups can't be caught up")) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3507 ((prog1 |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3508 (gnus-group-goto-group group) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3509 (gnus-group-catchup group all)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3510 (gnus-group-update-group-line)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3511 (t |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3512 (setq ret (1+ ret))))) |
17493 | 3513 (gnus-group-next-unread-group 1) |
3514 ret))) | |
3515 | |
3516 (defun gnus-group-catchup-current-all (&optional n) | |
3517 "Mark all articles in current newsgroup as read. | |
3518 Cross references (Xref: header) of articles are ignored." | |
3519 (interactive "P") | |
3520 (gnus-group-catchup-current n 'all)) | |
3521 | |
3522 (defun gnus-group-catchup (group &optional all) | |
3523 "Mark all articles in GROUP as read. | |
3524 If ALL is non-nil, all articles are marked as read. | |
3525 The return value is the number of articles that were marked as read, | |
3526 or nil if no action could be taken." | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3527 (let* ((entry (gnus-group-entry group)) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3528 (num (car entry)) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3529 (marks (gnus-info-marks (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
|
3530 (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
|
3531 ;; 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
|
3532 (nnmail-purge-split-history (gnus-group-real-name group)) |
17493 | 3533 ;; Do the updating only if the newsgroup isn't killed. |
3534 (if (not (numberp (car entry))) | |
3535 (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
|
3536 (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
|
3537 (when all |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3538 ;; 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
|
3539 (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
|
3540 'del '(tick)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3541 (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
|
3542 '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
|
3543 (setq unread (gnus-range-add (gnus-range-add |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3544 unread (cdr (assq 'dormant marks))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3545 (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
|
3546 (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
|
3547 (gnus-add-marked-articles group 'dormant nil nil 'force)) |
17493 | 3548 ;; Do auto-expirable marks if that's required. |
3549 (when (gnus-group-auto-expirable-p group) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3550 (gnus-range-map |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3551 (lambda (article) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3552 (gnus-add-marked-articles group 'expire (list article)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3553 (gnus-request-set-mark group (list (list (list article) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3554 'add '(expire))))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3555 unread)) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3556 (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
|
3557 (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
|
3558 num))) |
17493 | 3559 |
3560 (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
|
3561 "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
|
3562 Uses the process/prefix convention." |
17493 | 3563 (interactive "P") |
3564 (let ((groups (gnus-group-process-prefix n)) | |
3565 group) | |
3566 (unless groups | |
3567 (error "No groups to expire")) | |
3568 (while (setq group (pop groups)) | |
3569 (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
|
3570 (gnus-group-expire-articles-1 group) |
17493 | 3571 (gnus-dribble-touch) |
3572 (gnus-group-position-point)))) | |
3573 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3574 (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
|
3575 (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
|
3576 (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
|
3577 (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
|
3578 (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
|
3579 (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
|
3580 (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
|
3581 (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
|
3582 (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
|
3583 (nnmail-expiry-target |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3584 (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
|
3585 nnmail-expiry-target))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3586 (when expirable |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3587 (gnus-check-group group) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3588 (setcdr |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3589 expirable |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3590 (gnus-compress-sequence |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3591 (if expiry-wait |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3592 ;; 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
|
3593 ;; parameter. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3594 (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
|
3595 (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
|
3596 (gnus-request-expire-articles |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3597 (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
|
3598 ;; 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
|
3599 (gnus-request-expire-articles |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3600 (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
|
3601 (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
|
3602 (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
|
3603 (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
|
3604 ;; 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
|
3605 (cdr expirable)))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3606 |
17493 | 3607 (defun gnus-group-expire-all-groups () |
3608 "Expire all expirable articles in all newsgroups." | |
3609 (interactive) | |
3610 (save-excursion | |
3611 (gnus-message 5 "Expiring...") | |
3612 (let ((gnus-group-marked (mapcar (lambda (info) (gnus-info-group info)) | |
3613 (cdr gnus-newsrc-alist)))) | |
3614 (gnus-group-expire-articles nil))) | |
3615 (gnus-group-position-point) | |
3616 (gnus-message 5 "Expiring...done")) | |
3617 | |
3618 (defun gnus-group-set-current-level (n level) | |
3619 "Set the level of the next N groups to LEVEL." | |
3620 (interactive | |
3621 (list | |
3622 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
|
3623 (progn |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3624 (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
|
3625 (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
|
3626 (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
|
3627 (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
|
3628 (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
|
3629 (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
|
3630 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
|
3631 (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
|
3632 (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
|
3633 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
|
3634 s)))))) |
17493 | 3635 (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
|
3636 (error "Invalid level: %d" level)) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3637 (dolist (group (gnus-group-process-prefix n)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3638 (gnus-group-remove-mark group) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3639 (gnus-message 6 "Changed level of %s from %d to %d" |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3640 (gnus-group-decoded-name group) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3641 (or (gnus-group-group-level) gnus-level-killed) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3642 level) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3643 (gnus-group-change-level |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3644 group level (or (gnus-group-group-level) gnus-level-killed)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3645 (gnus-group-update-group-line)) |
17493 | 3646 (gnus-group-position-point)) |
3647 | |
3648 (defun gnus-group-unsubscribe (&optional n) | |
3649 "Unsubscribe the current group." | |
3650 (interactive "P") | |
3651 (gnus-group-unsubscribe-current-group n 'unsubscribe)) | |
3652 | |
3653 (defun gnus-group-subscribe (&optional n) | |
3654 "Subscribe the current group." | |
3655 (interactive "P") | |
3656 (gnus-group-unsubscribe-current-group n 'subscribe)) | |
3657 | |
3658 (defun gnus-group-unsubscribe-current-group (&optional n do-sub) | |
3659 "Toggle subscription of the current group. | |
3660 If given numerical prefix, toggle the N next groups." | |
3661 (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
|
3662 (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
|
3663 (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
|
3664 (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
|
3665 group |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3666 (cond |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3667 ((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
|
3668 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
|
3669 ((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
|
3670 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
|
3671 ((<= (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
|
3672 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
|
3673 (t |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3674 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
|
3675 t) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3676 (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
|
3677 (gnus-group-next-group 1)) |
17493 | 3678 |
3679 (defun gnus-group-unsubscribe-group (group &optional level silent) | |
3680 "Toggle subscription to GROUP. | |
3681 Killed newsgroups are subscribed. If SILENT, don't try to update the | |
3682 group line." | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3683 (interactive (list (gnus-group-completing-read |
111083
9a8bf31cd307
gnus-group.el (gnus-group-unsubscribe-group): Fix args passed to gnus-group-completing-read.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111029
diff
changeset
|
3684 nil nil (gnus-read-active-file-p)))) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3685 (let ((newsrc (gnus-group-entry group))) |
17493 | 3686 (cond |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3687 ((string-match "^[ \t]*$" group) |
17493 | 3688 (error "Empty group name")) |
3689 (newsrc | |
3690 ;; Toggle subscription flag. | |
3691 (gnus-group-change-level | |
3692 newsrc (if level level (if (<= (gnus-info-level (nth 2 newsrc)) | |
3693 gnus-level-subscribed) | |
3694 (1+ gnus-level-subscribed) | |
3695 gnus-level-default-subscribed))) | |
3696 (unless silent | |
3697 (gnus-group-update-group group))) | |
3698 ((and (stringp group) | |
3699 (or (not (gnus-read-active-file-p)) | |
3700 (gnus-active group))) | |
3701 ;; Add new newsgroup. | |
3702 (gnus-group-change-level | |
3703 group | |
3704 (if level level gnus-level-default-subscribed) | |
3705 (or (and (member group gnus-zombie-list) | |
3706 gnus-level-zombie) | |
3707 gnus-level-killed) | |
3708 (when (gnus-group-group-name) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3709 (gnus-group-entry (gnus-group-group-name)))) |
17493 | 3710 (unless silent |
3711 (gnus-group-update-group group))) | |
3712 (t (error "No such newsgroup: %s" group))) | |
3713 (gnus-group-position-point))) | |
3714 | |
3715 (defun gnus-group-transpose-groups (n) | |
3716 "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
|
3717 If given a negative prefix, move down instead. The difference between |
17493 | 3718 N and the number of steps taken is returned." |
3719 (interactive "p") | |
3720 (unless (gnus-group-group-name) | |
3721 (error "No group on current line")) | |
3722 (gnus-group-kill-group 1) | |
3723 (prog1 | |
3724 (forward-line (- n)) | |
3725 (gnus-group-yank-group) | |
3726 (gnus-group-position-point))) | |
3727 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3728 (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
|
3729 "Kill all zombie newsgroups. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3730 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
|
3731 (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
|
3732 (unless dummy |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3733 (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
|
3734 (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
|
3735 (gnus-dribble-touch) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3736 (gnus-group-list-groups))) |
17493 | 3737 |
3738 (defun gnus-group-kill-region (begin end) | |
3739 "Kill newsgroups in current region (excluding current point). | |
3740 The killed newsgroups can be yanked by using \\[gnus-group-yank-group]." | |
3741 (interactive "r") | |
3742 (let ((lines | |
3743 ;; Count lines. | |
3744 (save-excursion | |
3745 (count-lines | |
3746 (progn | |
3747 (goto-char begin) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3748 (point-at-bol)) |
17493 | 3749 (progn |
3750 (goto-char end) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3751 (point-at-bol)))))) |
17493 | 3752 (goto-char begin) |
3753 (beginning-of-line) ;Important when LINES < 1 | |
3754 (gnus-group-kill-group lines))) | |
3755 | |
3756 (defun gnus-group-kill-group (&optional n discard) | |
3757 "Kill the next N groups. | |
3758 The killed newsgroups can be yanked by using \\[gnus-group-yank-group]. | |
3759 However, only groups that were alive can be yanked; already killed | |
3760 groups or zombie groups can't be yanked. | |
3761 The return value is the name of the group that was killed, or a list | |
3762 of groups killed." | |
3763 (interactive "P") | |
3764 (let ((buffer-read-only nil) | |
3765 (groups (gnus-group-process-prefix n)) | |
3766 group entry level out) | |
3767 (if (< (length groups) 10) | |
3768 ;; This is faster when there are few groups. | |
3769 (while groups | |
3770 (push (setq group (pop groups)) out) | |
3771 (gnus-group-remove-mark group) | |
3772 (setq level (gnus-group-group-level)) | |
3773 (gnus-delete-line) | |
3774 (when (and (not discard) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3775 (setq entry (gnus-group-entry group))) |
17493 | 3776 (gnus-undo-register |
3777 `(progn | |
3778 (gnus-group-goto-group ,(gnus-group-group-name)) | |
3779 (gnus-group-yank-group))) | |
3780 (push (cons (car entry) (nth 2 entry)) | |
3781 gnus-list-of-killed-groups)) | |
3782 (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
|
3783 (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
|
3784 (message "Killed group %s" (gnus-group-decoded-name group))) |
17493 | 3785 ;; If there are lots and lots of groups to be killed, we use |
3786 ;; 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
|
3787 (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
|
3788 (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
|
3789 (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
|
3790 (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
|
3791 (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
|
3792 (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
|
3793 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
|
3794 (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
|
3795 (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
|
3796 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
|
3797 (cond |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3798 ((setq entry (gnus-group-entry group)) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3799 (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
|
3800 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
|
3801 (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
|
3802 ((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
|
3803 (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
|
3804 ;; 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
|
3805 (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
|
3806 (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
|
3807 (gnus-make-hashtable-from-newsrc-alist)) |
17493 | 3808 |
3809 (gnus-group-position-point) | |
3810 (if (< (length out) 2) (car out) (nreverse out)))) | |
3811 | |
3812 (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
|
3813 "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
|
3814 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
|
3815 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
|
3816 yanked) a list of yanked groups is returned." |
17493 | 3817 (interactive "p") |
3818 (setq arg (or arg 1)) | |
3819 (let (info group prev out) | |
3820 (while (>= (decf arg) 0) | |
3821 (when (not (setq info (pop gnus-list-of-killed-groups))) | |
3822 (error "No more newsgroups to yank")) | |
3823 (push (setq group (nth 1 info)) out) | |
3824 ;; Find which newsgroup to insert this one before - search | |
3825 ;; backward until something suitable is found. If there are no | |
3826 ;; other newsgroups in this buffer, just make this newsgroup the | |
3827 ;; first newsgroup. | |
3828 (setq prev (gnus-group-group-name)) | |
3829 (gnus-group-change-level | |
3830 info (gnus-info-level (cdr info)) gnus-level-killed | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3831 (and prev (gnus-group-entry prev)) |
17493 | 3832 t) |
3833 (gnus-group-insert-group-line-info group) | |
3834 (gnus-undo-register | |
3835 `(when (gnus-group-goto-group ,group) | |
3836 (gnus-group-kill-group 1)))) | |
3837 (forward-line -1) | |
3838 (gnus-group-position-point) | |
3839 (if (< (length out) 2) (car out) (nreverse out)))) | |
3840 | |
3841 (defun gnus-group-kill-level (level) | |
3842 "Kill all groups that is on a certain LEVEL." | |
3843 (interactive "nKill all groups on level: ") | |
3844 (cond | |
3845 ((= level gnus-level-zombie) | |
3846 (setq gnus-killed-list | |
3847 (nconc gnus-zombie-list gnus-killed-list)) | |
3848 (setq gnus-zombie-list nil)) | |
3849 ((and (< level gnus-level-zombie) | |
3850 (> level 0) | |
3851 (or gnus-expert-user | |
3852 (gnus-yes-or-no-p | |
3853 (format | |
3854 "Do you really want to kill all groups on level %d? " | |
3855 level)))) | |
3856 (let* ((prev gnus-newsrc-alist) | |
3857 (alist (cdr prev))) | |
3858 (while alist | |
3859 (if (= (gnus-info-level (car alist)) level) | |
3860 (progn | |
3861 (push (gnus-info-group (car alist)) gnus-killed-list) | |
3862 (setcdr prev (cdr alist))) | |
3863 (setq prev alist)) | |
3864 (setq alist (cdr alist))) | |
3865 (gnus-make-hashtable-from-newsrc-alist) | |
3866 (gnus-group-list-groups))) | |
3867 (t | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3868 (error "Can't kill; invalid level: %d" level)))) |
17493 | 3869 |
3870 (defun gnus-group-list-all-groups (&optional arg) | |
3871 "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
|
3872 Default is `gnus-level-unsubscribed', which lists all subscribed and most |
17493 | 3873 unsubscribed groups." |
3874 (interactive "P") | |
3875 (gnus-group-list-groups (or arg gnus-level-unsubscribed) t)) | |
3876 | |
3877 ;; Redefine this to list ALL killed groups if prefix arg used. | |
3878 ;; Rewritten by engstrom@src.honeywell.com (Eric Engstrom). | |
3879 (defun gnus-group-list-killed (&optional arg) | |
3880 "List all killed newsgroups in the group buffer. | |
3881 If ARG is non-nil, list ALL killed groups known to Gnus. This may | |
3882 entail asking the server for the groups." | |
3883 (interactive "P") | |
3884 ;; Find all possible killed newsgroups if arg. | |
3885 (when arg | |
3886 (gnus-get-killed-groups)) | |
3887 (if (not gnus-killed-list) | |
3888 (gnus-message 6 "No killed groups") | |
3889 (let (gnus-group-list-mode) | |
3890 (funcall gnus-group-prepare-function | |
3891 gnus-level-killed t gnus-level-killed)) | |
3892 (goto-char (point-min))) | |
3893 (gnus-group-position-point)) | |
3894 | |
3895 (defun gnus-group-list-zombies () | |
3896 "List all zombie newsgroups in the group buffer." | |
3897 (interactive) | |
3898 (if (not gnus-zombie-list) | |
3899 (gnus-message 6 "No zombie groups") | |
3900 (let (gnus-group-list-mode) | |
3901 (funcall gnus-group-prepare-function | |
3902 gnus-level-zombie t gnus-level-zombie)) | |
3903 (goto-char (point-min))) | |
3904 (gnus-group-position-point)) | |
3905 | |
3906 (defun gnus-group-list-active () | |
3907 "List all groups that are available from the server(s)." | |
3908 (interactive) | |
3909 ;; First we make sure that we have really read the active file. | |
3910 (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
|
3911 (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
|
3912 (gnus-agent gnus-plugged)); If we're actually plugged, store the active file in the agent. |
17493 | 3913 (gnus-read-active-file))) |
3914 ;; Find all groups and sort them. | |
3915 (let ((groups | |
3916 (sort | |
3917 (let (list) | |
3918 (mapatoms | |
3919 (lambda (sym) | |
3920 (and (boundp sym) | |
3921 (symbol-value sym) | |
3922 (push (symbol-name sym) list))) | |
3923 gnus-active-hashtb) | |
3924 list) | |
3925 'string<)) | |
3926 (buffer-read-only nil) | |
3927 group) | |
3928 (erase-buffer) | |
3929 (while groups | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3930 (setq group (pop groups)) |
17493 | 3931 (gnus-add-text-properties |
3932 (point) (prog1 (1+ (point)) | |
3933 (insert " *: " | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
3934 (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
|
3935 "\n")) |
17493 | 3936 (list 'gnus-group (gnus-intern-safe group gnus-active-hashtb) |
3937 'gnus-unread t | |
3938 'gnus-level (inline (gnus-group-level group))))) | |
3939 (goto-char (point-min)))) | |
3940 | |
3941 (defun gnus-activate-all-groups (level) | |
3942 "Activate absolutely all groups." | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3943 (interactive (list gnus-level-unsubscribed)) |
17493 | 3944 (let ((gnus-activate-level level) |
3945 (gnus-activate-foreign-newsgroups level)) | |
3946 (gnus-group-get-new-news))) | |
3947 | |
3948 (defun gnus-group-get-new-news (&optional arg) | |
3949 "Get newly arrived articles. | |
3950 If ARG is a number, it specifies which levels you are interested in | |
3951 re-scanning. If ARG is non-nil and not a number, this will force | |
3952 \"hard\" re-reading of the active files from all servers." | |
3953 (interactive "P") | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3954 (require 'nnmail) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3955 (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
|
3956 ;; 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
|
3957 ;; 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
|
3958 (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
|
3959 (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
|
3960 (gnus-run-hooks 'gnus-get-new-news-hook) |
17493 | 3961 |
3962 ;; Read any slave files. | |
3963 (unless gnus-slave | |
3964 (gnus-master-read-slave-newsrc)) | |
3965 | |
110189
821c596efa5f
Rewrite the Gnus group activation method to be more efficient; nnmh.el (nnmh-request-list-1): Fix up the recursion behavior; Add more changes related to the new methodology for requesting backend data.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110142
diff
changeset
|
3966 (gnus-get-unread-articles arg) |
821c596efa5f
Rewrite the Gnus group activation method to be more efficient; nnmh.el (nnmh-request-list-1): Fix up the recursion behavior; Add more changes related to the new methodology for requesting backend data.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110142
diff
changeset
|
3967 |
821c596efa5f
Rewrite the Gnus group activation method to be more efficient; nnmh.el (nnmh-request-list-1): Fix up the recursion behavior; Add more changes related to the new methodology for requesting backend data.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110142
diff
changeset
|
3968 ;; If the user wants it, we scan for new groups. |
821c596efa5f
Rewrite the Gnus group activation method to be more efficient; nnmh.el (nnmh-request-list-1): Fix up the recursion behavior; Add more changes related to the new methodology for requesting backend data.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110142
diff
changeset
|
3969 (when (eq gnus-check-new-newsgroups 'always) |
821c596efa5f
Rewrite the Gnus group activation method to be more efficient; nnmh.el (nnmh-request-list-1): Fix up the recursion behavior; Add more changes related to the new methodology for requesting backend data.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110142
diff
changeset
|
3970 (gnus-find-new-newsgroups)) |
821c596efa5f
Rewrite the Gnus group activation method to be more efficient; nnmh.el (nnmh-request-list-1): Fix up the recursion behavior; Add more changes related to the new methodology for requesting backend data.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110142
diff
changeset
|
3971 |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3972 (gnus-check-reasonable-setup) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
3973 (gnus-run-hooks 'gnus-after-getting-new-news-hook) |
17493 | 3974 (gnus-group-list-groups (and (numberp arg) |
3975 (max (car gnus-group-list-mode) arg))))) | |
3976 | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
3977 (defun gnus-group-get-new-news-this-group (&optional n dont-scan) |
17493 | 3978 "Check for newly arrived news in the current group (and the N-1 next groups). |
3979 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
|
3980 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
|
3981 If DONT-SCAN is non-nil, scan non-activated groups as well." |
17493 | 3982 (interactive "P") |
3983 (let* ((groups (gnus-group-process-prefix n)) | |
3984 (ret (if (numberp n) (- n (length groups)) 0)) | |
3985 (beg (unless n | |
111240
ffb890b32d37
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111230
diff
changeset
|
3986 (point-marker))) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3987 group method |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3988 (gnus-inhibit-demon t) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
3989 ;; 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
|
3990 ;; 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
|
3991 (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
|
3992 (gnus-run-hooks 'gnus-get-new-news-hook) |
17493 | 3993 (while (setq group (pop groups)) |
3994 (gnus-group-remove-mark group) | |
3995 ;; 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
|
3996 (gnus-remove-denial (setq method (gnus-find-method-for-group group))) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3997 (if (gnus-activate-group group (if dont-scan nil 'scan) nil method) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3998 (let ((info (gnus-get-info group)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
3999 (active (gnus-active group))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4000 (when info |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4001 (gnus-request-update-info info method)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4002 (gnus-get-unread-articles-in-group info active) |
17493 | 4003 (unless (gnus-virtual-group-p group) |
4004 (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
|
4005 (when gnus-agent |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4006 (gnus-agent-save-group-info |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4007 method (gnus-group-real-name group) active)) |
17493 | 4008 (gnus-group-update-group group)) |
4009 (if (eq (gnus-server-status (gnus-find-method-for-group group)) | |
4010 'denied) | |
4011 (gnus-error 3 "Server denied access") | |
4012 (gnus-error 3 "%s error: %s" group (gnus-status-message group))))) | |
4013 (when beg | |
4014 (goto-char beg)) | |
4015 (when gnus-goto-next-group-when-activating | |
4016 (gnus-group-next-unread-group 1 t)) | |
111096
d7e691f6ffc0
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111083
diff
changeset
|
4017 (gnus-group-position-point) |
17493 | 4018 ret)) |
4019 | |
4020 (defun gnus-group-describe-group (force &optional group) | |
4021 "Display a description of the current newsgroup." | |
4022 (interactive (list current-prefix-arg (gnus-group-group-name))) | |
4023 (let* ((method (gnus-find-method-for-group group)) | |
4024 (mname (gnus-group-prefixed-name "" method)) | |
4025 desc) | |
4026 (when (and force | |
4027 gnus-description-hashtb) | |
4028 (gnus-sethash mname nil gnus-description-hashtb)) | |
4029 (unless group | |
4030 (error "No group name given")) | |
4031 (when (or (and gnus-description-hashtb | |
4032 ;; We check whether this group's method has been | |
4033 ;; queried for a description file. | |
4034 (gnus-gethash mname gnus-description-hashtb)) | |
4035 (setq desc (gnus-group-get-description group)) | |
4036 (gnus-read-descriptions-file method)) | |
110433
33cf78a271ef
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110189
diff
changeset
|
4037 (gnus-message 1 "%s" |
17493 | 4038 (or desc (gnus-gethash group gnus-description-hashtb) |
4039 "No description available"))))) | |
4040 | |
4041 ;; Suggested by Per Abrahamsen <amanda@iesd.auc.dk>. | |
4042 (defun gnus-group-describe-all-groups (&optional force) | |
4043 "Pop up a buffer with descriptions of all newsgroups." | |
4044 (interactive "P") | |
4045 (when force | |
4046 (setq gnus-description-hashtb nil)) | |
4047 (when (not (or gnus-description-hashtb | |
4048 (gnus-read-all-descriptions-files))) | |
4049 (error "Couldn't request descriptions file")) | |
4050 (let ((buffer-read-only nil) | |
4051 b) | |
4052 (erase-buffer) | |
4053 (mapatoms | |
4054 (lambda (group) | |
4055 (setq b (point)) | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4056 (let ((charset (gnus-group-name-charset nil (symbol-name group)))) |
49598
0d8b17d428b5
Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49274
diff
changeset
|
4057 (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
|
4058 (gnus-group-name-decode |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4059 (symbol-name group) charset) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4060 (gnus-group-name-decode |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4061 (symbol-value group) charset)))) |
17493 | 4062 (gnus-add-text-properties |
4063 b (1+ b) (list 'gnus-group group | |
4064 'gnus-unread t 'gnus-marked nil | |
4065 'gnus-level (1+ gnus-level-subscribed)))) | |
4066 gnus-description-hashtb) | |
4067 (goto-char (point-min)) | |
4068 (gnus-group-position-point))) | |
4069 | |
4070 ;; Suggested by Daniel Quinlan <quinlan@best.com>. | |
4071 (defun gnus-group-apropos (regexp &optional search-description) | |
4072 "List all newsgroups that have names that match a regexp." | |
4073 (interactive "sGnus apropos (regexp): ") | |
4074 (let ((prev "") | |
4075 (obuf (current-buffer)) | |
4076 groups des) | |
4077 ;; Go through all newsgroups that are known to Gnus. | |
4078 (mapatoms | |
4079 (lambda (group) | |
4080 (and (symbol-name group) | |
4081 (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
|
4082 (symbol-value group) |
17493 | 4083 (push (symbol-name group) groups))) |
4084 gnus-active-hashtb) | |
4085 ;; Also go through all descriptions that are known to Gnus. | |
4086 (when search-description | |
4087 (mapatoms | |
4088 (lambda (group) | |
4089 (and (string-match regexp (symbol-value group)) | |
4090 (push (symbol-name group) groups))) | |
4091 gnus-description-hashtb)) | |
4092 (if (not groups) | |
4093 (gnus-message 3 "No groups matched \"%s\"." regexp) | |
4094 ;; Print out all the groups. | |
4095 (save-excursion | |
4096 (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
|
4097 (buffer-disable-undo) |
17493 | 4098 (erase-buffer) |
4099 (setq groups (sort groups 'string<)) | |
4100 (while groups | |
4101 ;; Groups may be entered twice into the list of groups. | |
4102 (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
|
4103 (setq prev (car groups)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4104 (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
|
4105 (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
|
4106 (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
|
4107 (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
|
4108 gnus-description-hashtb))) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4109 (insert " " (gnus-group-name-decode des charset) "\n")))) |
17493 | 4110 (setq groups (cdr groups))) |
4111 (goto-char (point-min)))) | |
4112 (pop-to-buffer obuf))) | |
4113 | |
4114 (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
|
4115 "List all newsgroups that have names or descriptions that match REGEXP." |
17493 | 4116 (interactive "sGnus description apropos (regexp): ") |
4117 (when (not (or gnus-description-hashtb | |
4118 (gnus-read-all-descriptions-files))) | |
4119 (error "Couldn't request descriptions file")) | |
4120 (gnus-group-apropos regexp t)) | |
4121 | |
4122 ;; Suggested by Per Abrahamsen <amanda@iesd.auc.dk>. | |
4123 (defun gnus-group-list-matching (level regexp &optional all lowest) | |
4124 "List all groups with unread articles that match REGEXP. | |
4125 If the prefix LEVEL is non-nil, it should be a number that says which | |
4126 level to cut off listing groups. | |
4127 If ALL, also list groups with no unread articles. | |
4128 If LOWEST, don't list groups with level lower than LOWEST. | |
4129 | |
4130 This command may read the active file." | |
4131 (interactive "P\nsList newsgroups matching: ") | |
4132 ;; First make sure active file has been read. | |
4133 (when (and level | |
4134 (> (prefix-numeric-value level) gnus-level-killed)) | |
4135 (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
|
4136 (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
|
4137 (or level gnus-level-subscribed) (and all t) (or lowest 1) regexp) |
17493 | 4138 (goto-char (point-min)) |
4139 (gnus-group-position-point)) | |
4140 | |
4141 (defun gnus-group-list-all-matching (level regexp &optional lowest) | |
4142 "List all groups that match REGEXP. | |
4143 If the prefix LEVEL is non-nil, it should be a number that says which | |
4144 level to cut off listing groups. | |
4145 If LOWEST, don't list groups with level lower than LOWEST." | |
4146 (interactive "P\nsList newsgroups matching: ") | |
4147 (when level | |
4148 (setq level (prefix-numeric-value level))) | |
4149 (gnus-group-list-matching (or level gnus-level-killed) regexp t lowest)) | |
4150 | |
4151 ;; Suggested by Jack Vinson <vinson@unagi.cis.upenn.edu>. | |
4152 (defun gnus-group-save-newsrc (&optional force) | |
4153 "Save the Gnus startup files. | |
4154 If FORCE, force saving whether it is necessary or not." | |
4155 (interactive "P") | |
4156 (gnus-save-newsrc-file force)) | |
4157 | |
4158 (defun gnus-group-restart (&optional arg) | |
4159 "Force Gnus to read the .newsrc file." | |
4160 (interactive "P") | |
4161 (when (gnus-yes-or-no-p | |
4162 (format "Are you sure you want to restart Gnus? ")) | |
4163 (gnus-save-newsrc-file) | |
4164 (gnus-clear-system) | |
4165 (gnus))) | |
4166 | |
4167 (defun gnus-group-read-init-file () | |
4168 "Read the Gnus elisp init file." | |
4169 (interactive) | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
4170 (gnus-read-init-file) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
4171 (gnus-message 5 "Read %s" gnus-init-file)) |
17493 | 4172 |
4173 (defun gnus-group-check-bogus-groups (&optional silent) | |
4174 "Check bogus newsgroups. | |
4175 If given a prefix, don't ask for confirmation before removing a bogus | |
4176 group." | |
4177 (interactive "P") | |
4178 (gnus-check-bogus-newsgroups (and (not silent) (not gnus-expert-user))) | |
4179 (gnus-group-list-groups)) | |
4180 | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
4181 (defun gnus-group-find-new-groups (&optional arg) |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19911
diff
changeset
|
4182 "Search for new groups and add them. |
41819 | 4183 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
|
4184 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
|
4185 groups. |
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4186 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
|
4187 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
|
4188 (interactive "p") |
111312
0c7c9736f766
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111243
diff
changeset
|
4189 (let ((new-groups (gnus-find-new-newsgroups (or arg 1))) |
0c7c9736f766
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111243
diff
changeset
|
4190 current-group) |
0c7c9736f766
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111243
diff
changeset
|
4191 (gnus-group-list-groups) |
0c7c9736f766
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111243
diff
changeset
|
4192 (setq current-group (gnus-group-group-name)) |
0c7c9736f766
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111243
diff
changeset
|
4193 (dolist (group new-groups) |
0c7c9736f766
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111243
diff
changeset
|
4194 (gnus-group-jump-to-group group)) |
0c7c9736f766
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111243
diff
changeset
|
4195 (when current-group |
0c7c9736f766
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
111243
diff
changeset
|
4196 (gnus-group-jump-to-group current-group)))) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4197 |
17493 | 4198 (defun gnus-group-edit-global-kill (&optional article group) |
4199 "Edit the global kill file. | |
4200 If GROUP, edit that local kill file instead." | |
4201 (interactive "P") | |
4202 (setq gnus-current-kill-article article) | |
4203 (gnus-kill-file-edit-file group) | |
110433
33cf78a271ef
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110189
diff
changeset
|
4204 (gnus-message 6 "Editing a %s kill file (Type %s to exit)" |
33cf78a271ef
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110189
diff
changeset
|
4205 (if group "local" "global") |
33cf78a271ef
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110189
diff
changeset
|
4206 (substitute-command-keys "\\[gnus-kill-file-exit]"))) |
17493 | 4207 |
4208 (defun gnus-group-edit-local-kill (article group) | |
4209 "Edit a local kill file." | |
4210 (interactive (list nil (gnus-group-group-name))) | |
4211 (gnus-group-edit-global-kill article group)) | |
4212 | |
4213 (defun gnus-group-force-update () | |
4214 "Update `.newsrc' file." | |
4215 (interactive) | |
4216 (gnus-save-newsrc-file)) | |
4217 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4218 (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
|
4219 |
17493 | 4220 (defun gnus-group-suspend () |
4221 "Suspend the current Gnus session. | |
4222 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
|
4223 The hook `gnus-suspend-gnus-hook' is called before actually suspending." |
17493 | 4224 (interactive) |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4225 (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
|
4226 (gnus-offer-save-summaries) |
17493 | 4227 ;; 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
|
4228 (let ((group-buf (get-buffer gnus-group-buffer))) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4229 (dolist (buf (gnus-buffers)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4230 (unless (or (eq buf group-buf) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4231 (eq buf gnus-dribble-buffer) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4232 (with-current-buffer buf |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4233 (eq major-mode 'message-mode))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4234 (gnus-kill-buffer buf))) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4235 (setq gnus-backlog-articles nil) |
17493 | 4236 (gnus-kill-gnus-frames) |
4237 (when group-buf | |
4238 (bury-buffer group-buf) | |
4239 (delete-windows-on group-buf t)))) | |
4240 | |
4241 (defun gnus-group-clear-dribble () | |
4242 "Clear all information from the dribble buffer." | |
4243 (interactive) | |
4244 (gnus-dribble-clear) | |
4245 (gnus-message 7 "Cleared dribble buffer")) | |
4246 | |
4247 (defun gnus-group-exit () | |
4248 "Quit reading news after updating .newsrc.eld and .newsrc. | |
4249 The hook `gnus-exit-gnus-hook' is called before actually exiting." | |
4250 (interactive) | |
4251 (when | |
4252 (or noninteractive ;For gnus-batch-kill | |
4253 (not gnus-interactive-exit) ;Without confirmation | |
4254 gnus-expert-user | |
4255 (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
|
4256 (gnus-run-hooks 'gnus-exit-gnus-hook) |
17493 | 4257 ;; Offer to save data from non-quitted summary buffers. |
4258 (gnus-offer-save-summaries) | |
4259 ;; Save the newsrc file(s). | |
4260 (gnus-save-newsrc-file) | |
4261 ;; Kill-em-all. | |
4262 (gnus-close-backends) | |
4263 ;; Reset everything. | |
4264 (gnus-clear-system) | |
4265 ;; 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
|
4266 (gnus-run-hooks 'gnus-after-exiting-gnus-hook))) |
17493 | 4267 |
4268 (defun gnus-group-quit () | |
4269 "Quit reading news without updating .newsrc.eld or .newsrc. | |
4270 The hook `gnus-exit-gnus-hook' is called before actually exiting." | |
4271 (interactive) | |
4272 (when (or noninteractive ;For gnus-batch-kill | |
4273 (zerop (buffer-size)) | |
4274 (not (gnus-server-opened gnus-select-method)) | |
4275 gnus-expert-user | |
4276 (not gnus-current-startup-file) | |
4277 (gnus-yes-or-no-p | |
4278 (format "Quit reading news without saving %s? " | |
4279 (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
|
4280 (gnus-run-hooks 'gnus-exit-gnus-hook) |
17493 | 4281 (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
|
4282 (when (and (gnus-buffer-live-p gnus-dribble-buffer) |
110089
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
4283 (not (zerop (with-current-buffer gnus-dribble-buffer |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4284 (buffer-size))))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4285 (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
|
4286 ";;; Gnus was exited on purpose without saving the .newsrc files.")) |
17493 | 4287 (gnus-dribble-save) |
4288 (gnus-close-backends) | |
4289 (gnus-clear-system) | |
4290 (gnus-kill-buffer gnus-group-buffer) | |
4291 ;; 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
|
4292 (gnus-run-hooks 'gnus-after-exiting-gnus-hook))) |
17493 | 4293 |
4294 (defun gnus-group-describe-briefly () | |
4295 "Give a one line description of the group mode commands." | |
4296 (interactive) | |
110433
33cf78a271ef
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110189
diff
changeset
|
4297 (gnus-message 7 "%s" (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"))) |
17493 | 4298 |
4299 (defun gnus-group-browse-foreign-server (method) | |
4300 "Browse a foreign news server. | |
4301 If called interactively, this function will ask for a select method | |
4302 (nntp, nnspool, etc.) and a server address (eg. nntp.some.where). | |
4303 If not, METHOD should be a list where the first element is the method | |
4304 and the second element is the address." | |
4305 (interactive | |
110661
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
4306 (list (let ((how (gnus-completing-read |
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
4307 "Which back end" |
110810
07053df95af6
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110780
diff
changeset
|
4308 (mapcar 'car (append gnus-valid-select-methods |
07053df95af6
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110780
diff
changeset
|
4309 gnus-server-alist)) |
110661
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
4310 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
|
4311 ;; We either got a back end name or a virtual server name. |
17493 | 4312 ;; If the first, we also need an address. |
4313 (if (assoc how gnus-valid-select-methods) | |
4314 (list (intern how) | |
4315 ;; Suggested by mapjph@bath.ac.uk. | |
110661
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
4316 (gnus-completing-read |
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
4317 "Address" |
2b8ece636433
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110583
diff
changeset
|
4318 gnus-secondary-servers)) |
17493 | 4319 ;; We got a server name. |
4320 how)))) | |
4321 (gnus-browse-foreign-server method)) | |
4322 | |
4323 (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
|
4324 (when (or info part) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4325 (let* ((entry (gnus-group-entry |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4326 (or method-only-group (gnus-info-group info)))) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4327 (part-info info) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4328 (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
|
4329 method) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4330 (when method-only-group |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4331 (unless entry |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4332 (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
|
4333 ;; 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
|
4334 ;; 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
|
4335 ;; 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
|
4336 (let ((len (length info)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4337 (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
|
4338 (when (< len total) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4339 (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
|
4340 (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
|
4341 ;; 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
|
4342 (setcar (nthcdr (1- total) info) part-info))) |
17493 | 4343 (unless entry |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4344 ;; This is a new group, so we just create it. |
110089
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
4345 (with-current-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
|
4346 (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
|
4347 (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
|
4348 (setq method nil)) |
110089
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
4349 (with-current-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
|
4350 (if method |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4351 ;; 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
|
4352 (gnus-group-make-group |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4353 (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
|
4354 (if (stringp method) method |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4355 (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
|
4356 (and (consp method) |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4357 (nth 1 (gnus-info-method info))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4358 nil t) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4359 ;; It's a native group. |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4360 (gnus-group-make-group (gnus-info-group info) nil nil nil t))) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4361 (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
|
4362 (setq entry |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4363 (gnus-group-entry (gnus-group-prefixed-name |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4364 (gnus-group-real-name (gnus-info-group info)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4365 (or (gnus-info-method info) gnus-select-method)))))) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4366 ;; 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
|
4367 ;; can do the update. |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4368 (if entry |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4369 (progn |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4370 (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
|
4371 (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
|
4372 (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
|
4373 (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
|
4374 (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
|
4375 (error "No such group: %s" (gnus-info-group info)))))) |
17493 | 4376 |
4377 (defun gnus-group-set-method-info (group select-method) | |
4378 (gnus-group-set-info select-method group 'method)) | |
4379 | |
4380 (defun gnus-group-set-params-info (group params) | |
4381 (gnus-group-set-info params group 'params)) | |
4382 | |
4383 (defun gnus-add-marked-articles (group type articles &optional info force) | |
4384 ;; 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
|
4385 ;; If INFO is non-nil, use that info. If FORCE is non-nil, don't |
17493 | 4386 ;; add, but replace marked articles of TYPE with ARTICLES. |
4387 (let ((info (or info (gnus-get-info group))) | |
4388 marked m) | |
4389 (or (not info) | |
4390 (and (not (setq marked (nthcdr 3 info))) | |
4391 (or (null articles) | |
4392 (setcdr (nthcdr 2 info) | |
4393 (list (list (cons type (gnus-compress-sequence | |
4394 articles t))))))) | |
4395 (and (not (setq m (assq type (car marked)))) | |
4396 (or (null articles) | |
4397 (setcar marked | |
4398 (cons (cons type (gnus-compress-sequence articles t) ) | |
4399 (car marked))))) | |
4400 (if force | |
4401 (if (null articles) | |
4402 (setcar (nthcdr 3 info) | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4403 (gnus-delete-alist type (car marked))) |
17493 | 4404 (setcdr m (gnus-compress-sequence articles t))) |
4405 (setcdr m (gnus-compress-sequence | |
4406 (sort (nconc (gnus-uncompress-range (cdr m)) | |
4407 (copy-sequence articles)) '<) t)))))) | |
4408 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4409 (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
|
4410 "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
|
4411 (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
|
4412 (if (gnus-buffer-live-p buffer) |
110089
a718416592e8
Fix up some byte-compiler warnings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
110077
diff
changeset
|
4413 (with-current-buffer (get-buffer buffer) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4414 (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
|
4415 (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
|
4416 (list article))))) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4417 |
17493 | 4418 ;;; |
4419 ;;; Group timestamps | |
4420 ;;; | |
4421 | |
4422 (defun gnus-group-set-timestamp () | |
4423 "Change the timestamp of the current group to the current time. | |
4424 This function can be used in hooks like `gnus-select-group-hook' | |
4425 or `gnus-group-catchup-group-hook'." | |
4426 (when gnus-newsgroup-name | |
4427 (let ((time (current-time))) | |
4428 (setcdr (cdr time) nil) | |
4429 (gnus-group-set-parameter gnus-newsgroup-name 'timestamp time)))) | |
4430 | |
4431 (defsubst gnus-group-timestamp (group) | |
4432 "Return the timestamp for GROUP." | |
24357
15fc6acbae7a
Upgrading to Gnus 5.7; see ChangeLog
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19969
diff
changeset
|
4433 (gnus-group-get-parameter group 'timestamp t)) |
17493 | 4434 |
4435 (defun gnus-group-timestamp-delta (group) | |
4436 "Return the offset in seconds from the timestamp for GROUP to the current time, as a floating point number." | |
4437 (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
|
4438 (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
|
4439 (delta (subtract-time (current-time) time))) |
17493 | 4440 (+ (* (nth 0 delta) 65536.0) |
4441 (nth 1 delta)))) | |
4442 | |
4443 (defun gnus-group-timestamp-string (group) | |
4444 "Return a string of the timestamp for GROUP." | |
4445 (let ((time (gnus-group-timestamp group))) | |
4446 (if (not time) | |
4447 "" | |
4448 (gnus-time-iso8601 time)))) | |
4449 | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4450 (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
|
4451 "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
|
4452 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
|
4453 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
|
4454 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
|
4455 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4456 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
|
4457 (interactive "P") |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4458 (when level |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4459 (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
|
4460 (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
|
4461 (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
|
4462 (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
|
4463 (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
|
4464 #'(lambda (info) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4465 (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
|
4466 (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
|
4467 lowest |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4468 #'(lambda (group) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4469 (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
|
4470 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
|
4471 ;; 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
|
4472 ;; instead of ":". |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4473 (gnus-gethash |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4474 (mapconcat 'identity |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4475 (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
|
4476 ".") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4477 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
|
4478 (goto-char (point-min)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4479 (gnus-group-position-point)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4480 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4481 (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
|
4482 "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
|
4483 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
|
4484 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
|
4485 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
|
4486 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4487 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
|
4488 (interactive "P") |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4489 (when level |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4490 (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
|
4491 (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
|
4492 (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
|
4493 (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
|
4494 (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
|
4495 #'(lambda (info) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4496 (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
|
4497 (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
|
4498 lowest |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4499 'ignore) |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4500 (goto-char (point-min)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4501 (gnus-group-position-point)) |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
24834
diff
changeset
|
4502 |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4503 (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
|
4504 "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
|
4505 (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
|
4506 (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
|
4507 (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
|
4508 '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
|
4509 (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
|
4510 (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
|
4511 (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
|
4512 groups)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4513 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4514 (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
|
4515 "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
|
4516 (interactive "P") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4517 (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
|
4518 (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
|
4519 func) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4520 (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
|
4521 (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
|
4522 (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
|
4523 (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
|
4524 (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
|
4525 (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
|
4526 (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
|
4527 (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
|
4528 (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
|
4529 (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
|
4530 (numberp func)) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4531 (ding) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4532 (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
|
4533 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4534 (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
|
4535 "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
|
4536 (interactive "P") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4537 (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
|
4538 (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
|
4539 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4540 (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
|
4541 "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
|
4542 (interactive "P") |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4543 (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
|
4544 (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
|
4545 |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4546 (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
|
4547 "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
|
4548 (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
|
4549 (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
|
4550 active n) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4551 (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
|
4552 (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
|
4553 (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
|
4554 (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
|
4555 (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
|
4556 (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
|
4557 (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
|
4558 (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
|
4559 (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
|
4560 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
|
4561 (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
|
4562 (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
|
4563 (when active |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
4564 (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
|
4565 (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
|
4566 (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
|
4567 (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
|
4568 (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
|
4569 (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
|
4570 (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
|
4571 (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
|
4572 (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
|
4573 (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
|
4574 (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
|
4575 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
|
4576 |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4577 |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4578 ;;; |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4579 ;;; Group compaction. -- dvl |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4580 ;;; |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4581 |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4582 (defun gnus-group-compact-group (group) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4583 "Compact the current group. |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4584 Compaction means removing gaps between article numbers. Hence, this |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4585 operation is only meaningful for back ends using one file per article |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4586 \(e.g. nnml). |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4587 |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4588 Note: currently only implemented in nnml." |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4589 (interactive (list (gnus-group-group-name))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4590 (unless group |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4591 (error "No group to compact")) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4592 (unless (gnus-check-backend-function 'request-compact-group group) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4593 (error "This back end does not support group compaction")) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4594 (let ((group-decoded (gnus-group-decoded-name group))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4595 (gnus-message 6 "\ |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4596 Compacting group %s... (this may take a long time)" |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4597 group-decoded) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4598 (prog1 |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4599 (if (not (gnus-request-compact-group group)) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4600 (gnus-error 3 "Couldn't compact group %s" group-decoded) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4601 (gnus-message 6 "Compacting group %s...done" group-decoded) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4602 t) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4603 ;; Invalidate the "original article" buffer which might be out of date. |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4604 ;; #### NOTE: Yes, this might be a bit rude, but since compaction |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4605 ;; #### will not happen very often, I think this is acceptable. |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4606 (let ((original (get-buffer gnus-original-article-buffer))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4607 (and original (gnus-kill-buffer original))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4608 ;; Update the group line to reflect new information (art number etc). |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4609 (gnus-group-update-group-line)))) |
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
79180
diff
changeset
|
4610 |
17493 | 4611 (provide 'gnus-group) |
4612 | |
4613 ;;; gnus-group.el ends here |