]> git.eshelyaron.com Git - emacs.git/commitdiff
Add declare-function compatibility definition.
authorGlenn Morris <rgm@gnu.org>
Tue, 11 Dec 2007 05:22:04 +0000 (05:22 +0000)
committerGlenn Morris <rgm@gnu.org>
Tue, 11 Dec 2007 05:22:04 +0000 (05:22 +0000)
(mail-header-parse-content-type, message-narrow-to-head): Autoload.
(message-fetch-field): Declare as a function.

lisp/gnus/rfc1843.el

index f27825b6d74a5cbada7480920be5ba0344db523e..4820184d21a0672feeb5f2cb654d2b8c7f181f0e 100644 (file)
 
 ;;; Code:
 
+;; For Emacs < 22.2.
+(eval-and-compile
+  (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
+
 (eval-when-compile (require 'cl))
 (require 'mm-util)
 
@@ -139,6 +143,10 @@ ftp://ftp.math.psu.edu/pub/simpson/chinese/hzp/hzp.doc"
          (aset s (incf i) (+ v (if (< v 63) 64 98))))))
     s))
 
+(autoload 'mail-header-parse-content-type "mail-parse")
+(autoload 'message-narrow-to-head "message")
+(declare-function message-fetch-field "message" (header &optional not-all))
+
 (defun rfc1843-decode-article-body ()
   "Decode HZ encoded text in the article body."
   (if (string-match (concat "\\<\\(" rfc1843-newsgroups-regexp "\\)\\>")