diff options
| author | Juanma Barranquero | 2007-10-31 12:46:08 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2007-10-31 12:46:08 +0000 |
| commit | 41a79faa2b69cc245b37a1991b3235c004721a05 (patch) | |
| tree | 6d7f25228b80451bafdfde451f4ba26e1fe6e593 | |
| parent | c896ea954178c4ad39da8a730e56a386e38fdb09 (diff) | |
| download | emacs-41a79faa2b69cc245b37a1991b3235c004721a05.tar.gz emacs-41a79faa2b69cc245b37a1991b3235c004721a05.zip | |
(elp-unload-hook): Remove function and variable.
(elp-unload-function): New-style unload function,
adapted from `elp-unload-hook'.
| -rw-r--r-- | lisp/emacs-lisp/elp.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/elp.el b/lisp/emacs-lisp/elp.el index ade2a23608d..71231a86df9 100644 --- a/lisp/emacs-lisp/elp.el +++ b/lisp/emacs-lisp/elp.el | |||
| @@ -626,9 +626,11 @@ displayed." | |||
| 626 | (and elp-reset-after-results | 626 | (and elp-reset-after-results |
| 627 | (elp-reset-all)))) | 627 | (elp-reset-all)))) |
| 628 | 628 | ||
| 629 | (defun elp-unload-hook () | 629 | (defun elp-unload-function () |
| 630 | (elp-restore-all)) | 630 | "Unload the Emacs Lisp Profiler." |
| 631 | (add-hook 'elp-unload-hook 'elp-unload-hook) | 631 | (elp-restore-all) |
| 632 | ;; continue standard unloading | ||
| 633 | nil) | ||
| 632 | 634 | ||
| 633 | (provide 'elp) | 635 | (provide 'elp) |
| 634 | 636 | ||