summaryrefslogtreecommitdiff
path: root/lisp/gnus/gnus-fun.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2007-12-11 05:46:37 +0000
committerGlenn Morris <rgm@gnu.org>2007-12-11 05:46:37 +0000
commit25fcd06c74258a8cca74ab23ab7caa2886df0fc1 (patch)
tree4e0ea49e6ac300a2df12ef612a9d57cc0d83050f /lisp/gnus/gnus-fun.el
parent39c7e99daeb94a360f551f9c3b9d8372e71ea459 (diff)
downloademacs-25fcd06c74258a8cca74ab23ab7caa2886df0fc1.tar.gz
Add declare-function compatibility definition.
(message-goto-eoh): Autoload. (article-narrow-to-head, gnus-article-goto-header) (gnus-add-image, gnus-add-wash-type): Declare as functions. (gnus-display-x-face-in-from): Require gnus-art.
Diffstat (limited to 'lisp/gnus/gnus-fun.el')
-rw-r--r--lisp/gnus/gnus-fun.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/gnus/gnus-fun.el b/lisp/gnus/gnus-fun.el
index 05454960e38..e9c6d9fd816 100644
--- a/lisp/gnus/gnus-fun.el
+++ b/lisp/gnus/gnus-fun.el
@@ -26,6 +26,10 @@
;;; Code:
+;; For Emacs < 22.2.
+(eval-and-compile
+ (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
+
(eval-when-compile
(require 'cl))
@@ -105,6 +109,8 @@ Output to the current buffer, replace text, and don't mingle error."
(format gnus-convert-pbm-to-x-face-command
(shell-quote-argument file)))))))
+(autoload 'message-goto-eoh "message" nil t)
+
;;;###autoload
(defun gnus-insert-random-x-face-header ()
"Insert a random X-Face header from `gnus-x-face-directory'."
@@ -203,8 +209,14 @@ The colors from this face are used as the foreground and background
colors of the displayed X-Faces."
:group 'gnus-article-headers)
+(declare-function article-narrow-to-head "gnus-art" ())
+(declare-function gnus-article-goto-header "gnus-art" (header))
+(declare-function gnus-add-image "gnus-art" (category image))
+(declare-function gnus-add-wash-type "gnus-art" (type))
+
(defun gnus-display-x-face-in-from (data)
"Display the X-Face DATA in the From header."
+ (require 'gnus-art)
(let ((default-enable-multibyte-characters nil)
pbm)
(when (or (gnus-image-type-available-p 'xface)