diff options
| author | Glenn Morris | 2007-12-11 05:46:37 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-12-11 05:46:37 +0000 |
| commit | 25fcd06c74258a8cca74ab23ab7caa2886df0fc1 (patch) | |
| tree | 4e0ea49e6ac300a2df12ef612a9d57cc0d83050f | |
| parent | 39c7e99daeb94a360f551f9c3b9d8372e71ea459 (diff) | |
| download | emacs-25fcd06c74258a8cca74ab23ab7caa2886df0fc1.tar.gz emacs-25fcd06c74258a8cca74ab23ab7caa2886df0fc1.zip | |
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.
| -rw-r--r-- | lisp/gnus/gnus-fun.el | 12 |
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 @@ | |||
| 26 | 26 | ||
| 27 | ;;; Code: | 27 | ;;; Code: |
| 28 | 28 | ||
| 29 | ;; For Emacs < 22.2. | ||
| 30 | (eval-and-compile | ||
| 31 | (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) | ||
| 32 | |||
| 29 | (eval-when-compile | 33 | (eval-when-compile |
| 30 | (require 'cl)) | 34 | (require 'cl)) |
| 31 | 35 | ||
| @@ -105,6 +109,8 @@ Output to the current buffer, replace text, and don't mingle error." | |||
| 105 | (format gnus-convert-pbm-to-x-face-command | 109 | (format gnus-convert-pbm-to-x-face-command |
| 106 | (shell-quote-argument file))))))) | 110 | (shell-quote-argument file))))))) |
| 107 | 111 | ||
| 112 | (autoload 'message-goto-eoh "message" nil t) | ||
| 113 | |||
| 108 | ;;;###autoload | 114 | ;;;###autoload |
| 109 | (defun gnus-insert-random-x-face-header () | 115 | (defun gnus-insert-random-x-face-header () |
| 110 | "Insert a random X-Face header from `gnus-x-face-directory'." | 116 | "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 | |||
| 203 | colors of the displayed X-Faces." | 209 | colors of the displayed X-Faces." |
| 204 | :group 'gnus-article-headers) | 210 | :group 'gnus-article-headers) |
| 205 | 211 | ||
| 212 | (declare-function article-narrow-to-head "gnus-art" ()) | ||
| 213 | (declare-function gnus-article-goto-header "gnus-art" (header)) | ||
| 214 | (declare-function gnus-add-image "gnus-art" (category image)) | ||
| 215 | (declare-function gnus-add-wash-type "gnus-art" (type)) | ||
| 216 | |||
| 206 | (defun gnus-display-x-face-in-from (data) | 217 | (defun gnus-display-x-face-in-from (data) |
| 207 | "Display the X-Face DATA in the From header." | 218 | "Display the X-Face DATA in the From header." |
| 219 | (require 'gnus-art) | ||
| 208 | (let ((default-enable-multibyte-characters nil) | 220 | (let ((default-enable-multibyte-characters nil) |
| 209 | pbm) | 221 | pbm) |
| 210 | (when (or (gnus-image-type-available-p 'xface) | 222 | (when (or (gnus-image-type-available-p 'xface) |