diff options
| author | Stefan Monnier | 2012-11-20 14:30:37 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2012-11-20 14:30:37 -0500 |
| commit | 8b62d7427e12bbf07ab3454cc061a6b43ded56dd (patch) | |
| tree | 8d4718f70f62c2917e8f8a536ccd3cb537b8f59d /etc | |
| parent | 5d0ccd9509a21ef18e60004a4d46e60a916e4a36 (diff) | |
| download | emacs-8b62d7427e12bbf07ab3454cc061a6b43ded56dd.tar.gz emacs-8b62d7427e12bbf07ab3454cc061a6b43ded56dd.zip | |
* 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.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -32,6 +32,15 @@ so we will look at it and add it to the manual. | |||
| 32 | +++ | 32 | +++ |
| 33 | ** New function `ses-rename-cell' to give SES cells arbitrary names. | 33 | ** New function `ses-rename-cell' to give SES cells arbitrary names. |
| 34 | 34 | ||
| 35 | ** trace-function was largely rewritten. | ||
| 36 | New features include: | ||
| 37 | - no prompting for the destination buffer, unless a prefix-arg was used. | ||
| 38 | - additionally to prompting for a destination buffer, when a prefix-arg is | ||
| 39 | used, the user can enter a "context", i.e. Lisp expression whose value at the | ||
| 40 | time the function is entered/exited will be printed along with the function | ||
| 41 | name and arguments. Useful to trace the value of (current-buffer) or | ||
| 42 | (point) when the function is invoked. | ||
| 43 | |||
| 35 | 44 | ||
| 36 | * New Modes and Packages in Emacs 24.4 | 45 | * New Modes and Packages in Emacs 24.4 |
| 37 | ** New nadvice.el package offering lighter-weight advice facilities. | 46 | ** New nadvice.el package offering lighter-weight advice facilities. |