unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Problem with building Emacs diagnosed.  Help please!
@ 2008-08-02 10:12 Alan Mackenzie
  2008-08-03 18:13 ` Stefan Monnier
  2008-08-03 18:59 ` Glenn Morris
  0 siblings, 2 replies; 11+ messages in thread
From: Alan Mackenzie @ 2008-08-02 10:12 UTC (permalink / raw)
  To: emacs-devel; +Cc: Glenn Morris

Hi, all!

As I've said once or twice recently, whilst 'make bootstrap'ping, I've
been getting the error message

    Loading loaddefs.el (source)...
    Symbol's function definition is void: eshell-defgroup
    make[1]: *** [emacs] Error 255
    make[1]: Leaving directory `/home/acm/emacs/emacs/src'
    make: *** [src] Error 2

.  I've diagnosed now what is going on.  The pertinent lines of
loaddefs.el look like this:

########################################################################
;;;### (autoloads nil "em-alias" "eshell/em-alias.el" (18494 62417))
;;; Generated autoloads from eshell/em-alias.el

(eshell-defgroup eshell-alias nil "Command aliases allow for easy definition of alternate commands." :tag "Command aliases" :gr\oup 'eshell-module)   ;  <======================================================================

;;;***

<plus several more of the like>
.....
.....

;;;### (autoloads (eshell-command-result eshell-command eshell) "eshell"
;;;;;;  "eshell/eshell.el" (18578 7465))
;;; Generated autoloads from eshell/eshell.el

(defalias 'eshell-defgroup 'defgroup)     ; <========================================================================
########################################################################

, i.e. the problem is that `eshell-defgroup' is defined after it is used.

As far as I can make out (in .../lisp/emacs-lisp/autoload.el), when the
autoload processing is done, the order in which elisp files are processed
is random (for some value of "random").  So having elisp files set up so
that they depend on the processing order is a Bad Thing.

Greg, when you changed the eshell source to use `eshell-defgroup' instead
of just plain old `defgroup' (to which it is aliased anyway) on 21st May
2008, was there some overwhelmingly important reason?  It looks like you
intend (or intended?) to add some extra functionality to
`eshell-defgroup' at some stage.  Could that, perhaps, be achieved some
other way?

However, given that we've passed the deadline for new features, I would
like to revert that change for Emacs 23, removing `eshell-defgroup' so as
to firm up the build process.

Perhaps I should also amend the Elisp manual to warn against dependencies
between Elisp files in the autoload bits.

Maybe, at some stage, we could introduce a new construct, something like

    ;;;###autoload-requires eshell.el

, but my gut feeling is that this would be unnecessary complexity.

What do people think?

-- 
Alan Mackenzie (Nuremberg, Germany).




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-08-11 19:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-02 10:12 Problem with building Emacs diagnosed. Help please! Alan Mackenzie
2008-08-03 18:13 ` Stefan Monnier
2008-08-03 18:59 ` Glenn Morris
2008-08-03 22:01   ` Glenn Morris
2008-08-04 17:05   ` Alan Mackenzie
2008-08-04 18:45     ` Chong Yidong
2008-08-04 19:19       ` Alan Mackenzie
2008-08-08 22:53     ` Glenn Morris
2008-08-08 23:00       ` Lennart Borgman (gmail)
2008-08-11 19:18       ` Alan Mackenzie
2008-08-11 19:30         ` Lennart Borgman (gmail)

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).