aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2013-09-10 21:43:07 -0400
committerStefan Monnier2013-09-10 21:43:07 -0400
commit346755408a585e03e507ec9e9df37ac883eed4ee (patch)
treee82b5c50a993fcaebd60a875e6948705103eb5e8
parent93ef404dc95f947e1c48000a46968fd252781b9d (diff)
downloademacs-346755408a585e03e507ec9e9df37ac883eed4ee.tar.gz
emacs-346755408a585e03e507ec9e9df37ac883eed4ee.zip
* lisp/profiler.el (profiler-calltree-find): Use function-equal.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/profiler.el3
2 files changed, 5 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 32ea5e72efd..135145fe7fc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12013-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * profiler.el (profiler-calltree-find): Use function-equal.
4
12013-09-10 Glenn Morris <rgm@gnu.org> 52013-09-10 Glenn Morris <rgm@gnu.org>
2 6
3 * files.el (interpreter-mode-alist): Convert to regexps. 7 * files.el (interpreter-mode-alist): Convert to regexps.
diff --git a/lisp/profiler.el b/lisp/profiler.el
index 609a0308cf0..93ab10015ea 100644
--- a/lisp/profiler.el
+++ b/lisp/profiler.el
@@ -256,10 +256,9 @@ Optional argument MODE means only check for the specified mode (cpu or mem)."
256(defun profiler-calltree-find (tree entry) 256(defun profiler-calltree-find (tree entry)
257 "Return a child tree of ENTRY under TREE." 257 "Return a child tree of ENTRY under TREE."
258 (let (result (children (profiler-calltree-children tree))) 258 (let (result (children (profiler-calltree-children tree)))
259 ;; FIXME: Use `assoc'.
260 (while (and children (null result)) 259 (while (and children (null result))
261 (let ((child (car children))) 260 (let ((child (car children)))
262 (when (equal (profiler-calltree-entry child) entry) 261 (when (function-equal (profiler-calltree-entry child) entry)
263 (setq result child)) 262 (setq result child))
264 (setq children (cdr children)))) 263 (setq children (cdr children))))
265 result)) 264 result))