From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Re: boostrap failed because of flyspell-mode-map Date: Tue, 07 Jun 2005 16:57:17 +0200 Message-ID: <87is0qqkoi.fsf@xs4all.nl> References: <22797389.1118136061181.JavaMail.www@wwinf1521> <17061.28685.310206.614673@farnswood.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118156450 30697 80.91.229.2 (7 Jun 2005 15:00:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Jun 2005 15:00:50 +0000 (UTC) Cc: david.ponce@wanadoo.fr, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 07 17:00:47 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DffUq-0006go-1b for ged-emacs-devel@m.gmane.org; Tue, 07 Jun 2005 16:56:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DffbM-0007rn-R3 for ged-emacs-devel@m.gmane.org; Tue, 07 Jun 2005 11:02:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dffae-0007bV-7W for emacs-devel@gnu.org; Tue, 07 Jun 2005 11:02:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dffaa-0007Zn-Sm for emacs-devel@gnu.org; Tue, 07 Jun 2005 11:02:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dffaa-0007YF-5r for emacs-devel@gnu.org; Tue, 07 Jun 2005 11:02:00 -0400 Original-Received: from [194.109.24.32] (helo=smtp-vbr12.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DffZQ-0002xe-7L for emacs-devel@gnu.org; Tue, 07 Jun 2005 11:00:48 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr12.xs4all.nl (8.13.3/8.13.3) with ESMTP id j57EvIg4026055; Tue, 7 Jun 2005 16:57:18 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DffW1-0006eE-00; Tue, 07 Jun 2005 16:57:17 +0200 Original-To: Nick Roberts In-Reply-To: <17061.28685.310206.614673@farnswood.snap.net.nz> (Nick Roberts's message of "Tue, 7 Jun 2005 21:59:41 +1200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 45 X-Virus-Scanned: by XS4ALL Virus Scanner 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:38262 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38262 Nick Roberts writes: > > After today's update of CVS Emacs, bootstrap failed with this error > > when dumping Emacs: > ... > > > It seems that autoload cookies are missing in flyspell.el for > > flyspell-mode-map and other variables it refers to. > > > > The following patch fixed the problem for me. > > > > Hope it helps. > > Sincerely, > > David > ... > > I think the right fix is for someone with a clean checkout of the lisp files > to generate and check in a new version of ldefs-boot.el Why do you think that will solve the problem? If I understand things correctly, bootstrap fails because of this piece of code in flyspell.el: ;;;###autoload (add-minor-mode 'flyspell-mode 'flyspell-mode-line-string flyspell-mode-map nil 'flyspell-mode) It results in this piece of code in the generated loaddefs.el: (add-minor-mode (quote flyspell-mode) (quote flyspell-mode-line-string) flyspell-mode-map nil (quote flyspell-mode)) Since flyspell-mode-map isn't autoloaded (and thus not defined in loaddefs.el), this gives an error when loaddefs.el is loaded by loadup.el. So even a clean checkout will fail to bootstrap. Removing the add-minor-mode call from flyspell.el and using define-minor-mode to implement flyspell-mode does solve the problem for me. Lute.