]> git.eshelyaron.com Git - emacs.git/commit
* lisp/emacs-lisp/trace.el: Rewrite, use nadvice and lexical-binding.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 20 Nov 2012 19:30:37 +0000 (14:30 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 20 Nov 2012 19:30:37 +0000 (14:30 -0500)
commit8b62d7427e12bbf07ab3454cc061a6b43ded56dd
tree8d4718f70f62c2917e8f8a536ccd3cb537b8f59d
parent5d0ccd9509a21ef18e60004a4d46e60a916e4a36
* lisp/emacs-lisp/trace.el: Rewrite, use nadvice and lexical-binding.
(trace-buffer): Don't purecopy.
(trace-entry-message, trace-exit-message): Add `context' arg.
(trace--timer): New var.
(trace-make-advice): Adjust for use in nadvice.
Add `context' argument.  Delay `display-buffer' via a timer.
(trace-function-internal): Use advice-add.
(trace--read-args): New function.
(trace-function-foreground, trace-function-background): Use it.
(trace-function): Rename to trace-function-foreground and redefine as
an alias to that new name.
(untrace-function, untrace-all): Adjust to the use of nadvice.
etc/NEWS
lisp/ChangeLog
lisp/emacs-lisp/trace.el