[gnus git] branch master updated: m0-7-25-ge24a04b =1= Silence some gnus compilation warnings
Katsumi Yamaoka <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via e24a04beacd9155b0498c1b04ca2107677e2bd03 (commit)
from 28145c1d980a28426e4f6762a09ea3c69c47682f (commit)
- Log -----------------------------------------------------------------
commit e24a04beacd9155b0498c1b04ca2107677e2bd03
Author: Glenn Morris <[email protected]>
Date: Thu May 23 08:57:33 2013 +0000
Silence some gnus compilation warnings
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8456311..6efef71 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,21 @@
+2013-05-23 Glenn Morris <[email protected]>
+
+ * gnus-util.el (rmail-swap-buffers-maybe)
+ (rmail-maybe-set-message-counters, rmail-count-new-messages)
+ (rmail-summary-exists, rmail-show-message, rmail-summary-displayed)
+ (rmail-pop-to-buffer, rmail-maybe-display-summary): Declare.
+
+ * mm-decode.el: No need to load term when compiling.
+ (term-mode, term-char-mode): Declare.
+
+ * mm-util.el: No need to load jka-compr when compiling.
+ (jka-compr-acceptable-retval-list, jka-compr-make-temp-name): Declare.
+
+ * nnmaildir.el: Require is automatically eval-and-compile.
+ (nnmail): Require at run-time too.
+
+ * registry.el (registry-size): Move definition before use.
+
2013-05-22 Daiki Ueno <[email protected]>
* mml2015.el (mml2015-epg-sign): Make sure to insert newline after the
diff --git a/lisp/gnus-util.el b/lisp/gnus-util.el
index 6e2c586..0f0e967 100644
--- a/lisp/gnus-util.el
+++ b/lisp/gnus-util.el
@@ -1025,6 +1025,15 @@ with potentially long computations."
(declare-function mm-append-to-file "mm-util"
(start end filename &optional codesys inhibit))
+(declare-function rmail-swap-buffers-maybe "rmail" ())
+(declare-function rmail-maybe-set-message-counters "rmail" ())
+(declare-function rmail-count-new-messages "rmail" (&optional nomsg))
+(declare-function rmail-summary-exists "rmail" ())
+(declare-function rmail-show-message "rmail" (&optional n no-summary))
+;; Macroexpansion of rmail-select-summary:
+(declare-function rmail-summary-displayed "rmail" ())
+(declare-function rmail-pop-to-buffer "rmail" (&rest args))
+(declare-function rmail-maybe-display-summary "rmail" ())
(defun gnus-output-to-rmail (filename &optional ask)
"Append the current article to an Rmail file named FILENAME.
diff --git a/lisp/mm-decode.el b/lisp/mm-decode.el
index 04f3256..b025f7c 100644
--- a/lisp/mm-decode.el
+++ b/lisp/mm-decode.el
@@ -29,8 +29,7 @@
(require 'mail-parse)
(require 'mm-bodies)
-(eval-when-compile (require 'cl)
- (require 'term))
+(eval-when-compile (require 'cl))
(autoload 'gnus-map-function "gnus-util")
(autoload 'gnus-replace-in-string "gnus-util")
@@ -813,6 +812,8 @@ external if displayed external."
(declare-function gnus-configure-windows "gnus-win" (setting &optional force))
(defvar mailcap-mime-extensions) ; mailcap-mime-info autoloads
+(declare-function term-mode "term" ())
+(declare-function term-char-mode "term" ())
(defun mm-display-external (handle method)
"Display HANDLE using METHOD."
diff --git a/lisp/mm-util.el b/lisp/mm-util.el
index a49d308..209c294 100644
--- a/lisp/mm-util.el
+++ b/lisp/mm-util.el
@@ -1508,8 +1508,8 @@ To make this function work with XEmacs, the APEL package is required."
(fboundp 'coding-system-to-mime-charset)))
(coding-system-to-mime-charset coding-system)))))
-(eval-when-compile
- (require 'jka-compr))
+(defvar jka-compr-acceptable-retval-list)
+(declare-function jka-compr-make-temp-name "jka-compr" (&optional local))
(defun mm-decompress-buffer (filename &optional inplace force)
"Decompress buffer's contents, depending on jka-compr.
diff --git a/lisp/nnmaildir.el b/lisp/nnmaildir.el
index 74a693a..7d33e51 100644
--- a/lisp/nnmaildir.el
+++ b/lisp/nnmaildir.el
@@ -63,17 +63,17 @@
(eval-and-compile
(unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
-(eval-and-compile
- (require 'nnheader)
- (require 'gnus)
- (require 'gnus-util)
- (require 'gnus-range)
- (require 'gnus-start)
- (require 'gnus-int)
- (require 'message))
+(require 'nnheader)
+(require 'gnus)
+(require 'gnus-util)
+(require 'gnus-range)
+(require 'gnus-start)
+(require 'gnus-int)
+(require 'message)
+(require 'nnmail)
+
(eval-when-compile
- (require 'cl)
- (require 'nnmail))
+ (require 'cl))
(defconst nnmaildir-version "Gnus")
diff --git a/lisp/registry.el b/lisp/registry.el
index 1a7cfd0..1b41b2d 100644
--- a/lisp/registry.el
+++ b/lisp/registry.el
@@ -261,6 +261,11 @@ With assert non-nil, errors out if the key does not exist already."
(remhash key data)))
keys))
+ (defmethod registry-size ((db registry-db))
+ "Returns the size of the registry-db object THIS.
+This is the key count of the :data slot."
+ (hash-table-count (oref db :data)))
+
(defmethod registry-full ((db registry-db))
"Checks if registry-db THIS is full."
(>= (registry-size db)
@@ -309,11 +314,6 @@ Errors out if the key exists already."
(registry-lookup-secondary-value db tr val value-keys))))
(oref db :data))))))
- (defmethod registry-size ((db registry-db))
- "Returns the size of the registry-db object THIS.
-This is the key count of the :data slot."
- (hash-table-count (oref db :data)))
-
(defmethod registry-prune ((db registry-db) &optional sortfun)
"Prunes the registry-db object THIS.
Removes only entries without the :precious keys if it can,
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 18 ++++++++++++++++++
lisp/gnus-util.el | 9 +++++++++
lisp/mm-decode.el | 5 +++--
lisp/mm-util.el | 4 ++--
lisp/nnmaildir.el | 20 ++++++++++----------
lisp/registry.el | 10 +++++-----
6 files changed, 47 insertions(+), 19 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project