diff options
author | Glenn Morris <rgm@gnu.org> | 2016-01-28 21:16:12 -0500 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2016-01-28 21:16:12 -0500 |
commit | 487bd7aedf9bbbf0b939b653912253fbeb7d16b9 (patch) | |
tree | d95c7d708982087963dede6a31db6b702c59254a /lisp/gnus/nnrss.el | |
parent | c3a2eded19fff4733a7ae15823808e80f9f188fb (diff) | |
download | emacs-487bd7aedf9bbbf0b939b653912253fbeb7d16b9.tar.gz |
Remove some useless-use-of eval.
* lisp/gnus/gnus.el (gnus-load-hook): Don't use eval.
* lisp/gnus/nnrss.el (xml): Simply require it.
(xml-rpc-method-call): Use declare-function.
Diffstat (limited to 'lisp/gnus/nnrss.el')
-rw-r--r-- | lisp/gnus/nnrss.el | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/gnus/nnrss.el b/lisp/gnus/nnrss.el index c17a13c54c3..bef8203ef27 100644 --- a/lisp/gnus/nnrss.el +++ b/lisp/gnus/nnrss.el @@ -37,10 +37,7 @@ (require 'mm-url) (require 'rfc2047) (require 'mml) -(eval-when-compile - (ignore-errors - (require 'xml))) -(eval '(require 'xml)) +(require 'xml) (nnoo-declare nnrss) @@ -372,8 +369,6 @@ for decoding when the cdr that the data specify is not available.") (nnoo-define-skeleton nnrss) ;;; Internal functions -(eval-when-compile (defun xml-rpc-method-call (&rest args))) - (defun nnrss-get-encoding () "Return an encoding attribute specified in the current xml contents. If `nnrss-compatible-encoding-alist' specifies the compatible encoding, @@ -959,6 +954,9 @@ Use Mark Pilgrim's `ultra-liberal rss locator'." ;; 4. check syndic8 (nnrss-find-rss-via-syndic8 url)))))))) +(declare-function xml-rpc-method-call "ext:xml-rpc" + (server-url method &rest params)) + (defun nnrss-find-rss-via-syndic8 (url) "Query syndic8 for the rss feeds it has for URL." (if (not (locate-library "xml-rpc")) |