--- Begin Message ---
Subject: |
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)
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#30016: Improve visibility of Process List |
Date: |
Thu, 18 Jan 2018 23:44:29 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
>> 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)
>
> If we eventually decide to go with this simple change, there should be
> a comment explaining the value and its use case, and perhaps also a
> test for that.
I added a comment explaining the value and its use case.
With another change that makes its window wider to the frame's width
near the minibuffer, no useful information should be pushed out of sight.
Regarding displaying the column suffixes or making columns resizeable,
both are big tasks and could be implemented in a separate feature request.
--- End Message ---