# HG changeset patch # User Miles Bader # Date 1202118136 0 # Node ID 3eb16e4c44976d879f35b8d203a88b1161ed32fe # Parent 5bd0d726b8e7f29797711ed3bd6c5802199c80ad Merge from gnus--rel--5.10 Revision: emacs@sv.gnu.org/emacs--rel--22--patch-215 diff -r 5bd0d726b8e7 -r 3eb16e4c4497 lisp/gnus/ChangeLog --- a/lisp/gnus/ChangeLog Mon Feb 04 04:51:59 2008 +0000 +++ b/lisp/gnus/ChangeLog Mon Feb 04 09:42:16 2008 +0000 @@ -1,3 +1,9 @@ +2008-02-03 Reiner Steib + + * gnus.el (gnus-group-startup-message): Add `find-image' call before + image-load-path is let-bound. Reported by Harald Hanche-Olsen + . + 2008-01-12 Reiner Steib * gnus-sum.el (gnus-article-sort-by-random) diff -r 5bd0d726b8e7 -r 3eb16e4c4497 lisp/gnus/gnus.el --- a/lisp/gnus/gnus.el Mon Feb 04 04:51:59 2008 +0000 +++ b/lisp/gnus/gnus.el Mon Feb 04 09:42:16 2008 +0000 @@ -1001,6 +1001,11 @@ ((and (fboundp 'find-image) (display-graphic-p) + ;; Make sure the library defining `image-load-path' is loaded + ;; (`find-image' is autoloaded) (and discard the result). Else, we may + ;; get "defvar ignored because image-load-path is let-bound" when calling + ;; `find-image' below. + (or (find-image '(nil (:type xpm :file "gnus.xpm"))) t) (let* ((data-directory (nnheader-find-etc-directory "images/gnus")) (image-load-path (cond (data-directory (list data-directory))