aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/gnus-html.el7
2 files changed, 12 insertions, 0 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 2eea1fb833e..4e72ae06f51 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12013-09-13 Glenn Morris <rgm@gnu.org>
2
3 * gnus-html.el (declare-function): Add compat stub for ancient Emacs.
4 (image-size): Declare.
5
12013-09-12 Glenn Morris <rgm@gnu.org> 62013-09-12 Glenn Morris <rgm@gnu.org>
2 7
3 * gnus-icalendar.el (gnus-icalendar-event--build-reply-event-body): 8 * gnus-icalendar.el (gnus-icalendar-event--build-reply-event-body):
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el
index a5625dfed80..2700af3d009 100644
--- a/lisp/gnus/gnus-html.el
+++ b/lisp/gnus/gnus-html.el
@@ -28,6 +28,10 @@
28 28
29;;; Code: 29;;; Code:
30 30
31;; For Emacs <22.2 and XEmacs.
32(eval-and-compile
33 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
34
31(eval-when-compile (require 'cl)) 35(eval-when-compile (require 'cl))
32 36
33(require 'gnus-art) 37(require 'gnus-art)
@@ -438,6 +442,9 @@ Return a string with image data."
438 (truncate (* gnus-max-image-proportion 442 (truncate (* gnus-max-image-proportion
439 (- (nth 3 edges) (nth 1 edges))))))) 443 (- (nth 3 edges) (nth 1 edges)))))))
440 444
445;; Behind display-graphic-p test.
446(declare-function image-size "image.c" (spec &optional pixels frame))
447
441(defun gnus-html-put-image (data url &optional alt-text) 448(defun gnus-html-put-image (data url &optional alt-text)
442 "Put an image with DATA from URL and optional ALT-TEXT." 449 "Put an image with DATA from URL and optional ALT-TEXT."
443 (when (gnus-graphic-display-p) 450 (when (gnus-graphic-display-p)