]> git.eshelyaron.com Git - emacs.git/commitdiff
(elp-unload-hook): Remove function and variable.
authorJuanma Barranquero <lekktu@gmail.com>
Wed, 31 Oct 2007 12:46:08 +0000 (12:46 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Wed, 31 Oct 2007 12:46:08 +0000 (12:46 +0000)
(elp-unload-function): New-style unload function,
adapted from `elp-unload-hook'.

lisp/emacs-lisp/elp.el

index ade2a23608d3761348af050b8e9a034e900c2d3b..71231a86df9c40096f41df979d95edcc2532112d 100644 (file)
@@ -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)
 \f
 (provide 'elp)