[gnus git] branch master updated: m0-3-106-g840686a =1= Fix dependency between mm-archive.el and mm-decode.el Silence compiler warnings issued when compiling in Emacs source tree

Katsumi Yamaoka <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  840686ad5fde9d9ab16f57d989e7e19e0e352f99 (commit)
      from  d9794151e1a2d3acebdfa5c524f4bb892f82e692 (commit)


- Log -----------------------------------------------------------------
commit 840686ad5fde9d9ab16f57d989e7e19e0e352f99
Author: Katsumi Yamaoka <[email protected]>
Date:   Tue Mar 27 07:15:30 2012 +0000

    Fix dependency between mm-archive.el and mm-decode.el
    Silence compiler warnings issued when compiling in Emacs source tree

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4e5c7d6..54930b3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,22 @@
+2012-03-27  Katsumi Yamaoka  <[email protected]>
+
+	* gnus-sync.el (gnus-topic-alist, gnus-group-topic)
+	(gnus-topic-create-topic, gnus-topic-enter-dribble): Silence compiler.
+	(gnus-sync-read): Use mapc instead of mapcar.
+
+	* mm-archive.el: Require mm-decode for some macros.
+	(gnus-recursive-directory-files, mailcap-extension-to-mime): Silence
+	the byte compiler.
+	(mm-archive-decoders): New function that returns the value of
+	the mm-archive-decoders variable.
+
+	* mm-decode.el: Don't require mm-archive; autoload mm-archive functions
+	instead.
+	(mm-dissect-singlepart): Use the function mm-archive-decoders.
+
+	* nnimap.el (gnus-refer-thread-use-nnir):
+	* nnmail.el (mail-send-and-exit): Silence the byte compiler.
+
 2012-03-22  Lars Magne Ingebrigtsen  <[email protected]>
 
 	* gnus-compat.el: Define `bound-and-true-p' for XEmacs.
diff --git a/lisp/gnus-sync.el b/lisp/gnus-sync.el
index 6a45c67..7e13b88 100644
--- a/lisp/gnus-sync.el
+++ b/lisp/gnus-sync.el
@@ -100,6 +100,12 @@
 (require 'gnus-start)
 (require 'gnus-util)
 
+(defvar gnus-topic-alist) ;; gnus-group.el
+(eval-when-compile
+  (autoload 'gnus-group-topic "gnus-topic")
+  (autoload 'gnus-topic-create-topic "gnus-topic" nil t)
+  (autoload 'gnus-topic-enter-dribble "gnus-topic"))
+
 (defgroup gnus-sync nil
   "The Gnus synchronization facility."
   :version "24.1"
@@ -810,7 +816,7 @@ With a prefix, SUBSCRIBE-ALL is set and unknown groups will be subscribed."
            (stringp (nth 1 gnus-sync-backend)))
       (let ((errored nil)
             name ftime)
-        (mapcar (lambda (entry)
+        (mapc (lambda (entry)
                   (setq name (cdr (assq 'id entry)))
                   ;; set ftime the FIRST time through this loop, that
                   ;; way it reflects the time we FINISHED reading
diff --git a/lisp/mm-archive.el b/lisp/mm-archive.el
index 5ca6616..7cfa465 100644
--- a/lisp/mm-archive.el
+++ b/lisp/mm-archive.el
@@ -22,12 +22,19 @@
 
 ;;; Code:
 
+(require 'mm-decode)
+(eval-when-compile
+  (autoload 'gnus-recursive-directory-files "gnus-util")
+  (autoload 'mailcap-extension-to-mime "mailcap"))
+
 (defvar mm-archive-decoders
   '(("application/ms-tnef" t "tnef" "-f" "-" "-C")
     ("application/zip" nil "unzip" "-j" "-x" "%f" "-d")
     ("application/x-gtar-compressed" nil "tar" "xzf" "-" "-C")
     ("application/x-tar" nil "tar" "xf" "-" "-C")))
 
+(defun mm-archive-decoders () mm-archive-decoders)
+
 (defun mm-dissect-archive (handle)
   (let ((decoder (cddr (assoc (car (mm-handle-type handle))
 			      mm-archive-decoders)))
diff --git a/lisp/mm-decode.el b/lisp/mm-decode.el
index 0484d8a..19017d3 100644
--- a/lisp/mm-decode.el
+++ b/lisp/mm-decode.el
@@ -29,7 +29,6 @@
 
 (require 'mail-parse)
 (require 'mm-bodies)
-(require 'mm-archive)
 (eval-when-compile (require 'cl)
 		   (require 'term))
 
@@ -42,6 +41,10 @@
 (autoload 'mm-extern-cache-contents "mm-extern")
 (autoload 'mm-insert-inline "mm-view")
 
+(autoload 'mm-archive-decoders "mm-archive")
+(autoload 'mm-archive-dissect-and-inline "mm-archive")
+(autoload 'mm-dissect-archive "mm-archive")
+
 (defvar gnus-current-window-configuration)
 
 (add-hook 'gnus-exit-gnus-hook 'mm-destroy-postponed-undisplay-list)
@@ -672,7 +675,7 @@ Postpone undisplaying of viewers for types in
     (let ((handle
 	   (mm-make-handle
 	    (mm-copy-to-buffer) ctl cte nil cdl description nil id))
-	  (decoder (assoc (car ctl) mm-archive-decoders)))
+	  (decoder (assoc (car ctl) (mm-archive-decoders))))
       (if (and decoder
 	       ;; Do automatic decoding
 	       (cadr decoder)
diff --git a/lisp/nnimap.el b/lisp/nnimap.el
index e94a98e..83100a5 100644
--- a/lisp/nnimap.el
+++ b/lisp/nnimap.el
@@ -1656,6 +1656,7 @@ textual parts.")
   (setq nnimap-status-string "Read-only server")
   nil)
 
+(defvar gnus-refer-thread-use-nnir) ;; gnus-sum.el
 (declare-function gnus-fetch-headers "gnus-sum"
 		  (articles &optional limit force-new dependencies))
 
diff --git a/lisp/nnmail.el b/lisp/nnmail.el
index 988e1cd..1645f49 100644
--- a/lisp/nnmail.el
+++ b/lisp/nnmail.el
@@ -40,6 +40,8 @@
 
 (autoload 'gnus-add-buffer "gnus")
 (autoload 'gnus-kill-buffer "gnus")
+(eval-when-compile
+  (autoload 'mail-send-and-exit "sendmail" nil t))
 
 (defgroup nnmail nil
   "Reading mail with Gnus."

-----------------------------------------------------------------------
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     |   19 +++++++++++++++++++
 lisp/gnus-sync.el  |   42 ++++++++++++++++++++++++------------------
 lisp/mm-archive.el |    7 +++++++
 lisp/mm-decode.el  |    7 +++++--
 lisp/nnimap.el     |    1 +
 lisp/nnmail.el     |    2 ++
 6 files changed, 58 insertions(+), 20 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.