bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Tue, 09 Jan 2018 01:11:49 +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:

diff --git a/lisp/files.el b/lisp/files.el
index 5b8dff7..e9f9cd1 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -6917,8 +6917,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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]