diff options
| author | Stefan Monnier | 2011-06-15 14:39:04 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2011-06-15 14:39:04 -0400 |
| commit | cb581a672b346e4896b2dee85cb2e23dfa2bca24 (patch) | |
| tree | 2b6a048b61269dcd0befbac3b2d7128844904898 | |
| parent | 0ac306045f2e03289032f4303e3c86dcbca89cc2 (diff) | |
| download | emacs-cb581a672b346e4896b2dee85cb2e23dfa2bca24.tar.gz emacs-cb581a672b346e4896b2dee85cb2e23dfa2bca24.zip | |
* lisp/emacs-lisp/debug.el (debug): Don't leave the buffer in Debugger.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/emacs-lisp/debug.el | 9 |
2 files changed, 10 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 03b96ecfa0b..f9705822a1e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,13 +1,14 @@ | |||
| 1 | 2011-06-15 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2011-06-15 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * emacs-lisp/debug.el (debug): Don't leave the buffer in Debugger. | ||
| 4 | |||
| 3 | * abbrev.el (define-abbrev-table): Don't add a table multiple times. | 5 | * abbrev.el (define-abbrev-table): Don't add a table multiple times. |
| 4 | 6 | ||
| 5 | 2011-06-15 Alan Mackenzie <acm@muc.de> | 7 | 2011-06-15 Alan Mackenzie <acm@muc.de> |
| 6 | 8 | ||
| 7 | * progmodes/cc-fonts.el (c-font-lock-declarations): 1: Whilst | 9 | * progmodes/cc-fonts.el (c-font-lock-declarations): 1: Whilst checking |
| 8 | checking for declarators, disable knr checking to speed up for | 10 | for declarators, disable knr checking to speed up for normal files. |
| 9 | normal files. 2: Refactor, replacing a sequence of nested if | 11 | 2: Refactor, replacing a sequence of nested if forms by a cond form. |
| 10 | forms by a cond form. | ||
| 11 | 12 | ||
| 12 | 2011-06-15 Lars Magne Ingebrigtsen <larsi@gnus.org> | 13 | 2011-06-15 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 13 | 14 | ||
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index 28962595ace..2fa339e62fe 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el | |||
| @@ -238,13 +238,14 @@ first will be printed into the backtrace buffer." | |||
| 238 | (kill-buffer debugger-buffer))) | 238 | (kill-buffer debugger-buffer))) |
| 239 | ;; Restore the previous state of the debugger-buffer, in case we were | 239 | ;; Restore the previous state of the debugger-buffer, in case we were |
| 240 | ;; in a recursive invocation of the debugger. | 240 | ;; in a recursive invocation of the debugger. |
| 241 | (when (and debugger-previous-state | 241 | (when (buffer-live-p debugger-buffer) |
| 242 | (buffer-live-p debugger-buffer)) | ||
| 243 | (with-current-buffer debugger-buffer | 242 | (with-current-buffer debugger-buffer |
| 244 | (let ((inhibit-read-only t)) | 243 | (let ((inhibit-read-only t)) |
| 245 | (erase-buffer) | 244 | (erase-buffer) |
| 246 | (insert (nth 1 debugger-previous-state)) | 245 | (if (null debugger-previous-state) |
| 247 | (funcall (nth 0 debugger-previous-state))))) | 246 | (fundamental-mode) |
| 247 | (insert (nth 1 debugger-previous-state)) | ||
| 248 | (funcall (nth 0 debugger-previous-state)))))) | ||
| 248 | (with-timeout-unsuspend debugger-with-timeout-suspend) | 249 | (with-timeout-unsuspend debugger-with-timeout-suspend) |
| 249 | (set-match-data debugger-outer-match-data))) | 250 | (set-match-data debugger-outer-match-data))) |
| 250 | ;; Put into effect the modified values of these variables | 251 | ;; Put into effect the modified values of these variables |