diff options
Diffstat (limited to 'lisp/image.el')
-rw-r--r-- | lisp/image.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/image.el b/lisp/image.el index 72e6ee8e633..87102dd34e4 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." @@ -427,10 +430,11 @@ Example: (defimage test-image ((:type xpm :file \"~/test1.xpm\") (:type xbm :file \"~/test1.xbm\")))" + (declare (doc-string 3)) `(defvar ,symbol (find-image ',specs) ,doc)) (provide 'image) -;;; arch-tag: 8e76a07b-eb48-4f3e-a7a0-1a7ba9f096b3 +;; arch-tag: 8e76a07b-eb48-4f3e-a7a0-1a7ba9f096b3 ;;; image.el ends here |