>>>>"sb" == SL Baur <steve(a)xemacs.org>
writes:
sb> Christoph Wedler <wedler(a)fmi.uni-passau.de> writes in
xemacs-beta(a)xemacs.org:
> I would suggest to add the following line as the first line of
each
> generated auto-autoload file:
> (unless (fboundp 'package-provide) (fset 'package-provide
'ignore))
sb> Not O.K. Why should this be done by autoload generation?
sb> The `package-provide' call is due to _pkg.el: [...]
sb> Any backwards compatibility on the `package-provide' should go there.
Adding this line to _pkg.el with an autoload cookie is fine for me,
too. See patch below.
> (Well, they don't because files with some macros compiled in
XEmacs-21
> don't run in XEmacs-20, but that is another story...)
sb> There's a flag for that. Martin's changes for 21.2.5 might have
sb> introduced more bytecode incompatibilities, if so there should be a
sb> flag for that too.
Sorry, I wasn't clear that I know the flag. It is just that --as Jan
pointed out-- that the .elc files should be marked as incompatible.
- Christoph
diff -c /home/clstaff/wedler/sources/x-symbol/XEmacs.rules~
/home/clstaff/wedler/sources/x-symbol/XEmacs.rules
*** /home/clstaff/wedler/sources/x-symbol/XEmacs.rules~ Sat Dec 5 14:47:56 1998
--- /home/clstaff/wedler/sources/x-symbol/XEmacs.rules Sat Dec 5 14:47:56 1998
***************
*** 135,140 ****
--- 135,143 ----
$(AUTOLOAD_PATH)/_pkg.el: Makefile
@echo Creating $(AUTOLOAD_PATH)/_pkg.el
@echo ";;;###autoload" > $(AUTOLOAD_PATH)/_pkg.el
+ @echo "(unless (fboundp 'package-provide)" >>
$(AUTOLOAD_PATH)/_pkg.el
+ @echo " (fset 'package-provide 'ignore))" >>
$(AUTOLOAD_PATH)/_pkg.el
+ @echo ";;;###autoload" >> $(AUTOLOAD_PATH)/_pkg.el
@echo "(package-provide '$(PACKAGE)" >> $(AUTOLOAD_PATH)/_pkg.el
@echo " :version $(VERSION)" >> $(AUTOLOAD_PATH)/_pkg.el
@echo " :type '$(PKG_TYPE))" >> $(AUTOLOAD_PATH)/_pkg.el