diff options
| author | John Wiegley | 2017-12-06 11:53:21 -0800 |
|---|---|---|
| committer | John Wiegley | 2017-12-06 11:53:21 -0800 |
| commit | 71fc224961510a56baff2e4686ccca484824f58d (patch) | |
| tree | 8f04d679ffb7bdcade0ee741015da114bff954d8 | |
| parent | beee6b8d4d9b77696adb0a66c71ae566f56c8941 (diff) | |
| download | emacs-71fc224961510a56baff2e4686ccca484824f58d.tar.gz emacs-71fc224961510a56baff2e4686ccca484824f58d.zip | |
Add documentation for `use-package-report'
| -rw-r--r-- | lisp/use-package/use-package-core.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index fd7d56b271d..517671b87f1 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el | |||
| @@ -863,6 +863,13 @@ representing symbols (that may need to be autloaded)." | |||
| 863 | (setq use-package-statistics (make-hash-table))) | 863 | (setq use-package-statistics (make-hash-table))) |
| 864 | 864 | ||
| 865 | (defun use-package-report () | 865 | (defun use-package-report () |
| 866 | "Show current statistics gathered about use-package declarations. | ||
| 867 | In the table that's generated, the status field has the following | ||
| 868 | meaning: | ||
| 869 | Configured :config has been processed (the package is loaded!) | ||
| 870 | Initialized :init has been processed (load status unknown) | ||
| 871 | Prefaced :preface has been processed | ||
| 872 | Declared the use-package declaration was seen" | ||
| 866 | (interactive) | 873 | (interactive) |
| 867 | (with-current-buffer (get-buffer-create "*use-package statistics*") | 874 | (with-current-buffer (get-buffer-create "*use-package statistics*") |
| 868 | (delete-region (point-min) (point-max)) | 875 | (delete-region (point-min) (point-max)) |