diff options
| author | Glenn Morris | 2007-12-11 05:22:34 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-12-11 05:22:34 +0000 |
| commit | 0f7cbeb9eafceb644cf51b7e5aa073751b4b96e0 (patch) | |
| tree | 21681e4c5d8aca7ce147a45936b51cb2cf99c7cf | |
| parent | 444f6b28fac106730e052322a6291470959c7db2 (diff) | |
| download | emacs-0f7cbeb9eafceb644cf51b7e5aa073751b4b96e0.tar.gz emacs-0f7cbeb9eafceb644cf51b7e5aa073751b4b96e0.zip | |
Add declare-function compatibility definition.
(w3-parse-buffer, gnus-group-make-rss-group): Declare as functions.
| -rw-r--r-- | lisp/gnus/nnrss.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/gnus/nnrss.el b/lisp/gnus/nnrss.el index f72166b0455..4a02690a3c5 100644 --- a/lisp/gnus/nnrss.el +++ b/lisp/gnus/nnrss.el | |||
| @@ -27,6 +27,10 @@ | |||
| 27 | 27 | ||
| 28 | ;;; Code: | 28 | ;;; Code: |
| 29 | 29 | ||
| 30 | ;; For Emacs < 22.2. | ||
| 31 | (eval-and-compile | ||
| 32 | (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) | ||
| 33 | |||
| 30 | (eval-when-compile (require 'cl)) | 34 | (eval-when-compile (require 'cl)) |
| 31 | 35 | ||
| 32 | (require 'gnus) | 36 | (require 'gnus) |
| @@ -418,6 +422,8 @@ otherwise return nil." | |||
| 418 | nnrss-compatible-encoding-alist))))) | 422 | nnrss-compatible-encoding-alist))))) |
| 419 | (mm-coding-system-p 'utf-8))) | 423 | (mm-coding-system-p 'utf-8))) |
| 420 | 424 | ||
| 425 | (declare-function w3-parse-buffer "ext:w3-parse" (&optional buff)) | ||
| 426 | |||
| 421 | (defun nnrss-fetch (url &optional local) | 427 | (defun nnrss-fetch (url &optional local) |
| 422 | "Fetch URL and put it in a the expected Lisp structure." | 428 | "Fetch URL and put it in a the expected Lisp structure." |
| 423 | (mm-with-unibyte-buffer | 429 | (mm-with-unibyte-buffer |
| @@ -784,6 +790,8 @@ which RSS 2.0 allows." | |||
| 784 | (push (list group nnrss-group-max) nnrss-server-data))) | 790 | (push (list group nnrss-group-max) nnrss-server-data))) |
| 785 | (nnrss-save-server-data server)))) | 791 | (nnrss-save-server-data server)))) |
| 786 | 792 | ||
| 793 | (declare-function gnus-group-make-rss-group "gnus-group" (&optional url)) | ||
| 794 | |||
| 787 | (defun nnrss-opml-import (opml-file) | 795 | (defun nnrss-opml-import (opml-file) |
| 788 | "OPML subscriptions import. | 796 | "OPML subscriptions import. |
| 789 | Read the file and attempt to subscribe to each Feed in the file." | 797 | Read the file and attempt to subscribe to each Feed in the file." |