aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-10-31 19:19:17 -0700
committerGlenn Morris2010-10-31 19:19:17 -0700
commit85a45a691bc035cb4e4c2620e9722aa1c622e948 (patch)
tree06bedbc8454f1f759826c0002b83bcf5a205acc1
parentb10d32ef78a009305572ac2b0922e24292fe73ac (diff)
downloademacs-85a45a691bc035cb4e4c2620e9722aa1c622e948.tar.gz
emacs-85a45a691bc035cb4e4c2620e9722aa1c622e948.zip
Silence shr.el compilation.
* lisp/gnus/shr.el (declare-function): Add compat stub. (url-cache-create-filename): Declare. (mm-disable-multibyte, widget-convert-button): Autoload.
-rw-r--r--lisp/gnus/ChangeLog4
-rw-r--r--lisp/gnus/shr.el10
2 files changed, 14 insertions, 0 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index efc059aefe1..741ddc3d960 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,9 @@
12010-11-01 Glenn Morris <rgm@gnu.org> 12010-11-01 Glenn Morris <rgm@gnu.org>
2 2
3 * shr.el (declare-function): Add compat stub.
4 (url-cache-create-filename): Declare.
5 (mm-disable-multibyte, widget-convert-button): Autoload.
6
3 * smime.el (ldap-search): Declare. 7 * smime.el (ldap-search): Declare.
4 (smime-cert-by-ldap-1): Require ldap on Emacs. 8 (smime-cert-by-ldap-1): Require ldap on Emacs.
5 9
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el
index c39dd054557..a5774742a27 100644
--- a/lisp/gnus/shr.el
+++ b/lisp/gnus/shr.el
@@ -30,6 +30,10 @@
30 30
31;;; Code: 31;;; Code:
32 32
33;; For Emacs <22.2 and XEmacs.
34(eval-and-compile
35 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
36
33(eval-when-compile (require 'cl)) 37(eval-when-compile (require 'cl))
34(require 'browse-url) 38(require 'browse-url)
35(unless (aref (char-category-set (make-char 'japanese-jisx0208 33 35)) ?>) 39(unless (aref (char-category-set (make-char 'japanese-jisx0208 33 35)) ?>)
@@ -411,6 +415,10 @@ redirects somewhere else."
411 image))) 415 image)))
412 image))) 416 image)))
413 417
418;; url-cache-extract autoloads url-cache.
419(declare-function url-cache-create-filename "url-cache" (url))
420(autoload 'mm-disable-multibyte "mm-util")
421
414(defun shr-get-image-data (url) 422(defun shr-get-image-data (url)
415 "Get image data for URL. 423 "Get image data for URL.
416Return a string with image data." 424Return a string with image data."
@@ -428,6 +436,8 @@ Return a string with image data."
428 (apply #'shr-fontize-cont cont types) 436 (apply #'shr-fontize-cont cont types)
429 (shr-ensure-paragraph)) 437 (shr-ensure-paragraph))
430 438
439(autoload 'widget-convert-button "wid-edit")
440
431(defun shr-urlify (start url) 441(defun shr-urlify (start url)
432 (widget-convert-button 442 (widget-convert-button
433 'url-link start (point) 443 'url-link start (point)