* lisp/wid-edit.el (widget-choose): Use display-buffer-in-direction
to display buffer in bottom direction with fit-window-to-buffer. * lisp/proced.el (proced-with-processes-buffer): Idem. (Bug#35592)
This commit is contained in:
parent
3a95ce187a
commit
ec264e7126
2 changed files with 8 additions and 4 deletions
|
@ -1744,9 +1744,10 @@ The value returned is the value of the last form in BODY."
|
|||
(save-window-excursion
|
||||
;; Analogous to `dired-pop-to-buffer'
|
||||
;; Don't split window horizontally. (Bug#1806)
|
||||
(let (split-width-threshold)
|
||||
(pop-to-buffer (current-buffer)))
|
||||
(fit-window-to-buffer (get-buffer-window) nil 1)
|
||||
(display-buffer (current-buffer)
|
||||
'(display-buffer-in-direction
|
||||
(direction . bottom)
|
||||
(window-height . fit-window-to-buffer)))
|
||||
,@body))))
|
||||
|
||||
(defun proced-send-signal (&optional signal process-alist)
|
||||
|
|
|
@ -252,7 +252,10 @@ minibuffer."
|
|||
(define-key map [?\M--] 'negative-argument)
|
||||
(save-window-excursion
|
||||
(let ((buf (get-buffer " widget-choose")))
|
||||
(fit-window-to-buffer (display-buffer buf))
|
||||
(display-buffer buf
|
||||
'(display-buffer-in-direction
|
||||
(direction . bottom)
|
||||
(window-height . fit-window-to-buffer)))
|
||||
(let ((cursor-in-echo-area t)
|
||||
(arg 1))
|
||||
(while (not value)
|
||||
|
|
Loading…
Add table
Reference in a new issue