diff options
| author | Glenn Morris | 2013-05-28 19:40:43 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-05-28 19:40:43 -0700 |
| commit | cf6a9685f1a33ff97bcbcb5010b56652cdbc8617 (patch) | |
| tree | f9b2a838332aa993d771ceee057495704abcb2e8 | |
| parent | 22513e526eba97bd1014e4bacde0a8649fbe7870 (diff) | |
| download | emacs-cf6a9685f1a33ff97bcbcb5010b56652cdbc8617.tar.gz emacs-cf6a9685f1a33ff97bcbcb5010b56652cdbc8617.zip | |
Silence some gnus compilation warnings
* gnus/gnus-ems.el (set-process-plist): Every supported Emacs has this.
* gnus/gnus-group.el (gnus-sequence-of-unread-articles)
(gnus-summary-add-mark, gnus-mark-article-as-read)
(gnus-group-make-articles-read): Declare.
* gnus/gnus-sum.el (gnus-parameter-list-identifier)
(gnus-article-stop-animations, gnus-stop-downloads)
(gnus-article-only-boring-p, article-goto-body)
(gnus-flush-original-article-buffer, article-narrow-to-head)
(gnus-article-hidden-text-p, gnus-delete-wash-type)
(gnus-summary-save-in-pipe, gnus-article-show-summary): Declare.
* gnus/gnus.el: No need to eval-and-compile autoloads.
* gnus/gravatar.el (help-function-arglist): Autoload.
* gnus/nnimap.el (gnus-refer-thread-use-nnir): Declare.
* gnus/nnmail.el (nnmail-fancy-expiry-target): Maybe use mail-dont-reply-to.
* gnus/spam.el: No need to load spam-report when compiling.
No need to eval-and-compile autoloads.
(spam-report-resend-to): Declare.
(spam-report-resend-register-routine): Require 'spam-report.
| -rw-r--r-- | lisp/gnus/ChangeLog | 28 | ||||
| -rw-r--r-- | lisp/gnus/gnus-ems.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-group.el | 7 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 18 | ||||
| -rw-r--r-- | lisp/gnus/gnus.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/gravatar.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 1 | ||||
| -rw-r--r-- | lisp/gnus/nnmail.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/spam.el | 13 |
9 files changed, 69 insertions, 11 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index d475a259113..3cfca4525f0 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,31 @@ | |||
| 1 | 2013-05-29 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * gnus-ems.el (set-process-plist): Every supported Emacs has this. | ||
| 4 | |||
| 5 | * gnus-group.el (gnus-sequence-of-unread-articles) | ||
| 6 | (gnus-summary-add-mark, gnus-mark-article-as-read) | ||
| 7 | (gnus-group-make-articles-read): Declare. | ||
| 8 | |||
| 9 | * gnus-sum.el (gnus-parameter-list-identifier) | ||
| 10 | (gnus-article-stop-animations, gnus-stop-downloads) | ||
| 11 | (gnus-article-only-boring-p, article-goto-body) | ||
| 12 | (gnus-flush-original-article-buffer, article-narrow-to-head) | ||
| 13 | (gnus-article-hidden-text-p, gnus-delete-wash-type) | ||
| 14 | (gnus-summary-save-in-pipe, gnus-article-show-summary): Declare. | ||
| 15 | |||
| 16 | * gnus.el: No need to eval-and-compile autoloads. | ||
| 17 | |||
| 18 | * gravatar.el (help-function-arglist): Autoload. | ||
| 19 | |||
| 20 | * nnimap.el (gnus-refer-thread-use-nnir): Declare. | ||
| 21 | |||
| 22 | * nnmail.el (nnmail-fancy-expiry-target): Maybe use mail-dont-reply-to. | ||
| 23 | |||
| 24 | * spam.el: No need to load spam-report when compiling. | ||
| 25 | No need to eval-and-compile autoloads. | ||
| 26 | (spam-report-resend-to): Declare. | ||
| 27 | (spam-report-resend-register-routine): Require 'spam-report. | ||
| 28 | |||
| 1 | 2013-05-24 Julien Danjou <julien@danjou.info> | 29 | 2013-05-24 Julien Danjou <julien@danjou.info> |
| 2 | 30 | ||
| 3 | * sieve.el (sieve-setup-buffer): Fix default port value in sieve buffer | 31 | * sieve.el (sieve-setup-buffer): Fix default port value in sieve buffer |
diff --git a/lisp/gnus/gnus-ems.el b/lisp/gnus/gnus-ems.el index ac8bb74f1f5..4d9b5798247 100644 --- a/lisp/gnus/gnus-ems.el +++ b/lisp/gnus/gnus-ems.el | |||
| @@ -221,8 +221,8 @@ | |||
| 221 | 'window-inside-pixel-edges | 221 | 'window-inside-pixel-edges |
| 222 | 'window-pixel-edges)) | 222 | 'window-pixel-edges)) |
| 223 | 223 | ||
| 224 | (if (fboundp 'set-process-plist) | 224 | (if (or (featurep 'emacs) (fboundp 'set-process-plist)) |
| 225 | (progn | 225 | (progn ; these exist since Emacs 22.1 |
| 226 | (defalias 'gnus-set-process-plist 'set-process-plist) | 226 | (defalias 'gnus-set-process-plist 'set-process-plist) |
| 227 | (defalias 'gnus-process-plist 'process-plist) | 227 | (defalias 'gnus-process-plist 'process-plist) |
| 228 | (defalias 'gnus-process-get 'process-get) | 228 | (defalias 'gnus-process-get 'process-get) |
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 2c45d3c24a1..30ce184ed66 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -3591,6 +3591,8 @@ Cross references (Xref: header) of articles are ignored." | |||
| 3591 | (interactive "P") | 3591 | (interactive "P") |
| 3592 | (gnus-group-catchup-current n 'all)) | 3592 | (gnus-group-catchup-current n 'all)) |
| 3593 | 3593 | ||
| 3594 | (declare-function gnus-sequence-of-unread-articles "gnus-sum" (group)) | ||
| 3595 | |||
| 3594 | (defun gnus-group-catchup (group &optional all) | 3596 | (defun gnus-group-catchup (group &optional all) |
| 3595 | "Mark all articles in GROUP as read. | 3597 | "Mark all articles in GROUP as read. |
| 3596 | If ALL is non-nil, all articles are marked as read. | 3598 | If ALL is non-nil, all articles are marked as read. |
| @@ -4493,6 +4495,8 @@ and the second element is the address." | |||
| 4493 | (sort (nconc (gnus-uncompress-range (cdr m)) | 4495 | (sort (nconc (gnus-uncompress-range (cdr m)) |
| 4494 | (copy-sequence articles)) '<) t)))))) | 4496 | (copy-sequence articles)) '<) t)))))) |
| 4495 | 4497 | ||
| 4498 | (declare-function gnus-summary-add-mark "gnus-sum" (article type)) | ||
| 4499 | |||
| 4496 | (defun gnus-add-mark (group mark article) | 4500 | (defun gnus-add-mark (group mark article) |
| 4497 | "Mark ARTICLE in GROUP with MARK, whether the group is displayed or not." | 4501 | "Mark ARTICLE in GROUP with MARK, whether the group is displayed or not." |
| 4498 | (let ((buffer (gnus-summary-buffer-name group))) | 4502 | (let ((buffer (gnus-summary-buffer-name group))) |
| @@ -4657,6 +4661,9 @@ you the groups that have both dormant articles and cached articles." | |||
| 4657 | (let ((gnus-group-list-option 'limit)) | 4661 | (let ((gnus-group-list-option 'limit)) |
| 4658 | (gnus-group-list-plus args))) | 4662 | (gnus-group-list-plus args))) |
| 4659 | 4663 | ||
| 4664 | (declare-function gnus-mark-article-as-read "gnu-sum" (article &optional mark)) | ||
| 4665 | (declare-function gnus-group-make-articles-read "gnus-sum" (group articles)) | ||
| 4666 | |||
| 4660 | (defun gnus-group-mark-article-read (group article) | 4667 | (defun gnus-group-mark-article-read (group article) |
| 4661 | "Mark ARTICLE read." | 4668 | "Mark ARTICLE read." |
| 4662 | (let ((buffer (gnus-summary-buffer-name group)) | 4669 | (let ((buffer (gnus-summary-buffer-name group)) |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index f0b17341e77..c8f593ea403 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -5492,6 +5492,8 @@ or a straight list of headers." | |||
| 5492 | (cdr (assq number gnus-newsgroup-scored)) | 5492 | (cdr (assq number gnus-newsgroup-scored)) |
| 5493 | (memq number gnus-newsgroup-processable)))))) | 5493 | (memq number gnus-newsgroup-processable)))))) |
| 5494 | 5494 | ||
| 5495 | (declare-function gnus-parameter-list-identifier "gnus-art" (name) t) | ||
| 5496 | |||
| 5495 | (defun gnus-group-get-list-identifiers (group) | 5497 | (defun gnus-group-get-list-identifiers (group) |
| 5496 | "Get list identifier regexp for GROUP." | 5498 | "Get list identifier regexp for GROUP." |
| 5497 | (or (gnus-parameter-list-identifier group) | 5499 | (or (gnus-parameter-list-identifier group) |
| @@ -7267,6 +7269,9 @@ If FORCE (the prefix), also save the .newsrc file(s)." | |||
| 7267 | (unless quit-config | 7269 | (unless quit-config |
| 7268 | (setq gnus-newsgroup-name nil))))) | 7270 | (setq gnus-newsgroup-name nil))))) |
| 7269 | 7271 | ||
| 7272 | (declare-function gnus-article-stop-animations "gnus-art" ()) | ||
| 7273 | (declare-function gnus-stop-downloads "gnus-art" ()) | ||
| 7274 | |||
| 7270 | (defalias 'gnus-summary-quit 'gnus-summary-exit-no-update) | 7275 | (defalias 'gnus-summary-quit 'gnus-summary-exit-no-update) |
| 7271 | (defun gnus-summary-exit-no-update (&optional no-questions) | 7276 | (defun gnus-summary-exit-no-update (&optional no-questions) |
| 7272 | "Quit reading current newsgroup without updating read article info." | 7277 | "Quit reading current newsgroup without updating read article info." |
| @@ -7859,6 +7864,8 @@ If UNREAD is non-nil, only unread articles are selected." | |||
| 7859 | (and gnus-auto-select-same | 7864 | (and gnus-auto-select-same |
| 7860 | (gnus-summary-article-subject)))) | 7865 | (gnus-summary-article-subject)))) |
| 7861 | 7866 | ||
| 7867 | (declare-function gnus-article-only-boring-p "gnus-art" ()) | ||
| 7868 | |||
| 7862 | (defun gnus-summary-next-page (&optional lines circular stop) | 7869 | (defun gnus-summary-next-page (&optional lines circular stop) |
| 7863 | "Show next page of the selected article. | 7870 | "Show next page of the selected article. |
| 7864 | If at the end of the current article, select the next article. | 7871 | If at the end of the current article, select the next article. |
| @@ -8426,6 +8433,8 @@ If REVERSE (the prefix), limit to articles that don't match." | |||
| 8426 | (interactive "sMatch headers (regexp): \nP") | 8433 | (interactive "sMatch headers (regexp): \nP") |
| 8427 | (gnus-summary-limit-to-bodies match reverse t)) | 8434 | (gnus-summary-limit-to-bodies match reverse t)) |
| 8428 | 8435 | ||
| 8436 | (declare-function article-goto-body "gnus-art" ()) | ||
| 8437 | |||
| 8429 | (defun gnus-summary-limit-to-bodies (match &optional reverse headersp) | 8438 | (defun gnus-summary-limit-to-bodies (match &optional reverse headersp) |
| 8430 | "Limit the summary buffer to articles that have bodies that match MATCH. | 8439 | "Limit the summary buffer to articles that have bodies that match MATCH. |
| 8431 | If REVERSE (the prefix), limit to articles that don't match." | 8440 | If REVERSE (the prefix), limit to articles that don't match." |
| @@ -9556,6 +9565,8 @@ to save in." | |||
| 9556 | (ps-spool-buffer-with-faces) | 9565 | (ps-spool-buffer-with-faces) |
| 9557 | (ps-spool-buffer))))) | 9566 | (ps-spool-buffer))))) |
| 9558 | 9567 | ||
| 9568 | (declare-function gnus-flush-original-article-buffer "gnus-art" ()) | ||
| 9569 | |||
| 9559 | (defun gnus-summary-show-complete-article () | 9570 | (defun gnus-summary-show-complete-article () |
| 9560 | "Show a complete version of the current article. | 9571 | "Show a complete version of the current article. |
| 9561 | This is only useful if you're looking at a partial version of the | 9572 | This is only useful if you're looking at a partial version of the |
| @@ -9679,6 +9690,10 @@ If ARG is a negative number, turn header display off." | |||
| 9679 | t))) | 9690 | t))) |
| 9680 | (gnus-summary-show-article)) | 9691 | (gnus-summary-show-article)) |
| 9681 | 9692 | ||
| 9693 | (declare-function article-narrow-to-head "gnus-art" ()) | ||
| 9694 | (declare-function gnus-article-hidden-text-p "gnus-art" (type)) | ||
| 9695 | (declare-function gnus-delete-wash-type "gnus-art" (type)) | ||
| 9696 | |||
| 9682 | (defun gnus-summary-toggle-header (&optional arg) | 9697 | (defun gnus-summary-toggle-header (&optional arg) |
| 9683 | "Show the headers if they are hidden, or hide them if they are shown. | 9698 | "Show the headers if they are hidden, or hide them if they are shown. |
| 9684 | If ARG is a positive number, show the entire header. | 9699 | If ARG is a positive number, show the entire header. |
| @@ -11962,6 +11977,8 @@ will not be marked as saved." | |||
| 11962 | (gnus-set-mode-line 'summary) | 11977 | (gnus-set-mode-line 'summary) |
| 11963 | n)) | 11978 | n)) |
| 11964 | 11979 | ||
| 11980 | (declare-function gnus-summary-save-in-pipe "gnus-art" (&optional command raw)) | ||
| 11981 | |||
| 11965 | (defun gnus-summary-pipe-output (&optional n sym) | 11982 | (defun gnus-summary-pipe-output (&optional n sym) |
| 11966 | "Pipe the current article to a subprocess. | 11983 | "Pipe the current article to a subprocess. |
| 11967 | If N is a positive number, pipe the N next articles. | 11984 | If N is a positive number, pipe the N next articles. |
| @@ -12914,6 +12931,7 @@ If ALL is a number, fetch this number of articles." | |||
| 12914 | (gnus-summary-position-point)) | 12931 | (gnus-summary-position-point)) |
| 12915 | 12932 | ||
| 12916 | ;;; Bookmark support for Gnus. | 12933 | ;;; Bookmark support for Gnus. |
| 12934 | (declare-function gnus-article-show-summary "gnus-art" ()) | ||
| 12917 | (declare-function bookmark-make-record-default | 12935 | (declare-function bookmark-make-record-default |
| 12918 | "bookmark" (&optional no-file no-context posn)) | 12936 | "bookmark" (&optional no-file no-context posn)) |
| 12919 | (declare-function bookmark-prop-get "bookmark" (bookmark prop)) | 12937 | (declare-function bookmark-prop-get "bookmark" (bookmark prop)) |
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el index fd6ebf338fa..2c2dbd90c56 100644 --- a/lisp/gnus/gnus.el +++ b/lisp/gnus/gnus.el | |||
| @@ -4243,8 +4243,7 @@ parameters." | |||
| 4243 | (setq valids (cdr valids))) | 4243 | (setq valids (cdr valids))) |
| 4244 | outs)) | 4244 | outs)) |
| 4245 | 4245 | ||
| 4246 | (eval-and-compile | 4246 | (autoload 'message-y-or-n-p "message" nil nil 'macro) |
| 4247 | (autoload 'message-y-or-n-p "message" nil nil 'macro)) | ||
| 4248 | 4247 | ||
| 4249 | (defun gnus-read-group (prompt &optional default) | 4248 | (defun gnus-read-group (prompt &optional default) |
| 4250 | "Prompt the user for a group name. | 4249 | "Prompt the user for a group name. |
diff --git a/lisp/gnus/gravatar.el b/lisp/gnus/gravatar.el index bf6295aa7b8..985ed2c7b0d 100644 --- a/lisp/gnus/gravatar.el +++ b/lisp/gnus/gravatar.el | |||
| @@ -103,6 +103,8 @@ If no image available, return 'error." | |||
| 103 | (gravatar-create-image data nil t) | 103 | (gravatar-create-image data nil t) |
| 104 | 'error))) | 104 | 'error))) |
| 105 | 105 | ||
| 106 | (autoload 'help-function-arglist "help-fns") | ||
| 107 | |||
| 106 | ;;;###autoload | 108 | ;;;###autoload |
| 107 | (defun gravatar-retrieve (mail-address cb &optional cbargs) | 109 | (defun gravatar-retrieve (mail-address cb &optional cbargs) |
| 108 | "Retrieve MAIL-ADDRESS gravatar and call CB on retrieval. | 110 | "Retrieve MAIL-ADDRESS gravatar and call CB on retrieval. |
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 9c18bc2cff0..8fdd69b47da 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -1642,6 +1642,7 @@ textual parts.") | |||
| 1642 | (setq nnimap-status-string "Read-only server") | 1642 | (setq nnimap-status-string "Read-only server") |
| 1643 | nil) | 1643 | nil) |
| 1644 | 1644 | ||
| 1645 | (defvar gnus-refer-thread-use-nnir) ; gnus-sum | ||
| 1645 | (declare-function gnus-fetch-headers "gnus-sum" | 1646 | (declare-function gnus-fetch-headers "gnus-sum" |
| 1646 | (articles &optional limit force-new dependencies)) | 1647 | (articles &optional limit force-new dependencies)) |
| 1647 | 1648 | ||
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el index a266567987d..28b28369ae4 100644 --- a/lisp/gnus/nnmail.el +++ b/lisp/gnus/nnmail.el | |||
| @@ -1954,7 +1954,9 @@ If TIME is nil, then return the cutoff time for oldness instead." | |||
| 1954 | (and (string-match (cadr regexp-target-pair) to) | 1954 | (and (string-match (cadr regexp-target-pair) to) |
| 1955 | (let ((rmail-dont-reply-to-names | 1955 | (let ((rmail-dont-reply-to-names |
| 1956 | (message-dont-reply-to-names))) | 1956 | (message-dont-reply-to-names))) |
| 1957 | (equal (rmail-dont-reply-to from) ""))))) | 1957 | (equal (if (fboundp 'rmail-dont-reply-to) |
| 1958 | (rmail-dont-reply-to from) | ||
| 1959 | (mail-dont-reply-to from)) ""))))) | ||
| 1958 | (setq target (format-time-string (caddr regexp-target-pair) date))) | 1960 | (setq target (format-time-string (caddr regexp-target-pair) date))) |
| 1959 | ((and (not (equal header 'to-from)) | 1961 | ((and (not (equal header 'to-from)) |
| 1960 | (string-match (cadr regexp-target-pair) | 1962 | (string-match (cadr regexp-target-pair) |
diff --git a/lisp/gnus/spam.el b/lisp/gnus/spam.el index 725017ca116..8d689bf26bd 100644 --- a/lisp/gnus/spam.el +++ b/lisp/gnus/spam.el | |||
| @@ -50,7 +50,6 @@ | |||
| 50 | ;;; for the definitions of group content classification and spam processors | 50 | ;;; for the definitions of group content classification and spam processors |
| 51 | (require 'gnus) | 51 | (require 'gnus) |
| 52 | 52 | ||
| 53 | (eval-when-compile (require 'spam-report)) | ||
| 54 | (eval-when-compile (require 'hashcash)) | 53 | (eval-when-compile (require 'hashcash)) |
| 55 | 54 | ||
| 56 | ;; for nnimap-split-download-body-default | 55 | ;; for nnimap-split-download-body-default |
| @@ -60,11 +59,10 @@ | |||
| 60 | (autoload 'query-dig "dig") | 59 | (autoload 'query-dig "dig") |
| 61 | 60 | ||
| 62 | ;; autoload spam-report | 61 | ;; autoload spam-report |
| 63 | (eval-and-compile | 62 | (autoload 'spam-report-gmane "spam-report") |
| 64 | (autoload 'spam-report-gmane "spam-report") | 63 | (autoload 'spam-report-gmane-spam "spam-report") |
| 65 | (autoload 'spam-report-gmane-spam "spam-report") | 64 | (autoload 'spam-report-gmane-ham "spam-report") |
| 66 | (autoload 'spam-report-gmane-ham "spam-report") | 65 | (autoload 'spam-report-resend "spam-report") |
| 67 | (autoload 'spam-report-resend "spam-report")) | ||
| 68 | 66 | ||
| 69 | ;; autoload gnus-registry | 67 | ;; autoload gnus-registry |
| 70 | (autoload 'gnus-registry-group-count "gnus-registry") | 68 | (autoload 'gnus-registry-group-count "gnus-registry") |
| @@ -2473,7 +2471,10 @@ With a non-nil REMOVE, remove the ADDRESSES." | |||
| 2473 | (defun spam-report-resend-register-ham-routine (articles) | 2471 | (defun spam-report-resend-register-ham-routine (articles) |
| 2474 | (spam-report-resend-register-routine articles t)) | 2472 | (spam-report-resend-register-routine articles t)) |
| 2475 | 2473 | ||
| 2474 | (defvar spam-report-resend-to) | ||
| 2475 | |||
| 2476 | (defun spam-report-resend-register-routine (articles &optional ham) | 2476 | (defun spam-report-resend-register-routine (articles &optional ham) |
| 2477 | (require 'spam-report) | ||
| 2477 | (let* ((resend-to-gp | 2478 | (let* ((resend-to-gp |
| 2478 | (if ham | 2479 | (if ham |
| 2479 | (gnus-parameter-ham-resend-to gnus-newsgroup-name) | 2480 | (gnus-parameter-ham-resend-to gnus-newsgroup-name) |