]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/wid-edit.el (widget-choose): Use display-buffer-in-direction
authorJuri Linkov <juri@linkov.net>
Wed, 5 Jun 2019 20:57:07 +0000 (23:57 +0300)
committerJuri Linkov <juri@linkov.net>
Wed, 5 Jun 2019 20:57:07 +0000 (23:57 +0300)
to display buffer in bottom direction with fit-window-to-buffer.

* lisp/proced.el (proced-with-processes-buffer): Idem.  (Bug#35592)

lisp/proced.el
lisp/wid-edit.el

index ce379a7c6aab0daa0a0088ad57156344359161f0..b05046bfbd3a0d57a3f1c5d5b011c0442320355d 100644 (file)
@@ -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)
index b9f98cdc4c7e55571e9833abbbe15da8bc7a0b20..382eeb8925de3d7f31550e551012b9f859cf975d 100644 (file)
@@ -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)