unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Bill Atkins <batkins57@gmail.com>
Subject: Re: dump-emacs not compatible with toolbar-mode
Date: Tue, 9 Aug 2005 23:18:06 -0400	[thread overview]
Message-ID: <66b7e34b050809201846dc1abc@mail.gmail.com> (raw)
In-Reply-To: <66b7e34b050809201369b8c03c@mail.gmail.com>

I should also mention that this happens even if the particular image
to be loaded is not toolbar/new.xpm.  I use that in bug_trap simply
because that's what Emacs was choking on.  Once Emacs is running,
though, it can load new.xpm and any other valid XPM I've tried without
issue.

On 8/9/05, Bill Atkins <batkins57@gmail.com> wrote:
> There is a bug that arises when using dump-emacs to preload your
> Emacs.  It seems that if the function find-image is called at any time
> before the dump, starting the dumped image will result in an error and
> startup will halt.
> 
> I just checked out a fresh copy of Emacs and built it a few hours ago,
> to make sure the problem is not limited to my own snapshot.
> 
> Here is the command line I'm using to dump the image:
> 
>      ./src/emacs -q --batch --load bug_trap --execute "(dump-emacs
> \"resmacs\" \"src/emacs\")"
> 
> Here are the contents of the bug_trap file:
> ------
> (setq debug-on-error t)
> 
> (find-image '((:type xpm :file "toolbar/new.xpm" :ascent center)))
> -------
> 
> Since certain packages call find-image directly or indirectly, there
> are other ways to trigger the error.  For instance, loading
> php-mode.el or time.el before dumping will yield identical results.
> 
> Here is a backtrace of the error (this results from running "./resmacs -q"):
> 
> -------
>  Debugger entered--Lisp error: (error "Invalid image specification")
>   image-mask-p((image :type xpm :file "/home/bill/emacs/lisp/toolbar/new.xpm"))
>   tool-bar-local-item-from-menu(find-file "new" (keymap) nil)
>   apply(tool-bar-local-item-from-menu find-file "new" (keymap) nil nil)
>   tool-bar-add-item-from-menu(find-file "new")
>   tool-bar-setup()
>   tool-bar-mode(1)
>   command-line()
>   normal-top-level()
> --------
> 
> Again, this error _only_ occurs if find-image gets called before the
> dump.  Also, the error does not occur in -nw mode; it only appears
> when run in X.
> 
> I'd be happy to provide any clarification.  Unfortunately, I'm not
> familiar enough with Emacs' internals to provide a patch.
> 
> --
> Bill Atkins
> 


-- 
Bill Atkins

  reply	other threads:[~2005-08-10  3:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <66b7e34b050807121011b801fc@mail.gmail.com>
     [not found] ` <E1E2HyL-0006Sv-5A@fencepost.gnu.org>
     [not found]   ` <66b7e34b05080821192d448e82@mail.gmail.com>
     [not found]     ` <E1E2bvw-0003pS-BY@fencepost.gnu.org>
2005-08-10  3:13       ` dump-emacs not compatible with toolbar-mode Bill Atkins
2005-08-10  3:18         ` Bill Atkins [this message]
2005-08-11 14:28         ` Richard M. Stallman
2005-08-12 17:51           ` Romain Francoise
2005-08-13 14:40             ` Richard M. Stallman
2005-08-14 10:11               ` Romain Francoise
2005-08-14 21:04                 ` Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=66b7e34b050809201846dc1abc@mail.gmail.com \
    --to=batkins57@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).