Fix Gnus registry sender splitting and logging.
[gnus] / lisp / ChangeLog
1 2011-04-12  Teodor Zlatanov  <tzz@lifelogs.com>
2
3         * gnus-registry.el (gnus-registry--split-fancy-with-parent-internal):
4         Fix logic bug.
5         (gnus-registry-post-process-groups): Fix logging of no results and
6         quote sender and subject.
7
8 2011-04-12  Lars Magne Ingebrigtsen  <larsi@gnus.org>
9
10         * proto-stream.el (proto-stream-open-starttls): Only do opportunistic
11         STARTTLS upgrades if we have built-in gnutls support.  Upgrades via
12         gnutls-cli are too slow to be done opportunistically.
13
14         * gnus-start.el (gnus-get-unread-articles): Slight cleanup.
15         (gnus-read-active-for-groups): Don't try to finish getting stuff where
16         we had no early-data returned.
17         (gnus-get-unread-articles): Add a sanity check so that we don't issue
18         two async commands to the same server at the same time.
19
20 2011-04-12  Stig Sandbeck Mathisen  <ssm@fnord.no>  (tiny change)
21
22         * gnus-sum.el (gnus-summary-select-article-buffer): Doc fix.
23
24 2011-04-12  Lars Magne Ingebrigtsen  <larsi@gnus.org>
25
26         * gnus-registry.el (gnus-registry-remake-db): Put the warning on a
27         "warning" level.
28
29         * mm-url.el (mm-url-package-name): Removed to ease third-party reuse.
30         (mm-url-insert-file-contents): Don't set the package names.
31
32 2011-04-11  Teodor Zlatanov  <tzz@lifelogs.com>
33
34         * gnus-registry.el (gnus-registry-action): Remove properties and
35         simplify subject in `gnus-registry-handle-action'.
36         (gnus-registry-spool-action): Get subject and sender from message if
37         they are not passed in.
38         (gnus-registry-handle-action): Remove properties and simplify subject
39         consistently.
40
41 2011-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
42
43         * registry.el: Require CL before using defmacro*.
44
45 2011-04-11  Katsumi Yamaoka  <yamaoka@jpl.org>
46
47         * gnus-art.el (article-treat-date): Assume that
48         gnus-article-date-headers may be a group parameter.
49
50 2011-04-07  Teodor Zlatanov  <tzz@lifelogs.com>
51
52         * gnus-registry.el (gnus-registry-handle-action): More debugging.
53
54         * gnus-start.el (gnus-gnus-to-newsrc-format): Add a way to run
55         interactively so the newsrc file can contain foreign groups too.
56         Useful for debugging but not much for users.
57
58 2011-04-07  David Engster  <dengste@eml.cc>
59
60         * registry.el (registry-usage-test): Only do
61         `registry-lookup-breaks-before-lexbind' testing for Emacs24 with
62         lexical binding.
63
64 2011-04-07  David Engster  <dengste@eml.cc>
65
66         * Makefile.in (check, test-registry): New rules for test-suite.
67
68 2011-04-06  David Engster  <dengste@eml.cc>
69
70         * registry.el, gnus-registry.el: Use `ignore-errors' instead of third
71         argument NOERROR for `require', since XEmacs 21.4 does not support it.
72
73 2011-04-06  David Engster  <dengste@eml.cc>
74
75         * registry.el (initialize-instance): Change :after to :AFTER to be
76         compatible with old EIEIO version in XEmacs.
77
78 2011-04-06  Teodor Zlatanov  <tzz@lifelogs.com>
79
80         * gnus-registry.el (gnus-registry-post-process-groups)
81         (gnus-registry--split-fancy-with-parent-internal): Fix splitting bugs
82         and provide better messaging.
83
84 2011-04-06  David Engster  <dengste@eml.cc>
85
86         * Makefile.in (fail-on-warning): New rule to compile with warnings as
87         errors.
88
89         * dgnushack.el (dgnushack-compile-error-on-warn): New function to call
90         dgnushack-compile with error-on-warn enabled, and to signal an error if
91         clean compilation failed.
92         (dgnushack-compile): New argument 'error-on-warn'.  If non-nil, compile
93         with `byte-compile-error-on-warn'.  Return nil if errors occured.
94
95 2011-04-06  Teodor Zlatanov  <tzz@lifelogs.com>
96
97         * gnus-registry.el: Don't use ERT if it's not available.  Load it
98         unconditionally anyway, discarding errors.
99         (gnus-registry-delete-entries): New convenience function.
100         (gnus-registry-import-eld): Import from old .eld registry.
101
102         * registry.el: Don't use ERT if it's not available.  Load it
103         unconditionally anyway, discarding errors.
104
105         * proto-stream.el (gnutls-negotiate): Revert inadvertent commit of the
106         version from the Claudio Bley GnuTLS patch (extra optional parameters
107         and host name).
108
109 2011-04-05  Teodor Zlatanov  <tzz@lifelogs.com>
110
111         * gnus-registry.el (gnus-registry-fixup-registry): New function to
112         fixup the parameters that can be customized by the user between
113         save/read cycles.
114         (gnus-registry-read): Use it.
115         (gnus-registry-make-db): Use it.
116         (gnus-registry-spool-action, gnus-registry-handle-action): Fix
117         messaging.
118         (gnus-registry--split-fancy-with-parent-internal): Fix loop.  Map
119         references to actual group names with sender and subject tracking.
120         (gnus-registry-post-process-groups): Use `cond' for better messaging.
121         (gnus-registry-usage-test): Add subject lookup test.
122
123         * registry.el (registry-db, initialize-instance): Set up constructor
124         instead of :initform arguments for the sake of older Emacsen.
125         (registry-lookup-breaks-before-lexbind): New method to demonstrate
126         pre-lexbind merge bug.
127         (registry-usage-test): Use it.
128         (initialize-instance, registry-db): Move the non-function initforms
129         back to the class definition.
130
131 2011-04-03  Teodor Zlatanov  <tzz@lifelogs.com>
132
133         * registry.el: New library to manage gnus-registry-style data.
134
135         * gnus-registry.el: Use it (major rewrite).
136
137         * nnregistry.el: Use it.
138
139         * spam.el: Use it.
140
141 2011-04-03  Lars Magne Ingebrigtsen  <larsi@gnus.org>
142
143         * gnus-sum.el (gnus-update-marks): Reinstate the code to not alter
144         marks on non-selected articles.
145
146 2011-04-02  Chong Yidong  <cyd@stupidchicken.com>
147
148         * nnimap.el (nnimap-open-connection-1): Pass explicit :end-of-command
149         parameter to open-protocol-stream.
150
151 2011-04-01  Julien Danjou  <julien@danjou.info>
152
153         * mm-view.el (mm-display-inline-fontify): Do not fontify with
154         fundamental-mode.
155
156 2011-04-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
157
158         * gnus-start.el (gnus-get-unread-articles): Don't try to contact denied
159         servers.
160
161 2011-03-30  Lars Magne Ingebrigtsen  <larsi@gnus.org>
162
163         * gnus-sum.el (gnus-update-marks): Revert intersection change, which
164         made marks not propagate, again.
165
166 2011-03-30  Chong Yidong  <cyd@stupidchicken.com>
167
168         * proto-stream.el (open-protocol-stream): Bring back `network' type.
169         Make this the default type.
170         (proto-stream-open-plain): Rename from proto-stream-open-default.
171         (open-protocol-stream, proto-stream-open-starttls)
172         (proto-stream-open-tls, proto-stream-open-shell): Replace `default'
173         with `plain'.
174
175         * nnimap.el (nnimap-stream, nnimap-open-connection-1): Accept `network'
176         value.
177
178         * nntp.el (nntp-open-connection-function): Document the fact that some
179         values are not functions but are instead handled specially.  Recognize
180         nntp-open-plain-stream value.
181         (nntp-open-connection): Recognize that value.
182
183 2011-03-30  Lars Magne Ingebrigtsen  <larsi@gnus.org>
184
185         * dgnushack.el: Only do the defcustom compilation thing on XEmacs,
186         where it seems to be needed.
187
188 2011-03-29  Lars Magne Ingebrigtsen  <larsi@gnus.org>
189
190         * gssapi.el (open-gssapi-stream): Remove the last mentions of the IMAP
191         stuff.
192
193         * gnus-score.el (gnus-score-string): Fix calling convention of
194         `gnus-simplify-buffer-fuzzy' after last patches.
195
196         * gnus-sum.el (gnus-update-marks): Don't send any marks updates to the
197         server for articles we didn't get any headers for.  This is a sanity
198         check.
199
200 2011-03-29  Michael Welsh Duggan  <md5i@md5i.com>
201
202         * nnimap.el (nnimap-open-connection-1): Is the login responds with a
203         new CAPABILITY, use it.
204
205 2011-03-29  Lars Magne Ingebrigtsen  <larsi@gnus.org>
206
207         * gnus-agent.el (gnus-agent-fetch-headers): Don't message if we're not
208         downloading anything.
209
210         * gnus.el (gnus-splash-svg-color-symbols): Removed superfluous `and'.
211
212 2011-03-29  Adam Sjøgren  <asjo@koldfront.dk>
213
214         * gnus.el (gnus-group-startup-message): Prefer svg file and replace
215         colors.
216         (gnus-splash-svg-color-symbols): New function.
217
218 2011-03-29  Lars Magne Ingebrigtsen  <larsi@gnus.org>
219
220         * gnus-sum.el (gnus-simplify-buffer-fuzzy): Take the regexp explicitly
221         instead of using the global gnus-simplify-subject-fuzzy-regexp.
222         (gnus-simplify-subject-fuzzy): Use the local
223         gnus-simplify-subject-fuzzy-regex instead of the global one.  This
224         makes using this variable in group parameters work.
225
226 2011-03-29  Teodor Zlatanov  <tzz@lifelogs.com>
227
228         * gnus-registry.el (gnus-registry-unfollowed-groups): Add
229         "archive:sent" to the unfollowed group regex (for the recent Gnus
230         archive:sent-YYYY-MM-DD groups).
231         (gnus-registry-split-fancy-with-parent): Bail out early in sender
232         tracking if there are more than `gnus-registry-max-track-groups'
233         matches.
234
235 2011-03-29  Stefan Monnier  <monnier@iro.umontreal.ca>
236
237         * message.el (message--yank-original-internal): New function to do the
238         insertion cleanly inside eval in `message-yank-original'.
239         (message-yank-original): Use it.
240
241 2011-03-29  Julien Danjou  <julien@danjou.info>
242
243         * mm-view.el (mm-display-inline-fontify): Use `set-normal-mode' with
244         local variables disabled rather than `normal-mode'.
245
246 2011-03-28  Brian T. Sniffen  <bsniffen@akamai.com>  (tiny change)
247
248         * imap.el (imap-shell-open, imap-process-connection-type): Use
249         imap-process-connection-type for 'shell' streams as well as
250         Kerberos, SSL, other subprocesses.
251
252 2011-03-26  Chong Yidong  <cyd@stupidchicken.com>
253
254         * proto-stream.el: Changes preparatory to merging open-protocol-stream
255         with open-network-stream.
256         (proto-stream-always-use-starttls): Option removed.
257         (open-protocol-stream): Return a process object by default.  Provide a
258         new parameter :return-list specifying a list-type return value, which
259         now has the form (PROP . PLIST) instead of a fixed-length list.  Change
260         :type `network' to `try-starttls', and `network-only' to `default'.
261         Make `default' the default, for compatibility with open-network-stream.
262         Handle the no-parameter case exactly as open-network-stream, with no
263         additional stream processing.  Search plists using plist-get.
264         Explicitly add :end-of-commend parameter if it is missing.
265         (proto-stream-open-default): Renamed from
266         proto-stream-open-network-only.  Return 'default as the type.
267         (proto-stream-open-starttls): Rename from proto-stream-open-network.
268         Use plist-get.  Don't return `tls' as the type if STARTTLS negotiation
269         failed.  Always return a list with a (possibly dead) process as the
270         first element, for compatibility with open-network-stream.
271         (proto-stream-open-tls): Use plist-get.  Always return a list.
272         (proto-stream-open-shell): Return `default' as connection type.
273         (proto-stream-capability-open): Use plist-get.
274         (proto-stream-eoc): Function deleted.
275
276         * nnimap.el (nnimap-stream, nnimap-open-connection)
277         (nnimap-open-connection-1): Handle renaming of :type parameter for
278         open-protocol-stream.
279         (nnimap-open-connection-1): Pass a :return-list parameter
280         open-protocol-stream to obtain a list return value.  Parse this list
281         using plist-get.
282
283         * nntp.el (nntp-open-connection): Handle renaming of :type parameter
284         for open-protocol-stream.  Accept open-protocol-stream return value
285         that is a subprocess object instead of a list.  Handle the case of a
286         dead returned process.
287
288 2011-03-25  Teodor Zlatanov  <tzz@lifelogs.com>
289
290         * mm-util.el (mm-handle-filename): Move to mm-decode.el (bug#8330).
291
292         * mm-decode.el (mm-handle-filename): Move from mm-util.el (bug#8330).
293
294 2011-03-21  Julien Danjou  <julien@danjou.info>
295
296         * mm-view.el (mm-display-inline-fontify): Make mode optional, and call
297         normal-mode if not set. Set temp buffer unmodified to avoid kill-buffer
298         query.
299         (mm-inline-text): Render normal text with fontification whenever
300         possible.
301
302         * gnus-sum.el (gnus-summary-save-parts-1):
303         * gnus-art.el (gnus-article-browse-html-save-cid-content)
304         (gnus-article-browse-html-parts, gnus-mime-delete-part)
305         (gnus-mime-copy-part, gnus-mime-inline-part, gnus-insert-mime-button):
306         Use `mm-handle-filename'.
307
308         * mm-util.el (mm-handle-filename): New function, return the filename of
309         an handle.
310
311 2011-03-18  Julien Danjou  <julien@danjou.info>
312
313         * gnus-util.el (gnus-buffer-live-p): Simplify gnus-buffer-live-p.
314         (gnus-buffer-live-p): Check that buffer is not nil.
315
316 2011-03-17  Lars Magne Ingebrigtsen  <lars@ingebrigtsen.no>
317
318         * gnus.el: No Gnus v0.15 is released.
319
320 2011-03-17  Lars Magne Ingebrigtsen  <larsi@gnus.org>
321
322         * time-date.el (format-seconds): Use assoc instead of assoc-string to
323         avoid warning on XEmacs.
324
325         * dgnushack.el: Bind help-echo-owns-message to avoid a compiler warning
326         on XEmacs.
327
328         * gnus-art.el: Require mouse, which the build bot seems to say is
329         needed.
330
331         * dgnushack.el: Define url-retrieve-synchronously unless not defined.
332
333         * gravatar.el (gravatar-retrieve-synchronously): Use `url-retrieve' on
334         XEmacs, since it doesn't have url-retrieve-synchronously.
335
336         * time-date.el (format-seconds): Use assoc instead of assoc-string,
337         since assoc-string doesn't exist in XEmacs.
338
339 2011-03-17  Antoine Levitt  <antoine.levitt@gmail.com>
340
341         * gnus-group.el (gnus-group-list-ticked): New function.
342         (gnus-group-make-menu-bar): Provide a menu entry for it.
343         (gnus-group-list-map): Provide a binding for it.
344
345 2011-03-17  Lars Magne Ingebrigtsen  <larsi@gnus.org>
346
347         * shr.el (shr-visit-file): New command.
348
349         * nnimap.el (nnimap-fetch-inbox): Rewrite slightly last patch.
350
351 2011-03-17  Bjørn Mork  <bjorn@mork.no>
352
353         * nnimap.el (nnimap-fetch-inbox): Don't download bodies on ver4-capable
354         servers.
355
356 2011-03-16  Julien Danjou  <julien@danjou.info>
357
358         * mm-uu.el (mm-uu-dissect-text-parts): Only dissect handle that are
359         inline.
360
361         * gnus-art.el (article-hide-list-identifiers): Use
362         gnus-group-get-list-identifiers.
363
364         * gnus-sum.el (gnus-group-get-list-identifiers): New function.
365         (gnus-summary-remove-list-identifiers): Use
366         gnus-group-get-list-identifiers to get regexp.
367         (gnus-select-newsgroup, gnus-summary-insert-subject)
368         (gnus-summary-insert-articles): Call
369         gnus-summary-remove-list-identifiers unconditionally.
370
371 2011-03-15  Lars Magne Ingebrigtsen  <larsi@gnus.org>
372
373         * gnus-sum.el (gnus-articles-to-read): Revert back to old behaviour if
374         we're selecting a group with unread articles.
375
376         * nnimap.el (nnimap-open-connection-1): Allow `network-only', too.
377
378         * gssapi.el: New file separated out from imap.el to provide a general
379         Kerberos 5 connection facility for Emacs.
380
381         * message.el (message-elide-ellipsis): Document the format spec
382         ellipsis.
383
384 2011-03-15  Reiner Steib  <Reiner.Steib@gmx.de>
385
386         * message.el (message-elide-region): Allow the ellipsis to say how many
387         lines were removed.
388
389 2011-03-15  Lars Magne Ingebrigtsen  <larsi@gnus.org>
390
391         * gnus-win.el (gnus-configure-frame): Protect against trying to restore
392         window configurations containing buffers that are now dead.
393
394         * nnimap.el (nnimap-parse-flags): Remove all MODSEQ entries before
395         parsing to avoid integer overflows.
396         (nnimap-parse-flags): Simplify the last change.
397         (nnimap-parse-flags): Store HIGHESTMODSEQ as a string, since it may be
398         too large for 32-bit Emacsen.
399
400 2011-03-15  Stefan Monnier  <monnier@iro.umontreal.ca>
401
402         * auth-source.el (auth-source-netrc-create):
403         * message.el (message-yank-original): Fix use of `case'.
404
405 2011-03-15  Nelson Ferreira  <nelson.ferreira@ieee.org>  (tiny change)
406
407         * gnus-art.el (gnus-article-treat-body-boundary): Fix boundary width on
408         XEmacs, which was one character too wide.
409
410 2011-03-09  Antoine Levitt  <antoine.levitt@gmail.com>
411
412         * gnus-sum.el (gnus-articles-to-read): Use gnus-large-newsgroup as
413         default number of articles to display.
414         (gnus-articles-to-read): Use pretty names for prompt.
415
416 2011-03-15  Lars Magne Ingebrigtsen  <larsi@gnus.org>
417
418         * gnus-int.el (gnus-open-server): Ditto.
419
420         * gnus-start.el (gnus-activate-group): Give a backtrace if
421         debug-on-quit is set and the user hits `C-g'.
422         (gnus-read-active-file): Ditto.
423
424         * gnus-group.el (gnus-group-read-ephemeral-group): Ditto.
425
426 2011-03-15  Teodor Zlatanov  <tzz@lifelogs.com>
427
428         * message.el (message-yank-original): Use cond instead of CL case.
429
430 2011-03-15  Stefan Monnier  <monnier@iro.umontreal.ca>
431
432         * auth-source.el (auth-source-netrc-create): Use usual format for the
433         default in prompts.
434
435 2011-03-14  Katsumi Yamaoka  <yamaoka@jpl.org>
436
437         * lpath.el: Fbind read-char-choice for XEmacs.
438
439 2011-03-13  Teodor Zlatanov  <tzz@lifelogs.com>
440
441         * auth-source.el (auth-source-netrc-create): Show the default in the
442         prompt when prompting for token creation.
443
444 2011-03-12  Teodor Zlatanov  <tzz@lifelogs.com>
445
446         * auth-source.el (auth-source-format-prompt): Always convert the value
447         to a string to avoid evaluating non-string arguments.
448         (auth-source-netrc-create): Offer default properly, not as initial
449         content in `read-string'.
450         (auth-source-netrc-saver): Use a cache keyed by file name and MD5 hash
451         of line to determine if we've been run before.  If so, don't run again,
452         but print a trivial message to indicate the cache was hit instead.
453
454 2011-03-11  Teodor Zlatanov  <tzz@lifelogs.com>
455
456         * gnus-sync.el (gnus-sync-install-hooks, gnus-sync-unload-hook):
457         Don't install `gnus-sync-read' to any hooks by default.  It's buggy.
458