Commit graph

14 commits

Author SHA1 Message Date
Teodor Zlatanov
652aa46504 registry.el (prune-factor): New initialization parameter defaulting to 0.1.
(registry-prune-hard): Use it.
gnus-registry.el (gnus-registry-fixup-registry): Set prune-factor to 0.1 expicitly.
2011-05-13 04:12:37 +00:00
Teodor Zlatanov
9820ccdf51 registry.el (registry-usage-test): Disable pruning test. 2011-05-11 22:12:27 +00:00
Teodor Zlatanov
15cc1ab1f0 registry.el (registry-prune-hard-candidates, registry-prune-soft-candidates): Helper methods for registry pruning.
(registry-prune): Use them.  Make the sort function optional.
2011-05-10 22:21:39 +00:00
Teodor Zlatanov
81d7704c97 registry.el (registry-full): Add convenience method. Fix logic.
(registry-insert): Use it.  Fix logic here too.
gnus-registry.el (gnus-registry-insert): Add wrapper that calls `registry-prune' if `registry-full' returns t.
 (gnus-registry-handle-action, gnus-registry-get-or-make-entry, gnus-registry-set-id-key, gnus-registry-usage-test): Use it.
2011-05-09 22:27:17 +00:00
Teodor Zlatanov
67a2aecd40 registry.el (registry-reindex): Fix percentage message. 2011-05-04 11:28:46 +00:00
Gnus developers
c2f51e23ab Merge changes made in Gnus trunk.
gnus.texi (Summary Buffer Lines): gnus-summary-user-date-format-alist does not exist.
 (Sorting the Summary Buffer): More about sorting threads.
shr.el: Add shr-link face for links.
 (shr-urlify): Use it.
registry.el (registry-insert): Make error message more helpful.
2011-05-03 22:41:28 +00:00
Katsumi Yamaoka
8d6d9c8f8d gnus-registry.el, registry.el: Silence the byte compiler.
gnus-registry.el: Eliminate cl functions.
 (gnus-registry-sort-addresses): New function that replaces mapcan.
 (gnus-registry-action, gnus-registry-spool-action)
 (gnus-registry-split-fancy-with-parent)
 (gnus-registry-fetch-recipients-fast): Use it.
 (gnus-registry-import-eld): Replace delete* with dolist + delq.
registry.el (initialize-instance, registry-lookup)
 (registry-lookup-breaks-before-lexbind, registry-lookup-secondary)
 (registry-lookup-secondary-value, registry-search, registry-delete)
 (registry-insert, registry-reindex, registry-size, registry-prune):
 Use eval-and-compile.
2011-04-18 22:59:02 +00:00
Teodor Zlatanov
cf8b0c278b registry.el (registry-reindex): New method to recreate the secondary registry indices.
gnus-registry.el (gnus-registry-fixup-registry): Use it if the tracked field changes.
 (gnus-registry-unfollowed-addresses, gnus-registry-track-extra)
 (gnus-registry-action, gnus-registry-spool-action)
 (gnus-registry-handle-action)
 (gnus-registry--split-fancy-with-parent-internal)
 (gnus-registry-split-fancy-with-parent)
 (gnus-registry-register-message-ids): Add recipient tracking on spool, move, and delete actions, and for fancy splitting with parent.
 (gnus-registry-extract-addresses)
 (gnus-registry-fetch-recipients-fast)
 (gnus-registry-fetch-header-fast): Convenience functions.
 (gnus-registry-misc-test): ERT test of `gnus-registry-extract-addresses'.
2011-04-16 06:56:17 +00:00
Stefan Monnier
f8fc0578a8 * lisp/gnus/registry.el: Require CL before using defmacro*. 2011-04-10 22:18:19 -03:00
Gnus developers
4523dc7f80 gnus-registry.el (gnus-registry-handle-action): More debugging.
gnus-start.el (gnus-gnus-to-newsrc-format): Add a way to run interactively so the newsrc file can contain foreign groups too.  Useful for debugging but not much for users.
registry.el (registry-usage-test): Only do `registry-lookup-breaks-before-lexbind' testing for Emacs24 with lexical binding.
2011-04-07 22:48:21 +00:00
Gnus developers
2237da9c04 Merge changes made in Gnus trunk.
registry.el, gnus-registry.el: Use `ignore-errors' instead of third argument NOERROR for `require', since XEmacs 21.4 does not support it.
registry.el (initialize-instance): Change :after to :AFTER to be compatible with old EIEIO version in XEmacs.
gnus-registry.el (gnus-registry-post-process-groups)
 (gnus-registry--split-fancy-with-parent-internal): Fix splitting bugs and provide better messaging.
gnus-registry.el: Load ERT unconditionally anyway, discarding errors.
registry.el: Load ERT unconditionally anyway, discarding errors.
2011-04-06 22:08:31 +00:00
Teodor Zlatanov
42b237655f gnus-registry.el: Don't use ERT if it's not available.
(gnus-registry-delete-entries): New convenience function.
 (gnus-registry-import-eld): Import from old .eld registry.
registry.el: Don't use ERT if it's not available.
proto-stream.el (gnutls-negotiate): Revert inadvertent commit of the version from the Claudio Bley GnuTLS patch (extra optional parametersnand host name).
2011-04-06 12:55:49 +00:00
Glenn Morris
f872186f77 * lisp/gnus/registry.el: Fix copyright, standardize license notice. 2011-04-05 19:01:39 -07:00
Ted Zlatanov
ccd58722df Add lisp/gnus/registry.el. 2011-04-05 23:37:02 +00:00