aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2015-05-04 20:38:16 -0400
committerGlenn Morris2015-05-04 20:38:16 -0400
commit067968210e5088536b14ac5830eb623a7619f35f (patch)
tree18c259eeedea1af03f8ee5109d0a135a1afa0d2e
parentd3d59fb4739eb4eb189014af87e3d812f3faf7cd (diff)
downloademacs-067968210e5088536b14ac5830eb623a7619f35f.tar.gz
emacs-067968210e5088536b14ac5830eb623a7619f35f.zip
Replace instances of "(eval-when-compile (autoload ...))"
* lisp/gnus/gnus-art.el (nneething-get-file-name): Declare rather than autoload. * lisp/gnus/gnus-async.el (gnus-html-prefetch-images): Remove pointless autoload. * lisp/gnus/gnus-sync.el (gnus-group-topic): Autoload at run-time. (gnus-topic-create-topic, gnus-topic-enter-dribble): Declare rather than autoload. * lisp/gnus/mm-archive.el (gnus-recursive-directory-files) (mailcap-extension-to-mime): Autoload at run-time. * lisp/gnus/mm-util.el (latin-unity-massage-name) (latin-unity-maybe-remap, latin-unity-representations-feasible-region) (latin-unity-representations-present-region): Declare rather than autoload. * lisp/gnus/mml-smime.el (epg-make-context) (epg-passphrase-callback-function): Autoload at run-time. (epg-context-set-signers, epg-context-result-for) (epg-new-signature-digest-algorithm) (epg-verify-result-to-string, epg-list-keys, epg-verify-string) (epg-sign-string, epg-encrypt-string) (epg-context-set-passphrase-callback, epg-sub-key-fingerprint) (epg-configuration, epg-expand-group, epa-select-keys): Declare rather than autoload. * lisp/gnus/nnir.el (nnimap-change-group, nnimap-make-thread-query): Autoload at run-time. (gnus-group-topic-name, nnimap-buffer, nnimap-command) (gnus-registry-get-id-key, gnus-registry-action): Declare rather than autoload. * lisp/gnus/nnmail.el (mail-send-and-exit): Autoload at run-time. * lisp/gnus/spam.el (spam-stat-buffer-change-to-non-spam) (spam-stat-buffer-change-to-spam, spam-stat-buffer-is-non-spam) (spam-stat-buffer-is-spam, spam-stat-load, spam-stat-save) (spam-stat-split-fancy): Remove pointless autoloads. * lisp/net/mairix.el: Load gnus-util when compiling. (gnus-group-read-ephemeral-group, gnus-summary-toggle-header) (message-field-value): Declare rather than autoload. (mairix-gnus-ephemeral-nndoc, mairix-gnus-fetch-field): Check gnus-alive-p is fbound. (vm-quit, vm-visit-folder, vm-select-folder-buffer) (vm-check-for-killed-summary, vm-error-if-folder-empty) (vm-get-header-contents, vm-select-marked-or-prefixed-messages): Declare rather than autoload.
-rw-r--r--lisp/gnus/gnus-art.el3
-rw-r--r--lisp/gnus/gnus-async.el3
-rw-r--r--lisp/gnus/gnus-sync.el9
-rw-r--r--lisp/gnus/mm-archive.el5
-rw-r--r--lisp/gnus/mm-util.el9
-rw-r--r--lisp/gnus/mml-smime.el37
-rw-r--r--lisp/gnus/nnir.el23
-rw-r--r--lisp/gnus/nnmail.el3
-rw-r--r--lisp/gnus/spam.el9
-rw-r--r--lisp/net/mairix.el43
10 files changed, 70 insertions, 74 deletions
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 14f9adca85d..989a4247800 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -7027,8 +7027,7 @@ If given a prefix, show the hidden text instead."
7027 (gnus-check-server (gnus-find-method-for-group gnus-newsgroup-name)) 7027 (gnus-check-server (gnus-find-method-for-group gnus-newsgroup-name))
7028 (gnus-request-group gnus-newsgroup-name t))) 7028 (gnus-request-group gnus-newsgroup-name t)))
7029 7029
7030(eval-when-compile 7030(declare-function nneething-get-file-name "nneething" (id))
7031 (autoload 'nneething-get-file-name "nneething"))
7032 7031
7033(defun gnus-request-article-this-buffer (article group) 7032(defun gnus-request-article-this-buffer (article group)
7034 "Get an article and insert it into this buffer." 7033 "Get an article and insert it into this buffer."
diff --git a/lisp/gnus/gnus-async.el b/lisp/gnus/gnus-async.el
index b1b3af9658e..d4d3dba2417 100644
--- a/lisp/gnus/gnus-async.el
+++ b/lisp/gnus/gnus-async.el
@@ -226,9 +226,6 @@ that was fetched."
226 `(lambda (arg) 226 `(lambda (arg)
227 (gnus-async-article-callback arg ,group ,article ,mark ,summary ,next))) 227 (gnus-async-article-callback arg ,group ,article ,mark ,summary ,next)))
228 228
229(eval-when-compile
230 (autoload 'gnus-html-prefetch-images "gnus-html"))
231
232(defun gnus-async-article-callback (arg group article mark summary next) 229(defun gnus-async-article-callback (arg group article mark summary next)
233 "Function called when an async article is done being fetched." 230 "Function called when an async article is done being fetched."
234 (save-excursion 231 (save-excursion
diff --git a/lisp/gnus/gnus-sync.el b/lisp/gnus/gnus-sync.el
index 3c0025f0df2..c9ccc3ec69d 100644
--- a/lisp/gnus/gnus-sync.el
+++ b/lisp/gnus/gnus-sync.el
@@ -90,10 +90,7 @@
90(require 'gnus-util) 90(require 'gnus-util)
91 91
92(defvar gnus-topic-alist) ;; gnus-group.el 92(defvar gnus-topic-alist) ;; gnus-group.el
93(eval-when-compile 93(autoload 'gnus-group-topic "gnus-topic")
94 (autoload 'gnus-group-topic "gnus-topic")
95 (autoload 'gnus-topic-create-topic "gnus-topic" nil t)
96 (autoload 'gnus-topic-enter-dribble "gnus-topic"))
97 94
98(defgroup gnus-sync nil 95(defgroup gnus-sync nil
99 "The Gnus synchronization facility." 96 "The Gnus synchronization facility."
@@ -605,6 +602,10 @@ unwanted groups via the LeSync URL."
605 loc name gnus-sync-lesync-name (or sources ""))) 602 loc name gnus-sync-lesync-name (or sources "")))
606 nil))) 603 nil)))
607 604
605(declare-function gnus-topic-create-topic "gnus-topic"
606 (topic parent &optional previous full-topic))
607(declare-function gnus-topic-enter-dribble "gnus-topic" ())
608
608(defun gnus-sync-lesync-install-group-entry (name) 609(defun gnus-sync-lesync-install-group-entry (name)
609 (let* ((master (assoc name gnus-newsrc-alist)) 610 (let* ((master (assoc name gnus-newsrc-alist))
610 (old-topic-name (gnus-group-topic name)) 611 (old-topic-name (gnus-group-topic name))
diff --git a/lisp/gnus/mm-archive.el b/lisp/gnus/mm-archive.el
index d88e159900b..9c86c4ac4f3 100644
--- a/lisp/gnus/mm-archive.el
+++ b/lisp/gnus/mm-archive.el
@@ -23,9 +23,8 @@
23;;; Code: 23;;; Code:
24 24
25(require 'mm-decode) 25(require 'mm-decode)
26(eval-when-compile 26(autoload 'gnus-recursive-directory-files "gnus-util")
27 (autoload 'gnus-recursive-directory-files "gnus-util") 27(autoload 'mailcap-extension-to-mime "mailcap")
28 (autoload 'mailcap-extension-to-mime "mailcap"))
29 28
30(defvar mm-archive-decoders 29(defvar mm-archive-decoders
31 '(("application/ms-tnef" t "tnef" "-f" "-" "-C") 30 '(("application/ms-tnef" t "tnef" "-f" "-" "-C")
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el
index 0b7590114c4..ab9145f8b1c 100644
--- a/lisp/gnus/mm-util.el
+++ b/lisp/gnus/mm-util.el
@@ -1058,11 +1058,10 @@ This affects whether coding conversion should be attempted generally."
1058 (length (memq (coding-system-base b) priorities))) 1058 (length (memq (coding-system-base b) priorities)))
1059 t)))) 1059 t))))
1060 1060
1061(eval-when-compile 1061(declare-function latin-unity-massage-name "ext:latin-unity")
1062 (autoload 'latin-unity-massage-name "latin-unity") 1062(declare-function latin-unity-maybe-remap "ext:latin-unity")
1063 (autoload 'latin-unity-maybe-remap "latin-unity") 1063(declare-function latin-unity-representations-feasible-region "ext:latin-unity")
1064 (autoload 'latin-unity-representations-feasible-region "latin-unity") 1064(declare-function latin-unity-representations-present-region "ext:latin-unity")
1065 (autoload 'latin-unity-representations-present-region "latin-unity"))
1066 1065
1067(defvar latin-unity-coding-systems) 1066(defvar latin-unity-coding-systems)
1068(defvar latin-unity-ucs-list) 1067(defvar latin-unity-ucs-list)
diff --git a/lisp/gnus/mml-smime.el b/lisp/gnus/mml-smime.el
index 6f49f126842..3f0809edbe8 100644
--- a/lisp/gnus/mml-smime.el
+++ b/lisp/gnus/mml-smime.el
@@ -317,24 +317,25 @@ Whether the passphrase is cached at all is controlled by
317(defvar inhibit-redisplay) 317(defvar inhibit-redisplay)
318(defvar password-cache-expiry) 318(defvar password-cache-expiry)
319 319
320(eval-when-compile 320(autoload 'epg-make-context "epg")
321 (autoload 'epg-make-context "epg") 321(autoload 'epg-passphrase-callback-function "epg")
322 (autoload 'epg-context-set-armor "epg") 322(declare-function epg-context-set-signers "epg" (context signers))
323 (autoload 'epg-context-set-signers "epg") 323(declare-function epg-context-result-for "epg" (context name))
324 (autoload 'epg-context-result-for "epg") 324(declare-function epg-new-signature-digest-algorithm "epg" (cl-x) t)
325 (autoload 'epg-new-signature-digest-algorithm "epg") 325(declare-function epg-verify-result-to-string "epg" (verify-result))
326 (autoload 'epg-verify-result-to-string "epg") 326(declare-function epg-list-keys "epg" (context &optional name mode))
327 (autoload 'epg-list-keys "epg") 327(declare-function epg-verify-string "epg"
328 (autoload 'epg-decrypt-string "epg") 328 (context signature &optional signed-text))
329 (autoload 'epg-verify-string "epg") 329(declare-function epg-sign-string "epg" (context plain &optional mode))
330 (autoload 'epg-sign-string "epg") 330(declare-function epg-encrypt-string "epg"
331 (autoload 'epg-encrypt-string "epg") 331 (context plain recipients &optional sign always-trust))
332 (autoload 'epg-passphrase-callback-function "epg") 332(declare-function epg-context-set-passphrase-callback "epg"
333 (autoload 'epg-context-set-passphrase-callback "epg") 333 (context passphrase-callback))
334 (autoload 'epg-sub-key-fingerprint "epg") 334(declare-function epg-sub-key-fingerprint "epg" (cl-x) t)
335 (autoload 'epg-configuration "epg-config") 335(declare-function epg-configuration "epg-config" ())
336 (autoload 'epg-expand-group "epg-config") 336(declare-function epg-expand-group "epg-config" (config group))
337 (autoload 'epa-select-keys "epa")) 337(declare-function epa-select-keys "epa"
338 (context prompt &optional names secret))
338 339
339(defvar mml-smime-epg-secret-key-id-list nil) 340(defvar mml-smime-epg-secret-key-id-list nil)
340 341
diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el
index 08ca7c7e06b..15ccc4725d7 100644
--- a/lisp/gnus/nnir.el
+++ b/lisp/gnus/nnir.el
@@ -281,16 +281,6 @@ is `(valuefunc member)'."
281 281
282(require 'gnus-sum) 282(require 'gnus-sum)
283 283
284(eval-when-compile
285 (autoload 'nnimap-buffer "nnimap")
286 (autoload 'nnimap-command "nnimap")
287 (autoload 'nnimap-change-group "nnimap")
288 (autoload 'nnimap-make-thread-query "nnimap")
289 (autoload 'gnus-registry-action "gnus-registry")
290 (autoload 'gnus-registry-get-id-key "gnus-registry")
291 (autoload 'gnus-group-topic-name "gnus-topic"))
292
293
294(nnoo-declare nnir) 284(nnoo-declare nnir)
295(nnoo-define-basics nnir) 285(nnoo-define-basics nnir)
296 286
@@ -586,6 +576,8 @@ Add an entry here when adding a new search engine.")
586 576
587;; Gnus glue. 577;; Gnus glue.
588 578
579(declare-function gnus-group-topic-name "gnus-topic" ())
580
589(defun gnus-group-make-nnir-group (nnir-extra-parms &optional specs) 581(defun gnus-group-make-nnir-group (nnir-extra-parms &optional specs)
590 "Create an nnir group. Prompt for a search query and determine 582 "Create an nnir group. Prompt for a search query and determine
591the groups to search as follows: if called from the *Server* 583the groups to search as follows: if called from the *Server*
@@ -948,6 +940,10 @@ ready to be added to the list of search results."
948 940
949;;; Search Engine Interfaces: 941;;; Search Engine Interfaces:
950 942
943(autoload 'nnimap-change-group "nnimap")
944(declare-function nnimap-buffer "nnimap" ())
945(declare-function nnimap-command "nnimap" (&rest args))
946
951;; imap interface 947;; imap interface
952(defun nnir-run-imap (query srv &optional groups) 948(defun nnir-run-imap (query srv &optional groups)
953 "Run a search against an IMAP back-end server. 949 "Run a search against an IMAP back-end server.
@@ -1774,6 +1770,9 @@ environment unless `not-global' is non-nil."
1774 (let ((backend (car (gnus-server-to-method server)))) 1770 (let ((backend (car (gnus-server-to-method server))))
1775 (nnoo-current-server-p (or backend 'nnir) server))) 1771 (nnoo-current-server-p (or backend 'nnir) server)))
1776 1772
1773(autoload 'nnimap-make-thread-query "nnimap")
1774(declare-function gnus-registry-get-id-key "gnus-registry" (id key))
1775
1777(defun nnir-search-thread (header) 1776(defun nnir-search-thread (header)
1778 "Make an nnir group based on the thread containing the article 1777 "Make an nnir group based on the thread containing the article
1779header. The current server will be searched. If the registry is 1778header. The current server will be searched. If the registry is
@@ -1841,6 +1840,10 @@ article came from is also searched."
1841 (forward-line))))) 1840 (forward-line)))))
1842 groups)) 1841 groups))
1843 1842
1843;; Behind gnus-registry-enabled test.
1844(declare-function gnus-registry-action "gnus-registry"
1845 (action data-header from &optional to method))
1846
1844(defun nnir-registry-action (action data-header from &optional to method) 1847(defun nnir-registry-action (action data-header from &optional to method)
1845 "Call `gnus-registry-action' with the original article group." 1848 "Call `gnus-registry-action' with the original article group."
1846 (gnus-registry-action 1849 (gnus-registry-action
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el
index 5c5481095e2..71bc916a927 100644
--- a/lisp/gnus/nnmail.el
+++ b/lisp/gnus/nnmail.el
@@ -36,8 +36,7 @@
36 36
37(autoload 'gnus-add-buffer "gnus") 37(autoload 'gnus-add-buffer "gnus")
38(autoload 'gnus-kill-buffer "gnus") 38(autoload 'gnus-kill-buffer "gnus")
39(eval-when-compile 39(autoload 'mail-send-and-exit "sendmail" nil t)
40 (autoload 'mail-send-and-exit "sendmail" nil t))
41 40
42(defgroup nnmail nil 41(defgroup nnmail nil
43 "Reading mail with Gnus." 42 "Reading mail with Gnus."
diff --git a/lisp/gnus/spam.el b/lisp/gnus/spam.el
index 500f34139be..02ec69516c1 100644
--- a/lisp/gnus/spam.el
+++ b/lisp/gnus/spam.el
@@ -2232,15 +2232,6 @@ Uses `gnus-newsgroup-name' if category is nil (for ham registration)."
2232 2232
2233;;{{{ spam-stat 2233;;{{{ spam-stat
2234 2234
2235(eval-when-compile
2236 (autoload 'spam-stat-buffer-change-to-non-spam "spam-stat")
2237 (autoload 'spam-stat-buffer-change-to-spam "spam-stat")
2238 (autoload 'spam-stat-buffer-is-non-spam "spam-stat")
2239 (autoload 'spam-stat-buffer-is-spam "spam-stat")
2240 (autoload 'spam-stat-load "spam-stat")
2241 (autoload 'spam-stat-save "spam-stat")
2242 (autoload 'spam-stat-split-fancy "spam-stat"))
2243
2244(require 'spam-stat) 2235(require 'spam-stat)
2245 2236
2246(defun spam-check-stat () 2237(defun spam-check-stat ()
diff --git a/lisp/net/mairix.el b/lisp/net/mairix.el
index c1b107932c3..087ae439f3f 100644
--- a/lisp/net/mairix.el
+++ b/lisp/net/mairix.el
@@ -265,18 +265,22 @@ Currently there are 'threads and 'flags.")
265 (mail-fetch-field field))))) 265 (mail-fetch-field field)))))
266 266
267;;; Gnus 267;;; Gnus
268(eval-when-compile 268
269 (defvar gnus-article-buffer) 269;; For gnus-buffer-exists-p, although it seems that could be replaced by:
270 (autoload 'gnus-summary-toggle-header "gnus-sum") 270;; (and buffer (get-buffer buffer))
271 (autoload 'gnus-buffer-exists-p "gnus-util") 271(eval-when-compile (require 'gnus-util))
272 (autoload 'message-field-value "message") 272(defvar gnus-article-buffer)
273 (autoload 'gnus-group-read-ephemeral-group "gnus-group") 273(declare-function gnus-group-read-ephemeral-group "gnus-group"
274 (autoload 'gnus-alive-p "gnus-util")) 274 (group method &optional activate quit-config
275 request-only select-articles parameters number))
276(declare-function gnus-summary-toggle-header "gnus-sum" (&optional arg))
277(declare-function message-field-value "message" (header &optional not-all))
275 278
276;; Display function: 279;; Display function:
277(defun mairix-gnus-ephemeral-nndoc (folder) 280(defun mairix-gnus-ephemeral-nndoc (folder)
278 "Create ephemeral nndoc group for reading mbox file FOLDER in Gnus." 281 "Create ephemeral nndoc group for reading mbox file FOLDER in Gnus."
279 (unless (gnus-alive-p) 282 (unless (and (fboundp 'gnus-alive-p)
283 (gnus-alive-p))
280 (error "Gnus is not running")) 284 (error "Gnus is not running"))
281 (gnus-group-read-ephemeral-group 285 (gnus-group-read-ephemeral-group
282 ;; add randomness to group string to prevent Gnus from using a 286 ;; add randomness to group string to prevent Gnus from using a
@@ -289,26 +293,29 @@ Currently there are 'threads and 'flags.")
289;; Fetching mail header field: 293;; Fetching mail header field:
290(defun mairix-gnus-fetch-field (field) 294(defun mairix-gnus-fetch-field (field)
291 "Get mail header FIELD for current message using Gnus." 295 "Get mail header FIELD for current message using Gnus."
292 (unless (gnus-alive-p) 296 (unless (and (fboundp 'gnus-alive-p)
297 (gnus-alive-p))
293 (error "Gnus is not running")) 298 (error "Gnus is not running"))
294 (unless (gnus-buffer-exists-p gnus-article-buffer) 299 (unless (gnus-buffer-exists-p gnus-article-buffer)
295 (error "No article buffer available")) 300 (error "No article buffer available"))
296 (with-current-buffer gnus-article-buffer 301 (with-current-buffer gnus-article-buffer
302 ;; gnus-art requires gnus-sum and message.
297 (gnus-summary-toggle-header 1) 303 (gnus-summary-toggle-header 1)
298 (message-field-value field))) 304 (message-field-value field)))
299 305
300;;; VM 306;;; VM
301;;; written by Ulrich Mueller 307;;; written by Ulrich Mueller
302 308
303(eval-when-compile 309(declare-function vm-quit "ext:vm-folder" (&optional no-change))
304 (autoload 'vm-quit "vm-folder") 310(declare-function vm-visit-folder "ext:vm-startup"
305 (autoload 'vm-visit-folder "vm") 311 (folder &optional read-only))
306 (autoload 'vm-select-folder-buffer "vm-macro") 312(declare-function vm-select-folder-buffer "ext:vm-macro" ()) ; defsubst
307 (autoload 'vm-check-for-killed-summary "vm-misc") 313(declare-function vm-check-for-killed-summary "ext:vm-misc" ())
308 (autoload 'vm-get-header-contents "vm-summary") 314(declare-function vm-error-if-folder-empty "ext:vm-misc" ())
309 (autoload 'vm-check-for-killed-summary "vm-misc") 315(declare-function vm-get-header-contents "ext:vm-summary"
310 (autoload 'vm-error-if-folder-empty "vm-misc") 316 (message header-name-regexp &optional clump-sep))
311 (autoload 'vm-select-marked-or-prefixed-messages "vm-folder")) 317(declare-function vm-select-marked-or-prefixed-messages "ext:vm-folder"
318 (prefix))
312 319
313;; Display function 320;; Display function
314(defun mairix-vm-display (folder) 321(defun mairix-vm-display (folder)