all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* image-load-path / tool-bar icons / dumped Emacs with images.el
@ 2005-10-20 14:32 David Reitter
  2005-10-20 23:38 ` Richard M. Stallman
  0 siblings, 1 reply; 8+ messages in thread
From: David Reitter @ 2005-10-20 14:32 UTC (permalink / raw)


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.")

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-10-28 16:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-20 14:32 image-load-path / tool-bar icons / dumped Emacs with images.el David Reitter
2005-10-20 23:38 ` Richard M. Stallman
2005-10-21  7:30   ` Kim F. Storm
2005-10-21 14:40     ` Stefan Monnier
2005-10-21 15:08       ` Kim F. Storm
2005-10-21 22:19     ` Richard M. Stallman
2005-10-27 23:06     ` David Reitter
2005-10-28 16:17       ` Richard M. Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.