RECOMMEND packages
This is the recently discussed monkey-patch to fix the build breakage
in the packages with 21.4. I'm running pristine builds now with
XEmacs 21.4.21, 21.5.28, and current Mercurial, but I don't expect any
problems because I've done a fair amount of testing in "clean" trees
already, so I'm submitting in advance of the full tests.
This patch DOES NOT REPLACE porting Mike's changes to XEmacs 21.4 (in
progress). It is intended as a convenience for users who, for
whatever reason, are in no hurry to upgrade their XEmacsen.
How it works:
It checks for an XEmacs which is >= 21.5.29 (the next beta) or < 21.5
and >= 21.4.22 (the release Vin is working on now). If so, it does
nothing.
Otherwise, it assumes an unpatched older XEmacs, and (1) requires
'autoload-operators from xemacs-base, then (2) requires 'autoload from
the core. (This prevents a later require of 'autoload from
overwriting our monkey-patch. If they do an explicit load, there's
nothing we can do about it, of course, but presumably they know what
they're doing.)
Next (3) we check that the autoload-operators are loaded, and if not
monkey-patch that variable in. (4) We undefun `make-autoload', and
then redefine it with this version (current today, presumably won't
change before 21.5.29).
Finally, we add the eieio deffoos to autoload-make-autoload-operators
(if they're not already present). This is also conditional on XEmacs
version. I considered moving it outside of the check, but decided
that if we have an XEmacs that passes the "recent-enough" check but
the packages don't have a recent-enough xemacs-base, we ask the
reporter to upgrade xemacs-base.
Per Mike's recommendation, there's a warning that the monkey-patch is
deprecated and users should upgrade. I plan to disable the
monkey-patch on or soon after 1 January 2010.
Note that package-future.el itself is provided as an attachment at the
end of this message, and should be placed in the top of the package
hierarchy (ie, next to XEmacs.rules).
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches