diff options
| author | Noam Postavsky | 2017-04-25 08:39:17 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2017-05-23 20:11:23 -0400 |
| commit | ef9f5c672a8e248dd7bd682101c03feb2e527340 (patch) | |
| tree | d3da74cb32f0c51b3ee934026fab3407dec181ce | |
| parent | d158629cb6d0dd7cf0227d993d59ea6faa4438c9 (diff) | |
| download | emacs-ef9f5c672a8e248dd7bd682101c03feb2e527340.tar.gz emacs-ef9f5c672a8e248dd7bd682101c03feb2e527340.zip | |
Protect *Backtrace* from being killed (Bug#26650)
* lisp/emacs-lisp/debug.el (debugger-mode): Call `top-level' in
`kill-buffer-hook'.
| -rw-r--r-- | lisp/emacs-lisp/debug.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index cb77148c285..83456fc31a2 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el | |||
| @@ -727,6 +727,9 @@ Complete list of commands: | |||
| 727 | \\{debugger-mode-map}" | 727 | \\{debugger-mode-map}" |
| 728 | (setq truncate-lines t) | 728 | (setq truncate-lines t) |
| 729 | (set-syntax-table emacs-lisp-mode-syntax-table) | 729 | (set-syntax-table emacs-lisp-mode-syntax-table) |
| 730 | (add-hook 'kill-buffer-hook | ||
| 731 | (lambda () (if (> (recursion-depth) 0) (top-level))) | ||
| 732 | nil t) | ||
| 730 | (use-local-map debugger-mode-map)) | 733 | (use-local-map debugger-mode-map)) |
| 731 | 734 | ||
| 732 | (defcustom debugger-record-buffer "*Debugger-record*" | 735 | (defcustom debugger-record-buffer "*Debugger-record*" |