From: Richard M. Stallman Date: Sat, 22 Oct 2005 15:26:36 +0000 (+0000) Subject: (image-load-path): Use eval-at-startup to initialize. X-Git-Tag: emacs-pretest-22.0.90~6407 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dada660ab6605f6f4f58a621da9a8df72275d27f;p=emacs.git (image-load-path): Use eval-at-startup to initialize. --- diff --git a/lisp/image.el b/lisp/image.el index 72e6ee8e633..d9120b9bd32 100644 --- a/lisp/image.el +++ b/lisp/image.el @@ -64,9 +64,7 @@ When the name of an image file match REGEXP, it is assumed to be of image type IMAGE-TYPE.") -(defvar image-load-path - (list (file-name-as-directory (expand-file-name "images" data-directory)) - 'data-directory 'load-path) +(defvar image-load-path nil "List of locations in which to search for image files. If an element is a string, it defines a directory to search. If an element is a variable symbol whose value is a string, that @@ -74,6 +72,11 @@ value defines a directory to search. If an element is a variable symbol whose value is a list, the value is used as a list of directories to search.") +(eval-at-startup + (setq image-load-path + (list (file-name-as-directory (expand-file-name "images" data-directory)) + 'data-directory 'load-path))) + (defun image-jpeg-p (data) "Value is non-nil if DATA, a string, consists of JFIF image data. We accept the tag Exif because that is the same format."