emacs/lisp/gnus
Glenn Morris aa8f82773f Stop message.el from loading about 40 libraries it doesn't always need.
The general approach is to autoload rather than require, and to
require in the specific functions rather than the file.  (Bug#5642)

* url/url.el: Move mailcap require earlier in the file.

* gnus/gmm-utils.el: Don't require wid-edit.
(widget-create-child-value, widget-convert, widget-default-get):
Autoload.

* gnus/gnus-util.el: Don't require time-date, netrc.
(message-fetch-field, gnus-group-name-decode): Declare rather than
autoloading.
(gnus-fetch-field): Require message.
(gnus-decode-newsgroups): Require gnus-group.

* gnus/ietf-drums.el: Don't require time-date.

* gnus/message.el: Don't require hashcash, canlock, ecomplete.
Do require mail-utils.  Require nnheader only when compiling.
(smtpmail-default-smtp-server): Remove declaration.
(message-send-mail-function): Check smtpmail-default-smtp-server
is bound rather than requiring smtpmail.
(message-auto-save-directory, message-insert-signature): Use
expand-file-name rather than nnheader-concat.
(nnheader-insert-file-contents): Autoload.
(hashcash-wait-async): Declare.
(message-send-mail): Only call gnus-setup-posting-charset if
gnus-group-posting-charset-alist is bound.  Require hashcash if needed.
(message-send-mail-with-sendmail): Require sendmail.
(canlock-password, canlock-password-for-verify): Declare.
(message-canlock-password): Require canlock.
(nnheader-get-report): Autoload.
(gnus-setup-posting-charset): Declare.
(message-send-news): Require gnus-msg.
(message-make-references, message-make-in-reply-to): Use mail-header-id
rather than the alias mail-header-message-id.
(ecomplete-add-item, ecomplete-save): Declare.
(message-put-addresses-in-ecomplete): Require ecomplete.
(ecomplete-display-matches): Autoload.

* gnus/mm-decode.el: Don't require mailcap, gnus-util.
(gnus-map-function, gnus-replace-in-string, gnus-read-shell-command)
(message-fetch-field, mailcap-parse-mailcaps, mailcap-mime-info):
Autoload.
(mailcap-mime-extensions): Declare.

* gnus/mm-encode.el: Don't require mailcap.
(mailcap-extension-to-mime): Autoload.

* gnus/mml-sec.el: Don't require password-cache.

* gnus/mml.el (gnus-setup-posting-charset): Declare rather than autoload.
(mailcap-parse-mimetypes, mailcap-mime-types): Declare.
(mml-minibuffer-read-type): Require mailcap.
(mml-preview): Require gnus-msg.

* gnus/mml1991.el: Require password-cache.
(password-cache-expiry): Remove declaration.

* gnus/mml2015.el: Require password-cache.
(password-cache-expiry): Remove declaration.

* gnus/nneething.el (mailcap): Require mailcap.

* gnus/nnheader.el: (declare-function): Add compatibility stub.
(message-remove-header): Declare rather than autoload.
(nnheader-replace-header): Require message.

* gnus/nnimap.el (declare-function): Add compatibility stub.
(netrc-parse, netrc-machine-user-or-password): Declare.
(nnimap-open-connection): Require netrc.

* gnus/nntp.el (declare-function): Add compatibility stub.
(netrc-parse, netrc-machine, netrc-get): Declare.
(nntp-send-authinfo): Require netrc.

* gnus/rfc2047.el: Don't require qp.
(quoted-printable-encode-region, quoted-printable-decode-string):
Autoload.

* gnus/sieve-mode.el: Don't require easymenu.
(easy-menu-add-item): Autoload it.

* gnus/spam-stat.el (time-to-number-of-days): Autoload it.

* password-cache.el (password-cache, password-cache-expiry):
Autoload.
2010-03-18 19:55:37 -07:00
..
.gitignore
auth-source.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
canlock.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
ChangeLog Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
ChangeLog.1 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
ChangeLog.2 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
compface.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
deuglify.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
earcon.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
ecomplete.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
flow-fill.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gmm-utils.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
gnus-agent.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-art.el (gnus-treat-display-x-face): Protect against errors (bug#5299). 2010-02-24 11:40:04 -05:00
gnus-async.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-audio.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-bcklg.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-bookmark.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-cache.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-cite.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-cus.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-delay.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-demon.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-diary.el Fix typos in comments. 2010-01-14 19:37:23 +01:00
gnus-dired.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-draft.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-dup.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-eform.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-ems.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-fun.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-group.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-int.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-kill.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-logic.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-mh.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-ml.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-mlspl.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-move.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-msg.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-nocem.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-picon.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-range.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-registry.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-salt.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-score.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-setup.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-sieve.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-soup.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-spec.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-srvr.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-start.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-sum.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-topic.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-undo.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-util.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
gnus-uu.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-vm.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus-win.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gnus.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
html2text.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
ietf-drums.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
legacy-gnus-agent.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
mail-parse.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
mail-prsvr.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
mail-source.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
mailcap.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
message.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
messcompat.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
mm-bodies.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
mm-decode.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
mm-encode.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
mm-extern.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
mm-partial.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
mm-url.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
mm-util.el (mm-charset-to-coding-system): Use coding-system-from-name 2010-03-15 01:38:28 +00:00
mm-uu.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
mm-view.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
mml-sec.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
mml-smime.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
mml.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
mml1991.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
mml2015.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
nnagent.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nnbabyl.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nndb.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nndiary.el Fix typos in comments. 2010-01-14 19:37:23 +01:00
nndir.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nndoc.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nndraft.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nneething.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
nnfolder.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nngateway.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nnheader.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
nnimap.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
nnir.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nnkiboze.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nnlistserv.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nnmail.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nnmaildir.el Synch with Gnus trunk: 2009-07-17 10:15:54 +00:00
nnmairix.el Fix typos in docstrings. 2010-01-17 03:25:53 +01:00
nnmbox.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nnmh.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nnml.el Fix typos in comments. 2010-01-14 19:37:23 +01:00
nnnil.el Switch to recommended form of GPLv3 permissions notice. 2008-05-06 03:56:49 +00:00
nnoo.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nnrss.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nnslashdot.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nnsoup.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nnspool.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nntp.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
nnultimate.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nnvirtual.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nnwarchive.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nnweb.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nnwfm.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
pop3.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
qp.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
rfc1843.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
rfc2045.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
rfc2047.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
rfc2104.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
rfc2231.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
score-mode.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
sieve-manage.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
sieve-mode.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
sieve.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
smiley.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
smime.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
spam-report.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
spam-stat.el Stop message.el from loading about 40 libraries it doesn't always need. 2010-03-18 19:55:37 -07:00
spam-wash.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
spam.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
starttls.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
utf7.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
webmail.el Fix typos in comments. 2010-01-14 19:37:23 +01:00
yenc.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00