# HG changeset patch # User Richard M. Stallman # Date 1129994796 0 # Node ID ca953a3dbdf13752ae42acc67e5e3b3f0145c470 # Parent 138f9b1d6682ef54bef2cb647c642df2501c6826 (image-load-path): Use eval-at-startup to initialize. diff -r 138f9b1d6682 -r ca953a3dbdf1 lisp/image.el --- a/lisp/image.el Sat Oct 22 15:23:00 2005 +0000 +++ b/lisp/image.el Sat Oct 22 15:26:36 2005 +0000 @@ -64,9 +64,7 @@ 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 @@ 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."