diff options
| author | Martin Rudalics | 2012-10-08 08:42:29 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2012-10-08 08:42:29 +0200 |
| commit | 6a0886306eeabccd66330ded9001602194ae5fd3 (patch) | |
| tree | 4f0548802ca2fbb440c6e0050bc797c06b8466e9 | |
| parent | 8dbce54cc73d16375b8d233da7271054eb4cda34 (diff) | |
| download | emacs-6a0886306eeabccd66330ded9001602194ae5fd3.tar.gz emacs-6a0886306eeabccd66330ded9001602194ae5fd3.zip | |
In edebug-pop-to-buffer don't try to split the minibuffer window (Bug#10851).
* emacs-lisp/edebug.el (edebug-pop-to-buffer): Don't try to split
the minibuffer window (Bug#10851).
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/edebug.el | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4f21112f3af..5ced15cd58f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-10-08 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * emacs-lisp/edebug.el (edebug-pop-to-buffer): Don't try to split | ||
| 4 | the minibuffer window (Bug#10851). | ||
| 5 | |||
| 1 | 2012-10-08 Fabián Ezequiel Gallina <fgallina@cuca> | 6 | 2012-10-08 Fabián Ezequiel Gallina <fgallina@cuca> |
| 2 | 7 | ||
| 3 | Enhancements on forward-sexp movement. | 8 | Enhancements on forward-sexp movement. |
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index 18d1661e985..483ed64de20 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el | |||
| @@ -371,7 +371,7 @@ Return the result of the last expression in BODY." | |||
| 371 | ((get-buffer-window buffer 0)) | 371 | ((get-buffer-window buffer 0)) |
| 372 | ((one-window-p 'nomini) | 372 | ((one-window-p 'nomini) |
| 373 | ;; When there's one window only, split it. | 373 | ;; When there's one window only, split it. |
| 374 | (split-window)) | 374 | (split-window (minibuffer-selected-window))) |
| 375 | ((let ((trace-window (get-buffer-window edebug-trace-buffer))) | 375 | ((let ((trace-window (get-buffer-window edebug-trace-buffer))) |
| 376 | (catch 'found | 376 | (catch 'found |
| 377 | (dolist (elt (window-list nil 'nomini)) | 377 | (dolist (elt (window-list nil 'nomini)) |
| @@ -382,7 +382,7 @@ Return the result of the last expression in BODY." | |||
| 382 | (throw 'found elt)))))) | 382 | (throw 'found elt)))))) |
| 383 | ;; All windows are dedicated or show `edebug-trace-buffer', split | 383 | ;; All windows are dedicated or show `edebug-trace-buffer', split |
| 384 | ;; selected one. | 384 | ;; selected one. |
| 385 | (t (split-window)))) | 385 | (t (split-window (minibuffer-selected-window))))) |
| 386 | (set-window-buffer window buffer) | 386 | (set-window-buffer window buffer) |
| 387 | (select-window window) | 387 | (select-window window) |
| 388 | (set-window-hscroll window 0)) ;; should this be?? | 388 | (set-window-hscroll window 0)) ;; should this be?? |