From: Tino Calancha <f92capac@gmail.com>
To: 21725@debbugs.gnu.org
Subject: bug#21725: 25.0; list-processes dont show process id
Date: Wed, 21 Oct 2015 18:30:43 +0900 (JST) [thread overview]
Message-ID: <alpine.LRH.2.20.1510211828450.24997@calancha-ilc.kek.jp> (raw)
[-- Attachment #1: Type: text/plain, Size: 306 bytes --]
In GNU Emacs 25.0.50 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23)
of 2015-10-21
list-processes should show the process id. This is particularly important
for those processes not associated to a buffer: showing a column with
the PID greatly simplify killing those processes when they are not needed.
[-- Attachment #2: Type: text/plain, Size: 1184 bytes --]
diff --git a/lisp/simple.el b/lisp/simple.el
index 8acb683..0ec03f9 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3538,6 +3538,7 @@ process-menu-mode-map
(define-derived-mode process-menu-mode tabulated-list-mode "Process Menu"
"Major mode for listing the processes called by Emacs."
(setq tabulated-list-format [("Process" 15 t)
+ ("PID" 7 t)
("Status" 7 t)
("Buffer" 15 t)
("TTY" 12 t)
@@ -3564,6 +3565,7 @@ list-processes--refresh
(process-query-on-exit-flag p))
(let* ((buf (process-buffer p))
(type (process-type p))
+ (pid (if (process-id p) (format "%d" (process-id p)) "--"))
(name (process-name p))
(status (symbol-name (process-status p)))
(buf-label (if (buffer-live-p buf)
@@ -3599,7 +3601,7 @@ list-processes--refresh
(format " at %s b/s" speed)
"")))))
(mapconcat 'identity (process-command p) " "))))
- (push (list p (vector name status buf-label tty cmd))
+ (push (list p (vector name pid status buf-label tty cmd))
tabulated-list-entries))))))
(defun process-menu-visit-buffer (button)
next reply other threads:[~2015-10-21 9:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-21 9:30 Tino Calancha [this message]
2015-10-21 16:47 ` bug#21725: 25.0; list-processes dont show process id Eli Zaretskii
2015-10-22 0:13 ` Constantino Calancha
2015-10-22 0:58 ` Constantino Calancha
2016-06-07 19:07 ` Glenn Morris
2016-10-17 7:49 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LRH.2.20.1510211828450.24997@calancha-ilc.kek.jp \
--to=f92capac@gmail.com \
--cc=21725@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).