diff options
| author | Stefan Monnier | 2004-12-11 22:06:00 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-12-11 22:06:00 +0000 |
| commit | 5007cdc96d787af8eab3ec9d5a3e288b6c5b646b (patch) | |
| tree | ab55518febe5300ea88b81e656a26d9ab26a225f | |
| parent | e8592238a1f3e77be6639af5c3e9fa3390bbd0c5 (diff) | |
| download | emacs-5007cdc96d787af8eab3ec9d5a3e288b6c5b646b.tar.gz emacs-5007cdc96d787af8eab3ec9d5a3e288b6c5b646b.zip | |
Don't `require' everything eagerly.
| -rw-r--r-- | lisp/url/ChangeLog | 19 | ||||
| -rw-r--r-- | lisp/url/url-handlers.el | 20 |
2 files changed, 26 insertions, 13 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index c9663baff8f..9bb5ef1c3e5 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * url-handlers.el: Don't `require' everything eagerly. | ||
| 4 | |||
| 1 | 2004-11-30 Paul Pogonyshev <pogonyshev@gmx.net> | 5 | 2004-11-30 Paul Pogonyshev <pogonyshev@gmx.net> |
| 2 | 6 | ||
| 3 | * url-http.el (url-http-handle-cookies): Bind `url-current-object' | 7 | * url-http.el (url-http-handle-cookies): Bind `url-current-object' |
| @@ -18,8 +22,7 @@ | |||
| 18 | 22 | ||
| 19 | 2004-11-12 Masatake YAMATO <jet@gyve.org> | 23 | 2004-11-12 Masatake YAMATO <jet@gyve.org> |
| 20 | 24 | ||
| 21 | * url-mailto.el (url-mailto): Fix a typo in the | 25 | * url-mailto.el (url-mailto): Fix a typo in the comment. |
| 22 | comment. | ||
| 23 | 26 | ||
| 24 | 2004-11-02 Masatake YAMATO <jet@gyve.org> | 27 | 2004-11-02 Masatake YAMATO <jet@gyve.org> |
| 25 | 28 | ||
| @@ -76,12 +79,12 @@ | |||
| 76 | 79 | ||
| 77 | * url-vars.el (url-passwd-entry-func): Var deleted. | 80 | * url-vars.el (url-passwd-entry-func): Var deleted. |
| 78 | (mm-mime-mule-charset-alist): Remove compatibility code for old Gnus. | 81 | (mm-mime-mule-charset-alist): Remove compatibility code for old Gnus. |
| 79 | (url-weekday-alist): Renamed from weekday-alist. | 82 | (url-weekday-alist): Rename from weekday-alist. |
| 80 | (url-monthabbrev-alist): Renamed from monthabbrev-alist. | 83 | (url-monthabbrev-alist): Rename from monthabbrev-alist. |
| 81 | (url-vars-unload-hook): Initialize hook var to hold the function. | 84 | (url-vars-unload-hook): Initialize hook var to hold the function. |
| 82 | 85 | ||
| 83 | * url-util.el (url-get-normalized-date): Use | 86 | * url-util.el (url-get-normalized-date): Use url-weekday-alist and |
| 84 | url-weekday-alist and url-monthabbrev-alist. | 87 | url-monthabbrev-alist. |
| 85 | 88 | ||
| 86 | * url-misc.el: Load cl at compile time. | 89 | * url-misc.el: Load cl at compile time. |
| 87 | 90 | ||
| @@ -99,8 +102,8 @@ | |||
| 99 | * url-news.el (url-snews): Use nntp-open-tls-stream if | 102 | * url-news.el (url-snews): Use nntp-open-tls-stream if |
| 100 | url-gateway-method is tls. | 103 | url-gateway-method is tls. |
| 101 | 104 | ||
| 102 | * url-ldap.el (url-ldap-certificate-formatter): Use | 105 | * url-ldap.el (url-ldap-certificate-formatter): |
| 103 | tls-certificate-information if ssl.el is not available. | 106 | Use tls-certificate-information if ssl.el is not available. |
| 104 | 107 | ||
| 105 | * url-https.el (url-https-create-secure-wrapper): Use tls if ssl | 108 | * url-https.el (url-https-create-secure-wrapper): Use tls if ssl |
| 106 | is not available. | 109 | is not available. |
diff --git a/lisp/url/url-handlers.el b/lisp/url/url-handlers.el index db961b9c27e..f90f21a3dbe 100644 --- a/lisp/url/url-handlers.el +++ b/lisp/url/url-handlers.el | |||
| @@ -25,11 +25,21 @@ | |||
| 25 | 25 | ||
| 26 | ;;; Code: | 26 | ;;; Code: |
| 27 | 27 | ||
| 28 | (require 'url) | 28 | ;; (require 'url) |
| 29 | (require 'url-parse) | 29 | (eval-when-compile (require 'url-parse)) |
| 30 | (require 'url-util) | 30 | ;; (require 'url-util) |
| 31 | (require 'mm-decode) | 31 | (eval-when-compile (require 'mm-decode)) |
| 32 | (require 'mailcap) | 32 | ;; (require 'mailcap) |
| 33 | ;; The following functions in the byte compiler's warnings are known not | ||
| 34 | ;; to cause any real problem for the following reasons: | ||
| 35 | ;; - mm-save-part-to-file, mm-destroy-parts: always used | ||
| 36 | ;; after mm-dissect-buffer and defined in the same file. | ||
| 37 | ;; The following are autoloaded instead of `require'd to avoid eagerly | ||
| 38 | ;; loading all of URL when turning on url-handler-mode in the .emacs. | ||
| 39 | (autoload 'url-retrieve-synchronously "url" "Retrieve url synchronously.") | ||
| 40 | (autoload 'url-expand-file-name "url-expand" "Convert url to a fully specified url, and canonicalize it.") | ||
| 41 | (autoload 'mm-dissect-buffer "mm-decode" "Dissect the current buffer and return a list of MIME handles.") | ||
| 42 | (autoload 'url-scheme-get-property "url-methods" "Get property of a URL SCHEME.") | ||
| 33 | 43 | ||
| 34 | (eval-when-compile | 44 | (eval-when-compile |
| 35 | (require 'cl)) | 45 | (require 'cl)) |