diff options
| author | Richard M. Stallman | 2005-10-22 15:26:36 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-10-22 15:26:36 +0000 |
| commit | dada660ab6605f6f4f58a621da9a8df72275d27f (patch) | |
| tree | dc929cebef5989537ffd0bfa27a12c671b1e4cbb | |
| parent | adbe2d11a711ef2175f76bb8ed149117837b59e3 (diff) | |
| download | emacs-dada660ab6605f6f4f58a621da9a8df72275d27f.tar.gz emacs-dada660ab6605f6f4f58a621da9a8df72275d27f.zip | |
(image-load-path): Use eval-at-startup to initialize.
| -rw-r--r-- | lisp/image.el | 9 |
1 files changed, 6 insertions, 3 deletions
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 | |||
| 64 | be of image type IMAGE-TYPE.") | 64 | be of image type IMAGE-TYPE.") |
| 65 | 65 | ||
| 66 | 66 | ||
| 67 | (defvar image-load-path | 67 | (defvar image-load-path nil |
| 68 | (list (file-name-as-directory (expand-file-name "images" data-directory)) | ||
| 69 | 'data-directory 'load-path) | ||
| 70 | "List of locations in which to search for image files. | 68 | "List of locations in which to search for image files. |
| 71 | If an element is a string, it defines a directory to search. | 69 | If an element is a string, it defines a directory to search. |
| 72 | If an element is a variable symbol whose value is a string, that | 70 | If an element is a variable symbol whose value is a string, that |
| @@ -74,6 +72,11 @@ value defines a directory to search. | |||
| 74 | If an element is a variable symbol whose value is a list, the | 72 | If an element is a variable symbol whose value is a list, the |
| 75 | value is used as a list of directories to search.") | 73 | value is used as a list of directories to search.") |
| 76 | 74 | ||
| 75 | (eval-at-startup | ||
| 76 | (setq image-load-path | ||
| 77 | (list (file-name-as-directory (expand-file-name "images" data-directory)) | ||
| 78 | 'data-directory 'load-path))) | ||
| 79 | |||
| 77 | (defun image-jpeg-p (data) | 80 | (defun image-jpeg-p (data) |
| 78 | "Value is non-nil if DATA, a string, consists of JFIF image data. | 81 | "Value is non-nil if DATA, a string, consists of JFIF image data. |
| 79 | We accept the tag Exif because that is the same format." | 82 | We accept the tag Exif because that is the same format." |