From: yamaoka Date: Tue, 12 Dec 2006 08:21:20 +0000 (+0000) Subject: (compile-mu-package): Use batch-update-directory-autoloads if it is available X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54dce75507bcf0ffe386a9e16b388b2372eef650;p=elisp%2Fmu-cite.git (compile-mu-package): Use batch-update-directory-autoloads if it is available instead of batch-update-directory. --- diff --git a/ChangeLog b/ChangeLog index dc8c087..f2e3b28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-12-12 Katsumi Yamaoka + + * MU-MK (compile-mu-package): Use batch-update-directory-autoloads + if it is available instead of batch-update-directory. + 2006-12-11 Katsumi Yamaoka * MU-CFG (PACKAGEDIR): Check for diff --git a/MU-MK b/MU-MK index 50e3ecd..7fcc9a0 100644 --- a/MU-MK +++ b/MU-MK @@ -51,9 +51,15 @@ LISPDIR=%s\n" PREFIX LISPDIR)))) (defun compile-mu-package () (config-mu-package) - (setq autoload-package-name "mu") - (add-to-list 'command-line-args-left ".") - (batch-update-directory) + (if (fboundp 'batch-update-directory-autoloads) + ;; XEmacs 21.5.19 and newer. + (progn + (add-to-list 'command-line-args-left ".") + (add-to-list 'command-line-args-left "mu") + (batch-update-directory-autoloads)) + (setq autoload-package-name "mu") + (add-to-list 'command-line-args-left ".") + (batch-update-directory)) (add-to-list 'command-line-args-left ".") (Custom-make-dependencies)