diff options
author | Markus Rost <rost@math.uni-bielefeld.de> | 2002-11-11 15:09:13 +0000 |
---|---|---|
committer | Markus Rost <rost@math.uni-bielefeld.de> | 2002-11-11 15:09:13 +0000 |
commit | 052b70090aa65da4d37b47b75365c84cc6a26bfd (patch) | |
tree | 7f8a94569ae877090bb605559428136161d0534f /lisp/cus-dep.el | |
parent | ed0d58c91f39858b5df64813336a173da93f7d80 (diff) | |
download | emacs-052b70090aa65da4d37b47b75365c84cc6a26bfd.tar.gz |
Don't require 'autoload.
(custom-make-dependencies): Handle :version also for autoloaded
options.
Diffstat (limited to 'lisp/cus-dep.el')
-rw-r--r-- | lisp/cus-dep.el | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/lisp/cus-dep.el b/lisp/cus-dep.el index 96303a85585..6794b196930 100644 --- a/lisp/cus-dep.el +++ b/lisp/cus-dep.el @@ -29,7 +29,6 @@ (eval-when-compile (require 'cl)) (require 'widget) (require 'cus-face) -(require 'autoload) (defun custom-make-dependencies () "Batch function to extract custom dependencies from .el files. @@ -46,8 +45,7 @@ Usage: emacs -batch -l ./cus-dep.el -f custom-make-dependencies DIRS" (file-name-sans-extension (file-name-nondirectory f))) preloaded-file-list) t) - "\\.el\\'")) - is-autoloaded) + "\\.el\\'"))) (dolist (file files) (when (and (file-exists-p file) ;; Ignore files that are preloaded. @@ -66,17 +64,11 @@ Usage: emacs -batch -l ./cus-dep.el -f custom-make-dependencies DIRS" (condition-case nil (while (re-search-forward "^(def\\(custom\\|face\\|group\\)" nil t) - (setq is-autoloaded nil) (beginning-of-line) - (save-excursion - (forward-line -1) - (if (looking-at generate-autoload-cookie) - (setq is-autoloaded t))) (let ((expr (read (current-buffer)))) (condition-case nil (let ((custom-dont-initialize t)) (eval expr) - (put (nth 1 expr) 'custom-autoloaded is-autoloaded) (put (nth 1 expr) 'custom-where name)) (error nil)))) (error nil)))))))) @@ -140,12 +132,7 @@ Usage: emacs -batch -l ./cus-dep.el -f custom-make-dependencies DIRS" where) (when version (setq where (get symbol 'custom-where)) - (when (and where - ;; Don't bother to do anything if it's - ;; autoloaded because we will have all - ;; this info when emacs is running - ;; anyway. - (not (get symbol 'custom-autoloaded))) + (when where (insert "(custom-put-if-not '" (symbol-name symbol) " 'custom-version ") (prin1 version (current-buffer)) |