mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-30 09:00:31 -08:00
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).
This commit is contained in:
parent
8dbce54cc7
commit
6a0886306e
2 changed files with 7 additions and 2 deletions
|
|
@ -371,7 +371,7 @@ Return the result of the last expression in BODY."
|
|||
((get-buffer-window buffer 0))
|
||||
((one-window-p 'nomini)
|
||||
;; When there's one window only, split it.
|
||||
(split-window))
|
||||
(split-window (minibuffer-selected-window)))
|
||||
((let ((trace-window (get-buffer-window edebug-trace-buffer)))
|
||||
(catch 'found
|
||||
(dolist (elt (window-list nil 'nomini))
|
||||
|
|
@ -382,7 +382,7 @@ Return the result of the last expression in BODY."
|
|||
(throw 'found elt))))))
|
||||
;; All windows are dedicated or show `edebug-trace-buffer', split
|
||||
;; selected one.
|
||||
(t (split-window))))
|
||||
(t (split-window (minibuffer-selected-window)))))
|
||||
(set-window-buffer window buffer)
|
||||
(select-window window)
|
||||
(set-window-hscroll window 0)) ;; should this be??
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue