aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/elp.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/elp.el b/lisp/emacs-lisp/elp.el
index 308ab51ff6..60e36300a9 100644
--- a/lisp/emacs-lisp/elp.el
+++ b/lisp/emacs-lisp/elp.el
@@ -577,6 +577,9 @@ displayed."
;; reset profiling info if desired
(and elp-reset-after-results
(elp-reset-all))))
+
+(defun elp-unload-hook ()
+ (elp-restore-all))
(provide 'elp)