diff options
| author | Gemini Lasswell | 2018-07-17 11:47:43 -0700 |
|---|---|---|
| committer | Gemini Lasswell | 2018-08-03 08:54:08 -0700 |
| commit | ca98377280005344fb07c816997b9bc2a737056a (patch) | |
| tree | 11172830e890866a63a154dad9e68850b8cf5064 /etc | |
| parent | 1459ad2c670e7633f426d7a5a7f05fab23195b32 (diff) | |
| download | emacs-ca98377280005344fb07c816997b9bc2a737056a.tar.gz emacs-ca98377280005344fb07c816997b9bc2a737056a.zip | |
Add new commands to Edebug backtraces
Add commands to go to source if available, and to show and hide
Edebug's instrumentation. Make Edebug pop to backtraces instead of
displaying them, which makes Edebug consistant with the behavior of
ERT and the Lisp Debugger.
* doc/lispref/edebug.texi (Edebug Misc): Document when and how you can
jump to source code from an Edebug backtrace. Document
'edebug-backtrace-show-instrumentation' and
'edebug-backtrace-hide-instrumentation'.
* lisp/emacs-lisp/backtrace.el (backtrace-frame): Add comments to
describe the fields.
(backtrace-goto-source-functions): New
abnormal hook.
(backtrace-mode-map): Add keybinding and menu item for
backtrace-goto-source.
(backtrace--flags-width): New constant.
(backtrace-update-flags): Use it.
(backtrace-goto-source): New command.
(backtrace--print-flags): Print the :source-available flag.
* lisp/emacs-lisp/edebug.el (edebug-backtrace-frames)
(edebug-instrumented-backtrace-frames): New variables.
(edebug-backtrace, edebug--backtrace-frames): Remove functions.
(edebug-pop-to-backtrace, edebug--backtrace-goto-source)
(edebug--add-source-info): New functions.
(edebug-mode-map, edebug-mode-menus): Replace 'edebug-backtrace' with
'edebug-pop-to-backtrace'.
(edebug--strip-instrumentation): New function.
(edebug--unwrap-and-add-info): Remove.
(edebug-unwrap-frame, edebug-add-source-info): New functions.
(edebug-backtrace-show-instrumentation)
(edebug-backtrace-hide-instrumentation): New commands.
* test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-check-keymap):
Verify keybindings in backtrace-mode-map used by new test.
Update with binding for 'edebug-pop-to-backtrace'.
(edebug-tests-backtrace-goto-source): New test.
* test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el
(edebug-test-code-range): Add a new stop point.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 13 |
1 files changed, 11 insertions, 2 deletions
| @@ -484,11 +484,20 @@ using the new variables 'edebug-behavior-alist', | |||
| 484 | globally or for individual definitions. | 484 | globally or for individual definitions. |
| 485 | 485 | ||
| 486 | +++ | 486 | +++ |
| 487 | *** Edebug's backtrace buffer now uses 'backtrace-mode'. | 487 | *** Edebug's backtrace buffer now uses 'backtrace-mode'. Backtrace |
| 488 | Backtrace mode adds fontification, links and commands for changing the | 488 | mode adds fontification, links and commands for changing the |
| 489 | appearance of backtrace frames. See the node "Backtraces" in the Elisp | 489 | appearance of backtrace frames. See the node "Backtraces" in the Elisp |
| 490 | manual for documentation of the new mode and its commands. | 490 | manual for documentation of the new mode and its commands. |
| 491 | 491 | ||
| 492 | The binding of 'd' in Edebug's keymap is now 'edebug-pop-to-backtrace' | ||
| 493 | which replaces 'edebug-backtrace'. Consequently Edebug's backtrace | ||
| 494 | windows now behave like those of the Lisp Debugger and of ERT, in that | ||
| 495 | when they appear they will be the selected window. | ||
| 496 | |||
| 497 | The new 'backtrace-goto-source' command, bound to 's', works in | ||
| 498 | Edebug's backtraces on backtrace frames whose source code has | ||
| 499 | been instrumented by Edebug. | ||
| 500 | |||
| 492 | ** Enhanced xterm support | 501 | ** Enhanced xterm support |
| 493 | 502 | ||
| 494 | *** New variable 'xterm-set-window-title' controls whether Emacs sets | 503 | *** New variable 'xterm-set-window-title' controls whether Emacs sets |