]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/debug.el (debug): Don't leave the buffer in Debugger.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 15 Jun 2011 18:39:04 +0000 (14:39 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 15 Jun 2011 18:39:04 +0000 (14:39 -0400)
lisp/ChangeLog
lisp/emacs-lisp/debug.el

index 03b96ecfa0b2d10ea72819b1c18ac84d75a03618..f9705822a1e33961524c939948b557afd8aedbee 100644 (file)
@@ -1,13 +1,14 @@
 2011-06-15  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * emacs-lisp/debug.el (debug): Don't leave the buffer in Debugger.
+
        * abbrev.el (define-abbrev-table): Don't add a table multiple times.
 
 2011-06-15  Alan Mackenzie  <acm@muc.de>
 
-       * progmodes/cc-fonts.el (c-font-lock-declarations): 1: Whilst
-       checking for declarators, disable knr checking to speed up for
-       normal files.  2: Refactor, replacing a sequence of nested if
-       forms by a cond form.
+       * progmodes/cc-fonts.el (c-font-lock-declarations): 1: Whilst checking
+       for declarators, disable knr checking to speed up for normal files.
+       2: Refactor, replacing a sequence of nested if forms by a cond form.
 
 2011-06-15  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
index 28962595acec8905b91d943d480afcf9c4cb51c0..2fa339e62fe2873f8a0c808d09d89dd7803dfe62 100644 (file)
@@ -238,13 +238,14 @@ first will be printed into the backtrace buffer."
               (kill-buffer debugger-buffer)))
           ;; Restore the previous state of the debugger-buffer, in case we were
           ;; in a recursive invocation of the debugger.
-          (when (and debugger-previous-state
-                     (buffer-live-p debugger-buffer))
+          (when (buffer-live-p debugger-buffer)
             (with-current-buffer debugger-buffer
               (let ((inhibit-read-only t))
                 (erase-buffer)
-                (insert (nth 1 debugger-previous-state))
-                (funcall (nth 0 debugger-previous-state)))))
+                (if (null debugger-previous-state)
+                    (fundamental-mode)
+                  (insert (nth 1 debugger-previous-state))
+                  (funcall (nth 0 debugger-previous-state))))))
          (with-timeout-unsuspend debugger-with-timeout-suspend)
          (set-match-data debugger-outer-match-data)))
       ;; Put into effect the modified values of these variables