Commit 34675540 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/profiler.el (profiler-calltree-find): Use function-equal.

parent 93ef404d
2013-09-11 Stefan Monnier <>
* profiler.el (profiler-calltree-find): Use function-equal.
2013-09-10 Glenn Morris <>
* files.el (interpreter-mode-alist): Convert to regexps.
......@@ -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))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment