From: Juanma Barranquero Date: Wed, 31 Oct 2007 12:46:08 +0000 (+0000) Subject: (elp-unload-hook): Remove function and variable. X-Git-Tag: emacs-pretest-23.0.90~9930 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=41a79faa2b69cc245b37a1991b3235c004721a05;p=emacs.git (elp-unload-hook): Remove function and variable. (elp-unload-function): New-style unload function, adapted from `elp-unload-hook'. --- 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." (and elp-reset-after-results (elp-reset-all)))) -(defun elp-unload-hook () - (elp-restore-all)) -(add-hook 'elp-unload-hook 'elp-unload-hook) +(defun elp-unload-function () + "Unload the Emacs Lisp Profiler." + (elp-restore-all) + ;; continue standard unloading + nil) (provide 'elp)