diff lisp/startup.el @ 996:25e260cb7994

[xemacs-hg @ 2002-09-10 15:27:02 by james] Enable unloading of dynamic modules. Create the first two internal XEmacs modules: LDAP and postgreSQL. Update the sample directory to contain a sample internal XEmacs module and a sample external XEmacs module. Improve support for autoloading modules. Make internal module code compile into the XEmacs binary if XEmacs is configured without module support. Make the internal module directories self-contained so that they can be distributed separately from XEmacs.
author james
date Tue, 10 Sep 2002 15:27:39 +0000
parents d41e92ee6d12
children 37bdd24225ef
line wrap: on
line diff
--- a/lisp/startup.el	Mon Sep 09 21:53:43 2002 +0000
+++ b/lisp/startup.el	Tue Sep 10 15:27:39 2002 +0000
@@ -1415,6 +1415,10 @@
       (load (expand-file-name (file-name-sans-extension autoload-file-name)
 			      lisp-directory) nil t))
 
+  ;; Hey!  Let's use a packages-* function for a non-package purpose!
+  (if (and (not inhibit-autoloads) (featurep 'modules))
+      (packages-load-package-auto-autoloads module-load-path))
+
   (if (and (not inhibit-autoloads) (not inhibit-all-packages))
       (progn
 	(if (not inhibit-early-packages)