Commit graph

2597 commits

Author SHA1 Message Date
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
U. Ser
9b053e766d fix many doubled-word typos 2011-05-10 15:57:12 +02:00
Julien Danjou
296d197b34 shr.el (shr-put-color-1): Do not bug out when old-props is a face symbol and not a list. 2011-05-10 13:20:21 +00:00
Katsumi Yamaoka
ffb54e99ad gnus-art.el (gnus-article-mode): Move binding of shr-put-image-function here from gnus-article-prepare-display. 2011-05-10 07:30:49 +00:00
Katsumi Yamaoka
b9bdaf749f shr.el (shr-put-image-function): New variable.
(shr-image-fetched, shr-image-displayer, shr-tag-img): Funcall it.
 (shr-put-image): Return scaled image.
gnus-art.el (gnus-shr-put-image): New function.
 (gnus-article-prepare-display): Bind shr-put-image-function to it.
gnus-html.el (gnus-html-wash-images): Register scaled images, not original ones, as deletable.
2011-05-10 03:14:44 +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
Stefan Monnier
68b5d5ee54 * lisp/gnus/nntp.el (nntp-open-connection): Set TCP keepalive option. 2011-05-09 16:41:14 -03:00
Julien Danjou
7ef1d63406 shr.el (shr-link): Make shr-link inherit from link by default. 2011-05-07 10:41:20 +00:00
Teodor Zlatanov
f8774e35f6 shr.el (shr-urlify, shr-link): Fix shr-link face. 2011-05-06 23:33:12 +00:00
Teodor Zlatanov
df26ce09c4 shr.el (shr-urlify, shr-link): Still broken but at least doesn't error out because the face is not a list. 2011-05-05 22:12:41 +00:00
Glenn Morris
8e6167a150 * lisp/gnus/gnus-start.el (gnus-propagate-marks): Declare. 2011-05-04 23:56:54 -07: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
Lars Magne Ingebrigtsen
f3b146e943 Merge changes made in Gnus trunk.
gnus-html.el (gnus-html-schedule-image-fetching): Use url-queue-retrieve, if it exists.
shr.el (shr-tag-img): Ditto.
gnus.el: Autoload more gnus-agent functions.
gnus-art.el (gnus-request-article-this-buffer): Store articles in the agent if we haven't already (bug#8502).
gnus-async.el (gnus-async-article-callback): Put prefetched articles into the Agent, too.
gnus-agent.el (gnus-agent-store-article): New function.
2011-05-02 22:41:38 +00:00
Lars Magne Ingebrigtsen
9f5e78f7d5 nnheader.el (nnheader-insert-buffer-substring): Renamed from nntp- and moved from that file for reuse. 2011-05-02 03:37:06 +00:00
Lars Magne Ingebrigtsen
817bcc7cb0 pop3.el (pop3-open-server): Fix It's `tls', not :tls. 2011-05-02 01:45:17 +00:00
Lars Magne Ingebrigtsen
2193f991eb pop3.el (pop3-open-server): Error messages are "-ERR". 2011-05-02 01:19:21 +00:00
Gnus developers
b87f32fc00 Merge changes made in Gnus trunk.
pop3.el (pop3-open-server): Upgrade opportunistically to STARTTLS.
 (open-tls-stream): Remove superfluous tls/starttls autoloads.
gnus-sum.el (gnus-summary-next-article): Don't bug out if the summary buffer has moved to a different frame.
nnimap.el (nnimap-request-article): Use nntp-insert-buffer-substring to get the conversion from unibyte to multibyte buffers to work on Emacs 22.
nntp.el (nntp-request-article): Slight clean-up.
2011-05-01 23:30:18 +00:00
Lars Magne Ingebrigtsen
6eee267817 shr.el (shr-strike-through): New face.
(shr-tag-s): Use it to provide <s> support.
 (shr-tag-s): Remove duplicate definition.
2011-04-30 00:03:19 +00:00
Teodor Zlatanov
e2822bd2ea gnus-registry.el (gnus-registry-ignore-group-p): Don't call `gnus-parameter-registry-ignore' if the *Group* buffer doesn't exist. 2011-04-25 04:32:07 +00:00
Lars Magne Ingebrigtsen
a3af29290e shr.el (shr-tag-sup, shr-tag-sub): New functions. 2011-04-24 22:12:21 +00:00
Glenn Morris
81de9236e1 * lisp/gnus/gnus-sum.el (gnus-extra-headers): Bump :version. 2011-04-22 19:18:10 -07:00
Teodor Zlatanov
74db886b06 gnus-registry.el (gnus-registry-ignore-group-p): Test specifically for the case where gnus-registry-ignored-groups' is a list of lists, and don't call gnus-parameter-registry-ignore' otherwise. 2011-04-23 00:08:28 +00:00
Teodor Zlatanov
5e68f8614f nnimap.el (nnimap-user): New backend variable.
(nnimap-open-connection-1): Use it.
 (nnimap-credentials): Accept user parameter so it's explicit what user name is desired.
2011-04-22 01:01:32 +00:00
Teodor Zlatanov
a6e77075d4 gnus-sum.el (gnus-extra-headers): Add Keywords, Cc, and Gcc to default.
gnus-registry.el: Mention in comments how to modify `gnus-extra-headers' for proper recipient tracking and that it may already have To and Cc recently, which it does as of this commit.
2011-04-22 00:37:01 +00:00
Teodor Zlatanov
c024b02129 gnus.el (gnus-registry-ignored-groups): Provide default in gnus.el, not gnus-registry.el.
gnus-registry.el (gnus-registry-ignored-groups): Remove defcustom.  Explain why in comments.
 (gnus-registry-action): Fix data-header reference to use the extra headers.  Explain in package commentary how to add To and Cc headers to the gnus-extra-headers.
 (gnus-registry-ignored-groups): Adjust defaults to match the parameter.
 (gnus-registry-ignore-group-p): Adjust to take either a group/topic parameter list or a string list in `gnus-registry-ignored-groups'.  Fix logic error.
2011-04-21 22:06:12 +00:00
Katsumi Yamaoka
891e751b65 shr.el (shr-expand-url): Fix typo. 2011-04-21 02:48:04 +00:00
Lars Magne Ingebrigtsen
2b45516032 shr.el (shr-expand-url): Protect against null urls. 2011-04-21 02:22:56 +00:00
Lars Magne Ingebrigtsen
dbd5ffad4d shr.el (shr-base): New binding.
(shr-tag-base): Keep track of <base>.
 (shr-expand-url): New function used throughout.
2011-04-21 00:24:27 +00:00
Teodor Zlatanov
2011338029 gnus-registry.el (gnus-registry--split-fancy-with-parent-internal): Fix loop bugs.
(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.
2011-04-20 22:12:08 +00:00
Katsumi Yamaoka
6b1f6ce90e gnus-registry.el (gnus-registry-action, gnus-registry-fetch-header-fast):
Don't use mail-header that looks an internal function of mailheader.el.
2011-04-20 00:43:48 +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
Teodor Zlatanov
ba3bd5b6c3 nus-registry.el (gnus-registry--split-fancy-with-parent-internal): Track by subject first, then sender. 2011-04-15 14:29:02 +00:00
Stefan Monnier
70f6144dbd * lisp/gnus/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.
* lisp/gnus/gnus.el (gnus-splash-svg-color-symbols): Don't use insert-file
from Lisp.
* lisp/gnus/message.el (message-bogus-system-names): Replace ^...$ => \`...\'.
2011-04-15 09:42:51 -03:00
Teodor Zlatanov
c3c65d735b gnus.texi (nnmairix caveats, Setup, Registry Article Refer Method)
(Fancy splitting to parent, Store arbitrary data): Updated gnus-registry docs.
gnus-registry.el: Updated gnus-registry docs.
2011-04-14 10:41:00 +00:00
Gnus developers
1e3b60017a Merge changes made in Gnus trunk.
gnus.texi (Window Layout): @itemize @code doesn't exist.  It's @table @code.
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.
network-stream.el (network-stream-open-starttls): Only do opportunistic STARTTLS upgrades if we have built-in gnutls support.  Upgrades via gnutls-cli are too slow to be done opportunistically.
gnus-start.el (gnus-get-unread-articles): Slight cleanup.
 (gnus-read-active-for-groups): Don't try to finish getting stuff where we had no early-data returned.
 (gnus-get-unread-articles): Add a sanity check so that we don't issue two async commands to the same server at the same time.
gnus-sum.el (gnus-summary-select-article-buffer): Doc fix.
gnus-registry.el (gnus-registry-remake-db): Put the warning on a "warning" level.
2011-04-12 22:18:02 +00:00
Lars Magne Ingebrigtsen
bf0ed58aa4 mm-url.el (mm-url-package-name): Removed to ease third-party reuse.
(mm-url-insert-file-contents): Don't set the package names.
2011-04-12 14:16:41 +00:00
Teodor Zlatanov
d515dc24ca 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.
2011-04-11 22:17:30 +00:00
Stefan Monnier
f8fc0578a8 * lisp/gnus/registry.el: Require CL before using defmacro*. 2011-04-10 22:18:19 -03:00
Katsumi Yamaoka
f8342cf544 gnus-art.el (article-treat-date): Assume that gnus-article-date-headers may be a group parameter. 2011-04-11 00:28:41 +00:00
Juanma Barranquero
135377f157 Fix typos in comments. 2011-04-08 01:59:27 +02: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
Juanma Barranquero
3338398778 Update and split ChangeLogs. 2011-04-06 14:18:10 +02: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
Teodor Zlatanov
11a3174d87 Merge changes made in Gnus trunk.
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.  Map references to actual group names with sender and subject tracking.
 (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.
 (registry-lookup-breaks-before-lexbind): New method to demonstrate pre-lexbind merge bug.
 (registry-usage-test): Use it.
 (initialize-instance, registry-db): Move the non-function initforms back to the class definition.
registry.el: New library to manage gnus-registry-style data.
gnus-registry.el: Use it (major rewrite).
nnregistry.el: Use it.
spam.el: Use it.
2011-04-05 22:35:05 +00:00