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: Sun, 07 Jan 2018 23:54:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)

0. emacs -Q

1. M-& sleep 3600 RET

2. M-& sleep 3600 RET
   Answer “yes” to the question:
   “A command is running in the default buffer.  Use a new buffer? (yes or no) ”

3. Repeat some more times from 2.

4. C-x C-c
   “Active processes exist; kill them and exit anyway? (yes or no) ”

The displayed buffer *Process List* truncates the buffer names
and thus hides the suffixes of the active buffers:

Shell           25550   run     *Async Shell... /dev/pts/17  /bin/bash -c sleep 
3600
Shell<1>        25551   run     *Async Shell... /dev/pts/18  /bin/bash -c sleep 
3600
Shell<2>        25552   run     *Async Shell... /dev/pts/19  /bin/bash -c sleep 
3600
...

These buffer name suffixes are important to see to be able
to switch to the corresponding buffers using the *Buffer List*,
check the output and terminate its process when needed.

So I propose to increase the size of the column for buffer names
in *Process List* to at least fit the longest default buffer name
*Async Shell Command* with suffixes:

diff --git a/lisp/simple.el b/lisp/simple.el
index 87e0b23..6e8930b 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3927,7 +3927,7 @@ process-menu-mode
   (setq tabulated-list-format [("Process" 15 t)
                               ("PID"      7 t)
                               ("Status"   7 t)
-                              ("Buffer"  15 t)
+                              ("Buffer"  25 t)
                               ("TTY"     12 t)
                               ("Command"  0 t)])
   (make-local-variable 'process-menu-query-only)





reply via email to

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