From: Alan Mackenzie <acm@muc.de>
To: emacs-devel@gnu.org
Cc: Glenn Morris <rgm@gnu.org>
Subject: Problem with building Emacs diagnosed. Help please!
Date: Sat, 2 Aug 2008 10:12:39 +0000 [thread overview]
Message-ID: <20080802101239.GA3890@muc.de> (raw)
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).
next reply other threads:[~2008-08-02 10:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-02 10:12 Alan Mackenzie [this message]
2008-08-03 18:13 ` Problem with building Emacs diagnosed. Help please! 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)
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080802101239.GA3890@muc.de \
--to=acm@muc.de \
--cc=emacs-devel@gnu.org \
--cc=rgm@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.