diff options
| author | Ted Zlatanov | 2013-06-06 22:18:53 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2013-06-06 22:18:53 +0000 |
| commit | ebada6e0ed064f48f5fabde2e80b8685d7f99696 (patch) | |
| tree | ffd95106cb8c283761b048d72bf9f41028100809 | |
| parent | d0341459c1a304dc06cc92fcde32ca8d13d7256d (diff) | |
| download | emacs-ebada6e0ed064f48f5fabde2e80b8685d7f99696.tar.gz emacs-ebada6e0ed064f48f5fabde2e80b8685d7f99696.zip | |
gnus-ems.el (gnus-image-type-available-p): Test `display-images-p' before `image-type-available-p'
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus-ems.el | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 0156894c902..35f9f47936d 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-06-06 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 2 | |||
| 3 | * gnus-ems.el (gnus-image-type-available-p): Test `display-images-p' | ||
| 4 | before `image-type-available-p' to avoid loading the image libraries | ||
| 5 | needlessly. | ||
| 6 | |||
| 1 | 2013-06-04 Katsumi Yamaoka <yamaoka@jpl.org> | 7 | 2013-06-04 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 8 | ||
| 3 | * gnus-art.el (article-date-ut, article-update-date-lapsed): Don't | 9 | * gnus-art.el (article-date-ut, article-update-date-lapsed): Don't |
diff --git a/lisp/gnus/gnus-ems.el b/lisp/gnus/gnus-ems.el index 4d9b5798247..f9ef70f9580 100644 --- a/lisp/gnus/gnus-ems.el +++ b/lisp/gnus/gnus-ems.el | |||
| @@ -165,10 +165,10 @@ | |||
| 165 | 165 | ||
| 166 | (defun gnus-image-type-available-p (type) | 166 | (defun gnus-image-type-available-p (type) |
| 167 | (and (fboundp 'image-type-available-p) | 167 | (and (fboundp 'image-type-available-p) |
| 168 | (image-type-available-p type) | ||
| 169 | (if (fboundp 'display-images-p) | 168 | (if (fboundp 'display-images-p) |
| 170 | (display-images-p) | 169 | (display-images-p) |
| 171 | t))) | 170 | t) |
| 171 | (image-type-available-p type))) | ||
| 172 | 172 | ||
| 173 | (defun gnus-create-image (file &optional type data-p &rest props) | 173 | (defun gnus-create-image (file &optional type data-p &rest props) |
| 174 | (let ((face (plist-get props :face))) | 174 | (let ((face (plist-get props :face))) |