emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

image-load-path / tool-bar icons / dumped Emacs with images.el


From: David Reitter
Subject: image-load-path / tool-bar icons / dumped Emacs with images.el
Date: Thu, 20 Oct 2005 15:32:10 +0100

I have an issue with image-load-path, defined in images.el.

Since the tool-bar images have been moved to data-directory/images, my Emacs can't find the icons any more. The reason is that I am precompiling image.el into a dumped binary, and when that happens, image-load-path gets initialized. At run-time, the data-directory is somewhere else, however.

Before the tool-bar icons were moved, this didn't matter too much, since I had lisp/toolbar in the load-path (maybe because it's a subdir of lisp).

Of course, I can add the new location to the load-path now, but I think the better solution would be if image-load-path would be initialized at run-time, or if there was some flexible way of specifying something like '(load-path "/images") in image-load-path.


(defvar image-load-path
(list (file-name-as-directory (expand-file-name "images" data- directory))
    'data-directory 'load-path)
  "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
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.")




reply via email to

[Prev in Thread] Current Thread [Next in Thread]