[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30016: Improve visibility of Process List
From: |
Juri Linkov |
Subject: |
bug#30016: Improve visibility of Process List |
Date: |
Wed, 10 Jan 2018 23:28:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
> Meanwhile I propose another improvement for *Process List* displayed
> on ‘C-x C-c’. Currently it splits the frame side-by-side and displays
> the process list far away from the minibuffer containing the question
> “Active processes exist; kill them and exit anyway? (yes or no) ”
>
> This patch will display the buffer *Process List* near the minibuffer
> to allow easier inspection of the active processes and display the
> process list with the full frame width that will help to also see
> usually long command lines in their entirety:
Actually the same would be useful for *Local Variables* as well:
diff --git a/lisp/files.el b/lisp/files.el
index 5b8dff7..7194b56 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3315,7 +3315,15 @@ hack-local-variables-confirm
;; Display the buffer and read a choice.
(save-window-excursion
- (pop-to-buffer buf)
+ (pop-to-buffer buf `((display-buffer--maybe-same-window
+ display-buffer-reuse-window
+ display-buffer--maybe-pop-up-frame-or-window
+ display-buffer-at-bottom)
+ ,(if temp-buffer-resize-mode
+ '(window-height . resize-temp-buffer-window)
+ '(window-height . fit-window-to-buffer))
+ ,(when temp-buffer-resize-mode
+ '(preserve-size . (nil . t)))))
(let* ((exit-chars '(?y ?n ?\s ?\C-g ?\C-v))
(prompt (format "Please type %s%s: "
(if offer-save "y, n, or !" "y or n")
@@ -6917,8 +6925,17 @@ save-buffers-kill-emacs
(setq active t))
(setq processes (cdr processes)))
(or (not active)
- (with-current-buffer-window
- (get-buffer-create "*Process List*") nil
+ (with-displayed-buffer-window
+ (get-buffer-create "*Process List*")
+ `((display-buffer--maybe-same-window
+ display-buffer-reuse-window
+ display-buffer--maybe-pop-up-frame-or-window
+ display-buffer-at-bottom)
+ ,(if temp-buffer-resize-mode
+ '(window-height . resize-temp-buffer-window)
+ '(window-height . fit-window-to-buffer))
+ ,(when temp-buffer-resize-mode
+ '(preserve-size . (nil . t))))
#'(lambda (window _value)
(with-selected-window window
(unwind-protect
bug#30016: Improve visibility of Process List, Juri Linkov, 2018/01/18