aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-06-06 19:47:05 +0000
committerStefan Monnier2005-06-06 19:47:05 +0000
commit532c188a19153c4517be3bde16890ffb2f4b0441 (patch)
tree590f25d5a996bd5473d555e61384ae4caf0e7ccd
parenta15d6d35fad31a5956d77664bd05b8e3d1330fe8 (diff)
downloademacs-532c188a19153c4517be3bde16890ffb2f4b0441.tar.gz
emacs-532c188a19153c4517be3bde16890ffb2f4b0441.zip
(debug): Don't bury the buffer unless it's in a dedicated window.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/emacs-lisp/debug.el10
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8c0c26c09fe..d6cfeab3d08 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12005-06-06 Stefan Monnier <monnier@iro.umontreal.ca> 12005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * emacs-lisp/debug.el (debug): Don't bury the buffer unless it's in
4 a dedicated window.
5
3 * international/latexenc.el (latexenc-find-file-coding-system): 6 * international/latexenc.el (latexenc-find-file-coding-system):
4 Undo part of last patch, to turn off a compiler warning. 7 Undo part of last patch, to turn off a compiler warning.
5 8
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el
index 7d7e066b4e8..30e6f3480cc 100644
--- a/lisp/emacs-lisp/debug.el
+++ b/lisp/emacs-lisp/debug.el
@@ -221,12 +221,18 @@ first will be printed into the backtrace buffer."
221 ;; Still visible despite the save-window-excursion? Maybe it 221 ;; Still visible despite the save-window-excursion? Maybe it
222 ;; it's in a pop-up frame. It would be annoying to delete and 222 ;; it's in a pop-up frame. It would be annoying to delete and
223 ;; recreate it every time the debugger stops, so instead we'll 223 ;; recreate it every time the debugger stops, so instead we'll
224 ;; erase it and hide it but keep it alive. 224 ;; erase it (and maybe hide it) but keep it alive.
225 (with-current-buffer debugger-buffer 225 (with-current-buffer debugger-buffer
226 (erase-buffer) 226 (erase-buffer)
227 (fundamental-mode) 227 (fundamental-mode)
228 (with-selected-window (get-buffer-window debugger-buffer 0) 228 (with-selected-window (get-buffer-window debugger-buffer 0)
229 (bury-buffer))) 229 (when (window-dedicated-p (selected-window))
230 ;; If the window is not dedicated, burying the buffer
231 ;; will mean that the frame created for it is left
232 ;; around showing smoe random buffer, and next time we
233 ;; pop to the debugger buffer we'll create yet
234 ;; another frame.
235 (bury-buffer))))
230 (kill-buffer debugger-buffer)) 236 (kill-buffer debugger-buffer))
231 (set-match-data debugger-outer-match-data))) 237 (set-match-data debugger-outer-match-data)))
232 ;; Put into effect the modified values of these variables 238 ;; Put into effect the modified values of these variables