From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: image-load-path / tool-bar icons / dumped Emacs with images.el Date: Thu, 20 Oct 2005 15:32:10 +0100 Message-ID: <739FCE66-7AB2-4375-A4EC-32473BF1EFFC@inf.ed.ac.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1129819922 327 80.91.229.2 (20 Oct 2005 14:52:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2005 14:52:02 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 20 16:51:59 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ESbbP-0000os-Pd for ged-emacs-devel@m.gmane.org; Thu, 20 Oct 2005 16:41:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESbbO-0002ja-U2 for ged-emacs-devel@m.gmane.org; Thu, 20 Oct 2005 10:41:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ESbSm-0005RU-Ok for emacs-devel@gnu.org; Thu, 20 Oct 2005 10:32:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ESbSl-0005R6-NR for emacs-devel@gnu.org; Thu, 20 Oct 2005 10:32:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESbSl-0005R1-IF for emacs-devel@gnu.org; Thu, 20 Oct 2005 10:32:11 -0400 Original-Received: from [212.227.126.183] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ESbSl-00031F-3C for emacs-devel@gnu.org; Thu, 20 Oct 2005 10:32:11 -0400 Original-Received: from lucy.inf.ed.ac.uk [129.215.174.81] (helo=[129.215.174.81]) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0ML21M-1ESbSj1dGF-0005DV; Thu, 20 Oct 2005 16:32:09 +0200 Original-To: Emacs-Devel ' X-Mailer: Apple Mail (2.734) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:f3c9a04d49beab9fcce37ffcb55ebfb9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44428 Archived-At: 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.")