(elp-instrument-package): Don't instrument keymaps and autoloaded functions.
authorRichard M. Stallman <rms@gnu.org>
Fri, 22 Mar 1996 14:18:20 +0000 (14:18 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 22 Mar 1996 14:18:20 +0000 (14:18 +0000)
lisp/emacs-lisp/elp.el

index 37ade7b..7c07e90 100644 (file)
@@ -300,9 +300,9 @@ For example, to instrument all ELP functions, do the following:
                                    (function
                                     (lambda (sym)
                                       (and (fboundp sym)
-                                           (not (eq (car-safe
-                                                     (symbol-function sym))
-                                                    'macro)))))))))
+                                           (not (memq (car-safe
+                                                       (symbol-function sym))
+                                                      '(macro keymap autoload))))))))))
 
 (defun elp-restore-list (&optional list)
   "Restore the original definitions for all functions in `elp-function-list'.