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: Re: image-load-path / tool-bar icons / dumped Emacs with images.el Date: Fri, 28 Oct 2005 00:06:07 +0100 Message-ID: <5F8FD283-586B-4614-8A56-F4DCE805F7B4@inf.ed.ac.uk> References: <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 1130454483 27325 80.91.229.2 (27 Oct 2005 23:08:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2005 23:08:03 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 28 01:08:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EVGph-0005Th-9B for ged-emacs-devel@m.gmane.org; Fri, 28 Oct 2005 01:06:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVGpg-0007Tc-GT for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2005 19:06:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EVGp7-0007TN-Dw for emacs-devel@gnu.org; Thu, 27 Oct 2005 19:06:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EVGp5-0007T7-5o for emacs-devel@gnu.org; Thu, 27 Oct 2005 19:06:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVGp4-0007T4-Ge for emacs-devel@gnu.org; Thu, 27 Oct 2005 19:06:14 -0400 Original-Received: from [212.227.126.177] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EVGp3-0006f7-14; Thu, 27 Oct 2005 19:06:13 -0400 Original-Received: from client-82-13-19-30.brhm.adsl.virgin.net [82.13.19.30] (helo=[10.0.0.34]) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0ML2Dk-1EVGp00oXZ-0003Fa; Fri, 28 Oct 2005 01:06:10 +0200 In-Reply-To: Original-To: Kim F. Storm 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:44998 Archived-At: On 21 Oct 2005, at 08:30, Kim F. Storm wrote: > > Maybe we can avoid having another variable if we do: > > (defmacro at-startup (&rest body) > `(if (eq before-init-hook t) > (progn . ,body) > (setq before-init-hook > (nconc before-init-hook ',(copy-sequence body)))) > nil) > > and set before-init-hook to t after it has been run. OK, so the current solution initializes image-load-path correctly at run-time. However, because it doesn't do so before (tool-bar-mode 1) is called (startup.el, line 765) for the first time, tool-bar-setup cannot load any images from their locations, so the tool-bar remains empty. That is, only when you preload image.el into the dump. If you don't - as in the default compile - then image.el gets autoloaded at runtime and the image-load-path is set early enough for tool-bar-setup to find the images. Maybe it would help to move (run-hooks 'before-init-hook) up before (frame-initialize) ?