* lisp/profiler.el (profiler-calltree-find): Use function-equal.
This commit is contained in:
parent
93ef404dc9
commit
346755408a
2 changed files with 5 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue