diff options
| author | Markus Rost | 2002-10-10 23:25:11 +0000 |
|---|---|---|
| committer | Markus Rost | 2002-10-10 23:25:11 +0000 |
| commit | bd9aba20d4dfb85686bcaea9182c795126ca2194 (patch) | |
| tree | e3a50079745a8eff61007864df4c698997580fcd /admin | |
| parent | 592cd48bf62b9ed3621085e4dbeef2fa10573215 (diff) | |
| download | emacs-bd9aba20d4dfb85686bcaea9182c795126ca2194.tar.gz emacs-bd9aba20d4dfb85686bcaea9182c795126ca2194.zip | |
Supplementary streamlining.
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/cus-test.el | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/admin/cus-test.el b/admin/cus-test.el index 6b3c4ee1885..78e7ad2260e 100644 --- a/admin/cus-test.el +++ b/admin/cus-test.el | |||
| @@ -175,7 +175,7 @@ | |||
| 175 | (defvar cus-test-deps-errors nil | 175 | (defvar cus-test-deps-errors nil |
| 176 | "List of require/load problems found by `cus-test-deps'.") | 176 | "List of require/load problems found by `cus-test-deps'.") |
| 177 | 177 | ||
| 178 | (defvar cus-test-deps-tested nil | 178 | (defvar cus-test-deps-loaded nil |
| 179 | "Dependencies loaded by `cus-test-deps'.") | 179 | "Dependencies loaded by `cus-test-deps'.") |
| 180 | 180 | ||
| 181 | (defvar cus-test-libs-errors nil | 181 | (defvar cus-test-libs-errors nil |
| @@ -276,7 +276,7 @@ The detected problematic options are stored in `cus-test-errors'." | |||
| 276 | (length cus-test-tested-variables))) | 276 | (length cus-test-tested-variables))) |
| 277 | (if cus-test-errors | 277 | (if cus-test-errors |
| 278 | (let ((L cus-test-errors)) | 278 | (let ((L cus-test-errors)) |
| 279 | (insert "The following variables seem to have errors:\n\n") | 279 | (insert "The following variables seem to have problems:\n\n") |
| 280 | (while L (insert (symbol-name (car L))) (insert "\n") | 280 | (while L (insert (symbol-name (car L))) (insert "\n") |
| 281 | (setq L (cdr L)))) | 281 | (setq L (cdr L)))) |
| 282 | (insert "No errors found by cus-test.")))) | 282 | (insert "No errors found by cus-test.")))) |
| @@ -315,7 +315,7 @@ This function is suitable for batch mode. E.g., invoke | |||
| 315 | in the emacs source directory." | 315 | in the emacs source directory." |
| 316 | (interactive) | 316 | (interactive) |
| 317 | (setq cus-test-deps-errors nil) | 317 | (setq cus-test-deps-errors nil) |
| 318 | (setq cus-test-deps-tested nil) | 318 | (setq cus-test-deps-loaded nil) |
| 319 | (mapatoms | 319 | (mapatoms |
| 320 | ;; This code is mainly from `custom-load-symbol'. | 320 | ;; This code is mainly from `custom-load-symbol'. |
| 321 | (lambda (symbol) | 321 | (lambda (symbol) |
| @@ -326,11 +326,12 @@ in the emacs source directory." | |||
| 326 | ((symbolp load) | 326 | ((symbolp load) |
| 327 | ;; (condition-case nil (require load) (error nil)) | 327 | ;; (condition-case nil (require load) (error nil)) |
| 328 | (condition-case alpha | 328 | (condition-case alpha |
| 329 | (require load) | 329 | (progn |
| 330 | (require load) | ||
| 331 | (push (list symbol load) cus-test-deps-loaded)) | ||
| 330 | (error | 332 | (error |
| 331 | (push (list symbol load alpha) cus-test-deps-errors) | 333 | (push (list symbol load alpha) cus-test-deps-errors) |
| 332 | (message "Require problem: %s %s: %s" symbol load alpha))) | 334 | (message "Require problem: %s %s: %s" symbol load alpha)))) |
| 333 | (push (list symbol load) cus-test-deps-tested)) | ||
| 334 | ;; This is subsumed by the test below, but it's much | 335 | ;; This is subsumed by the test below, but it's much |
| 335 | ;; faster. | 336 | ;; faster. |
| 336 | ((assoc load load-history)) | 337 | ((assoc load load-history)) |
| @@ -353,14 +354,15 @@ in the emacs source directory." | |||
| 353 | (t | 354 | (t |
| 354 | ;; (condition-case nil (load load) (error nil)) | 355 | ;; (condition-case nil (load load) (error nil)) |
| 355 | (condition-case alpha | 356 | (condition-case alpha |
| 356 | (load load) | 357 | (progn |
| 358 | (load load) | ||
| 359 | (push (list symbol load) cus-test-deps-loaded)) | ||
| 357 | (error | 360 | (error |
| 358 | (push (list symbol load alpha) cus-test-deps-errors) | 361 | (push (list symbol load alpha) cus-test-deps-errors) |
| 359 | (message "Load Problem: %s %s: %s" symbol load alpha))) | 362 | (message "Load Problem: %s %s: %s" symbol load alpha)))) |
| 360 | (push (list symbol load) cus-test-deps-tested)) | ||
| 361 | )))))) | 363 | )))))) |
| 362 | (message "Cus Test Deps loaded %s files." | 364 | (message "Cus Test Deps loaded %s files." |
| 363 | (length cus-test-deps-tested)) | 365 | (length cus-test-deps-loaded)) |
| 364 | (if cus-test-deps-errors | 366 | (if cus-test-deps-errors |
| 365 | (message "The following load problems appeared:\n%s" | 367 | (message "The following load problems appeared:\n%s" |
| 366 | cus-test-deps-errors) | 368 | cus-test-deps-errors) |