]> code.delx.au - gnu-emacs/blobdiff - lisp/profiler.el
* lisp/profiler.el (profiler-calltree-find): Use function-equal.
[gnu-emacs] / lisp / profiler.el
index 609a0308cf09026f10068423db11c6b832891f79..93ab10015eaecb5f66495088ce82f8d854436c7f 100644 (file)
@@ -256,10 +256,9 @@ Optional argument MODE means only check for the specified mode (cpu or mem)."
 (defun profiler-calltree-find (tree entry)
   "Return a child tree of ENTRY under TREE."
   (let (result (children (profiler-calltree-children tree)))
-    ;; FIXME: Use `assoc'.
     (while (and children (null result))
       (let ((child (car children)))
-       (when (equal (profiler-calltree-entry child) entry)
+       (when (function-equal (profiler-calltree-entry child) entry)
          (setq result child))
        (setq children (cdr children))))
     result))