Lars Magne Ingebrigtsen [Thu, 21 Apr 2011 01:58:12 +0000 (03:58 +0200)]
* shr.el (shr-expand-url): Protect against null urls.
Lars Magne Ingebrigtsen [Wed, 20 Apr 2011 22:34:03 +0000 (00:34 +0200)]
Use <base> to expand relative URLs.
Ted Zlatanov [Wed, 20 Apr 2011 20:48:24 +0000 (15:48 -0500)]
Add ignored groups back.
* gnus-registry.el (gnus-registry-ignored-groups): New variable.
(gnus-registry-ignore-group-p): Use it.
(gnus-registry-handle-action): Use `gnus-registry-ignore-group-p' and
set the destination group to nil (same as delete) if it's ignored.
Ted Zlatanov [Wed, 20 Apr 2011 20:40:19 +0000 (15:40 -0500)]
* gnus-registry.el (gnus-registry--split-fancy-with-parent-internal): Fix loop bugs.
David Engster [Wed, 20 Apr 2011 18:34:49 +0000 (20:34 +0200)]
Installed Makefile rules for NNTP testing.
* Makefile.in (test-nntp): New rule.
(check): Add it.
(test-registry): Change '$(EMACS_COMP)' to '$(EMACS) $(FLAGS)'.
David Engster [Wed, 20 Apr 2011 18:31:23 +0000 (20:31 +0200)]
Installed simple NNTP testing.
* tests/gnustest-nntp.el: New file for simple NNTP testing.
* Makefile.in (test-nntp): New rule.
(check): Add it.
(test-registry): Change '$(EMACS_COMP)' to '$(EMACS) $(FLAGS)'.
Katsumi Yamaoka [Wed, 20 Apr 2011 00:38:49 +0000 (00:38 +0000)]
gnus-registry.el (gnus-registry-action, gnus-registry-fetch-header-fast):
Don't use mail-header that looks an internal function of mailheader.el.
Glenn Morris [Tue, 19 Apr 2011 07:05:57 +0000 (07:05 +0000)]
time-date.el (time-to-days): Remove unused local variables.
Katsumi Yamaoka [Mon, 18 Apr 2011 22:50:30 +0000 (22:50 +0000)]
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.
Ted Zlatanov [Sat, 16 Apr 2011 03:33:15 +0000 (22:33 -0500)]
Add recipient tracking to the Gnus registry. Reindex it on read if necessary.
* 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'.
* registry.el (registry-reindex): New method to recreate the secondary
registry indices.
Stefan Monnier [Fri, 15 Apr 2011 14:25:05 +0000 (14:25 +0000)]
message.el (message-bogus-system-names): Replace ^...$ => \`...\'.
gnus.el (gnus-splash-svg-color-symbols): Don't use insert-file from Lisp.
gnus-draft.el (gnus-draft-setup): New arg `dont-pop'.
(gnus-draft-send): Use it to avoid popping up frames from gnus-group-send-queue.
Ted Zlatanov [Fri, 15 Apr 2011 12:48:20 +0000 (07:48 -0500)]
Parent split by subject first, then sender.
* gnus-registry.el (gnus-registry--split-fancy-with-parent-internal):
Track by subject first, then sender.
Katsumi Yamaoka [Thu, 14 Apr 2011 12:43:24 +0000 (12:43 +0000)]
Fix typos in the last change in gnus-registry docs.
Ted Zlatanov [Thu, 14 Apr 2011 10:22:33 +0000 (05:22 -0500)]
* gnus-registry.el: Updated gnus-registry docs.
Ted Zlatanov [Thu, 14 Apr 2011 10:21:55 +0000 (05:21 -0500)]
Updated gnus-registry docs.
* gnus.texi (nnmairix caveats, Setup, Registry Article Refer Method)
(Fancy splitting to parent, Store arbitrary data): Updated
gnus-registry docs.
Juanma Barranquero [Thu, 14 Apr 2011 01:48:37 +0000 (01:48 +0000)]
Cosmetic fix.
Ted Zlatanov [Tue, 12 Apr 2011 18:37:52 +0000 (13:37 -0500)]
Fix Gnus registry sender splitting and logging.
* gnus-registry.el (gnus-registry--split-fancy-with-parent-internal):
Fix logic bug.
(gnus-registry-post-process-groups): Fix logging of no results and
quote sender and subject.
Lars Magne Ingebrigtsen [Tue, 12 Apr 2011 18:29:44 +0000 (20:29 +0200)]
Only do opportunistic STARTTLS upgrades if we have built-in gnutls support.
Upgrades via gnutls-cli are too slow to be done opportunistically.
Lars Magne Ingebrigtsen [Tue, 12 Apr 2011 17:58:15 +0000 (19:58 +0200)]
Fix typo.
Lars Magne Ingebrigtsen [Tue, 12 Apr 2011 17:53:30 +0000 (19:53 +0200)]
Add a sanity check so that we don't issue two async commands to the same server at the same time.
Lars Magne Ingebrigtsen [Tue, 12 Apr 2011 17:47:16 +0000 (19:47 +0200)]
* gnus-start.el (gnus-get-unread-articles): Slight cleanup.
Lars Magne Ingebrigtsen [Tue, 12 Apr 2011 17:25:35 +0000 (19:25 +0200)]
(Window Layout): @itemize @code doesn't exist. It's @table @code.
Stig Sandbeck Mathisen [Tue, 12 Apr 2011 15:53:17 +0000 (17:53 +0200)]
* gnus-sum.el (gnus-summary-select-article-buffer): Doc fix.
Lars Magne Ingebrigtsen [Tue, 12 Apr 2011 15:50:04 +0000 (17:50 +0200)]
(gnus-registry-remake-db): Put the warning on a "warning" level.
Lars Magne Ingebrigtsen [Tue, 12 Apr 2011 12:37:31 +0000 (14:37 +0200)]
(mm-url-package-name): Removed to ease third-party reuse.
(mm-url-insert-file-contents): Don't set the package names.
Ted Zlatanov [Mon, 11 Apr 2011 21:14:51 +0000 (16:14 -0500)]
Add subject and sender tracking in Gnus registry for incoming mail.
* gnus-registry.el (gnus-registry-action): Remove properties and
simplify subject in `gnus-registry-handle-action'.
(gnus-registry-spool-action): Get subject and sender from message if
they are not passed in.
(gnus-registry-handle-action): Remove properties and simplify subject
consistently.
Stefan Monnier [Mon, 11 Apr 2011 14:17:00 +0000 (14:17 +0000)]
registry.el: Require CL before using defmacro*.
Katsumi Yamaoka [Mon, 11 Apr 2011 00:27:46 +0000 (00:27 +0000)]
gnus-art.el (article-treat-date): Assume that gnus-article-date-headers may be a group parameter.
Juanma Barranquero [Fri, 8 Apr 2011 12:29:20 +0000 (12:29 +0000)]
Fix typo.
Ted Zlatanov [Thu, 7 Apr 2011 21:49:22 +0000 (16:49 -0500)]
* gnus-registry.el (gnus-registry-handle-action): More debugging.
Ted Zlatanov [Thu, 7 Apr 2011 21:48:36 +0000 (16:48 -0500)]
Add debugging option to `gnus-gnus-to-newsrc-format'.
* 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.
David Engster [Thu, 7 Apr 2011 18:47:29 +0000 (20:47 +0200)]
Avoid failing tests for Emacs without lexical binding.
* registry.el (registry-usage-test): Only do
`registry-lookup-breaks-before-lexbind' testing for Emacs24 with
lexical binding.
David Engster [Thu, 7 Apr 2011 18:37:46 +0000 (20:37 +0200)]
Add new Makefile rules for starting test-suite.
* Makefile.in (check): New rule for starting test-suite.
* lisp/Makefile.in (check, test-registry): New rules for test-suite.
David Engster [Wed, 6 Apr 2011 20:19:36 +0000 (22:19 +0200)]
XEmacs 21.4 does not support third argument NOERROR for `require'.
* registry.el, gnus-registry.el: Use `ignore-errors' instead of third
argument NOERROR for `require', since XEmacs 21.4 does not support it.
David Engster [Wed, 6 Apr 2011 19:32:03 +0000 (21:32 +0200)]
* registry.el (initialize-instance): Change :after to :AFTER to be
compatible with old EIEIO version in XEmacs.
Ted Zlatanov [Wed, 6 Apr 2011 18:40:35 +0000 (13:40 -0500)]
Fix gnus-registry splitting bugs and provide better messaging.
* gnus-registry.el (gnus-registry-post-process-groups)
(gnus-registry--split-fancy-with-parent-internal): Fix splitting bugs
and provide better messaging.
David Engster [Wed, 6 Apr 2011 15:52:53 +0000 (17:52 +0200)]
* Makefile.in (lick-fail-on-warning): New rule to compile with warnings
as errors.
(fail-on-warning): Use it.
* lisp/Makefile.in (fail-on-warning): New rule to compile with warnings as
errors.
* dgnushack.el (dgnushack-compile-error-on-warn): New function to call
dgnushack-compile with error-on-warn enabled, and to signal an error if
clean compilation failed.
(dgnushack-compile): New argument 'error-on-warn'. If non-nil, compile
with `byte-compile-error-on-warn'. Return nil if errors occured.
Ted Zlatanov [Wed, 6 Apr 2011 14:59:14 +0000 (09:59 -0500)]
Load ERT unconditionally anyway, discarding errors.
* registry.el: Don't use ERT if it's not available. Load it
unconditionally anyway, discarding errors.
* gnus-registry.el: Don't use ERT if it's not available. Load it
unconditionally anyway, discarding errors.
Ted Zlatanov [Wed, 6 Apr 2011 10:52:28 +0000 (05:52 -0500)]
registry.el and gnus-registry.el ERT compatibility fixes, proto-stream.el commit revert, old .eld gnus-registry.el importer
* proto-stream.el (gnutls-negotiate): Revert inadvertent commit of the
version from the Claudio Bley GnuTLS patch (extra optional parameters
and host name).
* registry.el: Don't use ERT if it's not available.
* 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.
Glenn Morris [Wed, 6 Apr 2011 08:40:40 +0000 (08:40 +0000)]
registry.el: Fix copyright, standardize license notice.
Ted Zlatanov [Tue, 5 Apr 2011 21:11:32 +0000 (16:11 -0500)]
Registry extra tracking bug fix: map references to group names.
* gnus-registry.el (gnus-registry--split-fancy-with-parent-internal): Map
references to actual group names with sender and subject tracking.
Ted Zlatanov [Tue, 5 Apr 2011 18:42:34 +0000 (13:42 -0500)]
* registry.el (initialize-instance, registry-db): Move the non-function initforms back to the class definition.
Ted Zlatanov [Tue, 5 Apr 2011 16:08:51 +0000 (11:08 -0500)]
Demonstrate pre-lexbind bug through registry.el ERT tests.
* (registry-lookup-breaks-before-lexbind): New method to demonstrate
pre-lexbind merge bug.
(registry-usage-test): Use it.
Ted Zlatanov [Tue, 5 Apr 2011 15:54:02 +0000 (10:54 -0500)]
Fixes suggested by David Engster <deng@randomsample.de>.
* gnus-registry.el (gnus-registry-fixup-registry): New function to
fixup the parameters that can be customized by the user between
save/read cycles.
(gnus-registry-read): Use it.
(gnus-registry-make-db): Use it.
(gnus-registry-spool-action, gnus-registry-handle-action): Fix
messaging.
(gnus-registry--split-fancy-with-parent-internal): Fix loop.
(gnus-registry-post-process-groups): Use `cond' for better messaging.
(gnus-registry-usage-test): Add subject lookup test.
* registry.el (registry-db, initialize-instance): Set up constructor
instead of :initform arguments for the sake of older Emacsen.
Ted Zlatanov [Tue, 5 Apr 2011 15:41:51 +0000 (10:41 -0500)]
gnus-registry bug fixes.
* gnus-registry.el (gnus-registry-fixup-registry): New function to
fixup the parameters that can be customized by the user between
save/read cycles.
(gnus-registry-read): Use it.
(gnus-registry-make-db): Use it.
(gnus-registry-spool-action, gnus-registry-handle-action): Fix
messaging.
(gnus-registry--split-fancy-with-parent-internal): Fix loop.
(gnus-registry-post-process-groups): Use `cond' for better messaging.
(gnus-registry-usage-test): Add subject lookup test.
Ted Zlatanov [Mon, 4 Apr 2011 00:54:20 +0000 (19:54 -0500)]
gnus-registry.el major rewrite
Lars Magne Ingebrigtsen [Sun, 3 Apr 2011 16:44:10 +0000 (18:44 +0200)]
(gnus-update-marks): Reinstate the code to not alter marks on non-selected articles.
Lars Magne Ingebrigtsen [Fri, 1 Apr 2011 19:29:47 +0000 (21:29 +0200)]
(gnus-get-unread-articles): Don't try to contact denied servers.
Lars Magne Ingebrigtsen [Sun, 3 Apr 2011 16:43:08 +0000 (18:43 +0200)]
Resolve conflict.
Katsumi Yamaoka [Sun, 3 Apr 2011 11:37:59 +0000 (11:37 +0000)]
Fix previous commits.
Katsumi Yamaoka [Sun, 3 Apr 2011 10:45:12 +0000 (10:45 +0000)]
Fix previous commits.
Chong Yidong [Sun, 3 Apr 2011 10:34:26 +0000 (10:34 +0000)]
proto-stream.el: Rename it to network-stream.el.
nnimap.el (nnimap-open-connection-1): Pass explicit :end-of-command parameter to open-protocol-stream.