>>>> Stephen wrote:
Stephen> Is there a reason why this needs to be done? I'm not
Stephen> unalterably opposed to it, but most of the trouble seems to
Stephen> be caused by lazy programming enabled by autoload abuse.
I have tried to come up with a method to generate the
auto-autoloads.el so that the result will be very close to what the
auctex team delivers in their xemacs package. I hope that this will
make it easier to support auctex within the XEmacs Packages because
there will be less differences between the packages.
I don't think we need to fix the auto-autoloads problem now. If we try
to do that it will delay this issue even further.
To come up with a less hacky solution I have tried an approach where
the autoloads rules are made optional in XEmacs.rules. The rules are
then implemented in the package Makefile where the package is free to
do what it likes.
The patch is simple:
----------------------------------------------------------------------
Index: XEmacs.rules
===================================================================
RCS file: /pack/xemacscvs/XEmacs/packages/XEmacs.rules,v
retrieving revision 1.59
diff -u -r1.59 XEmacs.rules
--- XEmacs.rules 24 May 2007 20:22:29 -0000 1.59
+++ XEmacs.rules 15 Feb 2008 23:28:00 -0000
@@ -458,6 +458,7 @@
GENERATED_ELC_DEPENDENCIES = $(ELCS:.elc=.el) $(ELCS_1:.elc=.el) \
$(AUTOLOAD_PATH)/_pkg.el
+ifneq ($(PACKAGE_HANDLES_AUTOLOADES),t)
# If Makefile or _pkg.el has changed (Makefile will trigger _pkg.el
# rebuilding), then our suppress forms may have changed. Just rebuilding
# the autoload file normally isn't enough as the old suppress forms will
@@ -491,6 +492,7 @@
-l autoload -f batch-update-autoloads $^
@touch $(AUTOLOAD_PATH)/auto-autoloads.el
@rm -f $(AUTOLOAD_PATH)/auto-autoloads.el~
+endif
endif
$(AUTOLOAD_PATH)/custom-load.el : $(GENERATED_ELC_DEPENDENCIES)
----------------------------------------------------------------------
By defining the macro PACKAGE_HANDLES_AUTOLOADES=t before including
XEmacs.rules the package can disable the auto-autoloads-rules and use
its own rules.
It is easy to revert this once the auctex build procedure doesn't
depend on cooking a special auto-autoloads.el.
Yours
--
%% Mats
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta