]> code.delx.au - gnu-emacs/commitdiff
* lisp/profiler.el (profiler-calltree-find): Use function-equal.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 11 Sep 2013 01:43:07 +0000 (21:43 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 11 Sep 2013 01:43:07 +0000 (21:43 -0400)
lisp/ChangeLog
lisp/profiler.el

index 32ea5e72efdb9e14a07fc97435982b75381330d3..135145fe7fc74f8803d796291932a8dc3681d761 100644 (file)
@@ -1,3 +1,7 @@
+2013-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * profiler.el (profiler-calltree-find): Use function-equal.
+
 2013-09-10  Glenn Morris  <rgm@gnu.org>
 
        * files.el (interpreter-mode-alist): Convert to regexps.
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))