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: Splitting and moving generic.el. Date: Wed, 20 Apr 2005 14:09:54 +0200 Message-ID: <87sm1lvect.fsf@xs4all.nl> References: <42661B71.6010504@gnu.org> <87acntwwlf.fsf@xs4all.nl> <42663EA6.5080906@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1113999207 9911 80.91.229.2 (20 Apr 2005 12:13:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Apr 2005 12:13:27 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 20 14:13:24 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOE44-00086U-DO for ged-emacs-devel@m.gmane.org; Wed, 20 Apr 2005 14:12:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOE8Z-00054d-NV for ged-emacs-devel@m.gmane.org; Wed, 20 Apr 2005 08:16:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DOE48-0003WR-IU for emacs-devel@gnu.org; Wed, 20 Apr 2005 08:12:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DOE45-0003Uj-Rk for emacs-devel@gnu.org; Wed, 20 Apr 2005 08:12:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOE3T-0002BA-NS for emacs-devel@gnu.org; Wed, 20 Apr 2005 08:11:43 -0400 Original-Received: from [194.109.24.24] (helo=smtp-vbr4.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DOE45-0005e5-OC; Wed, 20 Apr 2005 08:12:22 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr4.xs4all.nl (8.12.11/8.12.11) with ESMTP id j3KC9tGv092865; Wed, 20 Apr 2005 14:09:55 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DOE1i-0005Xm-00; Wed, 20 Apr 2005 14:09:54 +0200 Original-To: Jason Rumney In-Reply-To: <42663EA6.5080906@gnu.org> (Jason Rumney's message of "Wed, 20 Apr 2005 12:36:06 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 58 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:36154 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36154 Jason Rumney writes: > Lute Kamstra wrote: > >>Doing (require 'generic-x) shouldn't load generic unless generic-x is >>loaded from source. Any idea why your lisp/generic-x.el isn't >>compiled? > > generic-x.el is in the DONTCOMPILE list in the lisp makefile. DONTCOMPILE was bogus. Everything in it was compiled just the same. Just setting no-byte-compile prohibits compilation. Anyway, I removed DONTCOMPILE from the makefiles one week ago. I guess that generic-x didn't get compiled on your system because compilation failed due to the old lisp/generic.elc. If a lisp file fails to compile on GNU/Linux, bootstrap terminates with an error. Does that work differently on Windows or did you use "make -k bootstrap"? >>The error suggests that an old version of generic is used (from before >>define-generic-mode became a macro, one month ago). Do you have >>lisp/emacs-lisp/generic.el, revision 1.1? Is your >>lisp/emacs-lisp/generic.elc up to date? Is an old lisp/generic.el{,c} >>shadowing lisp/emacs-lisp/generic.el{,c}? > > There was an old generic.elc that didn't get cleaned out by the > bootstrap. This is probably the biggest problem caused by moving files > around, CVS might delete the old .el file, but the .elc gets left > behind. On GNU/Linux, all *.elc files are deleted during bootstrap. ,----[ lisp/Makefile.in ] | bootstrap-clean: | cd $(lisp); rm -f *.elc */*.elc `---- On Windows this seems to be the objective as well: ,----[ lisp/makefile.w32-in ] | bootstrap-clean: bootstrap-clean-$(SHELLTYPE) loaddefs.el | | bootstrap-clean-CMD: | # if exist $(EMACS) $(MAKE) $(MFLAGS) autoloads | if not exist $(lisp)\loaddefs.el cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el | -for %%f in (. $(WINS)) do for %%g in (%%f\*.elc) do @$(DEL) %%g | | bootstrap-clean-SH: | # if test -f $(EMACS); then $(MAKE) $(MFLAGS) autoloads; fi | # -rm -f $(lisp)/*.elc $(lisp)/*/*.elc | if ! test -r $(lisp)/loaddefs.el; then \ | cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el; \ | fi | -for dir in . $(WINS); do rm -f $$dir/*.elc; done `---- Doesn't it work for you? Lute.